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__Problems__OjForm__NewEdi...

1174 lines
1.5 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[4741],{66543:function(){"use strict"},59598:function(){"use strict"},21697:function(Nt,Dt){"use strict";Dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},69092:function(Nt,Dt){"use strict";Dt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},45298:function(){"use strict"},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 Nt={},Dt="5.0",ze={},Be=null,mt=!1,y=!1,ke=null,we=!1,x=null,z=null,ie=0;ie<arguments.length;ie++){var ae=arguments[ie];if(ae!==null)switch(typeof ae){case"number":Dt=ae.toFixed(1);break;case"string":ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?Dt=ae:ke=ae;break;case"object":typeof ae.is3D!="undefined"?Be=ae:ze=ae;break;case"boolean":mt=ae,y=!0;break}}Be===null&&(Be={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ze.material_id!==void 0&&!y&&(mt=!0)),ke!==null&&ze.id===void 0&&(ze.id=ke);var ee="",de="",E=!1,ne=null,re=null,oe=null,le=!1,he=null,pe=null,ve=null,ce=null,me=null;ze.height!==void 0&&(ze.height=Math.round(ze.height)),ze.width!==void 0&&(ze.width=Math.round(ze.width));var Ee=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};Nt.setHTML5Codebase=function(Xe,Ye){z=Xe,$e(Xe,Ye)},Nt.setJavaCodebase=Nt.setJavaCodebaseVersion=Nt.isCompiledInstalled=Nt.setPreCompiledScriptPath=Nt.setPreCompiledResourcePath=function(){},Nt.setHTML5CodebaseVersion=function(Xe,Ye){var Ge=parseFloat(Xe);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}x=Xe,We(Xe,Ye)},Nt.getHTML5CodebaseVersion=function(){return re},Nt.getParameters=function(){return ze},Nt.setFontsCSSURL=function(Xe){ce=Xe},Nt.setGiacJSURL=function(Xe){},Nt.setJNLPFile=function(Xe){ee=Xe},Nt.setJNLPBaseDir=function(Xe){},Nt.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Ge=ze.id,at,Qe=!1,ft=0;ft<arguments.length;ft++){var ot=arguments[ft];typeof ot=="string"?(ot=ot.toLowerCase(),ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=ot:Ge=arguments[ft]):typeof ot=="boolean"?Qe=ot:ot instanceof HTMLElement&&(at=ot)}Je();function Je(){if(!we){setTimeout(Je,200);return}Ye=nt(Ye);var Fe=at||document.getElementById(Ge);if(!Fe){console.log("possibly bug on ajax loading? ");return}if(Nt.removeExistingApplet(Fe,!1),ze.width===void 0&&Fe.clientWidth&&(ze.width=Fe.clientWidth),ze.height===void 0&&Fe.clientHeight&&(ze.height=Fe.clientHeight),!(ze.width&&ze.height)&&Ye==="html5"&&(delete ze.width,delete ze.height),ne=Ye,Ye==="screenshot")Ae(Fe,ze);else{var Pe=!1;ze.hasOwnProperty("playButton")&&ze.playButton||ze.hasOwnProperty("clickToLoad")&&ze.clickToLoad?Pe=!0:ze.hasOwnProperty("playButtonAutoDecide")&&ze.playButtonAutoDecide&&(Pe=(!Te()||Xe())&&Re()),Pe?(ne="screenshot",He(Fe,ze,Qe,Ye)):Me(Fe,ze,Qe)}}};function Te(){try{return window.self!==window.top}catch(Xe){return!0}}function Re(){return ze.hasOwnProperty("screenshotGenerator")&&ze.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Nt.getViews=function(){return Be},Nt.isJavaInstalled=function(){return!1};var _e=function(Xe){var Ye=function(ft){var ot=JSON.parse(ft),Je=function(te){return te.type=="G"||te.type=="E"},Fe=ot.elements?ot.elements.filter(Je)[0]:ot;if(!Fe||!Fe.url){Ge();return}ze.fileName=Fe.url,ye(Fe.settings||{}),Be.is3D=!0;var Pe="https://www.geogebra.org/images/";Nt.setPreviewImage(he||Fe.previewUrl,Pe+"GeoGebra_loading.png",Pe+"applet_play.png"),Xe()},Ge=function(){ze.onError&&ze.onError(),rt("Error: Fetching material (id "+ze.material_id+") failed.",ze)},at=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+ze.material_id+"?scope=basic";be("https://"+at+"/api/proxy.php?path="+encodeURIComponent(Qe),Ye,Ge)};function ye(Xe){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){Xe[Ge]=!!Xe[Ge]}),Ye.forEach(function(Ge){ze[Ge]===void 0&&Xe[Ge]!==void 0&&(ze[Ge]=Xe[Ge])}),ze.showToolBarHelp===void 0&&(ze.showToolBarHelp=ze.showToolBar)}function be(Xe,Ye,Ge){var at=new XMLHttpRequest;at.open("GET",Xe),at.onload=function(){Ye(at.responseText)},at.onerror=Ge,at.send()}Nt.isHTML5Installed=function(){return!0},Nt.getLoadedAppletType=function(){return ne},Nt.setPreviewImage=function(Xe,Ye,Ge){he=Xe,pe=Ye,ve=Ge},Nt.removeExistingApplet=function(Xe,Ye){var Ge;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),ne=null;var at=null;for(Ge=0;Ge<Xe.childNodes.length;Ge++){var Qe=Xe.childNodes[Ge],ft=Qe.className;ft==="applet_screenshot"?Ye?(Qe.style.display="block",ne="screenshot"):Qe.style.display="none":ft!=="applet_scaler prerender"&&(Xe.removeChild(Qe),at=ft&&ft.indexOf("appletParameters")!=-1?Qe.id:null,Ge--)}var ot=ze.id!==void 0?ze.id:at,Je=window[ot];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[ot]=null)},Nt.refreshHitPoints=function(){if(Ee(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=Nt.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},Nt.startAnimation=function(){var Xe=Nt.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},Nt.stopAnimation=function(){var Xe=Nt.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},Nt.getAppletObject=function(){var Xe=ze.id!==void 0?ze.id:"ggbApplet";return window[Xe]},Nt.resize=function(){};var Se=function(Xe,Ye,Ge){var at=document.createElement("param");at.setAttribute("name",Ye),at.setAttribute("value",Ge),Xe.appendChild(at)},Ie=function(Xe){return Xe&&Xe!=="false"},Me=function(Xe,Ye,Ge){Ee(re)<=4.2&&(Ge=!0);var at=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!le)&&(at=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ft=Ye.width,ot=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(Ee(re)<=4.4)Ie(Ye.showToolBar)&&(Ye.height-=7),Ie(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Ie(Ye.showToolBar)&&(Ye.width=605,ft=605);else{var Je=100;(Ie(Ye.showToolBar)||Ie(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),Je=Ie(Ye.showMenuBar)?245:155),ft<Je&&(Ye.width=Je,ft=Je)}Qe.style.border="none",Qe.style.display="inline-block";for(var Fe in Ye)Ye.hasOwnProperty(Fe)&&Fe!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Fe,Ye[Fe]);ce&&Qe.setAttribute("data-param-fontscssurl",ce),Nt.resize=function(){GGBAppletUtils.responsiveResize(Xe,Ye)},window.addEventListener("resize",function(ut){Nt.resize()});var Pe=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!Ge&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var te=Xe.querySelector(".applet_scaler.prerender"),fe=te!==null;if(fe)var Oe=te.querySelector(".ggb_preview");else{var Oe=Ve(ft,ot,Ye.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=ft+"px",te.style.height=ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Ee(re)>=5?(Ye.appletOnLoad=function(ut){var pt=Xe.querySelector(".ggb_preview");pt&&pt.parentNode.removeChild(pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),Pe(ut)},fe||te.appendChild(Oe)):Qe.appendChild(Oe),te.appendChild(Qe),fe||Xe.appendChild(te),setTimeout(function(){Nt.resize()},1)}else{var Ue=document.createElement("div");Ue.className="applet_scaler",Ue.style.position="relative",Ue.style.display="block",Ue.appendChild(Qe),Xe.appendChild(Ue),Ye.appletOnLoad=function(ut){Nt.resize(),Pe(ut)}}function xe(ut,pt){pt&&typeof pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ut,pt.appletOnLoad):renderGGBElement(ut),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",pt)}function Ce(ut,pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ut,params:pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(St){xe(St.article,St.params)}),html5AppletsToProcess=null)},Ee(re)<5&&(ut.className+=" geogebraweb")):xe(ut,pt)}if(at){scriptLoadStarted=!0;for(var je=0;je<Qe.childNodes.length;je++){var Ze=Qe.childNodes[je].tagName;Ze==="TABLE"&&(Qe.removeChild(Qe.childNodes[je]),je--)}if(ggbHTML5LoadedScript!==null){var tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tt!=null&&tt.parentNode.removeChild(tt)}var it=document.createElement("script"),ct=function(){Ce(Qe,Ye)};it.src=de+oe,ggbHTML5LoadedCodebaseIsWebSimple=le,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=it.src,rt("GeoGebra HTML5 codebase loaded: '"+de+"'.",Ye),!z&&(!x||x=="5.0")?(le?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ct()):de.requirejs?__webpack_require__.e(981).then(function(){var ut=[__webpack_require__(60981)];ct.apply(null,ut)}.bind(this)).catch(__webpack_require__.oe):(it.onload=ct,Xe.appendChild(it))}else Ce(Qe,Ye);Ye.height=ot,Ye.width=ft},Ae=function(Xe,Ye,Ge){var at=Ve(Ye.width,Ye.height,Ye.borderColor,Ge),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Ye.width+"px",Qe.style.height=Ye.height+"px",Qe.className="applet_screenshot applet_scaler"+(Ge?" applet_screenshot_play":""),Qe.appendChild(at);var ft=GGBAppletUtils.getScale(Ye,Xe,Ge);Ge?(Xe.appendChild(Ke()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Xe.appendChild(Qe),ft!==1&&!isNaN(ft)&&(GGBAppletUtils.scaleElement(Qe,ft),Qe.style.width=Ye.width+"px",Qe.style.height=Ye.height+"px",Qe.parentNode.style.width=Ye.width*ft+"px",Qe.parentNode.style.height=Ye.height*ft+"px"),Nt.resize=function(){De(Xe,at,Qe,Ge)},window.addEventListener("resize",function(ot){Nt.resize()}),Nt.resize()};function De(Xe,Ye,Ge,at){if(Xe.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var Qe=GGBAppletUtils.getScale(ze,Xe,at);Ge.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Ge,Qe),Ge.parentNode.style.width=ze.width*Qe+"px",Ge.parentNode.style.height=ze.height*Qe+"px"):(GGBAppletUtils.scaleElement(Ge,1),Ge.parentNode.style.width=ze.width+"px",Ge.parentNode.style.height=ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Nt.onExitFullscreen=function(Xe,Ye){Ye.appendChild(Xe)};var He=function(Xe,Ye,Ge,at){Ae(Xe,Ye,!0);for(var Qe=function(){var Je=[];for(ot=0;ot<Xe.childNodes.length;ot++)Je.push(Xe.childNodes[ot]);if(window.GGBT_wsf_view){var Fe=window.GGBT_wsf_view.renderFullScreen(Xe,Ye.id),Pe=document.getElementById("fullscreencontainer"),te=jQuery(Xe).find(".fullscreencontent");te.length>0?(Fe.remove(),te.attr("id","fullscreencontent").show(),jQuery(Pe).append(te),window.dispatchEvent(new Event("resize"))):Me(Fe,Ye,!1),window.GGBT_wsf_view.launchFullScreen(Pe)}else ne=at,Me(Xe,Ye,!1);if(!window.GGBT_wsf_view)for(ot=0;ot<Je.length;ot++)Xe.removeChild(Je[ot])},ft=Xe.getElementsByClassName("ggb_preview_play"),ot=0;ot<ft.length;ot++)ft[ot].addEventListener("click",Qe,!1),ft[ot].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),Re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ye='.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");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=Ye:Ge.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(Ge)}return Xe},Ve=function(Xe,Ye,Ge,at){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Xe-2+"px",Qe.style.height=Ye-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ft="lightgrey";Ge!==void 0&&(Ge==="none"?ft="transparent":ft=Ge),Qe.style.border="1px solid "+ft;var ot=document.createElement("img");if(ot.style.position="relative",ot.style.zIndex="1000",ot.style.top="-1px",ot.style.left="-1px",he!==null&&ot.setAttribute("src",he),ot.style.opacity=.7,pe!==null){var Je,Fe,Pe;if(!at){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,ot.style.opacity=.3,Fe=360,Fe>Xe/4*3&&(Fe=Xe/4*3),Pe=Fe/5.8,Je.setAttribute("src",pe),Je.setAttribute("width",Fe),Je.setAttribute("height",Pe);var te=(Xe-Fe)/2,fe=(Ye-Pe)/2;Je.style.left=te+"px",Je.style.top=fe+"px",Qe.appendChild(Je)}}return Qe.appendChild(ot),Qe},nt=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},Ne=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Xe,Ye){if(re=Xe,Ye){$e(re,!0);return}var Ge=!mt;if(Ge){var at=Ee(re);!isNaN(at)&&at<4.4&&(Ge=!1)}var Qe,ft;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var ot=re.indexOf("//");ot>0?ft=re:ot===0?ft=Qe+re:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in Ne)if(re.slice(Ne[Je].length*-1)===Ne[Je]||re.slice((Ne[Je].length+1)*-1)===Ne[Je]+"/"){$e(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!Be.is3D&&!Be.AV&&!Be.SV&&!Be.CV&&!Be.EV2&&!Be.CP&&!Be.PC&&!Be.DA&&!Be.FI&&!Be.PV&&!Ie(ze.showToolBar)&&!Ie(ze.showMenuBar)&&!Ie(ze.showAlgebraInput)&&!Ie(ze.enableRightClick)&&(!ze.appName||ze.appName=="classic")?ft+="webSimple/":ft+="web3d/",$e(ft,!1)},$e=function(Xe,Ye){if(Xe.requirejs){de=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),de=Xe,Ye===null&&(Ye=Xe.indexOf("http")===-1),E=Ye,oe="web.nocache.js",le=!1;var Ge=de.split("/");Ge.length>1&&(!Ye&&Ge[Ge.length-2]==="webSimple"?(oe="webSimple.nocache.js",le=!0):Ne.indexOf(Ge[Ge.length-2])>=0&&(oe=Ge[Ge.length-2]+".nocache.js")),Ge=Xe.split("/"),re=Ge[Ge.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var at=parseFloat(re);at!==NaN&&at<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead."),We("5.0",Ye))},rt=function(Xe,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Xe)};ze.material_id!==void 0?_e(et):et();function et(){var Xe=Dt;x!==null?Xe=x:parseFloat(Xe)<5&&(Xe="5.0"),We(Xe,!1),z!==null&&$e(z,E),we=!0}return Nt},GGBAppletUtils=function(){"use strict";function Nt(){return window.GGBT_wsf_edit!==void 0}function Dt(we,x){x!=1?(we.style.transformOrigin="0% 0% 0px",we.style.webkitTransformOrigin="0% 0% 0px",we.style.transform="scale("+x+","+x+")",we.style.webkitTransform="scale("+x+","+x+")",we.style.maxWidth="initial",we.querySelector(".ggb_preview")!==null&&(we.querySelector(".ggb_preview").style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[0]!==void 0&&(we.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[1]!==void 0&&(we.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(we.style.transform="none",we.style.webkitTransform="none")}function ze(we,x,z,ie,ae,ee){var de=null;if(ee!=null&&ee!="")for(var E=we.parentNode;E!=null;)if((" "+E.className+" ").indexOf(" "+ee+" ")>-1){de=E;break}else E=E.parentNode;var ne=0,re=0,oe=0,le=0,he=0,pe=0,ve=0;if(de)ne=de.offsetWidth,re=Math.max(ie?de.offsetWidth:0,de.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ne=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),oe=ne):(ne=window.innerWidth,re=window.innerHeight,oe=window.innerWidth),we){var ce=we.getBoundingClientRect();ce.left>0&&ce.left<=ne&&(ae===void 0||!ae)&&(document.dir==="rtl"?(he=ne-ce.width-ce.left,pe=oe<=480?10:30):(pe=ce.left,he=oe<=480?10:30),le=pe+he)}if(we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var me=we.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le=40,ve=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(le=0,ve=40)}}return we&&((z===void 0||!z)&&x>0&&x+le<ne?ne=x:ne-=le,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(re-=ve)),{width:ne,height:re}}function Be(we,x,z,ie,ae){if(we.isScreenshoGenerator)return 1;var ee=ie!==void 0&&ie,de=we.noScaleMargin!=null&&we.noScaleMargin,E=function(me){return me&&me!=="false"},ne=E(we.autoHeight),re=ze(x,we.width,z,ne,ee&&window.GGBT_wsf_view||de,ae),oe=parseInt(re.width),le=we.width,he=we.height;if(le===void 0){var pe=x.querySelector(".appletParameters");pe&&(le=pe.offsetWidth,he=pe.offsetHeight)}var ve=oe/le,ce=ee?1:re.height/he;return z!==void 0&&!z&&(ve=Math.min(1,ve),ce=Math.min(1,ce)),Math.min(ve,ce)}function mt(we,x,z){var ie=1,ae,ee=!1;if(we.hasOwnProperty("allowUpscale")&&(ee=we.allowUpscale),we.hasOwnProperty("scale")&&(ie=parseFloat(we.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(ee=!0)),x&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(we.hasOwnProperty("disableAutoScale")&&we.disableAutoScale))ae=Be(we,x,ee,z,we.scaleContainerClass);else return ie;return ee&&(!we.hasOwnProperty("scale")||ie===1)?ae:Math.min(ie,ae)}function y(we){var x=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=we.getBoundingClientRect(),ae=(x-ie.width)/2,ee=(z-ie.height)/2;ee<0&&(ee=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ae<40?we.style.left="40px":we.style.left=ae+"px",we.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?we.style.top="40px":we.style.top=ee+"px",we.style.left=ae+"px")}function ke(we,x){var z=we.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(x.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(we)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var ie=mt(x,we);Nt()&&z.setAttribute("data-param-scale",ie);for(var ae=null,ee=0;ee<we.childNodes.length;ee++)if(we.childNodes[ee].className!==void 0&&we.childNodes[ee].className.match(/^applet_scaler/)){ae=we.childNodes[ee];break}if(ae!==null&&ae.querySelector(".noscale")!==null)return;var de=x.id!==void 0?x.id:"ggbApplet",E=window[de];(E==null||!E.recalculateEnvironments)&&ae!==null&&!ae.className.match(/fullscreen/)&&(ae.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(ae.parentNode.style.width=x.width*ie+"px",ae.parentNode.style.height=x.height*ie+"px",Dt(ae,ie)):(Dt(ae,1),ae.parentNode.style.width=x.width+"px",ae.parentNode.style.height=x.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(we),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:Nt,positionCenter:y,getScale:mt,scaleElement:Dt}}();__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 Nt=n.location.search;return Nt.indexOf(J)!=-1||Nt.indexOf(K)!=-1}function q(Nt,Dt){}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(Nt){var Dt=s[L].bindings;s[L].bindings=function(){for(var ze=Dt?Dt():{},Be=Nt[webModule.__softPermutationId],mt=O;mt<Be.length;mt++){var y=Be[mt];ze[y[O]]=y[P]}return ze}};var t;function u(){return v(),t}function v(){if(!t){var Nt=o.createElement(Q);if(Nt.id=L,Nt.style.cssText=R+S,Nt.tabIndex=-1,o.body.appendChild(Nt),t=Nt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Dt=document.compatMode==U?V:W;t.write(Dt+X),t.close()}}}function w(Nt){function Dt(Be){function mt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=mt();if(y){Be();return}function ke(){if(!y){if(!mt())return;y=!0,Be(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),we&&clearInterval(we)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var we=setInterval(function(){ke()},$)}function ze(Be){var mt=u(),y=mt.body,ke=mt.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=Be,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+Be))}),y.appendChild(ke)}Dt(function(){ze(Nt)})}webModule.__startLoadingFragment=function(Nt){return C(Nt)},webModule.__installRunAsyncCode=function(Nt){var Dt=u(),ze=Dt.body,Be=Dt.createElement(_);Be.language=ab,Be.text=Nt,ze.appendChild(Be),ze.removeChild(Be)};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(Nt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Nt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Nt){var Dt=c[Nt];return Dt==null?null:Dt},r=d,webModule.__errFn=e}function B(){function Nt(we){var x=we.lastIndexOf(rb);x==-1&&(x=we.length);var z=we.indexOf(sb);z==-1&&(z=we.length);var ie=we.lastIndexOf(tb,Math.min(z,x));return ie>=O?we.substring(O,ie+P):W}function Dt(we){if(!we.match(/^\w+:\/\//)){var x=o.createElement(ub);x.src=we+vb,we=Nt(x.src)}return we}function ze(){var we=__gwt_getMetaProperty(wb);return we!=null?we:W}function Be(){for(var we=o.getElementsByTagName(_),x=O;x<we.length;++x)if(we[x].src.indexOf(xb)!=-1)return Nt(we[x].src);return W}function mt(){var we=o.getElementsByTagName(yb);return we.length>O?we[we.length-P].href:W}function y(){var we=o.location;return we.href==we.protocol+zb+we.host+we.pathname+we.search+we.hash}var ke=ze();return ke==W&&(ke=Be()),ke==W&&(ke=mt()),ke==W&&y()&&(ke=Nt(o.location.href)),ke=Dt(ke),ke}function C(Nt){return Nt.match(/^\//)||Nt.match(/^[a-zA-Z]+:\/\//)?Nt:webModule.__moduleBase+Nt}function D(){var Nt=[],Dt=O,ze=[],Be=[];function mt(we){var x=Be[we](),z=ze[we];if(x in z)return x;var ie=[];for(var ae in z)ie[z[ae]]=ae;throw r&&r(we,ie,x),null}if(__gwt_isKnownPropertyValue=function(we,x){return x in ze[we]},webModule.__getPropMap=function(){var we={};for(var x in ze)ze.hasOwnProperty(x)&&(we[x]=mt(x));return we},webModule.__computePropValue=mt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var ke=y.indexOf(Db);ke!=-1&&(Dt=parseInt(y.substring(ke+P),$),y=y.substring(O,ke))}catch(we){}return webModule.__softPermutationId=Dt,C(y+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(Nt,Dt,ze){"use strict";ze.d(Dt,{Ax:function(){return ke},Ds:function(){return we},KI:function(){return z},SI:function(){return y},f1:function(){return mt}});var Be=ze(90524);function mt(ie){let ae=!0;if(ie.length>0){for(let ee=0;ee<ie.length;ee++)if(ie[ee].compile_success==0||!ie[ee].compile_success){ae=!1;break}}else ae=!1;return ae}function y(ie,ae=""){let ee=[];for(let de=0;de<ie.length;de++){let E=ie[de],ne=ae?`${ae}/${E.name}`:`${E.name}`;ee.push({title:E.name,type:E.type,isLeaf:E.type!=="tree",key:ne})}return ee}function ke(ie,ae,ee){for(let de=0;de<ie.length;de++){let E=ie[de];if(E.key===ae){E.children=ee;break}E.children&&ke(E.children,ae,ee)}return ie}function we(ie,ae,ee){let de;return function(){let E=this,ne=arguments,re=function(){de=null,ee||ie.apply(E,ne)},oe=ee&&!de;clearTimeout(de),de=setTimeout(re,ae),oe&&ie.apply(E,ne)}}const x=!0,z=Be.Z.API_SERVER},15985:function(Nt,Dt,ze){"use strict";ze.d(Dt,{d4:function(){return ne},VP:function(){return ae}});var Be=ze(59301),mt={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const y=({number:re,active:oe,className:le})=>Be.createElement("div",{className:`${mt.digitalLabel} ${oe?mt.active:""} ${le}`},re);var ke=ze(25399),we=ze(37568),x=ze(6767),z=ze(59301),ie=(re,oe,le)=>new Promise((he,pe)=>{var ve=Ee=>{try{me(le.next(Ee))}catch(Te){pe(Te)}},ce=Ee=>{try{me(le.throw(Ee))}catch(Te){pe(Te)}},me=Ee=>Ee.done?he(Ee.value):Promise.resolve(Ee.value).then(ve,ce);me((le=le.apply(re,oe)).next())});const ae=({defaultValue:re,onFinish:oe})=>{const[le,he]=(0,Be.useState)(!1),[pe,ve]=(0,Be.useState)(re);return(0,Be.useEffect)(()=>{ve(re)},[re]),z.createElement("div",{className:mt.titleEditor},le?z.createElement(we.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:pe,onChange:ce=>{ve(ce.target.value)},onBlur:()=>ie(void 0,null,function*(){var ce;if(((ce=pe==null?void 0:pe.replaceAll(" ",""))==null?void 0:ce.length)<=0){x.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield oe(pe))&&he(!1)}),onPressEnter:()=>ie(void 0,null,function*(){var ce;if(((ce=pe==null?void 0:pe.replaceAll(" ",""))==null?void 0:ce.length)<=0){x.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield oe(pe))&&he(!1)})}):z.createElement("div",{className:mt.title,onDoubleClick:()=>he(!0)},pe,z.createElement(ke.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},z.createElement("i",{className:`${mt.editIcon} iconfont icon-bianji_Hover`,onClick:()=>he(!0)}))))};var ee=ze(77019),de=ze(5269),E=(re,oe,le)=>new Promise((he,pe)=>{var ve=Ee=>{try{me(le.next(Ee))}catch(Te){pe(Te)}},ce=Ee=>{try{me(le.throw(Ee))}catch(Te){pe(Te)}},me=Ee=>Ee.done?he(Ee.value):Promise.resolve(Ee.value).then(ve,ce);me((le=le.apply(re,oe)).next())});const ne=({onChange:re=()=>E(void 0,null,function*(){}),tabs:oe,activeKey:le,defaultActiveKey:he,className:pe=""})=>{var ve,ce,me,Ee,Te,Re,_e;const[ye,be]=(0,Be.useState)(he===void 0?(ve=oe[0])==null?void 0:ve.key:he);return(0,Be.useEffect)(()=>{le!==void 0&&be(le)},[le]),Be.createElement(ee.Z,{justify:"center",align:"middle",className:`${mt.paperTab} ${pe}`},Be.createElement(de.Z,{className:`${mt.tabItem} ${ye===((ce=oe[0])==null?void 0:ce.key)?mt.active:""}`,onClick:()=>E(void 0,null,function*(){var Se;yield re(oe[0].key),be((Se=oe[0])==null?void 0:Se.key)})},Be.createElement(y,{number:1,active:ye===((me=oe[0])==null?void 0:me.key),className:"mr10"}),Be.createElement("span",null,(Ee=oe[0])==null?void 0:Ee.label)),Be.createElement(de.Z,{flex:"188px",className:`${mt.dottedLine} ml30 mr30`}),Be.createElement(de.Z,{className:`${mt.tabItem} ${ye===((Te=oe[1])==null?void 0:Te.key)?mt.active:""}`,onClick:()=>E(void 0,null,function*(){var Se,Ie;yield re((Se=oe[1])==null?void 0:Se.key),be((Ie=oe[1])==null?void 0:Ie.key)})},Be.createElement(y,{number:2,active:ye===((Re=oe[1])==null?void 0:Re.key),className:"mr10"}),Be.createElement("span",null,(_e=oe[1])==null?void 0:_e.label)))}},79934:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return pe}});var Be=ze(59301),mt=ze(18287),y={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},ke=ze(73631),we=ze(5623),x=ze(70610),z=Object.defineProperty,ie=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,ne=(ve,ce,me)=>ce in ve?z(ve,ce,{enumerable:!0,configurable:!0,writable:!0,value:me}):ve[ce]=me,re=(ve,ce)=>{for(var me in ce||(ce={}))de.call(ce,me)&&ne(ve,me,ce[me]);if(ee)for(var me of ee(ce))E.call(ce,me)&&ne(ve,me,ce[me]);return ve},oe=(ve,ce)=>ie(ve,ae(ce)),le=(ve,ce,me)=>new Promise((Ee,Te)=>{var Re=be=>{try{ye(me.next(be))}catch(Se){Te(Se)}},_e=be=>{try{ye(me.throw(be))}catch(Se){Te(Se)}},ye=be=>be.done?Ee(be.value):Promise.resolve(be.value).then(Re,_e);ye((me=me.apply(ve,ce)).next())}),pe=({value:ve,onChange:ce,scrollId:me})=>{const[Ee,Te]=(0,Be.useState)([]);(0,Be.useEffect)(()=>{Re()},[]);const Re=()=>le(void 0,null,function*(){const Me=yield(0,x.NZ)({});if(Me!=null&&Me.data){const Ae=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:Be.createElement("img",{src:ke,className:y.folderIcon}),isLeaf:!1,children:_e(Me.data||[])}];Te(Ae)}}),_e=Me=>Me.map(Ae=>({title:Ae.name,key:Ae.group_id,icon:Be.createElement("img",{src:ke,className:y.folderIcon}),isLeaf:Ae.children.length===0,children:_e(Ae.children)})),ye=(Me,Ae,De)=>Me.map(He=>He.key===Ae?re(re({},He),De):He.children?oe(re({},He),{children:ye(He.children,Ae,De)}):He),be=(Me,Ae,De)=>Me.map(He=>{if(He.key===Ae)return oe(re({},He),{icon:De?Be.createElement("img",{src:we,className:y.folderIcon}):Be.createElement("img",{src:ke,className:y.folderIcon})});if(He.children)return oe(re({},He),{children:be(He.children,Ae,De)})}),Se=(Me,Ae)=>{Te(De=>be(De,Ae.node.key,Ae.expanded))},Ie=ve?{selectedKeys:ve,defaultExpandedKeys:ve}:{};return Ee.length>0&&Be.createElement("div",{id:me||""},Be.createElement(mt.default,re({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ee,className:y.folderWrapper,onSelect:ce,onExpand:Se},Ie)))}},6077:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return de}});var Be=ze(59301),mt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=ze(92310),ke=ze.n(y),we=ze(29787),x=ze(2859),z=ze(82093),ie=ze(49661),ae=(E,ne,re)=>new Promise((oe,le)=>{var he=ce=>{try{ve(re.next(ce))}catch(me){le(me)}},pe=ce=>{try{ve(re.throw(ce))}catch(me){le(me)}},ve=ce=>ce.done?oe(ce.value):Promise.resolve(ce.value).then(he,pe);ve((re=re.apply(E,ne)).next())}),de=({data:E,className:ne,fullWidth:re,style:oe={},onClose:le,onOk:he,showFullTools:pe,noAssociationId:ve})=>{const ce=(0,Be.useRef)(null),me=(0,Be.useRef)(null),Ee=(0,Be.useRef)(null),Te=(0,Be.useRef)(null),[Re,_e]=(0,Be.useState)(!1),[ye,be]=(0,Be.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Be.useEffect)(()=>(Ee.current||(Ee.current=document.createElement("style"),document.head.appendChild(Ee.current)),E!=null&&E.visible?(document.body.setAttribute("data-custom","y-hidden"),Ee.current.innerHTML=" html { overflow-y: hidden; }",E!=null&&E.src&&Se()):(document.body.removeAttribute("data-custom"),Ee.current&&(document.head.removeChild(Ee.current),Ee.current=null)),()=>{document.body.removeAttribute("data-custom"),Ee.current&&(document.head.removeChild(Ee.current),Ee.current=null)}),[E==null?void 0:E.visible]);const Se=()=>ae(void 0,null,function*(){_e(!0),be("\u6B63\u5728\u52A0\u8F7D\u4E2D");const De=yield(0,ie.ZJ)(E==null?void 0:E.src);ce.current.src="",ce.current.src=De,ce.current.onload=function(){Ae()},_e(!1),be("")}),Ie=De=>ae(void 0,null,function*(){_e(!0),be("\u6B63\u5728\u4FDD\u5B58\u4E2D");const He=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:E.title,file:De.dataUrl}});He!=null&&He.id&&!ve?(yield(0,z.ZP)(`/api/attachments/${E.id}/add_subitem.json`,{method:"post",body:{subitem_id:He==null?void 0:He.id,settings:JSON.stringify(De.state)}})).status===0&&he():He!=null&&He.id&&he(He),_e(!1),be("")}),Me=()=>{const De=document.querySelector('a[href="https://markerjs.com/"]');De&&De.parentNode&&(De.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(Ke=>{const Ve=document.querySelector(Ke.name);Ve&&Ve.setAttribute("title",Ke.title)})},Ae=()=>{me.current=new x.hP(ce.current),me.current.targetRoot=Te.current,me.current.addEventListener("render",Ie),me.current.addEventListener("beforeclose",le),pe&&(me.current.availableMarkerTypes=me.current.ALL_MARKER_TYPES,me.current.uiStyleSettings.redoButtonVisible=!0,me.current.uiStyleSettings.notesButtonVisible=!0,me.current.uiStyleSettings.zoomButtonVisible=!0,me.current.uiStyleSettings.zoomOutButtonVisible=!0,me.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=me.current.uiStyleSettings,me.current.show(),E!=null&&E.snapshotData&&me.current.restoreState(E.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Me()},300)};return Be.createElement(Be.Fragment,null,(E==null?void 0:E.visible)&&Be.createElement(we.Z,{spinning:Re,tip:ye,style:{position:"absolute",width:"100vw"}},Be.createElement("div",{ref:Te,className:ke()(mt.imageDimensions,ne,re?mt.fullWidth:""),style:oe},Be.createElement("img",{className:mt.img,ref:ce}))))}},88615:function(Nt,Dt,ze){"use strict";var Be=ze(59301),mt=ze(77019),y=ze(5269),ke=ze(20554),we=ze(99571),x=ze(38394),z=ze(21697),ie=ze(48136),ae=ze(59301);const ee=(0,Be.forwardRef)(({callback:de,showSaveButton:E,value:ne=""},re)=>{const oe=(0,Be.useRef)(),le=[{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 "}]}]}],he=[{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}`}]}]}],pe=me=>{oe.current.setValue(oe.current.getValue()+" "+me.value+" ")},ve=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ae.createElement(mt.Z,{className:z.Z.lists,gutter:[10,10]},le.map((me,Ee)=>ae.createElement(y.Z,{flex:"110px",className:z.Z.item},ae.createElement("div",null,ae.createElement(x.Z,{value:`$$${me.value}$$`}),me.name),ae.createElement("div",{className:z.Z.children},me.children.map((Te,Re)=>ae.createElement("div",{key:Re},ae.createElement("h1",null,Te.name),ae.createElement(mt.Z,{gutter:[10,10]},Te.data.map((_e,ye)=>ae.createElement(y.Z,{key:ye,onClick:()=>pe(_e),className:z.Z.diamond},ae.createElement(x.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ae.createElement(mt.Z,{className:z.Z.lists,gutter:[10,10]},he.map((me,Ee)=>ae.createElement(y.Z,{flex:"110px",className:z.Z.item},ae.createElement("div",null,ae.createElement(x.Z,{value:"`$$"+me.value+"$$`"}),me.name),ae.createElement("div",{className:z.Z.children},me.children.map((Te,Re)=>ae.createElement("div",{key:Re},Te.name&&ae.createElement("h1",null,Te.name),ae.createElement(mt.Z,{gutter:[10,10]},Te.data.map((_e,ye)=>ae.createElement(y.Z,{key:ye,onClick:()=>pe(_e),className:z.Z.diamond},ae.createElement(x.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],ce=()=>{var me=document.createElement("div");me.innerHTML=oe.current.getValue();var Ee=me.innerText;return de&&de(Ee),Ee};return(0,Be.useImperativeHandle)(re,()=>({getData:ce})),ae.createElement("div",{className:z.Z.mathWrap},ae.createElement(ke.default,{defaultActiveKey:"1",items:ve}),ae.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:oe,style:{width:800,marginTop:30,fontSize:18}},ne||""),E&&ae.createElement("div",{className:z.Z.button},ae.createElement(we.ZP,{size:"large",onClick:ce,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Dt.Z=ee},57884:function(Nt,Dt,ze){"use strict";var Be=ze(59301),mt=ze(93314),y=ze(99571),ke=Object.defineProperty,we=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ee=(re,oe,le)=>oe in re?ke(re,oe,{enumerable:!0,configurable:!0,writable:!0,value:le}):re[oe]=le,de=(re,oe)=>{for(var le in oe||(oe={}))ie.call(oe,le)&&ee(re,le,oe[le]);if(z)for(var le of z(oe))ae.call(oe,le)&&ee(re,le,oe[le]);return re},E=(re,oe)=>we(re,x(oe));const ne=({img:re,buttonProps:oe={},styles:le={},customText:he,ButtonText:pe,ButtonClick:ve,Buttonclass:ce,ButtonTwo:me,imgStyles:Ee,loading:Te=!1,className:Re=""})=>Be.createElement("section",{className:`tc animated fadeIn ${Re}`,style:de({color:"#999",margin:"100px auto",visibility:Te?"hidden":"visible"},le)},Be.createElement("img",{src:re||mt,style:E(de({},Ee),{pointerEvents:"none",userSelect:"none"})}),Be.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),pe&&Be.createElement(y.ZP,de({className:ce,onClick:ve},oe),pe),me&&me);Dt.Z=ne},41550:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return ce}});var Be=ze(59301),mt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=ze(99571),ke=ze(70557),we=ze(51124),x=ze(25399),z=ze(49661),ie=ze(72664),ae=ze(57884),ee=ze(90524),de=ze(14794),E=ze(59301),ne=Object.defineProperty,re=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,he=(me,Ee,Te)=>Ee in me?ne(me,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Te}):me[Ee]=Te,pe=(me,Ee)=>{for(var Te in Ee||(Ee={}))oe.call(Ee,Te)&&he(me,Te,Ee[Te]);if(re)for(var Te of re(Ee))le.call(Ee,Te)&&he(me,Te,Ee[Te]);return me},ve=(me,Ee,Te)=>new Promise((Re,_e)=>{var ye=Ie=>{try{Se(Te.next(Ie))}catch(Me){_e(Me)}},be=Ie=>{try{Se(Te.throw(Ie))}catch(Me){_e(Me)}},Se=Ie=>Ie.done?Re(Ie.value):Promise.resolve(Ie.value).then(ye,be);Se((Te=Te.apply(me,Ee)).next())}),ce=({editOffice:me="view",data:Ee,issaver:Te,onSaver:Re,theme:_e,type:ye,filename:be,monacoEditor:Se,className:Ie,style:Me,close:Ae,onClose:De,hasMask:He,disabledDownload:Ke,onImgDimensions:Ve,showNodata:nt,recordInfo:Ne})=>{const[We,$e]=(0,Be.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,et]=(0,Be.useState)(""),[Xe,Ye]=(0,Be.useState)(),Ge=window.ENV==="build"?"/react/build":"",at=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ft=10*(1024*1024),ot=(0,Be.useRef)();Ee!=null&&Ee.startsWith("/api")&&ye!=="txt"&&(Ee=ee.Z.API_SERVER+Ee);const Je=Oe=>Oe.substring(Oe.lastIndexOf("/")+1).split(".").pop();be&&Se&&(Se.filename=be),(0,Be.useEffect)(()=>{var Oe,Ue;const xe=(Ue=(Oe=document.cookie)==null?void 0:Oe.replace(/\s/g,""))==null?void 0:Ue.split(";");xe==null||xe.map(Ce=>{let je=Ce.split("=");je[0]==="_educoder_session"&&et(je[1])})},[]),(0,Be.useEffect)(()=>{ye==="office"&&(Ee.indexOf("bigfilescdn.")>-1||Ee.indexOf("bigfiles1")>-1?Ye({url:Ee,fileType:Je(Ee),model:Ee.indexOf("model=edit")?"edit":"view"}):Pe())},[ye,Ee]);function Fe(Oe){return ve(this,null,function*(){Oe.data.type==="pdfdata"&&(Re(Oe.data.data),window.removeEventListener("message",Fe,!1)),console.log("mess---:",Oe.data)})}const Pe=()=>ve(void 0,null,function*(){console.log("data:",Ee);let Oe=Ee;Ee.startsWith("http")||(Oe=location.origin+Oe);let Ue=new URL(Oe).pathname.split("/").pop();const xe=yield(0,ie.gJ)({attachment_id:Ue});xe.url=at+xe.url,Ye(xe)}),te=()=>{if(Ee.startsWith("http")||Ee.startsWith("blob:")){fe();return}(0,z.Sv)(be||"educoder",Ee,be)},fe=()=>{Ne&&(0,de.fc)({id:Ne==null?void 0:Ne.id,watch_type:1,course_id:Ne==null?void 0:Ne.course_id}),(0,z.Nd)(be||"educoder",decodeURIComponent(Ee))};return E.createElement("div",{style:pe({},Me||{}),className:`${He&&mt.bgBlack} ${ye?mt.wrp:"hide"}`},Ae&&E.createElement("div",{className:mt.close,ref:ot},!!Ve&&E.createElement(x.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ot.current},E.createElement("span",{onClick:()=>{De(),Ve()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!Ke&&E.createElement(x.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ot.current},E.createElement("span",{onClick:fe},E.createElement("i",{className:"icon-quxiaozhiding"}))),Te&&E.createElement(x.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ot.current},E.createElement("span",{className:"",onClick:()=>{const Oe=document.getElementById("pdfiframe");window.addEventListener("message",Fe,!1),setTimeout(()=>{Oe.contentWindow.postMessage("getData","*")},300)}},E.createElement("i",{className:"icon-baocun"}))),E.createElement(x.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ot.current},E.createElement("span",{className:"",onClick:()=>{De()}},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${mt[Ie]} ${Ie} ${mt.monaco} ${ye==="txt"?"show":"hide"}`},ye==="txt"&&E.createElement(E.Fragment,null,E.createElement(we.ZP,pe({},Se)))),ye==="audio"&&E.createElement("audio",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ee}`,autoPlay:!0}),ye==="video"&&E.createElement(E.Fragment,null,(Ee==null?void 0:Ee.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${Ee}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ee}`,autoPlay:!0})),ye==="office"&&Xe&&E.createElement("iframe",{src:`${Ge}/office.html?key=${Xe.key}&url=${btoa(Xe.url)}&callbackUrl=${at+(Xe.callbackUrl||"")}&fileType=${Xe.fileType}&title=${Xe.title||""}&model=${me}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ke}`}),ye==="html"&&E.createElement("iframe",{src:Ee+"&disposition=inline"}),ye==="pdf"&&E.createElement("iframe",{id:"pdfiframe",src:`${Ge}/js/pdfview/index.html?filename=${be||"educoder.pdf"}&url=${encodeURIComponent(Ee)}&disabledDownload=${!!Ke}&model=${me}`}),ye==="image"&&E.createElement("img",{src:`${(Ee==null?void 0:Ee.indexOf("http://"))>-1||(Ee==null?void 0:Ee.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ee}`}),(ye==="other"||ye==="download")&&E.createElement(E.Fragment,null,nt?E.createElement(ae.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:E.createElement(y.ZP,{icon:E.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Ke},"\u4E0B\u8F7D")}):E.createElement(y.ZP,{type:"primary",size:"middle",onClick:te,disabled:Ke},E.createElement(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ye==="flowChart"&&E.createElement("div",{className:"embed"},E.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ee||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},54657:function(Nt,Dt,ze){"use strict";ze.d(Dt,{h:function(){return oe},x:function(){return le}});var Be=ze(2978),mt=ze(69092),y=ze(38394),ke=ze(59301),we=Object.defineProperty,x=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(he,pe,ve)=>pe in he?we(he,pe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):he[pe]=ve,E=(he,pe)=>{for(var ve in pe||(pe={}))ae.call(pe,ve)&&de(he,ve,pe[ve]);if(ie)for(var ve of ie(pe))ee.call(pe,ve)&&de(he,ve,pe[ve]);return he},ne=(he,pe)=>x(he,z(pe)),re=(he,pe)=>{var ve={};for(var ce in he)ae.call(he,ce)&&pe.indexOf(ce)<0&&(ve[ce]=he[ce]);if(he!=null&&ie)for(var ce of ie(he))pe.indexOf(ce)<0&&ee.call(he,ce)&&(ve[ce]=he[ce]);return ve};const oe=he=>{var pe=he,{value:ve,onChange:ce,scrollId:me}=pe,Ee=re(pe,["value","onChange","scrollId"]);return ke.createElement("div",{id:me||""},ke.createElement(Be.Z,ne(E({},Ee),{defaultValue:ve,onChange:(Te,Re)=>{Re!=null&&Re.length?ce(Te,Re):ce(Te)}})))},le=({value:he,onChange:pe,placeholder:ve,height:ce=140,isEdit:me,miniToolbar:Ee,watch:Te=!0})=>me?ke.createElement(Be.Z,{watch:Te,isFocus:!0,height:ce||void 0,placeholder:ve,defaultValue:he,onChange:pe,miniToolbar:Ee}):ke.createElement("div",{style:{cursor:"pointer"}},he?ke.createElement(y.Z,{className:mt.Z.inputBorder,value:he}):ke.createElement("div",{className:`${mt.Z.inputBorder} ${mt.Z.placeholder} inputBorderError`},ve))},38394:function(Nt,Dt,ze){"use strict";ze.d(Dt,{z:function(){return Se},Z:function(){return Ie}});var Be=ze(59301),mt=ze(88831),y=ze(90290),ke=ze(64018),we=ze(68535),x=ze(90524),z=ze(49661),ie=ze(15342),ae=ze(77736),ee=ze(99571),de=ze(1012),E=ze(41550),ne=ze(59301),oe=({html:Me})=>{const Ae=(0,Be.useRef)(null),De=(0,Be.useRef)(null),He=`.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,Be.useEffect)(()=>{const Ke=Ae.current.attachShadow({mode:"open"});De.current=document.createElement("div"),De.current.className="markdown-body",De.current.innerHTML=Me,Ke.appendChild(De.current);const Ve=document.createElement("style");return Ve.textContent=He,Ke.appendChild(Ve),()=>{Ke.innerHTML=""}},[]),(0,Be.useEffect)(()=>{De.current&&(De.current.innerHTML=Me)},[Me]),ne.createElement("div",{ref:Ae})};function le(Me){const Ae=["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"],De=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Me.replace(De,"").trim()}var he={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},pe=Object.defineProperty,ve=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ee=(Me,Ae,De)=>Ae in Me?pe(Me,Ae,{enumerable:!0,configurable:!0,writable:!0,value:De}):Me[Ae]=De,Te=(Me,Ae)=>{for(var De in Ae||(Ae={}))ce.call(Ae,De)&&Ee(Me,De,Ae[De]);if(ve)for(var De of ve(Ae))me.call(Ae,De)&&Ee(Me,De,Ae[De]);return Me};const Re="@\u2581\u2581@",_e="@\u2581@",ye=/<pre[^>]*>/g;function be(Me){let Ae=document.createElement("div");return Ae.innerHTML=Me,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Se=(Me,Ae)=>{Me=Me||"";const De=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Me.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(De,(nt,Ne,We,$e,rt,et,Xe)=>{const Ye=Ne||$e||et,Ge=We||rt||Xe||"?";return x.Z.API_SERVER+"/api/attachments/"+Ye+Ge+"&t="+(0,z.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Me=Me.replace(Ve,(nt,Ne,We,$e,rt,et,Xe)=>{const Ye=Ne||$e||et,Ge=We||rt||Xe||"?";return x.Z.API_SERVER+"/attachments/download/"+Ye+Ge+"&t="+(0,z.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replace(De,(nt,Ne,We,$e,rt,et,Xe)=>{const Ye=Ne||$e||et,Ge=We||rt||Xe||"?";return x.Z.API_SERVER+"/api/attachments/"+Ye+Ge+"&t="+(0,z.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replace(He,(nt,Ne,We,$e,rt)=>{const et=Ne||$e,Xe=We||rt||"";return'"'+x.Z.API_SERVER+"/api/attachments/"+et+Xe+et+Xe+"&t="+(0,z.Jn)(et,Date.now())}).replace(Ke,(nt,Ne,We,$e,rt)=>{const et=Ne||$e,Xe=We||rt||"";return"("+x.Z.API_SERVER+"/files/uploads/"+et+Xe+et+Xe+"&t="+(0,z.Jn)(et,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,`
`),Me)};var Ie=({value:Me="",edit:Ae=!1,className:De,showTextOnly:He,showLines:Ke,style:Ve={},stylesPrev:nt={},highlightKeywords:Ne,showProgramFill:We,isProgramFill:$e,disabledFill:rt=!1,programFillValue:et,openEditor:Xe=()=>{},onFillChange:Ye=Qe=>{},onFillBlur:Ge=()=>{},onFillFocus:at=()=>{}})=>{let Qe=le(String(Me||""));const ft=(0,Be.useRef)(),ot=(0,Be.useRef)(),[Je,Fe]=(0,Be.useState)(""),[Pe,te]=(0,Be.useState)("office"),[fe,Oe]=(0,Be.useState)([]),Ue=(0,Be.useRef)("a"+(0,de.Z)()),xe={},Ce=dt=>/<style[\s\S]*?>/i.test(dt||""),je=(dt,xt,bt)=>{const Pt=document.createElement(dt===_e?"input":"textarea");Pt.style.width="100%",Pt.style.height=dt===_e?"40px":"151px",Pt.rows=5,Pt.spellcheck=!1,Pt.name="edu-program-fill",Pt.placeholder="\u8BF7\u8F93\u5165",Pt.dataset.id=xt;const Zt=Object.keys(xe).length;return xe[Zt]=Pt,`<span class="edu-program-fill-wrap ${dt===_e?"":"show"}" style="width:${dt===_e?"600px":"100%"}" title=${bt||""}><span>${Pt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ze(dt){return dt=dt.replace(/!\[.*?\]\(.*?\)/g,""),dt=dt.replace(/\[.*?\]\(.*?\)/g,""),dt=dt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),dt=dt.replace(/<embed.*?>/g,""),dt=dt.replace(/<img.*?>/g,""),dt=dt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),dt=dt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),dt=dt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),dt=dt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),dt}const tt=dt=>!He&&Ce(Qe)?dt:dt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xt,bt){let Pt=bt.replace(/(\n|\r)/g,"").split("}"),Zt=[];return Pt.map(cr=>{cr!=""&&Zt.push(`.${Ue.current} ${cr}`)}),`<style>${Zt.join("}")}</style>`}),it=(0,Be.useMemo)(()=>{try{const Pt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Zt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,cr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ht=/\(\/attachments\/download\//g;Qe=Qe.replace(Ht,"("+x.Z.API_SERVER+"/attachments/download/").replace(Pt,"("+x.Z.API_SERVER+"/api/attachments/").replace(Zt,'"'+x.Z.API_SERVER+"/api/attachments/").replace(cr,'"'+x.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,`
`),ft.current.style.display="none"}catch(Pt){}if(We){let Pt=-1;return Qe=Qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Zt,cr,Ht){var vr;return++Pt,je(Zt,Pt,(vr=et==null?void 0:et[Pt])==null?void 0:vr.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${tt(Qe||"")}</pre>`}let dt=tt(Qe);dt=(0,y.ZP)(dt);const xt=(0,y.ez)();Qe.match(/\[TOC\]/)&&(dt=dt.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),dt=dt.replace(/(__special_katext_id_\d+__)/g,(Pt,Zt)=>{const{type:cr,expression:Ht}=xt[Zt];return(0,ie.renderToString)(be(Ht)||"",{displayMode:cr==="block",throwOnError:!1,output:"html"})}),dt=dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const bt=document.createElement("div");if(bt.innerHTML=dt,He)return bt.innerText;if(Ne){const Pt=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return St(bt,Pt),bt.innerHTML}return setTimeout(()=>vt(),500),bt.innerHTML},[Qe,Ne]);(0,Be.useEffect)(()=>{wt.current&&wt.current.querySelectorAll(["input","textarea"]).forEach(xt=>{xt.oninput=ct,xt.onblur=ut,xt.onfocus=pt})},[fe]),(0,Be.useEffect)(()=>{var dt,xt,bt,Pt,Zt;if(et!=null&&et.length)try{const cr=wt.current.querySelectorAll(".edu-program-fill-score"),Ht=wt.current.querySelectorAll('[name="edu-program-fill"]');for(const[vr,Kr]of Ht.entries())Kr.value=((dt=et==null?void 0:et[vr])==null?void 0:dt.value)||"",((xt=et==null?void 0:et[vr])==null?void 0:xt.type)==="warning"?Kr.className="program-fill-warning":((bt=et==null?void 0:et[vr])==null?void 0:bt.type)==="success"?Kr.className="program-fill-success":Kr.className="";for(const[vr,Kr]of cr.entries())Kr.innerHTML=(Pt=et==null?void 0:et[vr])!=null&&Pt.score?`${(Zt=et==null?void 0:et[vr])==null?void 0:Zt.score}\u5206`:"";Oe(et)}catch(cr){console.log(cr,"error")}},[et]);const ct=dt=>{fe[dt.target.dataset.id]=fe[dt.target.dataset.id]||{},fe[dt.target.dataset.id].value=dt.target.value,Oe([...fe]),Ye(fe,dt.target.dataset.id)},ut=dt=>{fe[dt.target.dataset.id]=fe[dt.target.dataset.id]||{},fe[dt.target.dataset.id].value=dt.target.value,Oe([...fe]),Ge(fe,dt.target.dataset.id)},pt=dt=>{fe[dt.target.dataset.id]=fe[dt.target.dataset.id]||{},fe[dt.target.dataset.id].value=dt.target.value,Oe([...fe]),at(fe,dt.target.dataset.id)};function St(dt,xt){return dt.childNodes.forEach(bt=>{var Pt;if(bt.childNodes.length>0)St(bt,xt);else if(bt.nodeName!=="IMG")if(bt.innerHTML)bt.innerHTML=(Pt=bt.innerHTML)==null?void 0:Pt.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Zt=document.createElement("span");Zt.innerHTML=bt.textContent.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),bt.replaceWith(Zt)}})}const wt=(0,Be.useRef)();y.jb.WebkitLineClamp=Ke,Ke&&(Ve=Te(Te({},Ve),y.jb));function Et(dt){let xt=dt.target;if(xt.tagName.toUpperCase()==="A"){let bt=xt.getAttribute("href");if(bt.indexOf("office")>-1)dt.preventDefault(),Fe(bt),te("office");else if(bt.indexOf("application/pdf")>-1)dt.preventDefault(),Fe(bt),te("pdf");else if(bt.indexOf("text/html")>-1)dt.preventDefault(),Fe(bt),te("html");else if(bt.startsWith("#")){dt.preventDefault();let Pt=document.getElementById(bt.replace("#",""));Pt&&Pt.scrollIntoView(!0)}}}const vt=()=>{var dt;const xt=(dt=wt.current)==null?void 0:dt.querySelectorAll("video");xt==null||xt.forEach(bt=>{if(bt.oncontextmenu=()=>!1,bt.src.indexOf(".m3u8")>-1&&!bt.canPlayType("application/vnd.apple.mpegurl")){if(we.ZP.isSupported()){var Pt=new we.ZP;Pt.loadSource(bt.src),Pt.attachMedia(bt)}}})};(0,Be.useEffect)(()=>{if(wt.current&&it&&it.match(ye)&&window.PR.prettyPrint(),wt.current)return wt.current.addEventListener("click",Et),()=>{var dt;(dt=wt.current)==null||dt.removeEventListener("click",Et),(0,y.AL)(),(0,y.Iy)()}},[it,wt.current,Et]);const At=dt=>{dt.target.nodeName==="IMG"&&dt.target.className.indexOf("draw-flowchart")>-1?(ft.current.style.zIndex=1,ft.current.style.display="flex",ft.current.style.width=dt.target.clientWidth+"px",ft.current.style.height=dt.target.clientHeight+"px",ft.current.style.top=dt.target.offsetTop+"px",ft.current.style.left=dt.target.offsetLeft+"px",dt.target.id&&(ot.current=dt.target.id)):ft.current.style.display="none"},gt=()=>{ft.current.style.display="none"};return(0,Be.useEffect)(()=>{var dt;const xt=bt=>{bt.preventDefault(),bt.clipboardData.setData("text",window.getSelection().toString())};return(dt=wt.current)==null||dt.addEventListener("copy",xt),()=>{var bt;(bt=wt.current)==null||bt.removeEventListener("copy",xt)}},[wt.current]),Be.createElement("div",{style:{position:"relative"},onMouseLeave:gt},He&&Be.createElement("div",{ref:wt,className:`${he.mdBody} `},it),!He&&!Ce(it)&&Be.createElement("div",{ref:wt,style:Te({},Ve),onMouseOver:At,className:`${De||""} ${rt?"disabled-fill":""} markdown-body ${he.mdBody} ${Ue.current}`,dangerouslySetInnerHTML:{__html:it}}),!He&&Ce(it)&&Be.createElement(oe,{html:it}),Be.createElement("div",{ref:ft,className:`${he.button} ${Ae?"":he.previewFlowChart}`},Be.createElement(ae.Z,null,Be.createElement(ee.ZP,{onClick:()=>{Ae?Xe(ot.current):(Fe(ot.current),te("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),Be.createElement(E.Z,{close:!0,data:Je,type:Je!=null&&Je.length?Pe:"",style:Te({},nt),onClose:()=>Fe("")}))}},25992:function(Nt,Dt,ze){"use strict";ze.d(Dt,{cT:function(){return ye},pe:function(){return Te}});var Be=ze(59301),mt=ze(14566),y=ze(6767),ke=ze(82093),we=ze(28209),x=ze.n(we),z=ze(1012),ie=ze(76560),ae=ze(47257),ee=ze.n(ae),de=Object.defineProperty,E=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,he=(Se,Ie,Me)=>Ie in Se?de(Se,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Se[Ie]=Me,pe=(Se,Ie)=>{for(var Me in Ie||(Ie={}))oe.call(Ie,Me)&&he(Se,Me,Ie[Me]);if(re)for(var Me of re(Ie))le.call(Ie,Me)&&he(Se,Me,Ie[Me]);return Se},ve=(Se,Ie)=>E(Se,ne(Ie)),ce=(Se,Ie)=>{var Me={};for(var Ae in Se)oe.call(Se,Ae)&&Ie.indexOf(Ae)<0&&(Me[Ae]=Se[Ae]);if(Se!=null&&re)for(var Ae of re(Se))Ie.indexOf(Ae)<0&&le.call(Se,Ae)&&(Me[Ae]=Se[Ae]);return Me},me=(Se,Ie,Me)=>new Promise((Ae,De)=>{var He=nt=>{try{Ve(Me.next(nt))}catch(Ne){De(Ne)}},Ke=nt=>{try{Ve(Me.throw(nt))}catch(Ne){De(Ne)}},Ve=nt=>nt.done?Ae(nt.value):Promise.resolve(nt.value).then(He,Ke);Ve((Me=Me.apply(Se,Ie)).next())});const{Dragger:Ee}=mt.default,Te=Se=>{const Ie="bf3c199c2470cb477d907b1e0917c17b",Me="5183666c72eec9e4";var Ae=x().enc.Utf8.parse(Ie);let De=x().enc.Utf8.parse(Me);var He=x().AES.decrypt(Se,Ae,{iv:De,mode:x().mode.CBC});return He.toString(x().enc.Utf8)};let Re;const _e=Se=>me(void 0,[Se],function*({identifier:Ie,oldFilename:Me,newFilename:Ae}){var De,He,Ke,Ve,nt,Ne;const We=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});We.data=JSON.parse(Te(We.data));const $e=new OSS({endpoint:(De=We==null?void 0:We.data)==null?void 0:De.end_point,region:(He=We==null?void 0:We.data)==null?void 0:He.region,accessKeyId:(Ke=We==null?void 0:We.data)==null?void 0:Ke.access_key_id,accessKeySecret:(Ve=We==null?void 0:We.data)==null?void 0:Ve.access_key_secret,bucket:(nt=We==null?void 0:We.data)==null?void 0:nt.bucket,stsToken:(Ne=We==null?void 0:We.data)==null?void 0:Ne.security_token});return new Promise((rt,et)=>{console.log(11111,`${Ie}/${Me}`,`${Ie}/${Ae}`,We.data),$e.copy(`/${Ie}/${Me}`,`/${Ie}/${Ae}`).then(Xe=>{console.log("\u62F7\u8D1D\u6210\u529F",Xe)}).catch(Xe=>{console.log(Xe)})})}),ye=(Se,Ie,Me)=>me(void 0,null,function*(){var Ae,De,He,Ke,Ve,nt;Ie.file_name=Se.name;const Ne=yield(0,ke.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Te(Ne.data)),Ne.data=JSON.parse(Te(Ne.data));const We=Se.name.split(".");We.pop();const $e=Ie.realFileName?We.join(""):(0,z.Z)(),rt=new(ee())({endpoint:(Ae=Ne==null?void 0:Ne.data)==null?void 0:Ae.end_point,region:(De=Ne==null?void 0:Ne.data)==null?void 0:De.region,accessKeyId:(He=Ne==null?void 0:Ne.data)==null?void 0:He.access_key_id,accessKeySecret:(Ke=Ne==null?void 0:Ne.data)==null?void 0:Ke.access_key_secret,bucket:(Ve=Ne==null?void 0:Ne.data)==null?void 0:Ve.bucket,stsToken:(nt=Ne==null?void 0:Ne.data)==null?void 0:nt.security_token});return new Promise((et,Xe)=>{var Ye;rt.multipartUpload(`${$e}`,new Blob([Se],{type:Se.type}),ve(pe({timeout:200*1e3,partSize:102400},Me),{callback:{url:(Ye=Ne==null?void 0:Ne.data)==null?void 0:Ye.callback_url,host:Ne==null?void 0:Ne.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ke.rz)(Ie)}})).then(function(Ge){var at;Se.response=(at=Ge.data)==null?void 0:at.data,et(Ge==null?void 0:Ge.data)}).catch(function(Ge){Xe(Ge),console.log("err:",Ge)})})}),be=Se=>{var Ie=Se,{user:Me,cancelUpload:Ae}=Ie,De=ce(Ie,["user","cancelUpload"]);const[He,Ke]=(0,Be.useState)([]);let[Ve,nt]=(0,Be.useState)();const Ne={onRemove:$e=>{Ke([...He.filter(rt=>rt.name!==$e.name)]),De.onChange(He.filter(rt=>rt.name!==$e.name))},disabled:De.disabled,multiple:!0,fileList:He==null?void 0:He.map($e=>$e.file),customRequest:()=>{},beforeUpload:$e=>me(void 0,null,function*(){let rt=De.maxSize||1073741824;if(He.filter(et=>et.name===$e.name).length){y.ZP.info(`${$e.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return($e==null?void 0:$e.size)>rt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(He.push({name:$e.name,file:$e}),Ke([...He]),De.onChange(He),!1)})},We=($e,rt)=>me(void 0,null,function*(){var et,Xe,Ye,Ge,at,Qe;rt.file_name=$e.name;const ft=$e.name,ot=yield(0,ke.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(ot.data=JSON.parse(Te(ot.data)),(ot==null?void 0:ot.status)!==0){He[He.findIndex(Pe=>Pe.name===ft)].status="error",He[He.findIndex(Pe=>Pe.name===ft)].file.status="error",De.onChange(He),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ve=new(ee())({endpoint:(et=ot==null?void 0:ot.data)==null?void 0:et.end_point,region:(Xe=ot==null?void 0:ot.data)==null?void 0:Xe.region,accessKeyId:(Ye=ot==null?void 0:ot.data)==null?void 0:Ye.access_key_id,accessKeySecret:(Ge=ot==null?void 0:ot.data)==null?void 0:Ge.access_key_secret,bucket:(at=ot==null?void 0:ot.data)==null?void 0:at.bucket,stsToken:(Qe=ot==null?void 0:ot.data)==null?void 0:Qe.security_token}),console.log($e,"file"),nt(Ve);const Je=$e.name.split(".");Je.pop();const Fe=ft.indexOf(".")>-1?rt.realFileName?Je.join("."):(0,z.Z)():ft;return new Promise((Pe,te)=>{var fe;try{Ve.multipartUpload(`${De.identifier}/${Fe}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`,new Blob([$e.file],{type:$e.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Oe,Ue,xe)=>{try{console.log("\u8FDB\u5EA6",Oe,Ue,xe);const Ce=He.findIndex(je=>je.name===ft);He[Ce].file.percent=Oe*100,He[Ce].tempCheckpoint=Ue,Ke([...He])}catch(Ce){}},checkpoint:He[He.findIndex(Oe=>Oe.name===ft)].tempCheckpoint,callback:{customValue:{id:ft+""},url:(fe=ot==null?void 0:ot.data)==null?void 0:fe.callback_url,host:ot==null?void 0:ot.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ke.rz)(rt)}}).then(function(Oe){var Ue,xe,Ce;const je=He.findIndex(tt=>tt.name===ft);let Ze="done";if(((Ue=Oe.data)==null?void 0:Ue.status)===0){$e.response=(xe=Oe.data)==null?void 0:xe.data;const tt=He.findIndex(it=>it.name===ft);He[tt].status="done",He[tt].file.status="done"}else y.ZP.warning((Ce=Oe.data)==null?void 0:Ce.message),Ze="error";He[je].status=Ze,He[je].file.status=Ze,De.onChange(He),Pe(Oe==null?void 0:Oe.data)}).catch(function(Oe){He[He.findIndex(Ue=>Ue.name===ft)].status="error",He[He.findIndex(Ue=>Ue.name===ft)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ke([...He]),De.onChange(He),te(Oe),console.log("err:",Oe)})}catch(Oe){}})});return(0,Be.useEffect)(()=>{He.every($e=>$e==="done"||$e==="error")&&De.onComplete(He)},[He]),(0,Be.useEffect)(()=>{Ae&&(Ve==null||Ve.cancel())},[Ae]),(0,Be.useEffect)(()=>{De.uploading&&He.map($e=>me(void 0,null,function*(){var rt;if((!$e.status||$e.status==="error")&&!Ae){$e.status="uploading",$e.file.status="uploading";const et=yield We($e,{login:(rt=Me==null?void 0:Me.userInfo)==null?void 0:rt.login,container_type:De.container_type,container_id:De.container_id,description:De.description,realFileName:De.realFileName})}}))},[De.uploading]),Be.createElement(Ee,ve(pe({},Ne),{height:De.height,className:De.className}),Be.createElement("p",{className:"ant-upload-hint"},De.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Dt.ZP=(0,ie.connect)(({loading:Se,globalSetting:Ie,user:Me})=>({globalSetting:Ie,loading:Se.models.competitions,user:Me}))(be)},44905:function(Nt,Dt,ze){"use strict";ze.d(Dt,{h:function(){return me}});var Be=ze(59301),mt=ze(82326),y=ze(28284),ke=ze(99571),we=ze(89780),x=ze.n(we),z=ze(66543),ie=ze(59598),ae=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,oe=(Ee,Te,Re)=>Te in Ee?ae(Ee,Te,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ee[Te]=Re,le=(Ee,Te)=>{for(var Re in Te||(Te={}))ne.call(Te,Re)&&oe(Ee,Re,Te[Re]);if(E)for(var Re of E(Te))re.call(Te,Re)&&oe(Ee,Re,Te[Re]);return Ee},he=(Ee,Te)=>ee(Ee,de(Te));const pe=mt.default.Option,ve={labelCol:{span:4},wrapperCol:{span:20}},ce={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"]};Dt.Z=({callback:Ee,onCancel:Te})=>{const[Re,_e]=(0,Be.useState)("python");function ye(Se){_e(ce[Se][1])}function be(Se){Ee(Se)}return Be.createElement(y.default,he(le({},ve),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:be,style:{width:500}}),Be.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Be.createElement(mt.default,{getPopupContainer:Se=>Se.parentNode,onChange:ye},Object.keys(ce).map(Se=>Be.createElement(pe,{key:Se,value:Se},ce[Se][0])))),Be.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Be.createElement(me,{mode:Re})),Be.createElement("div",{className:"flex-container flex-end"},Be.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Be.createElement(ke.ZP,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function me({value:Ee,onChange:Te,mode:Re,options:_e={}}){const ye=(0,Be.useRef)(),[be,Se]=(0,Be.useState)();return(0,Be.useEffect)(()=>{if(be){let Ie=function(Me){const Ae=Me.getValue();Te&&Te(Ae)};return be.on("change",Ie),()=>{be.off("change",Ie)}}},[be,Te]),(0,Be.useEffect)(()=>{be&&be.setOption("mode",Re)},[be,Re]),(0,Be.useEffect)(()=>{be&&(Ee!==be.getValue()||Ee==="")&&setTimeout(()=>{be.setValue(Ee||"")},300)},[be,Ee]),(0,Be.useEffect)(()=>{if(ye.current&&!be){const Ie=x().fromTextArea(ye.current,le({mode:Re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Se(Ie)}},[ye.current,be]),Be.createElement("div",{className:"my-codemirror-container"},Be.createElement("textarea",{ref:ye}))}},2978:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return dr}});var Be=ze(59301),mt=ze(76560),y=ze(89780),ke=ze.n(y),we=ze(76374),x=ze(66543),z=ze(6313),ie=ze(25717),ae=ze(99498),ee=ze(25419),de=ze(67549),E=ze(38394),ne=({value:Xt="",className:qt,showTextOnly:yr,showLines:_r,style:jr={}})=>{const Yr=(0,Be.useMemo)(()=>"",[Xt]);return Be.createElement(Be.Fragment,null,Be.createElement("div",{dangerouslySetInnerHTML:{__html:Yr}}))},re=Object.defineProperty,oe=Object.defineProperties,le=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ce=(Xt,qt,yr)=>qt in Xt?re(Xt,qt,{enumerable:!0,configurable:!0,writable:!0,value:yr}):Xt[qt]=yr,me=(Xt,qt)=>{for(var yr in qt||(qt={}))pe.call(qt,yr)&&ce(Xt,yr,qt[yr]);if(he)for(var yr of he(qt))ve.call(qt,yr)&&ce(Xt,yr,qt[yr]);return Xt},Ee=(Xt,qt)=>oe(Xt,le(qt));let Te=[{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 Re({onActionCallback:Xt,title:qt,icon:yr,actionName:_r,className:jr="",children:Yr}){function dn(){Xt(_r)}return Be.createElement("a",{title:qt,className:jr,onClick:dn},Be.createElement("i",{className:`${yr}`}),Yr)}var _e=({watch:Xt,showNullButton:qt,showNullProgramButton:yr,onActionCallback:_r,fullScreen:jr,insertTemp:Yr,hidetoolBar:dn,extraUse:sn})=>{const Hr=[...Te,{title:`${Xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Be.createElement("ul",{className:"markdown-toolbar-container"},!dn&&Hr.map((Qr,sr)=>Be.createElement("li",{key:sr},Qr.actionName?Be.createElement(Re,Ee(me({},Qr),{onActionCallback:_r})):Be.createElement("span",{className:"v-line"}))),qt?Be.createElement("li",null,Be.createElement(Re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_r},Be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,yr?Be.createElement(Be.Fragment,null,Be.createElement("li",null,Be.createElement(Re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_r},Be.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Be.createElement("li",null,Be.createElement(Re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_r},Be.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Yr&&Be.createElement("li",null,Be.createElement(Re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Yr}`,onActionCallback:_r},Be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),sn&&Be.createElement("li",null,sn),Be.createElement("li",{className:"btn-full-screen"},Be.createElement(Re,{icon:`${jr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:jr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_r})))},ye=ze(75790),be=ze(28284),Se=ze(37568),Ie=ze(99571),Me=Object.defineProperty,Ae=Object.defineProperties,De=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,nt=(Xt,qt,yr)=>qt in Xt?Me(Xt,qt,{enumerable:!0,configurable:!0,writable:!0,value:yr}):Xt[qt]=yr,Ne=(Xt,qt)=>{for(var yr in qt||(qt={}))Ke.call(qt,yr)&&nt(Xt,yr,qt[yr]);if(He)for(var yr of He(qt))Ve.call(qt,yr)&&nt(Xt,yr,qt[yr]);return Xt},We=(Xt,qt)=>Ae(Xt,De(qt));const $e={labelCol:{span:4},wrapperCol:{span:20}};var rt=({callback:Xt,onCancel:qt})=>{function yr(_r){Xt(_r)}return Be.createElement(be.default,We(Ne({},$e),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:yr,style:{width:500}}),Be.createElement(be.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Be.createElement(Se.default,null)),Be.createElement(be.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Be.createElement(Se.default,null)),Be.createElement("div",{className:"flex-container flex-end"},Be.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Be.createElement(Ie.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},et=ze(44905),Xe=ze(45596),Ye=ze(62957),Ge=ze(77019),at=ze(6077),Qe=ze(59301),ft=({callback:Xt,onCancel:qt})=>{const yr=document.createElement("canvas"),_r=yr.getContext("2d");yr.width=1e3,yr.height=800,_r.fillStyle="#ffffff",_r.fillRect(0,0,yr.width,yr.height);const jr=yr.toDataURL("image/png");return Qe.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Ge.Z,{style:{height:"100vh"}},Qe.createElement(at.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:jr,visible:!0,title:String(Date.now())},onOk:Yr=>{Xt({src:Yr.url})},onClose:qt})))},ot=ze(30641),Je=ze(5269),Fe=ze(6767),Pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ze(59301),Oe=(0,Be.forwardRef)(({onCancel:Xt,editImgId:qt,callback:yr},_r)=>{let jr=(0,Be.useRef)(),Yr=(0,Be.useRef)(),dn=(0,Be.useRef)(),sn=(0,Be.useRef)(!1);const Hr=(0,Be.useRef)(!1);console.log("ref:",_r);const[Qr,sr]=(0,Be.useState)(0),[Wt,mr]=(0,Be.useState)("100vh");return(0,Be.useEffect)(()=>{sr(1)},[]),(0,Be.useImperativeHandle)(_r,()=>({setHeight:mr})),te.createElement("div",{ref:Hr,className:"body-overflow-initial"},te.createElement(ot.Z,{width:"100vw",height:Wt,footer:null,closable:!0,placement:"bottom",open:!!Qr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Pe.drawerWrap}`,onClose:()=>{window.saveDrawData(Ur=>{yr({src:`/api/attachments/${Ur}`,id:Ur})})},title:te.createElement(Ge.Z,{align:"middle"},te.createElement(Je.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Je.Z,{onClick:()=>{mr(Wt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Je.Z,{onClick:()=>{window.saveDrawData(Ur=>{if(Ur===null){Fe.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Fe.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),yr({src:`/api/attachments/${Ur}`,id:Ur,disabledClose:!0})})}},te.createElement(Ie.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${qt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Yr})))}),Ue=ze(90524),xe=ze(47889),Ce=ze(71051);const je=xe.ZP.Group,Ze={margin:"0 8px"};var tt=({callback:Xt,onCancel:qt})=>{function yr(_r){Xt(_r)}return Be.createElement(be.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:yr},Be.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Be.createElement("span",{style:Ze},"\u5355\u5143\u683C\u6570\uFF1A"),Be.createElement("span",{style:Ze},"\u884C\u6570"),Be.createElement(be.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Be.createElement(Ce.Z,null)),Be.createElement("span",{style:Ze},"\u5217\u6570"),Be.createElement(be.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Be.createElement(Ce.Z,null))),Be.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Be.createElement("span",{style:Ze},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Be.createElement(be.default.Item,{name:"align"},Be.createElement(je,null,Be.createElement(xe.ZP,{value:"default"},Be.createElement("i",{className:"fa fa-align-justify"})),Be.createElement(xe.ZP,{value:"left"},Be.createElement("i",{className:"fa fa-align-left"})),Be.createElement(xe.ZP,{value:"center"},Be.createElement("i",{className:"fa fa-align-center"})),Be.createElement(xe.ZP,{value:"right"},Be.createElement("i",{className:"fa fa-align-right"}))))),Be.createElement("div",{className:"flex-container flex-end"},Be.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Be.createElement(Ie.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},it=ze(71411),ct=ze(11081),ut=ze.n(ct),St=(0,Be.forwardRef)(({use3d:Xt,width:qt,height:yr,callback:_r,showSaveButton:jr},Yr)=>{const dn=(0,Be.useRef)(),sn=(0,Be.useRef)(),[Hr,Qr]=(0,Be.useState)(!1),sr=(0,Be.useRef)({id:dn,appName:"graphing",width:qt||1e3,height:yr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Be.useEffect)(()=>{sn.current=new(ut())(sr.current,!0),window.onload=function(){sn.current.inject("applet_container")}},[]);const Wt=()=>{var mr=window.ggbApplet.getPNGBase64(1,!0,72);return _r&&_r(mr),mr};return(0,Be.useEffect)(()=>{sr.current.appName=Hr?"3D":"graphing",sn.current.inject("applet_container")},[Hr]),(0,Be.useEffect)(()=>{Qr(Xt)},[Xt]),(0,Be.useImperativeHandle)(Yr,()=>({getImgData:Wt})),Be.createElement(Be.Fragment,null,Be.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dn}),Be.createElement(Ge.Z,{align:"middle"},Be.createElement(Je.Z,{flex:1},Be.createElement(it.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Hr,onChange:mr=>Qr(mr)})),Be.createElement(Je.Z,null,Be.createElement(Ie.ZP,{size:"large",onClick:Wt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),wt=ze(88615);const Et="link",vt="upload-image",At="add-flowchart",gt="draw-image",dt="add-flowchart",xt="code-block",bt="add-table",Pt="------------",Zt={default:Pt,left:`:${Pt}`,center:`:${Pt}:`,right:`${Pt}:`};var cr=ze(17904),Ht=ze(49661);function vr(){}let Kr=0;const Xr=1e4,Nr="\u2581",fn="@\u2581\u2581@",Lr="@\u2581@",ln=`
**\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`,Tr=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function vn(Xt){return/^\d+$/.test(Xt)?`${Xt}px`:Xt}const br=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",wr={[br+"-B"]:"bold",[br+"-I"]:"italic"},er={[Et]:"\u6DFB\u52A0\u94FE\u63A5",[xt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[vt]:"\u6DFB\u52A0\u56FE\u7247",[gt]:"\u6DFB\u52A0\u753B\u56FE",[At]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[bt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var dr=({defaultValue:Xt="",onChange:qt,width:yr="100%",height:_r=400,miniToolbar:jr=!1,isFocus:Yr=!1,watch:dn,insertTemp:sn,mode:Hr="markdown",id:Qr="markdown-editor-id",showResizeBar:sr=!1,noStorage:Wt=!1,showNullButton:mr=!1,showNullProgramButton:Ur=!1,hidetoolBar:un=!1,fullScreen:kt=!1,onBlur:Tt,onCMBeforeChange:lr,onFullScreen:$t,className:Ot="",disablePaste:nr=!1,disabled:pr=!1,disabledFill:gr=!1,placeholder:Dr="",values:hr="",extraUse:Ar})=>{const[jt,Sr]=(0,Be.useState)(null),[ur,Or]=(0,Be.useState)(Xt),[Wr,tn]=(0,Be.useState)(dn),[En,Zn]=(0,Be.useState)(kt),[On,An]=(0,Be.useState)(""),[Hn,Cn]=(0,Be.useState)(0),[Xn,Qn]=(0,Be.useState)(_r),[Jn,Er]=(0,Be.useState)(!1),[Fr,en]=(0,Be.useState)(0),[$r,bn]=(0,Be.useState)(0),kr=(0,Be.useRef)(),Cr=(0,Be.useRef)(),Mr=(0,Be.useRef)(),Zr=(0,Be.useRef)(),xn=(0,Be.useRef)(),rn=(0,Be.useRef)(),an=(0,mt.useDispatch)();(0,Be.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;Or(hr),jt==null||jt.setValue(hr),window.scrollTo(0,zt)},[hr]),(0,Be.useEffect)(()=>{$t==null||$t(En)},[En]),(0,Be.useEffect)(()=>{if(kr.current){let zt=function(tr,ar){var Rr;if(nr){ar.preventDefault();return}const Pr=ar.clipboardData;if(Pr){const qr=Pr.types.toString(),Br=Pr.items;if(qr==="Files"||Pr.types.indexOf("Files")>-1){if(ar.preventDefault(),Hr=="stex")return;try{let hn=Br[1];((Rr=Br[0])==null?void 0:Rr.kind)==="file"&&(hn=Br[0]);const gn=hn.getAsFile(),Tn=gn.name.split(".").pop();(0,Xe.I)(gn,yn=>{var Sn,Fn,Pn;yn.id?((Sn=gn==null?void 0:gn.type)==null?void 0:Sn.indexOf("image"))>-1?Yt.replaceSelection(`<img width="100%" src="/api/attachments/${yn.id}?type=${yn.content_type})" alt="" />`):((Fn=gn==null?void 0:gn.type)==null?void 0:Fn.indexOf("video"))>-1?Yt.replaceSelection(`<video width="100%" controls src="/api/attachments/${yn.id}"></video>`):((Pn=gn==null?void 0:gn.type)==null?void 0:Pn.indexOf("pdf"))>-1?Yt.replaceSelection(`<a href="/api/attachments/${yn.id}?type=${gn.type}&disposition=inline" target="_blank">${gn.name}</a>`):Tr.includes(Tn)?Yt.replaceSelection(`<a href="/api/attachments/${yn.id}?type=office&disposition=inline" target="_blank">${gn.name}</a>`):Yt.replaceSelection(`[${gn.name}](/api/attachments/${yn.id}?type=${yn.content_type})`):(yn==null?void 0:yn.status)===401&&(document.location.href="/user/login")})}catch(hn){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Yt=ke().fromTextArea(kr.current,{mode:Hr,lineNumbers:!jr,lineWrapping:!0,value:Xt,autoCloseTags:!0,autoCloseBrackets:!0});return Yt.on("keyup",function(tr,ar){ar.keyCode===8&&(tr.getValue()==""?Yt.setOption("placeholder",Dr):Yt.setOption("placeholder",null))}),Yt.on("keydown",function(tr,ar){if(ar.keyCode===8){var Rr=yt(tr);Rr&&ar.preventDefault()}}),Yr&&Yt.focus(),Yt.on("paste",zt),pr&&Yt.on("beforeChange",function(tr,ar){(ar.origin==="paste"||ar.origin==="+input")&&ar.cancel()}),Sr(Yt),()=>{Yt.off("paste",zt)}}},[]);const Un=(0,Be.useCallback)(()=>{if(Cr.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Xn,Cr,En]);(0,Be.useEffect)(()=>{function zt(){let Yt=new we.Z(tr=>{for(let ar of tr)(ar.target.offsetHeight>0||ar.target.offsetWidth>0)&&(Un(),jt.setSize("100%","100%"),jt.refresh())});return Yt.observe(kr.current.parentElement),Yt}if(jt){const Yt=zt();return()=>{var tr,ar;(tr=kr.current)!=null&&tr.parentElement&&Yt.unobserve((ar=kr.current)==null?void 0:ar.parentElement)}}},[jt,Un]),(0,Be.useEffect)(()=>{if(jt){let zt=[];for(const[Yt,tr]of Object.entries(wr)){let ar={[Yt]:()=>{Mt(tr)}};zt.push(ar),jt.addKeyMap(ar)}return()=>{for(let Yt of zt)jt.removeKeyMap(Yt)}}},[jt]),(0,Be.useEffect)(()=>{kt!==En&&Zn(kt)},[kt]),(0,cr.Z)(()=>{if(!Wt&&Hn>0){let zt=new Date().getTime(),Yt=window.sessionStorage.getItem(Qr);zt>=Hn+Xr&&(!Yt||Yt!==ur)&&(window.sessionStorage.setItem(Qr,ur),Er(!0))}},Xr),(0,Be.useEffect)(()=>{tn(dn)},[jt,dn]),(0,Be.useEffect)(()=>{jt&&Yr&&jt.focus()},[jt,Yr]),(0,Be.useEffect)(()=>{if(Wr&&jt){let zt=function(tr){let ar=tr.target;if(Zr.current){let Rr=ar.scrollTop/ar.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*Rr}};const Yt=jt.getScrollerElement();return Yt.addEventListener("scroll",zt),()=>{Yt.removeEventListener("scroll",zt)}}},[jt,Wr]),(0,Be.useEffect)(()=>{if(jt&&lr){let zt=function(Yt,tr){lr(Yt,tr)};return jt.on("beforeChange",zt),()=>{jt.off("beforeChange",zt)}}},[jt,lr]),(0,Be.useEffect)(()=>{if(jt&&Tt){let zt=function(){Tt(jt.getValue())};return jt.on("blur",zt),()=>{jt.off("blur",zt)}}},[jt,Tt]);function yt(zt,Yt){var tr=zt.getDoc(),ar=tr.getCursor(),Rr=tr.getLine(ar.line),Pr=Rr.charAt(ar.ch-1),qr=Rr.lastIndexOf("@\u2581@",ar.ch),Br=Rr.lastIndexOf("@\u2581\u2581@",ar.ch),hn=qr>Br?qr:Br,gn=qr>Br?3:4;if(fn.indexOf(Pr)===-1)return null;if(console.log("change1:",Yt,zt,Rr,ar,hn,qr,Br,Pr),hn>=0&&ar.ch-hn<5){var Tn=hn+gn;return tr.replaceRange("",{line:ar.line,ch:hn},{line:ar.line,ch:Tn}),{line:ar.line,ch:Tn}}return null}(0,Be.useEffect)(()=>{if(jt){let zt=function(Yt,tr){const ar=Yt.getValue();Or(ar),Cn(new Date().getTime()),Yt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qt&&(Ur?qt(ar,It(ar)):qt(ar))};return jt.on("change",zt),()=>{jt.off("change",zt)}}},[jt,qt]),(0,Be.useEffect)(()=>{if(jt)if(Xt==null)jt.setValue(""),Or("");else{const zt=window.scrollY||window.pageYOffset;Xt!==jt.getValue()&&(jt.setValue(Xt),Or(Xt),jt.setCursor(pr?1:jt.lineCount(),0),window.scrollTo(0,zt))}},[jt,Xt]);const Mt=(0,Be.useCallback)(zt=>{const Yt=jt.getCursor(),tr=jt.getSelection();let ar=tr.split(`
`);switch(zt){case"bold":return jt.replaceSelection("**"+tr+"**"),tr===""&&jt.setCursor(Yt.line,Yt.ch+2),jt.focus();case"italic":return jt.replaceSelection("*"+tr+"*"),tr===""&&jt.setCursor(Yt.line,Yt.ch+1),jt.focus();case"code":return jt.replaceSelection("`"+tr+"`"),tr===""&&jt.setCursor(Yt.line,Yt.ch+1),jt.focus();case"inline-latex":return(0,Ht.Ye)(an)?void 0:(An("inline-latex"),jt.focus());case"latex":return jt.replaceSelection("```latex\n"+tr+"\n```"),jt.setCursor(Yt.line+1,tr.length+1),jt.focus();case"line-break":return jt.replaceSelection(`<br/>
`),jt.focus();case"list-ul":return tr===""?jt.replaceSelection("- "+tr):jt.replaceSelection(ar.map(Rr=>Rr===""?"":`- ${Rr}`).join(`
`)),jt.focus();case"list-ol":return tr===""?jt.replaceSelection("1. "+tr):jt.replaceSelection(ar.map((Rr,Pr)=>Rr===""?"":`${Pr+1}. ${Rr}`).join(`
`)),jt.focus();case"add-null-ch":return tr===""&&jt.setCursor(Yt.line,Yt.ch),jt.replaceSelection(Nr),jt.focus();case"add-signal":return tr===""&&jt.setCursor(Yt.line,Yt.ch),jt.replaceSelection(Lr),jt.focus();case"add-multiple":return tr===""&&jt.setCursor(Yt.line,Yt.ch),jt.replaceSelection(fn),jt.focus();case"inster-template-1":return tr===""&&jt.setCursor(Yt.line,Yt.ch),jt.replaceSelection(ln),jt.focus();case"eraser":return jt.setValue(""),jt.focus();case"trigger-watch":return tn(!Wr),jt.focus();case"trigger-full-screen":return Zn(!En),jt.focus();case Et:An(Et);return;case xt:An(xt);return;case vt:An(vt);return;case gt:An(gt);return;case"maths-latex":if((0,Ht.Ye)(an))return;An("maths-latex");return;case At:xn.current="",sessionStorage.removeItem("file_id"),An(At);return;case bt:An(bt);return;default:throw new Error}},[jt,Wr,En]),Rt=(0,Be.useCallback)((zt,Yt)=>{var tr,ar,Rr,Pr,qr,Br;zt!=null&&zt.disabledClose||An("");const{src:hn,alt:gn,id:Tn}=zt||{};switch(On){case Et:const{title:Nn,link:wn}=zt;return jt.replaceSelection(`[${Nn}](${wn})`),jt.focus();case xt:const{language:Vr,content:pn}=zt;return jt.replaceSelection(["```"+Vr,pn,"```"].join(`
`)),jt.focus();case"maths-latex":for(var yn=atob(zt),Sn=new Uint8Array(yn.length),Fn=0;Fn<yn.length;Fn++)Sn[Fn]=yn.charCodeAt(Fn);var Pn=new Blob([Sn],{type:"image/png"});(0,Xe.I)(Pn,oi=>{oi.id?jt.replaceSelection(`![,](/api/attachments/${oi.id}?type=${oi.content_type})`):(oi==null?void 0:oi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Ht.Ye)(an))return;jt.replaceSelection("`$$"+zt+"$$`");break;case dt:if(!Tn)return;jt.getValue().indexOf(hn)===-1?jt.replaceSelection(`<center><img id="${Tn}" width="80%" src="${hn}" class="draw-flowchart" alt="${gn||""}" /></center>`):document.getElementById(Tn).src=Ue.Z.API_SERVER+hn+"?t="+Date.now();break;case vt:case gt:const Jr=Yt,Mn=(Rr=(ar=(tr=Jr==null?void 0:Jr.name)==null?void 0:tr.split("."))==null?void 0:ar.pop)==null?void 0:Rr.call(ar);return((Pr=Jr==null?void 0:Jr.type)==null?void 0:Pr.indexOf("image"))>-1||!(Jr!=null&&Jr.type)?Jr!=null&&Jr.align||Jr!=null&&Jr.width?jt.replaceSelection(`<p style="text-align:${Jr.align||"initial"}"><img width="${Jr.width?Jr.width+"%":"initial"}" src="${hn}" alt="${gn||""}" /></p>`):jt.replaceSelection(`<img width="100%" src="${hn}" alt="${gn||""}" />`):((qr=Jr==null?void 0:Jr.type)==null?void 0:qr.indexOf("video"))>-1?jt.replaceSelection(`<video width="100%" controls src="${hn}"></video>`):((Br=Jr==null?void 0:Jr.type)==null?void 0:Br.indexOf("pdf"))>-1?jt.replaceSelection(`<a href="${hn}?type=${Jr.type}&disposition=inline" target="_blank">${Jr.name}</a>`):Tr.includes(Mn)?jt.replaceSelection(`<a href="${hn}?type=office&disposition=inline" target="_blank">${Jr.name}</a>`):jt.replaceSelection(`[${Jr.name}](${hn})`),jt.focus();case bt:const{row:Rn,col:Bn,align:$n}=zt;let Ei=`
`;for(let oi=0;oi<Rn;oi++){let Gi=[],_i=[];for(let qn=0;qn<Bn;qn++)oi===1&&_i.push(Zt[$n]),Gi.push(" ");oi===1&&(Ei+=`| ${_i.join(" | ")} |
`),Ei+=`| ${Gi.join(Bn===1?"":" | ")} |
`}return jt.replaceSelection(Ei+`
`),jt.focus();default:throw new Error}},[jt,On]),Bt=(0,Be.useMemo)(()=>{switch(On){case Et:return Be.createElement(rt,{callback:Rt,onCancel:Lt});case xt:return Be.createElement(et.Z,{callback:Rt,onCancel:Lt});case vt:return Be.createElement(Xe.Z,{callback:Rt,onCancel:Lt});case At:return Be.createElement(Oe,{editImgId:xn.current,callback:Rt,onCancel:Lt});case bt:return Be.createElement(tt,{callback:Rt,onCancel:Lt});case"maths-latex":return Be.createElement(St,{showSaveButton:!0,callback:Rt});case"inline-latex":return Be.createElement(wt.Z,{showSaveButton:!0,callback:Rt});default:return null}},[On]);function Lt(){An("")}(0,Be.useEffect)(()=>{if(Mr.current){let zt=function(qr){Rr=!0,Pr=qr.pageY},Yt=function(){Rr=!1},tr=function(qr){if(Rr){let Br=qr.pageY-Pr;Br<0&&(Br=0),Br>300&&(Br=300);let hn=_r+Br+"px";Qn(hn)}},ar=Mr.current,Rr=!1,Pr=0;return ar.addEventListener("mousedown",zt),document.addEventListener("mousemove",tr),document.addEventListener("mouseup",Yt),()=>{ar.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",Yt)}}},[jt,Mr]),(0,Be.useEffect)(()=>{Qn(_r)},[_r]);const Jt=vn(yr),fr=vn(Xn),ir={width:Jt,height:fr},rr=(0,Be.useMemo)(()=>{if(Hn){let zt=new Date(Hn),Yt=zt.getHours(),tr=zt.getMinutes(),ar=zt.getSeconds();return Yt=Yt<10?"0"+Yt:Yt,tr=tr<10?"0"+tr:tr,ar=ar<10?"0"+ar:ar,`${Yt}:${tr}:${ar}`}return 0},[Hn]),It=zt=>{const Yt=[];if(Ur){let tr=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function(ar,Rr,Pr){Yt.push({multiLine:ar!==Lr})})}return Yt};function Gt(){window.sessionStorage.removeItem(Qr),Er(!1),Cn(0)}function Vt(){Er(!1),Cn(0),jt.setValue(window.sessionStorage.getItem(Qr))}(0,Be.useEffect)(()=>{er[On]&&On!==gt&&On!==At&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],Yt=window.innerWidth/2-zt.offsetWidth/2,tr=window.innerHeight/2-zt.offsetHeight/2;en(Yt),bn(tr)},0)},[On]);const Kt=zt=>{zt.preventDefault();const Yt=zt.clientX-Fr,tr=zt.clientY-$r;document.body.onmousemove=ar=>{let Rr=ar.clientX-Yt,Pr=ar.clientY-tr;const qr=document.getElementsByClassName("markdown-popup-form")[0],Br=window.innerWidth-qr.offsetWidth,hn=window.innerHeight-qr.offsetHeight;Rr=Math.max(0,Math.min(Rr,Br)),Pr=Math.max(0,Math.min(Pr,hn)),Qt(ar.clientX,ar.clientY,Yt,tr)&&(en(Rr),bn(Pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Qt=(zt,Yt,tr,ar)=>{const Rr=document.body.clientHeight,Pr=document.body.clientWidth;return zt<20&&tr>zt||zt>Pr-20&&tr<zt||Yt<20&&ar>Yt||Yt>Rr-20&&ar<Yt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Be.createElement(Be.Fragment,null,Be.createElement("div",{className:"markdown-editor-wrapper",ref:Cr},Be.createElement("div",{className:`markdown-editor-container ${Ot} ${Wr?"on-preview":""} ${jr?"mini":""} ${En?"full-screen":""}`,style:ir},Be.createElement(_e,{insertTemp:sn,watch:Wr,fullScreen:En,showNullButton:mr,showNullProgramButton:Ur,onActionCallback:Mt,hidetoolBar:un,extraUse:Ar}),Be.createElement("div",{className:"markdown-editor-body"},Be.createElement("div",{className:"codemirror-container"},Be.createElement("textarea",{ref:kr,placeholder:Dr})),Wr?Be.createElement("div",{ref:Zr,className:"preview-container"},Hr==="stex"&&Be.createElement(ne,{value:ur}),Hr!=="stex"&&Be.createElement(E.Z,{edit:!0,disabledFill:gr,showProgramFill:Ur,value:ur,openEditor:zt=>{var Yt;xn.current=zt,(Yt=rn.current)==null||Yt.setHeight("100vh"),setTimeout(()=>{An("add-flowchart")},150)}})):null))),sr?Be.createElement("a",{ref:Mr,className:"editor-resize"}):null,On===gt&&Be.createElement(ft,{callback:Rt,onCancel:Lt}),On===At&&Be.createElement(Oe,{ref:rn,editImgId:xn.current,callback:Rt,onCancel:Lt}),Be.createElement(ye.Z,null,er[On]&&On!==gt&&On!==At?Be.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Fr,top:$r},title:Be.createElement("div",{style:{cursor:"move"},onMouseDown:Kt},er[On]),open:!0,onCancel:Lt,footer:null,destroyOnClose:!0,width:On===At?"1200px":null,height:On===At?"80vh":null,className:"markdown-popup-form"},Bt):null))}},45596:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Te},I:function(){return _e}});var Be=ze(28284),mt=ze(6767),y=ze(37568),ke=ze(77736),we=ze(71051),x=ze(47889),z=ze(99571),ie=ze(67303),ae=ze(59301),ee=ze(59301),de=Object.defineProperty,E=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,he=(ye,be,Se)=>be in ye?de(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ye[be]=Se,pe=(ye,be)=>{for(var Se in be||(be={}))oe.call(be,Se)&&he(ye,Se,be[Se]);if(re)for(var Se of re(be))le.call(be,Se)&&he(ye,Se,be[Se]);return ye},ve=(ye,be)=>E(ye,ne(be));const{useForm:ce}=Be.default,me={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}};var Te=({callback:ye,onCancel:be})=>{const[Se]=ce();let Ie=(0,ae.useRef)();function Me(He){Ie.current.width=Se.getFieldValue("width"),Ie.current.align=Se.getFieldValue("align"),ye(He,Ie.current)}function Ae(He,Ke){if(He.status===-1){mt.ZP.error(He.message);return}Se.setFieldsValue({src:`/api/attachments/${He.id}`,type:Ke.type})}function De(He){let Ke=He.target.files[0];Ie.current=Ke,_e(Ke,Ae)}return ee.createElement(Be.default,ve(pe({form:Se},Ee),{className:"upload-image-panel",onFinish:Me,style:{width:470,overflow:"hidden"}}),ee.createElement(Be.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(Be.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:me})),ee.createElement(Re,{onFileChange:De}))),ee.createElement(Be.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(Be.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(ke.Z,null,ee.createElement(Be.default.Item,{name:"width",style:{margin:0}},ee.createElement(we.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(Be.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(x.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"}]})),ee.createElement("aside",null,ee.createElement(Be.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(z.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function Re({onFileChange:ye}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:ye}))}function _e(ye,be){if(!ye)throw new String("\u6CA1\u6709\u6587\u4EF6");let Se=new FormData;Se.append("editormd-image-file",ye),Se.append("file_param_name","editormd-image-file"),Se.append("byxhr","true");var Ie=new window.XMLHttpRequest;Ie.withCredentials=!0,Ie.addEventListener("load",function(Me){be(JSON.parse(Me.target.responseText),ye)},!1),Ie.addEventListener("error",function(Me){console.error(Me)},!1),Ie.open("POST",`${ie.KI}/api/attachments.json`),Ie.send(Se)}},75790:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return y}});var Be=ze(59301),mt=ze(4676);class y extends Be.Component{constructor(we){super(we);const x=window.document;this.node=x.createElement("div"),x.body.appendChild(this.node)}render(){const{children:we}=this.props;return(0,mt.createPortal)(we,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(Nt,Dt,ze){"use strict";ze.d(Dt,{SV:function(){return ft},ZP:function(){return Qe}});var Be=ze(59301),mt=ze(76374);const y={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"]},ke={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"]},we={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(`
`)}]},x={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(`
`)}]},z={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 ie=ze(53184),ae=ze.n(ie),ee=(ot,Je,Fe)=>new Promise((Pe,te)=>{var fe=xe=>{try{Ue(Fe.next(xe))}catch(Ce){te(Ce)}},Oe=xe=>{try{Ue(Fe.throw(xe))}catch(Ce){te(Ce)}},Ue=xe=>xe.done?Pe(xe.value):Promise.resolve(xe.value).then(fe,Oe);Ue((Fe=Fe.apply(ot,Je)).next())});const de={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"]}},E=(ot,Je,Fe,Pe)=>{const te=Je.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Fe.lineNumber,endColumn:Fe.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(Oe=>({label:Oe,kind:ot.languages.CompletionItemKind.Text,insertText:Oe,range:Pe}))},ne=(ot,Je,Fe,Pe)=>{ot.languages.registerCompletionItemProvider(Je,{provideCompletionItems(te,fe){const Oe=te.getWordUntilPosition(fe),Ue={startLineNumber:fe.lineNumber,endLineNumber:fe.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},xe=te.getLineContent(fe.lineNumber).substring(Oe.startColumn-2,Oe.endColumn);return{suggestions:[...E(ot,te,fe,Ue),...Fe.map(je=>({label:je,kind:ot.languages.CompletionItemKind.Keyword,documentation:je,insertText:je,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...Pe.map(je=>({label:je.label,kind:ot.languages.CompletionItemKind.Snippet,documentation:je.content,insertText:xe.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}})};var re=ot=>{de.languages.forEach(Je=>{ot.languages.registerDocumentFormattingEditProvider(Je,{provideDocumentFormattingEdits(Fe){return ee(this,null,function*(){const Pe=ae()(Fe.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:Fe.getFullModelRange(),text:Pe}]})}})}),ne(ot,"java",ke.keywords,ke.quickKey),ne(ot,"cpp",we.keywords,we.quickKey),ne(ot,"c",y.keywords,[]),ne(ot,"python",x.keywords,x.quickKey),ne(ot,"scala",z.keywords,z.quickKey)};const oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var le=Object.defineProperty,he=(ot,Je,Fe)=>Je in ot?le(ot,Je,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ot[Je]=Fe,pe=(ot,Je,Fe)=>he(ot,typeof Je!="symbol"?Je+"":Je,Fe);const ve=class Kl{constructor(Je,Fe,Pe){this.placeholder=Je,this.editor=Fe,this.monaco=Pe,Fe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Kl.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)}};pe(ve,"ID","editor.widget.placeholderHint");var me=ve,Ee=ze(96236),Te=ze(6767),Re=ze(25399),_e=ze(89392),ye=ze(33796),be=ze(56102),Se=Object.defineProperty,Ie=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ke=(ot,Je,Fe)=>Je in ot?Se(ot,Je,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ot[Je]=Fe,Ve=(ot,Je)=>{for(var Fe in Je||(Je={}))De.call(Je,Fe)&&Ke(ot,Fe,Je[Fe]);if(Ae)for(var Fe of Ae(Je))He.call(Je,Fe)&&Ke(ot,Fe,Je[Fe]);return ot},nt=(ot,Je)=>Ie(ot,Me(Je)),Ne=(ot,Je)=>{var Fe={};for(var Pe in ot)De.call(ot,Pe)&&Je.indexOf(Pe)<0&&(Fe[Pe]=ot[Pe]);if(ot!=null&&Ae)for(var Pe of Ae(ot))Je.indexOf(Pe)<0&&He.call(ot,Pe)&&(Fe[Pe]=ot[Pe]);return Fe},We=(ot,Je,Fe)=>new Promise((Pe,te)=>{var fe=xe=>{try{Ue(Fe.next(xe))}catch(Ce){te(Ce)}},Oe=xe=>{try{Ue(Fe.throw(xe))}catch(Ce){te(Ce)}},Ue=xe=>xe.done?Pe(xe.value):Promise.resolve(xe.value).then(fe,Oe);Ue((Fe=Fe.apply(ot,Je)).next())});function $e(ot){return/^\d+$/.test(ot)?`${ot}px`:ot}function rt(){}let et=!1;const Xe={"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 Ye(ot=[]){let Je=ot;if(Array.isArray(ot)){for(let Fe=0;Fe<ot.length;Fe++){let Pe=Xe[ot[Fe]];if(Pe)return Pe}return Je[0]}return Xe[Je]||Je}let Ge=null;const at=()=>We(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ot){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ot)}});var Qe=ot=>{var Je=ot,{width:Fe="100%",height:Pe="100%",value:te,language:fe="javascript",style:Oe={},options:Ue={},overrideServices:xe={},theme:Ce="vs-dark",onEditBlur:je,isCopy:Ze=!1,onSave:tt,autoHeight:it=!1,forbidCopy:ct=!1,onChange:ut=rt,editorDidMount:pt=rt,onFocus:St=rt,onBreakPoint:wt=rt,breakPointValue:Et=[],filename:vt="educoder.txt",errorLine:At,errorContent:gt="",highlightLine:dt,openBreakPoint:xt=!1,placeholder:bt="",showMiniMap:Pt=!0}=Je,Zt=Ne(Je,["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 cr=(0,Be.useRef)(),Ht=(0,Be.useRef)({}),vr=(0,Be.useRef)(),Kr=(0,Be.useRef)(),Xr=(0,Be.useRef)([]),Nr=(0,Be.useRef)(!1),fn=(0,Be.useRef)(),Lr=(0,Be.useRef)(),ln=(0,Be.useRef)(!1),[Tr,vn]=(0,Be.useState)(!1);function on(){let sr;return cr.current&&(sr=new mt.Z(Wt=>{for(let mr of Wt)(mr.target.offsetHeight>0||mr.target.offsetWidth>0)&&Ht.current.instance.layout()}),sr.observe(cr.current)),sr}function br(){Te.ZP.warning({content:decodeURIComponent(oe),key:"monaco-editor-tip"})}const wr=()=>{let sr=Ht.current.instance;if(te!=null&&sr&&Tr){const Wt=sr.getModel();Wt&&te!==Wt.getValue()&&(et=!0,Wt.setValue(te),sr.layout(),et=!1)}};(0,Be.useEffect)(()=>{const sr=ye.Z.subscribe("formatDocument",Wt=>{var mr;let Ur=Ht.current.instance;(mr=Ur==null?void 0:Ur.getAction)==null||mr.call(Ur,"editor.action.formatDocument").run()});return window.updateMonacoValue=Wt=>{ut(Wt)},sr},[]),(0,Be.useEffect)(()=>{var sr;let Wt=Ht.current.instance;Kr.current&&clearTimeout(Kr.current),Kr.current=setTimeout(()=>{wr()},500),te&&(te!=null&&te.length)&&((sr=Wt==null?void 0:Wt.updateOptions)==null||sr.call(Wt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,Tr,Ht.current]),(0,Be.useEffect)(()=>{if(At&&Ht.current&&Ht.current.instance){let Wt=Ht.current.instance;Wt.changeViewZones(function(mr){var Ur=document.createElement("div");Ur.style.padding="10px 20px",Ur.style.width="calc(100% - 20px)",Ur.className="my-error-line-wrp",Ur.innerHTML=gt,mr.addZone({afterLineNumber:At||11,heightInLines:3,domNode:Ur})});var sr={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}};Wt.addOverlayWidget(sr),Wt.revealPositionInCenter({lineNumber:20,column:1})}},[At,Ht.current,Tr]);const er=(sr="",Wt)=>{if(!sr||sr.trim()==="")return!0;const Ur=Ht.current.instance.getModel().getLineTokens(Wt);let un=!1;for(let kt=0;kt<2;kt++)Ur.getStandardTokenType(kt)===1&&(un=!0);return un};(0,Be.useEffect)(()=>{var sr;const Wt=(sr=Ht.current)==null?void 0:sr.instance;if(Wt&&Tr&&ct){const mr=Wt.onDidBlurEditorWidget(()=>{ln.current=!1}),Ur=Wt.onDidFocusEditorText(()=>{ln.current=!0});return()=>{mr.dispose(),Ur.dispose()}}},[Ht.current,Tr,ct]),(0,Be.useEffect)(()=>{var sr;if((sr=Ht.current)!=null&&sr.instance&&Tr&&xt){let Wt=Ht.current.instance,mr=Wt.getModel();if(!mr)return;(()=>{var hr;let Ar=[],jt=[];const Sr=mr.getAllDecorations();for(let Or of Sr)Or.options.className==="highlighted-line"&&(Ar.push((hr=Or==null?void 0:Or.range)==null?void 0:hr.startLineNumber),jt.push(Or==null?void 0:Or.id));if(dt===Ar[0])return;mr.deltaDecorations(jt,[]);const ur=mr.getLineCount();dt&&dt<=ur&&(Wt.deltaDecorations([],[{range:new Ge.Range(dt,1,dt,mr.getLineMaxColumn(dt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Wt.revealLineInCenter(dt))})();const un=(hr=!1)=>{var Ar;let jt=[],Sr=[];const ur=mr.getAllDecorations();for(let Or of ur)Or.options.linesDecorationsClassName==="breakpoints-select"&&(jt.push((Ar=Or==null?void 0:Or.range)==null?void 0:Ar.startLineNumber),Sr.push(Or==null?void 0:Or.id));if(hr)return{lines:jt,ids:Sr};wt(jt)},kt=hr=>We(void 0,null,function*(){let Ar={range:new Ge.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield mr.deltaDecorations([],[Ar]),un()}),Tt=hr=>We(void 0,null,function*(){let Ar=[];const jt=Wt.getLineDecorations(hr);for(let Sr of jt)Sr.options.linesDecorationsClassName==="breakpoints-select"&&Ar.push(Sr.id);yield mr.deltaDecorations(Ar,[]),un()}),lr=hr=>{let Ar=Wt.getLineDecorations(hr);for(let jt of Ar)if(jt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_e.isEqual)(Et,un(!0).lines)){mr.deltaDecorations(un(!0).ids,[]);const hr=Et.map(Ar=>({range:new Ge.Range(Ar,1,Ar,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));mr.deltaDecorations([],hr)}const $t=Wt.onDidChangeModelContent(hr=>{let Ar=Wt.getPosition();if(Ar){let jt=Ar.lineNumber;clearTimeout(Lr.current),Lr.current=setTimeout(()=>{er(mr.getLineContent(jt),jt)?Tt(jt):lr(jt)?(Tt(jt),kt(jt)):un()},100)}}),Ot=Wt.onMouseDown(hr=>{var Ar,jt,Sr;if(hr.target.detail&&((Sr=(jt=(Ar=hr.target)==null?void 0:Ar.element)==null?void 0:jt.className)!=null&&Sr.includes("line-numbers"))){let ur=hr.target.position.lineNumber;if(er(mr.getLineContent(ur),ur))return;lr(ur)?Tt(ur):kt(ur)}}),nr=hr=>{let Ar={range:new Ge.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Xr.current=Wt.deltaDecorations(Xr.current,[Ar])},pr=()=>{Xr.current=Wt.deltaDecorations(Xr.current,[])},gr=Wt.onMouseMove(hr=>{var Ar,jt,Sr;if(pr(),hr.target.detail&&((Sr=(jt=(Ar=hr.target)==null?void 0:Ar.element)==null?void 0:jt.className)!=null&&Sr.includes("line-numbers"))){let ur=hr.target.position.lineNumber;if(er(mr.getLineContent(ur),ur))return;nr(ur)}}),Dr=Wt.onMouseLeave(()=>{pr()});return()=>{$t.dispose(),Ot.dispose(),gr.dispose(),Dr.dispose()}}},[Ht.current,Tr,Et,dt,xt,fe]),(0,Be.useEffect)(()=>{var sr;(sr=Ht.current)!=null&&sr.instance&&xt&&Ht.current.instance.setPosition({lineNumber:0,column:0})},[dt]);function dr(){let sr=Ht.current.instance;if(sr){const Wt=sr.getSelection(),mr=Ht.current.pastePos||{},Ur=new Ge.Range(mr.startLineNumber||Wt.endLineNumber,mr.startColumn||Wt.endColumn,mr.endLineNumber||Wt.endLineNumber,mr.endColumn||Wt.endColumn);setTimeout(()=>{sr.executeEdits("",[{range:Ur,text:""}])},300)}}function Xt(sr){(window.navigator.platform.match("Mac")?sr.metaKey:sr.ctrlKey)&&sr.keyCode==83&&(sr.preventDefault(),tt())}const qt=()=>{if(it&&Ht.current.instance){const sr=Ht.current.instance.getContentHeight();Hr(sr<Pe?Pe:sr)}else Hr(Pe)};function yr(sr){var Wt=document.createEvent("MouseEvents");Wt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sr.dispatchEvent(Wt)}const _r=sr=>{if(!ln.current)return;const{keyCode:Wt,ctrlKey:mr,metaKey:Ur,target:un,type:kt}=sr;return(kt==="paste"||(Wt===67||Wt===86)&&(Ur||mr))&&un.nodeName==="TEXTAREA"&&(br(),sr.preventDefault()),!1};function jr(sr,Wt){var mr=window.URL||window.webkitURL||window,Ur=new Blob([Wt]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=mr.createObjectURL(Ur),un.download=sr,yr(un)}(0,Be.useEffect)(()=>{qt()},[qt]),(0,Be.useEffect)(()=>{cr.current&&!Tr&&Promise.all([ze.e(8909),ze.e(5028)]).then(ze.bind(ze,71448)).then(sr=>{try{Ge=sr,Ht.current.instance=Ge.editor.create(cr.current,{value:te,language:Ye(fe),theme:Ce,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pt||!1}},xe);const Wt=Ht.current.instance;let un=[...Ee.BH._menuItems].find($t=>$t[0]._debugName=="EditorContext")[1],kt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Tt=($t,Ot)=>{var nr,pr;let gr=$t._first;do Ot.includes((pr=(nr=gr.element)==null?void 0:nr.command)==null?void 0:pr.id)&&$t._remove(gr);while(gr=gr.next)};if(pt(Wt,Ge),setTimeout(()=>{qt(),Ht.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{jr(vt||"educoder.txt",Wt.getValue())}})},500),Ht.current.subscription=Wt.onDidChangeModelContent($t=>{Nr.current?clearTimeout(fn.current):(qt(),ut(Wt.getValue(),$t)),fn.current=setTimeout(()=>{Nr.current=!1},500)}),window.Monaco||re(Ge,Ye(fe)),ct&&(Tt(un,kt),cr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_r),window.removeEventListener("paste",_r),window.addEventListener("keydown",_r),window.addEventListener("paste",_r)),window.Monaco=Ge,je&&Wt.onDidBlurEditorWidget(()=>{je(Wt.getValue())}),St&&Wt.onDidFocusEditorText(()=>{ct&&at(),St(Wt.getValue())}),ct){at();try{Wt.onDidPaste($t=>{const Ot=Wt.getSelection(),nr=Ht.current.pastePos||{},pr=new Ge.Range(nr.startLineNumber||Ot.endLineNumber,nr.startColumn||Ot.endColumn,nr.endLineNumber||Ot.endLineNumber,nr.endColumn||Ot.endColumn);Wt.executeEdits("",[{range:$t.range,text:""}])})}catch($t){}}let lr=on();return bt&&typeof bt=="string"&&new me(bt,Wt,Ge),vn(!0),()=>{const $t=Ht.current.instance;$t.dispose();const Ot=$t.getModel();Ot&&Ot.dispose(),Ht.current.subscription&&Ht.current.subscription.dispose(),lr.unobserve(cr.current)}}catch(Wt){}})},[]),(0,Be.useEffect)(()=>{if(Ht.current.instance&&Tr)return document.addEventListener("keydown",Xt,!1),()=>{document.removeEventListener("keydown",Xt)}},[tt,Tr]),(0,Be.useEffect)(()=>{let sr=Ht.current.instance;if(sr&&Tr){let Wt=Ye(fe);Ge.editor.setModelLanguage(sr.getModel(),Wt)}},[fe,Tr]),(0,Be.useEffect)(()=>{Ht.current.instance&&Tr&&Ge.editor.setTheme(Ce)},[Ce,Tr]),(0,Be.useEffect)(()=>{let sr=Ht.current.instance;vr.current=Ue,sr&&Tr&&(sr.updateOptions(Ve({},Ue)),setTimeout(()=>{sr.getModel().updateOptions(Ve({},Ue))},200))},[JSON.stringify(Ue),Tr]),(0,Be.useEffect)(()=>{let sr=Ht.current.instance;sr&&Tr&&sr.layout()},[Fe,Pe,Tr]);const[Yr,dn]=(0,Be.useState)($e(Fe)),[sn,Hr]=(0,Be.useState)($e(Pe)),Qr=nt(Ve({},Oe),{width:Yr,height:sn,position:"relative"});return Be.createElement("div",{className:"my-monaco-editor",ref:cr,style:Qr},Ze&&Be.createElement(be.CopyToClipboard,{text:te,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},Be.createElement(Re.Z,{title:"\u590D\u5236\u4EE3\u7801"},Be.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Be.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ft({width:ot="100%",height:Je="100%",original:Fe,modified:Pe,language:te,options:fe={}}){const Oe=(0,Be.useRef)(),[Ue,xe]=(0,Be.useState)(null);function Ce(it){let ct;return Oe.current&&(ct=new mt.Z(ut=>{for(let pt of ut)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&it.layout()}),ct.observe(Oe.current)),ct}(0,Be.useEffect)(()=>(Oe.current&&Promise.all([ze.e(8909),ze.e(9404)]).then(ze.bind(ze,2550)).then(it=>{Ge=it;const ct=Ge.editor.createDiffEditor(Oe.current,nt(Ve({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},fe),{wordWrap:!0}));xe(ct);let ut=Ce(ct);return()=>{ct.dispose();const pt=ct.getModel();pt&&pt.dispose(),ut.unobserve(Oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Be.useEffect)(()=>{Ue&&Ue.setModel({original:Ge.editor.createModel(Fe,te),modified:Ge.editor.createModel(Pe,te)})},[Fe,Pe,te,Ue]);const je=$e(ot),Ze=$e(Je),tt={width:je,height:Ze};return Be.createElement("div",{className:"my-diff-editor",ref:Oe,style:tt})}},64536:function(Nt,Dt,ze){"use strict";var Be=ze(45298),mt=ze(82326),y=ze(71411),ke=ze(59301);const we=mt.default.Option;Dt.Z=({isTheoretical:x,onFontSizeChange:z,cmFontSize:ie,cmCodeMode:ae,autoFormat:ee,onCodeModeChange:de,onTabToSpace:E,onAutoFormat:ne,formatDocument:re,className:oe="",tabToSpace:le,children:he,code_editor:pe,challenge:ve,shixun_environment_id:ce,shixun_environments:me})=>{var Ee;const Te={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Re=(Ee=me==null?void 0:me.find(_e=>_e.shixun_environment_id===ce))==null?void 0:Ee.program_language;return console.log("----",Re,me,ce,pe),ke.createElement("div",{className:`tpi-code-setting ${oe}`},ke.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ke.createElement("section",null,ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ke.createElement(mt.default,{bordered:!1,size:"small",value:ae,onChange:de},ke.createElement(we,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ke.createElement(we,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!x&&ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ke.createElement(mt.default,{bordered:!1,size:"small",value:ie,onChange:z},ke.createElement(we,{value:12},"12px"),ke.createElement(we,{value:14},"14px"),ke.createElement(we,{value:16},"16px"),ke.createElement(we,{value:18},"18px"),ke.createElement(we,{value:20},"20px"),ke.createElement(we,{value:22},"22px"))),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"Tab\u8F6C\u6362"),ke.createElement(y.Z,{checked:le,onChange:E})),ke.createElement("div",{className:"file-item",onClick:re},ke.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!x&&ke.createElement(ke.Fragment,null,ke.createElement("h3",null,"\u5FEB\u6377\u952E"),ke.createElement("section",null,ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ke.createElement("span",null,"Ctrl + S")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ke.createElement("span",null,"F1 / Alt + F1")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ke.createElement("span",null,"Ctrl + ]/[")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ke.createElement("span",null,"Ctrl + Shift + \\")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ke.createElement("span",null,"Home")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ke.createElement("span",null,"End"))),he),!x&&ke.createElement(ke.Fragment,null,ke.createElement("h3",null,"\u5FEB\u6377\u952E"),ke.createElement("section",null,Re&&ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),ke.createElement("span",null,Re)),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ke.createElement("span",null,Te[ve==null?void 0:ve.difficulty])),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ke.createElement("span",null,pe==null?void 0:pe.name)),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ke.createElement("span",null,pe!=null&&pe.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},929:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return E}});var Be={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"},mt=ze(29787),y=ze(25399),ke=ze(60242),we=ze(92310),x=ze.n(we),z=ze(49661),ie=ze(57884),ae=ze(34055),ee=ze(59301),E=({className:ne,dataSource:re=[],col:oe=4,right:le,bottom:he=23,precision:pe=0,wrapWidth:ve=1200,trackEventItems:ce,loading:me,onRemove:Ee=()=>{},isCurrent:Te=!0,showProgress:Re=!1,showAlias:_e=!1})=>{const ye=Math.floor((ve-(oe-1)*le)/oe),be=[{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 ee.createElement(mt.Z,{spinning:me},ee.createElement("div",{className:x()(Be.list,ne)},!!(re!=null&&re.length)&&(re==null?void 0:re.map((Se,Ie)=>{var Me,Ae,De,He,Ke,Ve;const{name:nt,id:Ne,identifier:We,featured:$e,school_name:rt,image_url:et,excellent:Xe,is_plan:Ye}=Se;return ee.createElement("div",{key:Ne,className:Te&&Re?Be.wrapisCurrent:Be.wrap,style:{width:ye,marginRight:(1+Ie)%oe===0?0:le+pe,marginBottom:he}},ee.createElement("a",{className:Be.li,onClick:Ge=>{Ge.preventDefault(),Ge.stopPropagation(),ce&&(0,z.L9)([ce]),(0,z.xg)(`/paths/${We}`)}},ee.createElement("div",{className:Be.img},ee.createElement("img",{className:Be.cover,src:`${et}`}),Te&&(0,ae.bg)()&&(Se==null?void 0:Se.studying)&&ee.createElement("div",{className:`${Be.movebq} user-path-items`,onClick:Ge=>{Ge.stopPropagation(),Ee(Se)}},ee.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ee.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Me=Se==null?void 0:Se.subject_tags)==null?void 0:Me.map((Ge,at)=>{var Qe,ft;if(at===0){const Je=(Qe=be.find(Fe=>Fe.name==Ge))==null?void 0:Qe.swimg;return ee.createElement("img",{className:Be.sign,src:Je,style:{left:"-4px"}})}const ot=(ft=be.find(Je=>Je.name==Ge))==null?void 0:ft.ptimg;return ee.createElement("img",{className:Be.sign,src:ot,style:{left:`${48+52*(at-1)+2*at}px`}})}),ee.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Se==null?void 0:Se.excellent)&&ee.createElement("div",{className:Be.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ee.createElement("div",{className:Be.name},ee.createElement(y.Z,{title:_e&&(Se!=null&&Se.excellent_alias_name)?ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${nt}`,ee.createElement("br",null),ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):nt},ee.createElement("span",{className:Be.e},_e&&(Se==null?void 0:Se.excellent_alias_name)||nt))),Te&&Re&&((Ae=Se==null?void 0:Se.progress)==null?void 0:Ae.all_score)!=0&&ee.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ee.createElement(ke.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((De=Se==null?void 0:Se.progress)==null?void 0:De.my_score)/((He=Se==null?void 0:Se.progress)==null?void 0:He.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ke=Se==null?void 0:Se.progress)==null?void 0:Ke.my_score,"/",(Ve=Se==null?void 0:Se.progress)==null?void 0:Ve.all_score),(!Te||!Re)&&ee.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${rt}`},ee.createElement("div",{className:Be.unit},ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),rt)),(!Te||!Re)&&ee.createElement("div",{className:Be.tags},ee.createElement("div",null,ee.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ee.createElement("span",null,Se.stages_count))),ee.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ee.createElement("span",null,Se.members_count)))))))})),!re.length&&ee.createElement(ie.Z,null)))}},71360:function(Nt,Dt,ze){"use strict";ze.d(Dt,{jL:function(){return we},w9:function(){return $e},QD:function(){return At},cQ:function(){return Ke.Z},op:function(){return ut},O5:function(){return wr},_b:function(){return Zt},t7:function(){return pe},Gi:function(){return at},YG:function(){return Ye},qp:function(){return de},vr:function(){return xt},qE:function(){return wt},Je:function(){return me},wb:function(){return He},cq:function(){return Pe},tp:function(){return re}});var Be=ze(59301),mt={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"},y="data:image/png;base64,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",we=({dataSource:er=[],img:dr,imgWidth:Xt=346,title:qt,sunTitle:yr,bannerExtraContent:_r})=>Be.createElement("div",{className:mt.banner},Be.createElement("div",{className:mt.content},Be.createElement("aside",null,Be.createElement("p",null,Be.createElement("b",null,qt),Be.createElement("span",null,yr)),er.length>0&&Be.createElement("div",{className:mt.btns},er.map((jr,Yr)=>Be.createElement("div",{key:Yr,onClick:jr.click},jr.name,jr.sign?Be.createElement("img",{src:y,width:39}):null))),_r),dr&&Be.createElement("img",{style:{marginTop:33,marginRight:38},src:dr,width:Xt}))),x={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"},z=ze(92310),ie=ze.n(z),ae=ze(89392),de=({dataSource:er=[],value:dr,onChange:Xt,onTitleChange:qt,className:yr,title:_r,titleWidth:jr=41,style:Yr={},fontColor:dn="#6A7283",showCount:sn})=>{const[Hr,Qr]=(0,Be.useState)(0),[sr,Wt]=(0,Be.useState)(!1),mr=(0,Be.useRef)(null),Ur=(0,Be.useRef)(null);return(0,Be.useEffect)(()=>{var un;er.length!==0&&(((un=mr==null?void 0:mr.current)==null?void 0:un.clientHeight)>97?Qr(1):Qr(0)),er.length===0&&Qr(0),Wt(!1)},[er]),Be.createElement("div",{className:ie()(x.row,yr),style:Yr},Be.createElement("div",{onClick:(0,ae.throttle)(()=>qt==null?void 0:qt(),2e3),style:{width:jr,marginTop:sr?12:4},className:`${x.title} ${qt?"current":""}`},_r),Be.createElement("div",{className:sr?`${x.tagsWrap} ${x.tagsBorderWrap}`:x.tagsWrap},Be.createElement("div",{className:x.bar,ref:Ur,style:Hr>0?{height:Hr===1?97:"auto",overflow:Hr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Be.createElement("div",{className:x.tag,ref:mr},er==null?void 0:er.map(un=>Be.createElement("span",{onClick:()=>Xt(un.id),key:un.id,style:{color:dn},className:dr===un.id?x.active:""},Be.createElement("span",{title:un.name,className:x.name},un.name),!!sn&&Be.createElement("span",{className:x.num},un.count))))),!!Hr&&Be.createElement(Be.Fragment,null,Hr===1?Be.createElement("div",{onClick:()=>{var un;Qr(2),((un=mr==null?void 0:mr.current)==null?void 0:un.clientHeight)>245?Wt(!0):Wt(!1)},className:x.action},"\u5C55\u5F00",Be.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Be.createElement("div",{onClick:()=>{Ur.current.scrollTop=0,Qr(1),Wt(!1)},className:x.action},"\u6536\u8D77",Be.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},E={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"},re=({dataSource:er=[],value:dr,onChange:Xt,className:qt,style:yr={}})=>Be.createElement("div",{style:yr,className:ie()(E.tabs,qt)},er.map(_r=>Be.createElement("span",{onClick:()=>Xt(_r.id),className:dr===_r.id?E.active:"",key:_r.id},_r.name))),oe={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"},le=ze(37568),pe=({dataSource:er=[],value:dr="",onChange:Xt,onInputChange:qt=()=>{},className:yr,style:_r={},placeholder:jr,allowClear:Yr=!1})=>{var dn;const[sn,Hr]=(0,Be.useState)(""),[Qr,sr]=(0,Be.useState)("");(0,Be.useEffect)(()=>{var Ur;let un=dr;(Ur=JSON.stringify(dr))!=null&&Ur.includes("{")&&(Hr(dr.id),un=dr.value||"");try{sr(decodeURIComponent(un||""))}catch(kt){sr(decodeURIComponent(un||""))}},[dr]);const Wt=()=>{Xt(encodeURIComponent(Qr),sn||null)},mr=Ur=>{Ur!==sn&&(Hr(Ur),Xt(encodeURIComponent(Qr),Ur))};return Be.createElement("div",{className:ie()(oe.input,yr),style:_r},!!er.length&&Be.createElement("div",{className:oe.dropdown},Be.createElement("div",{className:oe.text},(dn=er.find(Ur=>Ur.id===sn))==null?void 0:dn.name,Be.createElement("i",{className:"iconfont icon-zhankai4"}),Be.createElement("b",{className:oe.b1}),Be.createElement("b",{className:oe.b2})),Be.createElement("div",{className:oe.menu},er.map((Ur,un)=>Be.createElement("div",{key:un,onClick:()=>mr(Ur.id)},Ur.name)))),Be.createElement(le.default,{onPressEnter:Wt,value:Qr,onChange:Ur=>{sr(Ur.target.value),qt(encodeURIComponent(Ur.target.value),sn||null)},placeholder:jr,variant:"borderless",allowClear:Yr,onClear:()=>Xt("",sn||null)}),Be.createElement("i",{onClick:Wt,className:"iconfont icon-sousuo9 font14 current"}))},ve={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"},me=({value:er,onChange:dr,className:Xt,total:qt,pageSize:yr,style:_r={}})=>{const jr=er<2,Yr=er>=Math.ceil(qt/yr);return qt<=yr?Be.createElement(Be.Fragment,null):Be.createElement("div",{className:ie()(ve.quickPager,Xt),style:_r},Be.createElement("div",{onClick:()=>{jr||dr(er-1,"prev")},className:jr?ve.disabled:""},"\u4E0A\u4E00\u9875"),Be.createElement("div",{onClick:()=>{Yr||dr(er+1,"next")},className:Yr?ve.disabled:""},"\u4E0B\u4E00\u9875"))},Ee={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"},Te=ze(29787),Re=ze(25399),_e=ze(58018),ye=ze(90524),be=ze(49661),Se=ze(96908),Ie=ze(57177),Me=ze(81378),Ae=ze(57884),He=({className:er,dataSource:dr=[],col:Xt=4,right:qt,bottom:yr=23,precision:_r=0,wrapWidth:jr=1200,trackEventItems:Yr,loading:dn})=>{const sn=Math.floor((jr-(Xt-1)*qt)/Xt);return Be.createElement(Te.Z,{spinning:dn},Be.createElement("div",{className:ie()(Ee.list,er)},!!dr.length&&dr.map((Hr,Qr)=>{const{name:sr,id:Wt,identifier:mr,power:Ur,cover_image_id:un,pic:kt}=Hr;return Be.createElement("div",{className:Ee.wrap,key:Wt,style:{width:sn,marginRight:(1+Qr)%Xt===0?0:qt+_r,marginBottom:yr}},Be.createElement("a",{target:"_blank",href:`/shixuns/${mr}/challenges`,className:Ee.li,onClick:Tt=>{Tt.preventDefault(),Yr&&(0,be.L9)([Yr]),Ur&&(0,be.xg)(`/shixuns/${mr}/challenges`)}},Be.createElement("div",{className:Ee.img},Be.createElement("img",{className:Ee.cover,src:`${kt}`}),Hr.is_jupyter&&Be.createElement("img",{className:Ee.sign,src:Se}),Hr.is_jupyter_lab&&Be.createElement("img",{className:Ee.sign,src:Ie}),Hr.is_unity_3d&&Be.createElement("img",{className:Ee.sign,src:Me})),Be.createElement("div",{className:Ee.name},Be.createElement(Re.Z,{title:sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Be.createElement("span",{className:Ee.e},sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Be.createElement("div",{className:Ee.tags},Be.createElement(Re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Be.createElement("span",null,Hr.challenges_count))),!!Hr.myshixuns_count&&Be.createElement(Re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Be.createElement("span",null,Be.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Be.createElement("span",null,Hr.myshixuns_count))),Be.createElement(Re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Be.createElement("span",null,Be.createElement("span",null,Hr.level))),Be.createElement("div",{className:Ee.rate},Be.createElement(_e.Z,{allowHalf:!0,disabled:!0,defaultValue:Hr.score_info}),Be.createElement("span",null,"\xA0",Hr.score_info?`${Hr.score_info}\u5206`:"5\u5206")))),!Ur&&Be.createElement("div",{className:Ee.lockWrap},Be.createElement("img",{src:`${ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Be.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!dr.length&&Be.createElement(Ae.Z,null)))},Ke=ze(929),Ve={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"},nt="data:image/png;base64,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",Ne=ze(59301),$e=({className:er,dataSource:dr=[],col:Xt=4,right:qt,bottom:yr=23,precision:_r=0,wrapWidth:jr=1200,trackEventItems:Yr,loading:dn,handleVery:sn=()=>!0})=>{const Hr=Math.floor((jr-(Xt-1)*qt)/Xt);return Ne.createElement(Te.Z,{spinning:dn},Ne.createElement("div",{className:ie()(Ve.list,er)},!!dr.length&&dr.map((Qr,sr)=>{const{subject_identifier:Wt,id:mr,identifier:Ur,power:un}=Qr,kt=Qr.is_public!=0&&Qr.is_public;return Ne.createElement("div",{className:Ve.wrap,key:mr,style:{width:Hr,marginRight:(1+sr)%Xt===0?0:qt+_r,marginBottom:yr}},Ne.createElement("a",{className:Ve.li,onClick:Tt=>{Tt.preventDefault(),sn(Qr==null?void 0:Qr.first_category_url)&&(Yr&&(0,be.L9)([Yr]),(0,be.xg)(Qr.first_category_url))}},Ne.createElement("div",{className:Ve.top},Ne.createElement(Re.Z,{title:Qr.name},Ne.createElement("div",{className:Ve.name},Qr.name)),Ne.createElement("img",{className:Ve.img,src:ye.Z.IMG_SERVER+"/images/"+Qr.avatar_url}),Ne.createElement("div",{className:Ve.text,title:Qr.creator},Qr.creator),Wt&&Ne.createElement("div",{className:Ve.btns},Ne.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ne.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),kt&&Ne.createElement("div",{className:Ve.sign},"\u516C\u5F00")),Ne.createElement("div",{className:Ve.bottom},Qr.visits>0&&Ne.createElement(Re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ne.createElement("span",null,Ne.createElement("i",{className:"iconfont icon-liulanyan"}),Ne.createElement("span",null,Qr.visits))),Qr.course_members_count>0&&Ne.createElement(Re.Z,{title:"\u6210\u5458",placement:"bottom"},Ne.createElement("span",null,Ne.createElement("i",{className:"iconfont icon-chengyuan"}),Qr.course_members_count)),Qr.tasks_count>0&&Ne.createElement(Re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ne.createElement("span",null,Ne.createElement("i",{className:"iconfont icon-zuoye"}),Qr.tasks_count)),Qr.is_end?Ne.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ne.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Qr.is_accessible&&Ne.createElement("div",{className:Ve.lockWrap},Ne.createElement("img",{src:`${ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ne.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!dr.length&&Ne.createElement(Ae.Z,null)))},rt={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"},et=ze(76560),Ye=({dataSource:er=[],value:dr,onChange:Xt,className:qt,style:yr={},tabBarExtraContent:_r})=>Be.createElement("div",{className:ie()(rt.tabs,qt),style:yr},Be.createElement("div",{className:rt.tabsWrap},er.map((jr,Yr)=>!(jr!=null&&jr.hide)&&Be.createElement("aside",{className:rt.tab,onClick:()=>{Xt(jr.id),jr.link&&et.history.push(jr.link)},key:Yr},Be.createElement("div",{className:dr===jr.id?rt.active:""},jr.name),(jr==null?void 0:jr.resetCount)==null&&(jr==null?void 0:jr.total)!==void 0&&Be.createElement("span",null,"\uFF08",jr==null?void 0:jr.total,"\uFF09"),(jr==null?void 0:jr.resetCount)!==void 0&&(jr==null?void 0:jr.total)!==void 0&&Be.createElement(Re.Z,{title:(jr==null?void 0:jr.tip)!=null?jr==null?void 0:jr.tip:""},Be.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Be.createElement("span",{style:{color:"#000"}},jr==null?void 0:jr.resetCount),"/",Be.createElement("span",null,jr==null?void 0:jr.total),"\uFF09"))))),Be.createElement("div",{className:rt.tabBar},_r)),at=({className:er,style:dr={},children:Xt})=>Be.createElement("div",{className:ie()(er),style:dr},Xt),Qe={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"},ft=ze(75727),ot=ze(93041);const Je=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Pe=({sortValue:er,dropValue:dr,className:Xt,onSort:qt,onDrop:yr,dataSource:_r=Je})=>{var jr;return Be.createElement("div",{className:ie()(Qe.orderWrap,Xt)},Be.createElement(ft.Z,{dropdownRender:()=>Be.createElement(ot.default,null,_r.map((Yr,dn)=>Be.createElement(ot.default.Item,{key:dn,onClick:()=>yr(Yr.id)},Yr.name)))},Be.createElement("span",{className:Qe.orderTextWrap},(jr=_r.find(Yr=>dr===Yr.id))==null?void 0:jr.name)),Be.createElement("span",{className:Qe.orderIconWrap},Be.createElement("span",{className:Qe.orderAsc},Be.createElement("i",{className:er==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer}`,onClick:()=>qt(er==="asc"?"desc":"asc")})),Be.createElement("span",{className:Qe.orderDesc},Be.createElement("i",{className:er==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer}`,onClick:()=>qt(er==="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"},fe=ze(99571),Oe=Object.defineProperty,Ue=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,je=(er,dr,Xt)=>dr in er?Oe(er,dr,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):er[dr]=Xt,Ze=(er,dr)=>{for(var Xt in dr||(dr={}))xe.call(dr,Xt)&&je(er,Xt,dr[Xt]);if(Ue)for(var Xt of Ue(dr))Ce.call(dr,Xt)&&je(er,Xt,dr[Xt]);return er},tt=(er,dr)=>{var Xt={};for(var qt in er)xe.call(er,qt)&&dr.indexOf(qt)<0&&(Xt[qt]=er[qt]);if(er!=null&&Ue)for(var qt of Ue(er))dr.indexOf(qt)<0&&Ce.call(er,qt)&&(Xt[qt]=er[qt]);return Xt},it=(er,dr,Xt)=>new Promise((qt,yr)=>{var _r=dn=>{try{Yr(Xt.next(dn))}catch(sn){yr(sn)}},jr=dn=>{try{Yr(Xt.throw(dn))}catch(sn){yr(sn)}},Yr=dn=>dn.done?qt(dn.value):Promise.resolve(dn.value).then(_r,jr);Yr((Xt=Xt.apply(er,dr)).next())}),ut=er=>{var dr=er,{className:Xt,style:qt,children:yr,loading:_r=!1,openLoading:jr,onClick:Yr=()=>{},size:dn="middle",shape:sn="round"}=dr,Hr=tt(dr,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Qr,sr]=(0,Be.useState)(!1);return Be.createElement(fe.ZP,Ze({onClick:(0,ae.throttle)(Wt=>it(void 0,null,function*(){jr&&sr(!0);try{yield Yr(Wt)}catch(mr){console.log("error",mr)}jr&&sr(!1)}),2e3,{leading:!0,trailing:!1}),className:ie()(te.btn,te[`${dn}-${sn}`],Xt),style:qt,size:dn,shape:sn,loading:Qr||_r},Hr),yr)},pt={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"},wt=({className:er,style:dr,children:Xt=null,onClick:qt,title:yr})=>Be.createElement("div",{className:ie()(pt.head,er),style:dr},Be.createElement("span",{className:"primary-hover",onClick:qt},Be.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Be.createElement("b",{title:yr},yr),Be.createElement("div",{className:pt.node},Xt)),Et={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"},At=({confirmShow:er=!0,confirmTitle:dr,confirmClick:Xt,cancelShow:qt=!0,cancelTitle:yr,cancelClick:_r,className:jr,style:Yr,confirmLoading:dn=!1})=>Be.createElement("div",{className:ie()(Et.btns,jr),style:Yr},er&&Be.createElement(fe.ZP,{loading:dn,onClick:Xt,type:"primary",className:Et.confirm},dr),qt&&Be.createElement(fe.ZP,{onClick:_r,className:Et.cancel},yr)),gt={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"},xt=({className:er,style:dr={},LeftContent:Xt,children:qt,RightContent:yr})=>Be.createElement("div",{className:ie()(gt.fixedBottom,er),style:dr},Be.createElement("div",{className:gt.wrap},Be.createElement("div",{className:gt.left},Xt),Be.createElement("div",{className:gt.center},qt),Be.createElement("div",{className:gt.right},yr))),bt={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"},Zt=({className:er,style:dr={},dataSource:Xt=[]})=>Be.createElement("div",{className:ie()(bt.crumbs,er),style:dr},Xt.map((qt,yr)=>yr<Xt.length-1?Be.createElement(Be.Fragment,{key:yr},qt.path||qt.onClick?Be.createElement("span",{className:bt.hover,onClick:qt!=null&&qt.onClick?qt.onClick:()=>et.history.push(qt.path)},qt.name):Be.createElement("span",null,qt.name),Be.createElement("span",null,"\xA0",">","\xA0")):Be.createElement("span",{key:yr,style:{color:"#5F6368"}},qt.name))),cr=ze(11938),Ht=Object.defineProperty,vr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,Lr=(er,dr,Xt)=>dr in er?Ht(er,dr,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):er[dr]=Xt,ln=(er,dr)=>{for(var Xt in dr||(dr={}))Nr.call(dr,Xt)&&Lr(er,Xt,dr[Xt]);if(Xr)for(var Xt of Xr(dr))fn.call(dr,Xt)&&Lr(er,Xt,dr[Xt]);return er},Tr=(er,dr)=>vr(er,Kr(dr)),vn=(er,dr)=>{var Xt={};for(var qt in er)Nr.call(er,qt)&&dr.indexOf(qt)<0&&(Xt[qt]=er[qt]);if(er!=null&&Xr)for(var qt of Xr(er))dr.indexOf(qt)<0&&fn.call(er,qt)&&(Xt[qt]=er[qt]);return Xt};const{Countdown:on}=cr.default;var wr=er=>{var dr=er,{onChange:Xt}=dr,qt=vn(dr,["onChange"]);const[yr,_r]=(0,Be.useState)(null);(0,Be.useEffect)(()=>{typeof yr=="number"&&yr>=0&&Xt(yr)},[yr]);const jr=Yr=>{const dn=Math.floor(Yr/1e3);_r(dn)};return Be.createElement(on,Tr(ln({},qt),{onChange:jr}))}},17904:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return mt}});var Be=ze(59301);function mt(y,ke){const we=(0,Be.useRef)();(0,Be.useEffect)(()=>{we.current=y}),(0,Be.useEffect)(()=>{function x(){we.current()}if(ke!==null){let z=setInterval(x,ke);return()=>clearInterval(z)}},[ke])}},61471:function(Nt,Dt,ze){"use strict";ze.d(Dt,{i:function(){return me},q:function(){return ce}});var Be=ze(59301),mt={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},y=ze(92310),ke=ze.n(y),we=ze(25399),x=ze(82326),z=ze(99571),ie=ze(82093),ae=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,oe=(Ee,Te,Re)=>Te in Ee?ae(Ee,Te,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ee[Te]=Re,le=(Ee,Te)=>{for(var Re in Te||(Te={}))ne.call(Te,Re)&&oe(Ee,Re,Te[Re]);if(E)for(var Re of E(Te))re.call(Te,Re)&&oe(Ee,Re,Te[Re]);return Ee},he=(Ee,Te)=>ee(Ee,de(Te)),pe=(Ee,Te)=>{var Re={};for(var _e in Ee)ne.call(Ee,_e)&&Te.indexOf(_e)<0&&(Re[_e]=Ee[_e]);if(Ee!=null&&E)for(var _e of E(Ee))Te.indexOf(_e)<0&&re.call(Ee,_e)&&(Re[_e]=Ee[_e]);return Re},ve=(Ee,Te,Re)=>new Promise((_e,ye)=>{var be=Me=>{try{Ie(Re.next(Me))}catch(Ae){ye(Ae)}},Se=Me=>{try{Ie(Re.throw(Me))}catch(Ae){ye(Ae)}},Ie=Me=>Me.done?_e(Me.value):Promise.resolve(Me.value).then(be,Se);Ie((Re=Re.apply(Ee,Te)).next())});const ce=Ee=>{var Te=Ee,{wrapClassName:Re,wrapStyle:_e={},showLinkButton:ye=!0,tooltipTitle:be="",loadGeneral:Se=!1,data:Ie={}}=Te,Me=pe(Te,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Ae="course_disciplines_list",[De,He]=(0,Be.useState)(()=>{const $e=sessionStorage.getItem(Ae);return $e?JSON.parse($e):[]}),[Ke,Ve]=(0,Be.useState)(!1),[nt,Ne]=(0,Be.useState)(!0);(0,Be.useEffect)(()=>{We()},[]);const We=()=>ve(void 0,null,function*(){var $e,rt,et,Xe;Ve(!0);const Ye=yield(0,ie.U2)("v2/course_disciplines.json",Ie);if(Ye.status===0){const Ge=((rt=($e=Ye==null?void 0:Ye.data)==null?void 0:$e.list)==null?void 0:rt.map(at=>({value:at.id,label:at.name})))||[];if(He(Ge),Ne(!1),sessionStorage.setItem(Ae,JSON.stringify(Ge)),nt){const at=(Xe=(et=Ye==null?void 0:Ye.data)==null?void 0:et.list)==null?void 0:Xe.find(Qe=>Qe.is_default);Se&&at&&Me.onChange(at==null?void 0:at.id)}}Ve(!1)});return Be.createElement("div",{className:ke()(mt.singleSelect,Re),style:_e},Be.createElement(we.Z,{title:be},Be.createElement(x.default,le({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:Ke,options:De,onDropdownVisibleChange:$e=>{$e&&We()}},Me))),ye&&Be.createElement(z.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},me=Ee=>{var Te=Ee,{wrapClassName:Re,wrapStyle:_e={},showLinkButton:ye=!0,courseDisciplineId:be="",isPlusHeight:Se=!1,tooltipTitle:Ie,allowAcceptEmpty:Me=!1,data:Ae={}}=Te,De=pe(Te,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[He,Ke]=(0,Be.useState)([]),[Ve,nt]=(0,Be.useState)(!1);(0,Be.useEffect)(()=>{Ne()},[be]);const Ne=()=>ve(void 0,null,function*(){var We,$e;if(!Me&&!be){Ke([]);return}nt(!0);const rt=yield(0,ie.U2)(`v2/course_disciplines/${be||"all"}.json`,Ae);if(rt.status===0){const et=(($e=(We=rt==null?void 0:rt.data)==null?void 0:We.tag_disciplines)==null?void 0:$e.map(Xe=>({value:Xe.id,label:Xe.name})))||[];et.length&&Ke(et)}nt(!1)});return Be.createElement("div",{className:ke()(mt.multipleSelect,Re),style:_e},Be.createElement(we.Z,{title:Ie},Be.createElement(x.default,he(le({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:Ve,options:He,maxTagCount:"responsive",onDropdownVisibleChange:We=>{We&&Ne()}},De),{className:ke()(De.className,Se&&mt.plus)}))),ye&&Be.createElement(z.ZP,{className:mt.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},33101:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Se}});var Be=ze(59301),mt=ze(28284),y=ze(30641),ke=ze(62957),we=ze(6767),x=ze(62673),z=ze(51124),ie=ze(64536),ae=ze(75790),ee=ze(89613),de={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",ne=ze(89392),re=ze(71360),oe=ze(59301),le=Object.defineProperty,he=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Ee=(Me,Ae,De)=>Ae in Me?le(Me,Ae,{enumerable:!0,configurable:!0,writable:!0,value:De}):Me[Ae]=De,Te=(Me,Ae)=>{for(var De in Ae||(Ae={}))ce.call(Ae,De)&&Ee(Me,De,Ae[De]);if(ve)for(var De of ve(Ae))me.call(Ae,De)&&Ee(Me,De,Ae[De]);return Me},Re=(Me,Ae)=>he(Me,pe(Ae));const _e={theme:(0,ee.G)("cmCodeMode","vs-dark"),fontSize:(0,ee.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,ee.G)("cmTabToSpace",!0)};var ye=(Me=>(Me[Me.set_font_size=0]="set_font_size",Me[Me.set_theme=1]="set_theme",Me[Me.on_tab_to_space=2]="on_tab_to_space",Me[Me.set_show_editor_setting=3]="set_show_editor_setting",Me))(ye||{});function be(Me,Ae){switch(Ae.type){case 3:return Re(Te({},Me),{showEditorSetting:Ae.payload});case 1:return Re(Te({},Me),{theme:Ae.payload});case 0:return Re(Te({},Me),{fontSize:Ae.payload});case 2:return Re(Te({},Me),{tabToSpace:Ae.payload});default:throw new Error}}var Se=({isLoading:Me,value:Ae=[],onChange:De,form:He})=>{var Ke;const[Ve,nt]=(0,Be.useReducer)(be,_e),{theme:Ne,fontSize:We,showEditorSetting:$e,tabToSpace:rt}=Ve,[et,Xe]=(0,Be.useState)("C"),[Ye,Ge]=(0,Be.useState)(!1),[at,Qe]=(0,Be.useState)([]),ft=(0,Be.useRef)([]),ot=mt.default.useWatch(["hack","languages"],He);(0,Be.useEffect)(()=>{Ae!=null&&Ae.length&&(ft.current=(0,ne.cloneDeep)(Ae))},[Ae]),(0,Be.useEffect)(()=>{Ye&&Qe(ot)},[Ye]),(0,Be.useEffect)(()=>{Xe(ot==null?void 0:ot[0])},[ot]);const Je={onFontSizeChange:Ue=>{nt({type:0,payload:Ue}),(0,ee.t)("cmFontSize",Ue)},tabToSpace:rt,cmFontSize:We,className:"oj",cmCodeMode:Ne,onTabToSpace:Ue=>{nt({type:2,payload:Ue}),(0,ee.t)("cmTabToSpace",Ue)},onCodeModeChange:Ue=>{nt({type:1,payload:Ue}),(0,ee.t)("cmCodeMode",Ue)}};function Fe(){nt({type:3,payload:!1})}function Pe(){nt({type:3,payload:!0})}function te(Ue){var xe;const Ce=(xe=ft.current)==null?void 0:xe.map(je=>(je.language===et&&(je.code=Ue),je));ft.current=(0,ne.cloneDeep)(Ce),De(Ce)}const fe={key:et,value:(Ke=Ae==null?void 0:Ae.find(Ue=>Ue.language===et))==null?void 0:Ke.code,language:et,onChange:te,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:We,insertSpaces:rt}};console.log(888,Ae,ot);const Oe=Ae.filter(Ue=>ot==null?void 0:ot.includes(Ue.language));return oe.createElement(Be.Fragment,null,oe.createElement("div",{className:de["code-panel-container"]},oe.createElement(Ie,{setVisible:Ge,languageItems:Oe,onLanguage:Ue=>Xe(Ue),language:et,onShowCodeSetting:Pe}),!Me&&oe.createElement(z.ZP,Te({},fe))),oe.createElement(ae.Z,null,oe.createElement(y.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:$e,onClose:Fe},oe.createElement(ie.Z,Te({},Je)))),oe.createElement(ke.default,{centered:!0,open:Ye,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!at.length){we.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}He.setFieldValue(["hack","languages"],at),Ge(!1)},onCancel:()=>Ge(!1)},oe.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},oe.createElement(x.default.Group,{value:at,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Ue=>{Qe(Ue)}}))))};function Ie({languageItems:Me,language:Ae,onShowCodeSetting:De,onLanguage:He,setVisible:Ke}){return oe.createElement("div",{className:de["action-oj-bar"]},Me==null?void 0:Me.map(Ve=>oe.createElement("aside",{className:Ae===(Ve==null?void 0:Ve.language)?de.active:"",onClick:()=>He(Ve==null?void 0:Ve.language),key:Ve==null?void 0:Ve.language},oe.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),oe.createElement("span",null,Ve==null?void 0:Ve.language))),oe.createElement("div",{className:de.tip},oe.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),oe.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),oe.createElement(re.op,{onClick:()=>Ke(!0),shape:"default"},oe.createElement("img",{src:E,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},28013:function(Nt,Dt,ze){"use strict";ze.r(Dt),ze.d(Dt,{Types:function(){return Et},default:function(){return At}});var Be=ze(59301),mt={bg:"bg___HduZ7",header:"header___KbUo2",avatar:"avatar___UDYJ4",title:"title___OP1JL",exitBtn:"exitBtn___E3w1m",contentWrapper:"contentWrapper___IeO8M",tabWrapper:"tabWrapper___qc2MC",buttonFixed:"buttonFixed___jzejH",cancelBtn:"cancelBtn___c5OpP",saveBtn:"saveBtn___UhxvN",challengeBtn:"challengeBtn___h9r2O",baseInfoWrapper:"baseInfoWrapper___jei0F",baseInfoRow:"baseInfoRow___Kr6m2",baseLineHeight:"baseLineHeight___v1JXM",baseLineHeight_label:"baseLineHeight_label___DOFFU",folderLineHeight:"folderLineHeight___tF8xb",uploadBtnWrapper:"uploadBtnWrapper___ICJS3",baseFormItem:"baseFormItem___sca4N",radioBtnWrapper:"radioBtnWrapper___VIxZD",difficultyRadio:"difficultyRadio___isD54",easy:"easy___gparw",medium:"medium___wRzjL",hard:"hard___sWxqC",testCaseTypeRadio:"testCaseTypeRadio___oiSFl",cascaderPopup:"cascaderPopup___OADQu",collapseWrapper:"collapseWrapper___saVIT",panelHeader:"panelHeader___hRptX",rateInput:"rateInput____HzUM",operationWrapper:"operationWrapper___YJRMc",open:"open___zkYQ_",close:"close___q9p81",add:"add___NB0_y",remove:"remove___xa9jD",codePanelWrapper:"codePanelWrapper___oacDD",unfold:"unfold___TdtCA",config_title:"config_title___q61Px",nav:"nav___o14bD",crumbs:"crumbs___SfOAG",knowledge:"knowledge___l7L1m",path:"path___21P_8",text:"text___uI932"},y=ze(28284),ke=ze(6767),we=ze(62957),x=ze(29787),z=ze(99571),ie=ze(76560),ae=ze(24334),ee=ze(16502),de=ze(33101),E=ze(82093),ne=ze(49661),re=ze(47580),oe=ze(16837),le=ze(37568),he=ze(8848),pe=ze(25399),ve=ze(71051),ce=ze(47889),me=ze(62673),Ee=ze(14566),Te=ze(54172),Re=ze(77019),_e=ze(5269),ye=ze(93725),be=ze(32134),Se=ze(12893),Ie=ze(2978),Me=ze(79934),Ae=ze(12062),De=ze(54657),He=ze(56102),Ke=ze(90524),Ve=ze(61471),nt=Object.defineProperty,Ne=Object.defineProperties,We=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Xe=(gt,dt,xt)=>dt in gt?nt(gt,dt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):gt[dt]=xt,Ye=(gt,dt)=>{for(var xt in dt||(dt={}))rt.call(dt,xt)&&Xe(gt,xt,dt[xt]);if($e)for(var xt of $e(dt))et.call(dt,xt)&&Xe(gt,xt,dt[xt]);return gt},Ge=(gt,dt)=>Ne(gt,We(dt));const{TextArea:at}=le.default,{Panel:Qe}=he.default;function ft({form:gt,onAddTestCases:dt,formValue:xt,hack:bt,callback_url:Pt,onChangeAverage:Zt,onChangeScore:cr,onChangeFile:Ht,onAddTestCase:vr,onRemoveTestCase:Kr,onChangeLanguage:Xr,uploadData:Nr,setUploadData:fn,handleUploadRatio:Lr,isshows:ln,isProgram:Tr,addUploadFnc:vn,activeKey:on,setActiveKey:br,user:wr,attachments:er,setAttachmentIds:dr,isEdit:Xt}){var qt,yr,_r,jr,Yr,dn;const[sn,Hr]=(0,Be.useState)(!0),Qr=((qt=location==null?void 0:location.search)==null?void 0:qt.includes("select"))||!1,[sr,Wt]=(0,Be.useState)(ln),[mr,Ur]=(0,Be.useState)(er||[]),[un,kt]=(0,Be.useState)(!1),{test_set_average:Tt,test_set_score:lr}=bt;console.log(bt,"hack");const[$t,Ot]=(0,Be.useState)(!1),nr=y.default.useWatch(["hack","course_discipline_id"],gt);(0,Be.useEffect)(()=>{Ur([...er||[]])},[er]),(0,Be.useEffect)(()=>{dr(mr==null?void 0:mr.map(Sr=>Sr.container_id))},[mr]);const pr=(Sr,ur)=>{const Or=[...Nr];Or.splice(ur,1),Tt?Lr(Or):fn(Or)},gr=(Sr,ur)=>{const Or=Nr.map((Wr,tn)=>tn===ur?Ge(Ye({},Wr),{score:Sr.target.value?Number(Sr.target.value):0}):Wr);fn(Or)},Dr=Sr=>{if(Sr!=null&&Sr.length){if(Sr!=null&&Sr[0].is_file){vn(Sr,!0)();const ur=Nr.concat(Sr);bt.test_set_average?Lr(ur):fn(ur)}Sr!=null&&Sr[0].is_file||vn(Sr)}};function hr(Sr){Sr.stopPropagation()}const Ar={multiple:!0,disabled:un,withCredentials:!0,showUploadList:!1,beforeUpload:Sr=>{const ur=Sr.size/1024/1024;return ur>500||ur==0?(ke.ZP.error(`${Sr.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${ur==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"}`),Promise.reject()):(kt(!0),!0)},action:`${Ke.Z.API_SERVER}/api/attachments.json`,onChange:Sr=>{var ur,Or,Wr,tn,En,Zn;if((((ur=Sr.file)==null?void 0:ur.status)==="done"||((Or=Sr.file)==null?void 0:Or.status)==="error")&&kt(!1),((tn=(Wr=Sr.file)==null?void 0:Wr.response)==null?void 0:tn.status)==-1){ke.ZP.warning(Sr.file.response.message);return}if(((En=Sr.file)==null?void 0:En.status)==="done"){let On=[...mr,(Zn=Sr.file)==null?void 0:Zn.response];Ur(On)}}},jt=[{title:"\u6587\u4EF6",dataIndex:"filename",key:"filename",width:180,ellipsis:!0,render:Sr=>Be.createElement(pe.Z,{title:Sr},Be.createElement("span",null,Sr))},{title:"\u6587\u4EF6\u8DEF\u5F84",dataIndex:"saved_file_path",key:"saved_file_path",width:220,render:(Sr,ur)=>Be.createElement("div",{className:mt.path},Be.createElement(pe.Z,{title:Sr},Be.createElement("span",{className:mt.text},Sr)),Be.createElement(He.CopyToClipboard,{text:Sr,onCopy:()=>ke.ZP.success("\u590D\u5236\u6210\u529F")},Be.createElement(pe.Z,{title:"\u590D\u5236"},Be.createElement("i",{className:"iconfont icon-fuzhi6 ml5"}))))},{title:"\u64CD\u4F5C",width:100,render:(Sr,ur)=>Be.createElement("div",{className:"flex"},Be.createElement("div",{style:{color:"#3061D0"},className:"mr10 current",onClick:()=>{(0,ne.Nd)(ur.filename,`${Ke.Z.API_SERVER+(ur==null?void 0:ur.url)}`)}},"\u4E0B\u8F7D"),Be.createElement("div",{style:{color:"#E30000"},className:"current",onClick:()=>{we.default.confirm({title:"\u63D0\u793A",centered:!0,icon:null,content:"\u786E\u8BA4\u5220\u9664\u5417",onOk:()=>Ur(mr.filter(Or=>Or.container_id!==ur.container_id))})}},"\u5220\u9664"))}];return Be.createElement("div",{className:mt.baseInfoWrapper},Be.createElement("div",{className:mt.baseInfoRow},Be.createElement(y.default.Item,{label:"\u7F16\u7A0B\u9898\u540D\u79F0",name:["hack","name"],layout:"vertical",labelCol:{span:24},wrapperCol:{span:24},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u7A0B\u9898\u540D\u79F0"}],className:`${mt.baseLineHeight} ${mt.verticalFormItem}`},Be.createElement(le.default,{className:mt.baseFormItem,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7F16\u7A0B\u9898\u540D\u79F0"})),Pt&&Be.createElement(y.default.Item,{label:"\u5206\u503C",className:`${mt.baseLineHeight}`,required:!0,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}},Be.createElement(y.default.Item,{name:["hack","score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}],noStyle:!0},Be.createElement(ve.Z,{onBlur:Sr=>{Sr.target.value==="0"&&ke.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},precision:1,disabled:Qr,min:.1,max:100,className:mt.baseFormItem,style:{width:"100%"},addonAfter:"\u5206"}))),Be.createElement(y.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}],className:`${mt.baseLineHeight}`,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}},Be.createElement(Ie.Z,{placeholder:"\u8BF7\u7F16\u8F91\u8BD5\u9898\u63CF\u8FF0\uFF08\u5FC5\u586B\uFF09",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:160})),Be.createElement(y.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:["hack","answer_text"],valuePropName:"defaultValue",className:`${mt.baseLineHeight}`,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}},Be.createElement(Ie.Z,{placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848(\u975E\u5FC5\u586B\uFF09",miniToolbar:!0,noStorage:!0,height:140})),Be.createElement("div",{onClick:()=>Hr(!0)},Be.createElement(y.default.Item,{label:"\u9898\u76EE\u89E3\u6790",name:["hack","analysis"],className:`${mt.baseLineHeight}`,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}},Be.createElement(De.x,{watch:!1,miniToolbar:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:sn})))),Be.createElement("div",{className:mt.baseInfoRow,style:{overflow:"hidden auto",height:"calc(100vh - 130px)"}},Be.createElement(y.default.Item,{label:"\u96BE\u5EA6",name:["hack","difficult"],className:mt.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Be.createElement(ce.ZP.Group,{optionType:"button",className:mt.difficultyRadio},Be.createElement(ce.ZP.Button,{value:1,className:mt.easy},"\u7B80\u5355"),Be.createElement(ce.ZP.Button,{value:2,className:mt.medium},"\u9002\u4E2D"),Be.createElement(ce.ZP.Button,{value:3,className:mt.hard},"\u56F0\u96BE"))),(!Xt||Xt&&(xt==null?void 0:xt.course_discipline))&&Be.createElement(y.default.Item,{className:mt.baseLineHeight_label,name:["hack","course_discipline_id"],label:"\u6240\u5C5E\u8BFE\u7A0B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},Be.createElement(Ve.q,{style:{width:351,height:46},data:{course_discipline_id:(yr=xt==null?void 0:xt.course_discipline)==null?void 0:yr.course_discipline_id},tooltipTitle:Xt&&!((_r=xt==null?void 0:xt.course_discipline)!=null&&_r.is_managed)?`${(jr=xt==null?void 0:xt.course_discipline)==null?void 0:jr.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BD5\u9898\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B\u4E0E\u77E5\u8BC6\u70B9`:"",disabled:Xt&&!((Yr=xt==null?void 0:xt.course_discipline)!=null&&Yr.is_managed)})),Be.createElement(y.default.Item,{className:mt.baseLineHeight_label,labelAlign:"left",labelCol:{flex:"80px"},label:"\u77E5\u8BC6\u70B9",name:["hack","tag_discipline_ids"]},Be.createElement(Ve.i,{isPlusHeight:!0,size:"large",courseDisciplineId:nr,disabled:Xt&&!((dn=xt==null?void 0:xt.course_discipline)!=null&&dn.is_managed)})),Be.createElement(y.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",name:["hack","languages"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Be.createElement(me.default.Group,null,Be.createElement(me.default,{value:"C"},"C"),Be.createElement(me.default,{value:"C++"},"C++"),Be.createElement(me.default,{value:"Java"},"Java"),Be.createElement(me.default,{value:"Python"},"Python"))),Be.createElement(y.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u6700\u5927\u8BC4\u6D4B\u65F6\u957F",required:!0,className:mt.baseLineHeight_label},Be.createElement(y.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],noStyle:!0},Be.createElement(ve.Z,{max:10,min:1,className:mt.baseFormItem,style:{width:"100%"},addonAfter:"\u79D2"}))),Be.createElement(y.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Be.createElement(ce.ZP.Group,null,Be.createElement(ce.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Be.createElement(ce.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Be.createElement(ce.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Be.createElement("div",{className:"mb30"},Be.createElement("div",{className:"flex item-center justify-between"},Be.createElement("div",{style:{color:"#333"}},Be.createElement("span",null,"\u8D44\u6E90\u6587\u4EF6"),Be.createElement("span",{style:{color:"#666"}},"\uFF08\u5B66\u751F\u53EF\u5728\u5B9E\u9A8C\u65F6\u53EF\u89C1\u7684\u6587\u4EF6\uFF09")),Be.createElement("div",{className:mt.uploadBtnWrapper},Be.createElement(Ee.default,Ye({},Ar),Be.createElement(z.ZP,{type:"primary",loading:un},"\u4E0A\u4F20")))),(mr==null?void 0:mr.length)>0&&Be.createElement(Te.default,{style:{margin:"10px 0"},rowKey:Sr=>Sr.container_id,columns:jt,dataSource:mr,pagination:!1})),Be.createElement("div",{className:"mb30"},Be.createElement("div",{style:{color:"#666"}},"\u7F16\u8BD1\u9009\u9879"),Be.createElement("div",{style:{background:"#F6F7F9",padding:"16px",marginTop:"10px"}},Be.createElement("div",null,Be.createElement(y.default.Item,{name:["hack","strict_mode"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u4E25\u683C\u6A21\u5F0F",Be.createElement("span",{className:"c-grey-999"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5728C/C++\u8BED\u8A00\u4E2D\u7F16\u8BD1\u4EE3\u7801\u65F6\u51FA\u73B0\u7684\u8B66\u544A\u89C6\u4E3A\u7F16\u8BD1\u9519\u8BEF\uFF09"))),Be.createElement(y.default.Item,{name:["hack","var_init_check"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u53D8\u91CF\u521D\u59CB\u5316\u68C0\u6D4B",Be.createElement("span",{className:"c-grey-999"},"\uFF08\u52FE\u9009\u540E\uFF0CC/C++\u8BED\u8A00\u4EE3\u7801\u4E2D\u53D8\u91CF\u672A\u521D\u59CB\u5316\u5F53\u505A\u62A5\u9519\u5904\u7406\uFF09")))))),Be.createElement("div",{className:"mb30"},Be.createElement("div",{style:{color:"#666"}},"\u53EF\u89C1\u6027"),Be.createElement("div",{style:{background:"#F6F7F9",padding:"16px",marginTop:"10px"}},Be.createElement("div",null,Be.createElement(y.default.Item,{name:["hack","show_case"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u8BC4\u6D4B\u672A\u901A\u8FC7\u65F6\uFF0C\u663E\u793A\u5BF9\u5E94\u516C\u5F00\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u548C\u8F93\u51FA",Be.createElement("span",{className:"c-grey-999"},"\uFF08\u6559\u5E08\u4E00\u76F4\u53EF\u89C1\uFF09")))),Be.createElement("div",{className:"mt10"},Be.createElement(y.default.Item,{name:["hack","hide_actual_output"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u9690\u85CF\u5B66\u5458\u8BC4\u6D4B\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7",Be.createElement("span",{className:"c-grey-999"},"\uFF08\u6559\u5E08\u4E00\u76F4\u53EF\u89C1\uFF09")))),Be.createElement("div",{className:"mt10"},Be.createElement(y.default.Item,{name:["hack","hide_compile_status"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u9690\u85CF\u8BC4\u6D4B\u7ED3\u679C\uFF0C\u4E0D\u5C55\u793A\u5B9E\u9645\u8F93\u51FA\u548C\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7",Be.createElement("span",{className:"c-grey-999"},"\uFF08\u6559\u5E08\u4E00\u76F4\u53EF\u89C1\uFF09")))),(wr==null?void 0:wr.identity)==="teacher"&&Be.createElement("div",{className:"mt10"},Be.createElement(y.default.Item,{name:["hack","teacher_view_set"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B\u680F\u76EE\uFF0C\u52FE\u9009\u540E\u6559\u5E08\u8EAB\u4EFD\u53EF\u5C55\u793A\u6240\u6709\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u548C\u8F93\u51FA"))))),Be.createElement(y.default.Item,{label:"\u8BC4\u6D4B\u5F97\u5206\u89C4\u8303",name:["hack","test_set_score"],rules:[{required:!0}],layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}},Be.createElement(ce.ZP.Group,{onChange:cr,style:{background:"#F6F7F9",padding:"16px"}},Be.createElement(ce.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",Be.createElement("span",{style:{color:"#999"}},"\uFF08\u90E8\u5206\u6D4B\u8BD5\u96C6\u6B63\u786E\u65F6\uFF0C\u6309\u914D\u7F6E\u7684\u6BD4\u4F8B\u83B7\u5F97\u5206\u503C\uFF09")),Be.createElement(ce.ZP,{value:!0,style:{marginTop:"10px"}},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",Be.createElement("span",{style:{color:"#999"}},"\uFF08\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u80FD\u83B7\u5F97\u5206\u503C\uFF09")))),!bt.test_set_score&&Be.createElement(y.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4",rules:[{required:!0}]},Be.createElement(ce.ZP.Group,{onChange:Zt},Be.createElement(ce.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),Be.createElement(ce.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),Be.createElement("div",{style:{display:"flex",alignItems:"center"}},Be.createElement(y.default.Item,{className:mt.radioBtnWrapper,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B",rules:[{required:!0}]},Be.createElement(ce.ZP.Group,{onChange:Ht,optionType:"button",className:mt.testCaseTypeRadio,options:[{label:"\u6587\u672C",value:!1},{label:"\u6587\u4EF6",value:!0}]})),Be.createElement(y.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginLeft:"auto"}},Be.createElement("div",{className:mt.uploadBtnWrapper},!bt.is_file&&Be.createElement(z.ZP,{className:"mr20",type:"primary",onClick:vr},"\u6DFB\u52A0"),Be.createElement(z.ZP,{type:"primary",onClick:()=>Ot(!0)},"\u6279\u91CF\u4E0A\u4F20")))),Be.createElement("div",{className:mt.upBtn},(bt==null?void 0:bt.is_file)&&Be.createElement(Ae.Y2,{className:mt.uploadTableWrapper,disabled:bt==null?void 0:bt.test_set_average,inputChange:gr,showScore:!bt.test_set_score,data:Nr,onRemove:pr,isProgramHomework:!0})),!bt.is_file&&Be.createElement(y.default.List,{name:"hack_sets"},(Sr,{})=>Be.createElement(he.default,{accordion:!0,bordered:!1,activeKey:on,onChange:br,className:mt.collapseWrapper,expandIcon:({isActive:ur})=>Be.createElement("i",{className:`iconfont icon-weizhankai ${ur?mt.open:mt.close}`,style:{fontSize:14,transition:"all .2s"}})},Sr.map((ur,Or)=>Be.createElement(Qe,{key:ur.key,id:`scroll-key-${ur.key}`,header:Be.createElement(Re.Z,{align:"middle",justify:"space-between",wrap:!1},Be.createElement(_e.Z,{className:mt.panelHeader},Be.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Or+1)),Be.createElement(_e.Z,{flex:1},Be.createElement(Re.Z,{align:"middle",justify:"end",wrap:!1},!lr&&Be.createElement(_e.Z,{className:mt.rateInput},Be.createElement("span",{className:"mr20"},"\u8BC4\u5206\u5360\u6BD4"),Be.createElement("div",{onClick:hr},Be.createElement(y.default.Item,{name:[ur.name,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${Or+1}\u8BC4\u5206`}],noStyle:!0},Be.createElement(ve.Z,{className:mt.baseFormItem,min:0,max:100,disabled:Tt}))),Be.createElement("span",{className:"ml10"},"%")),Be.createElement(_e.Z,{className:"ml20"},Be.createElement(y.default.Item,{name:[ur.name,"is_public"],valuePropName:"checked",noStyle:!0},Be.createElement(me.default,null,"\u516C\u5F00"))),Be.createElement(_e.Z,{flex:"78px",className:mt.operationWrapper},Or>0&&Be.createElement(Be.Fragment,null,Be.createElement(be.Z,{className:mt.add,onClick:Wr=>{hr(Wr),vr()}}),Be.createElement(ye.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(Or+1),onCancel:hr,onConfirm:Wr=>{hr(Wr),Kr(Or)}},Be.createElement(Se.Z,{className:`${mt.remove} ml20`,onClick:hr})))))))},Be.createElement(y.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:[ur.name,"input"]},Be.createElement(at,{rows:4})),Be.createElement(y.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:[ur.name,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Be.createElement(at,{rows:4})))))),!Qr&&Be.createElement(y.default.Item,{className:mt.folderLineHeight,label:"\u653E\u5165\u6587\u4EF6\u5939",name:["hack","item_banks_group_ids"],layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}},Be.createElement(Me.Z,{scrollId:"item_banks_group_ids"}))),Be.createElement(Ae.ZP,{rootIdentifier:null,visible:$t,onClose:()=>Ot(!1),onOK:Dr,multiple:!0,defaultMultipleValue:bt==null?void 0:bt.is_file}))}var ot=ft,Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAABMBJREFUWEfVl11sk1UYx3/n7ff6NVjZnGRrGTMDlTHIIIEQgcwsIQwImEkwi+AFSvhIuPHGqRE/JvHCC2NwQRMlejHxgjCCIQwDExajjLjERMjAuSKYzTFgZV27tm+PvO3WrWxd9q5T47nrm+f5P7/zP19PBbM8Xm6Xpp4bHJBxNiMoRZI7RYk/getCcKR5hzitxYnZ5Kk9Lg3hGBeBVXp1FUHDyR2iflaBtjTJV+JxGqeCMRsgooJRgVh8XKQgZjaxRGzYsGGZqqq7pJRmvbN6NN5S81G1mLeoZPT7rgq4HYCWruSXdT6YY4UT1+Dws3D0CnTdG1MRCntFdXX1DZvNtjAnJydbHkLrDqM6ixM6m8sgzwafdyRlLQZ4rwrqv4NhNQn2xlp4uxXuh5MxAj7UgAbr6ursGwvzoTjIjyYXC0zFuBSHbsAPfvbQFUgaXfEYPLf4IcRFCMegrhz+GIBWf1J2aQHUPgXvtCYBE0CCdxNAVVVV9lVLngZLjAFhxCrNKCi6gc4MLOZauDCVt7wQHGb43g/7V8LHP41J7qmEYx0Qio19UxR2JoDcbrfdM9eB2xpNg4hLQX/QjB3IQaI5+2CKgxmdU8a95a/qnsjIevU5nZSlgA5t7WVRQWCC2NG2El7otuJEoh2K/cJGZAqoYMkWhhZsROpwWEaDMYPVvu3kdnEqBVTyuIUC5/AjDsGNPgcFKriRhBB0TaNQzDGfSN4SYrZ8pGnyw6LdN2L4PsN3fifUea7j7MnjyxL7aHTJLAvXEnWnTmzSRRnHeruVqqJr5NkjabARVeFc53wqV67BbDbT399PR8fIkdKxaFpeMBhsb2lpWZEGxIq9ROeVp0vJOM5fv+D1ymY89nT3IjHBkR+Wsrl2NxaLhd7eXpqamnSgJEMzArlcLt1is5GQEeig08pSRi6EkUraJv5MmFm9ew+5ubmEw2EaGxuJRtNPYzZgGYFWuxz4JgAJ2qQBX0UFmoMa0OXLl7OpPyE3I1BxcTF5eXmoqsrNmzfxzX2AzaQyEDJyK+Ai4i4FxZAmaAj1YRj6KyvAjED79u3D5/MlxL869imvrUm0JwRCRg5cepH75QcmFDYN/Mac9vf/GSDNHYfDkXAoEAjgtMawGlWCESNDEQOqdS6IdIeUSAChpp8+vXQZHdroyuEJOb5BgbiAMxgpW7s+takvXfiWreW3MBtlWu2+QQunfhl7x6YLlhFop9PKk4nHYWxov77GxPLa7bjd7sSmPnvqS15aeR2TYSLQ0bYF0+VIxf0/7iGXy2V3Op26ZzcbCXfv3mVoaCj96ZBSah3GfznGgOrr69uEEFn309nMJh6PdzU0NGzXNITf7w9KKWfcUGvXhBACRdHfYY5OQghxxev1VmYNFI/HuXr1auK1Ly0tnbFJjwLdkVLmzVTN7/cn+qHCQv130DiHLnq93mdGHToopXxLCKFrYz/MmXQO2vLpGVLKOwaDYW9RUdGJBJCe5NHY5ubmNx/mHposV1GU52tqar6Zie6MgM6fP28cHBzsllLOn6yoEOLCpk2b1v8rQD09PfmdnZ3bgsHgJ1MV9Hg81fn5+e1er3fcH+XpIepasu7ubr8QwjM9adq8Xm/1NGNTYX8D7tsTLLEYykMAAAAASUVORK5CYII=",Fe=ze(89392),Pe=ze(87169),te=ze(15985),fe=ze(71360),Oe=ze(59301),Ue=Object.defineProperty,xe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,it=(gt,dt,xt)=>dt in gt?Ue(gt,dt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):gt[dt]=xt,ct=(gt,dt)=>{for(var xt in dt||(dt={}))Ze.call(dt,xt)&&it(gt,xt,dt[xt]);if(je)for(var xt of je(dt))tt.call(dt,xt)&&it(gt,xt,dt[xt]);return gt},ut=(gt,dt)=>xe(gt,Ce(dt)),pt=(gt,dt,xt)=>new Promise((bt,Pt)=>{var Zt=vr=>{try{Ht(xt.next(vr))}catch(Kr){Pt(Kr)}},cr=vr=>{try{Ht(xt.throw(vr))}catch(Kr){Pt(Kr)}},Ht=vr=>vr.done?bt(vr.value):Promise.resolve(vr.value).then(Zt,cr);Ht((xt=xt.apply(gt,dt)).next())});function St(){return new Date().getTime()}const wt={loading:!0,user:null,dicts:null,status:0,data:void 0,lastedUpdateTime:0};var Et=(gt=>(gt[gt.SET_INITAL_DATA=0]="SET_INITAL_DATA",gt[gt.SET_LOADING=1]="SET_LOADING",gt[gt.SET_STATUS=2]="SET_STATUS",gt))(Et||{});function vt(gt,dt){switch(dt.type){case 0:return ct(ct({},gt),dt.payload);case 1:return ut(ct({},gt),{loading:dt.payload});case 2:return ut(ct({},gt),{status:dt.payload});default:throw new Error}}var At=()=>{var gt;const[dt]=(0,ie.useSearchParams)(),{id:xt}=(0,ie.useParams)(),[bt]=y.default.useForm(),[Pt,Zt]=(0,Be.useState)({}),[cr,Ht]=(0,Be.useState)([]),[vr,Kr]=(0,Be.useState)([]),[Xr,Nr]=(0,Be.useReducer)(vt,wt),{loading:fn,data:Lr,user:ln,dicts:Tr,status:vn}=Xr,on=Lr==null?void 0:Lr.hack_sets,br=(gt=Lr==null?void 0:Lr.hack)==null?void 0:gt.test_set_average,{callback_url:wr,express_id:er,score:dr,question_id:Xt,type:qt,pageId:yr,backUrl:_r,isIntelligentAssistant:jr}=(0,ne.oP)(),[Yr,dn]=(0,Be.useState)([]),[sn,Hr]=(0,Be.useState)(!1),[Qr,sr]=(0,Be.useState)(!1),[Wt,mr]=(0,Be.useState)(),[Ur,un]=(0,Be.useState)(!1),[kt,Tt]=(0,Be.useState)(dt.get("tabKey")=="2"?"2":"1"),lr=qt==="1",$t=(0,Be.useCallback)((Er=0)=>pt(void 0,null,function*(){var Fr;if(xt){let en={};const $r=yield(0,ee.fu)(xt);if($r.message)$r.status==="401"&&(document.location.href="/user/login");else{const{category:bn,user:kr,code:Cr,language:Mr,hack_sets:Zr,description:xn,difficult:rn,name:an,open_or_not:Un,analysis:yt,time_limit:Mt,test_set_average:Rt,test_set_score:Bt,status:Lt,tag_discipline_ids:Jt,item_banks_group_id:fr,is_file:ir=!1,hide_actual_output:rr,hide_compile_status:It,code_compile_score:Gt,languages:Vt,is_my:Kt,codes:Qt,answer_text:zt,submit_rule:Yt,show_case:tr,teacher_view_set:ar,var_init_check:Rr,strict_mode:Pr=!0,attachments:qr,course_discipline:Br}=$r,hn=(Br==null?void 0:Br.course_discipline_id)||null,gn=ir?[{input:"",output:"",score:100,position:1}]:Zr;ir?(Ht(Zr),bt.setFieldsValue({hack_sets:gn})):Ht([]);const{lastedUpdateTime:Tn}=(0,ne.oP)(),yn=Qt==null?void 0:Qt.map(Sn=>ut(ct({},Sn),{code:ae.Base64.decode(Sn==null?void 0:Sn.code)}));en=ut(ct({},en),{loading:!1,user:kr,status:Lt,lastedUpdateTime:Er||Tn||0,data:{hack_codes:{language:Mr,code:ae.Base64.decode(Cr)},hack:{category:bn,difficult:rn,name:an,description:xn,open_or_not:Un,time_limit:Mt,test_set_average:Rt,test_set_score:Bt,tag_discipline_ids:Jt,languages:Vt,score:dr||1,item_banks_group_ids:fr,is_file:ir,is_my:Kt,code_compile_score:Gt,hide_actual_output:rr,hide_compile_status:It,show_case:tr,analysis:yt,answer_text:zt,submit_rule:Yt,teacher_view_set:ar,var_init_check:Rr,strict_mode:Pr,course_discipline_id:hn},hack_sets:gn,codes:yn,attachment_ids:qr==null?void 0:qr.map(Sn=>Sn.id),attachments:qr}}),parseInt(Gt)>0&&Hr(!0),Nr({type:0,payload:en}),Zt({hack:{category:bn,difficult:rn,name:an,description:xn,open_or_not:Un,time_limit:Mt,test_set_average:Rt,test_set_score:Bt,tag_discipline_ids:Jt,score:dr||1,item_banks_group_ids:fr,is_file:ir,analysis:yt,answer_text:zt,teacher_view_set:ar,course_discipline_id:hn},codes:yn,attachment_ids:qr==null?void 0:qr.map(Sn=>Sn.id),course_discipline:Br})}}else{const{user:en}=yield(0,ee.PR)();let{difficult:$r,course_discipline_id:bn,tagIds:kr,banksIds:Cr}=(0,ne.oP)();$r=Number($r||2),Cr=[Number(Cr||0)],bn=bn?Number(bn):null;const Mr=kr?(Fr=kr==null?void 0:kr.split(","))==null?void 0:Fr.map(xn=>Number(xn)):null,Zr=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];Nr({type:0,payload:{loading:!1,user:en,status:0,data:{hack_codes:{language:"C",code:""},hack:{category:null,difficult:$r,time_limit:3,description:"",test_set_score:!1,test_set_average:!0,open_or_not:!0,name:"",item_banks_group_ids:Cr,is_file:!1,answer_text:"",submit_rule:1,teacher_view_set:!0,var_init_check:!1,strict_mode:!0,course_discipline_id:bn,tag_discipline_ids:Mr},hack_sets:[{input:"",output:"",score:100,position:1,is_public:!0}],codes:Zr,attachment_ids:[]}}}),Zt({hack:{category:null,difficult:$r,time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",item_banks_group_id:Cr,is_file:!1,answer_text:"",teacher_view_set:!0,course_discipline_id:bn,tag_discipline_ids:Mr},codes:Zr,attachment_ids:[]})}}),[xt]);(0,Be.useEffect)(()=>{try{$t()}catch(Er){console.log(Er,"----")}},[]),(0,Be.useEffect)(()=>{function Er(){return pt(this,null,function*(){let Fr=yield(0,E.U2)("item_banks_groups/mine.json");dn(Fr)})}Er()},[]);function Ot(Er,Fr,en){return pt(this,null,function*(){const{hack_sets:$r,hack_codes:bn,hack:kr,tags:Cr,codes:Mr}=ct({},Er);let Zr=[],xn=[],rn=0;const an=kr!=null&&kr.is_file?cr.map((yt,Mt)=>ut(ct({},yt),{position:Mt+1})):$r.map(yt=>ut(ct({},yt),{is_file:!1}));for(let yt of an)rn+=yt.score,yt.id&&yt.id>=0?Zr.push(yt):xn.push(yt);if(!(an!=null&&an.length)){ke.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(rn+=parseInt(kr.code_compile_score||0),rn!==100&&!kr.test_set_score){ke.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");debugger;return}if(an!=null&&an.some(yt=>!yt.output)){Cn(an==null?void 0:an.map(yt=>(yt==null?void 0:yt.position)-1)),Qn(!0),ke.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}let Un={};if(Mr==null||Mr.forEach(yt=>{Un[yt.language]=yt!=null&&yt.code?ae.Base64.encode(yt==null?void 0:yt.code):""}),Ur&&(kr.tag_discipline_ids=[]),Nr({type:1,payload:!0}),wr||(kr.score=kr.difficult*100),xt){if((yield(0,ee.l_)(xt,{hack:kr,hack_codes:bn,hack_sets:xn,update_hack_sets:Zr,tags:Cr,is_cover:en,languages:kr.languages,codes:Un,attachment_ids:vr})).status!==0){Nr({type:1,payload:!1});return}if(yr&&Fr!=="start"){ke.ZP.success("\u4FDD\u5B58\u6210\u529F"),setTimeout(()=>{window.close()},1e3);return}if(wr){if(yield(0,ee.j2)(xt),wr.includes("paperlibrary")){(yield(0,re.oF)({id:er,question_id:Xt,item_type:oe.c.Program,name:kr.name,question_score:kr.score,difficulty:kr.difficult,course_discipline_id:kr.course_discipline_id,tag_discipline_ids:kr.tag_discipline_ids,item_banks_group_ids:kr.item_banks_group_ids,analysis:kr.analysis})).status===0&&(dt.get("pageType")=="course"?dt.get("updateType")=="course"?ie.history.replace(dt.get("callback_url")+`&defaultActiveKey=0&pageType=course&updateType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")+`&pageType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")));return}const{status:Mt}=yield(0,ee.GM)(Xt,{question_type:6,question_score:kr.score,question_title:kr.name,description:kr.description,course_discipline_id:kr.course_discipline_id,tag_discipline_ids:kr.tag_discipline_ids,item_banks_group_ids:kr.item_banks_group_ids,identifier:xt,analysis:kr.analysis});if(Mt===0){if(Fr==="start")return;dt.get("pageType")=="course"?dt.get("updateType")=="course"?ie.history.replace(dt.get("callback_url")+`&defaultActiveKey=0&pageType=course&updateType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")+`&pageType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url"))}}else ke.ZP.success("\u4FDD\u5B58\u6210\u529F"),$t(St()),dt.get("is_smart_plan")?ie.history.push(`${dt.get("backUrl")}`):Fr!=="start"&&vn===0&&we.default.confirm({icon:null,title:"\u63D0\u793A",width:452,centered:!0,content:Oe.createElement("div",null,"\u7F16\u7A0B\u9898\u5DF2\u4FDD\u5B58!\u76EE\u524D\u5916\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u53D1\u5E03\u540E\u5373\u53EF\u5E94\u7528\u5230\u81EA\u5DF1\u7BA1\u7406\u7684\u8BFE\u5802\uFF0C\u662F\u5426\u7ACB\u5373\u53D1\u5E03?"),cancelText:"\u7A0D\u540E\u518D\u8BF4",okText:"\u7ACB\u5373\u53D1\u5E03",onCancel:()=>{ie.history.replace(`/problemset?page=${dt.get("page")}`)},onOk:()=>pt(this,null,function*(){yield nr(xt),ie.history.replace(`/problemset?page=${dt.get("page")}`)})});Nr({type:1,payload:!1})}else{const{identifier:yt,exam_identifier:Mt,hack_item_bank_id:Rt}=yield(0,ee.zQ)({hack:kr,hack_codes:bn,hack_sets:an,tags:Cr,languages:kr.languages,examination_bank_id:er||null,homework_common_id:yr?-1:null,codes:Un,attachment_ids:vr});if(Nr({type:1,payload:!1}),Fr==="start")return;if(yr){let Bt=[Rt],Lt=localStorage.getItem(yr);Lt=Lt?JSON.parse(Lt):[],Lt=Array.isArray(Lt)?Lt:[],Bt=[...Bt,...Lt],localStorage.setItem(yr,JSON.stringify(Bt)),ke.ZP.success("\u4FDD\u5B58\u6210\u529F"),setTimeout(()=>{window.close()},1e3);return}if(yt)if(!wr)mr(yt),sr(!0);else if(yield(0,ee.j2)(yt),xt)dt.get("pageType")=="course"?dt.get("updateType")=="course"?ie.history.replace(dt.get("callback_url")+`&defaultActiveKey=0&pageType=course&updateType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")+`&pageType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url"));else{if(wr.includes("paperlibrary")){(yield(0,re.oF)({id:er,item_type:oe.c.Program,name:kr.name,question_score:kr.score,difficulty:kr.difficult,course_discipline_id:kr.course_discipline_id,tag_discipline_ids:kr.tag_discipline_ids,identifier:Mt,analysis:kr.analysis})).status===0&&(dt.get("pageType")=="course"?dt.get("updateType")=="course"?ie.history.replace(dt.get("callback_url")+`&defaultActiveKey=0&pageType=course&updateType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")+`&pageType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")));return}const{status:Bt}=yield(0,ee.MK)(parseInt(er,10),{question_type:6,question_score:kr.score,question_title:kr.name,identifier:yt,tag_discipline_ids:kr.tag_discipline_ids,analysis:kr.analysis});Bt===0&&(dt.get("pageType")=="course"?dt.get("updateType")=="course"?ie.history.replace(dt.get("callback_url")+`&defaultActiveKey=0&pageType=course&updateType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")+`&pageType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")))}}})}function nr(Er){return pt(this,null,function*(){const Fr=yield(0,ee.j2)(Er);Fr.status===0?(ke.ZP.success("\u53D1\u5E03\u6210\u529F"),Nr({type:2,payload:1})):ke.ZP.info(Fr.message)})}function pr(){return pt(this,null,function*(){const Er=yield(0,ee.ZS)(xt);Er.status===0?(ke.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"),Nr({type:2,payload:0})):ke.ZP.info(Er.message)})}function gr(){return pt(this,null,function*(){var Er,Fr,en,$r,bn,kr,Cr;try{yield bt.validateFields();const{new_list:Mr}=bt.getFieldsValue();if(Mr!=null&&Mr.some(Zr=>!Zr.output))return Cn(Mr==null?void 0:Mr.map(Zr=>(Zr==null?void 0:Zr.position)-1)),Qn(!0),ke.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject()}catch(Mr){const Zr=(Fr=(Er=Mr==null?void 0:Mr.errorFields)==null?void 0:Er.filter(rn=>{var an;return((an=rn==null?void 0:rn.name)==null?void 0:an[0])=="hack_sets"}))==null?void 0:Fr.map(rn=>{var an;return(an=rn==null?void 0:rn.name)==null?void 0:an[1]});Zr.length>0&&Cn(Zr),bt.scrollToField(($r=(en=Mr==null?void 0:Mr.errorFields)==null?void 0:en[0])==null?void 0:$r.name,{behavior:"smooth",block:"start"});const xn=(Cr=(kr=(bn=Mr==null?void 0:Mr.errorFields)==null?void 0:bn[0])==null?void 0:kr.errors)==null?void 0:Cr[0];return ke.ZP.error(xn),Promise.reject()}})}function Dr(){return pt(this,null,function*(){yield gr();const Er=bt.getFieldsValue();Ot(Er,"start"),setTimeout(()=>pt(this,null,function*(){const{identifier:Fr}=yield(0,ee.uE)(xt);lr?yr?window.location.href=`/myproblems/${Fr}?type=1&pageId=${yr}&backUrl=${_r}`:window.location.href=`/myproblems/${Fr}?type=1`:dt.get("is_smart_plan")?window.location.href=`/myproblems/${Fr}?is_smart_plan=${dt.get("is_smart_plan")}&backUrl=${dt.get("backUrl")}`:window.location.href=`/myproblems/${Fr}`}),400)})}function hr(){var Er;if(yr){window.close();return}if(dt.get("is_smart_plan")){ie.history.push(`${dt.get("backUrl")}`);return}if(dt.get("pageType")=="course")dt.get("updateType")=="course"?ie.history.replace(dt.get("callback_url")+`&defaultActiveKey=0&pageType=course&updateType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`):ie.history.replace(dt.get("callback_url")+`&pageType=course&courseId=${dt.get("courseId")}&stageId=${dt.get("stageId")}`);else if(wr)ie.history.replace(dt.get("callback_url")+(jr?"&isIntelligentAssistant=true":""));else if(lr){let Fr=(Er=localStorage.getItem("program_homework"))==null?void 0:Er.split(",");ie.history.push(`/classrooms/${Fr==null?void 0:Fr[0]}/program_homework/${Fr==null?void 0:Fr[1]}/detail`)}else ie.history.replace(`/problemset?page=${dt.get("page")}`)}const Ar=Er=>{let Fr=parseInt(bt.getFieldValue("hack").code_compile_score)||0;const en=Math.floor((100-Fr)/Er.length),$r=en+(100-Fr)%Er.length,bn=Er.map((kr,Cr)=>Cr===Er.length-1?ut(ct({},kr),{score:$r}):ut(ct({},kr),{score:en}));Ht(bn)};function jt(Er){Er.target.value||Ar(cr),Nr({type:0,payload:{data:ut(ct({},Lr),{hack:ut(ct({},Lr.hack),{test_set_score:Er.target.value})})}})}function Sr(Er){Nr({type:0,payload:{data:ut(ct({},Lr),{hack:ut(ct({},Lr.hack),{is_file:Er.target.value})})}})}function ur(Er){const Fr=Er.target.value;Fr&&Ar(cr);const en=bt.getFieldValue("hack_sets");Nr({type:0,payload:{data:ut(ct({},Lr),{hack_sets:en,hack:ut(ct({},Lr.hack),{test_set_average:Fr})})}})}function Or(){let Er=bt.getFieldValue("hack_sets"),Fr=parseInt(bt.getFieldValue("hack").code_compile_score)||0;const en=Er.length+1,$r=Math.floor((100-Fr)/en),bn=(100-Fr)%en;Er.map((kr,Cr)=>(br&&(kr.score=$r),kr.position=Cr+1,kr)),Er.push({input:"",output:"",position:en,is_public:!0,score:br?$r+bn:0}),bt.setFieldsValue({hack_sets:Er}),Nr({type:0,payload:{data:ut(ct({},Lr),{hack_sets:Er})}}),Cn(Er.length-1),Qn(!0)}function Wr(){let Er=bt.getFieldValue("hack_sets"),Fr=parseInt(bt.getFieldValue("hack").code_compile_score)||0;const en=Er.length,$r=Math.floor((100-Fr)/en),bn=(100-Fr)%en;Er.map((kr,Cr)=>(br&&(kr.score=$r,Cr===Er.length-1&&(kr.score=$r+bn)),kr.position=Cr+1,kr)),bt.setFieldsValue({hack_sets:Er}),Nr({type:0,payload:{data:ut(ct({},Lr),{hack_sets:Er})}})}(0,Be.useEffect)(()=>{if(br){let Er=parseInt(bt.getFieldValue("hack").code_compile_score)||0;const Fr=on==null?void 0:on.length,en=Math.floor((100-Er)/Fr),$r=(100-Er)%Fr;on==null||on.map((bn,kr)=>(bn.score=en,bn.position=kr+1,kr===Fr-1&&(bn.score=en+$r),bn)),Nr({type:0,payload:{data:ut(ct({},Lr),{hack_sets:on})}}),bt.setFieldsValue({hack_sets:on})}},[br]);function tn(Er){let Fr=bt.getFieldValue("hack_sets"),en=parseInt(bt.getFieldValue("hack").code_compile_score)||0;const $r=(Fr==null?void 0:Fr.length)-1,bn=Math.floor((100-en)/$r),kr=(100-en)%$r;Fr.splice(Er,1),Fr==null||Fr.map((Cr,Mr)=>(br&&(Cr.score=bn,Mr===$r-1&&(Cr.score=bn+kr)),Cr.position=Mr+1,Cr)),Nr({type:0,payload:{data:ut(ct({},Lr),{hack_sets:Fr})}}),bt.setFieldsValue({hack_sets:Fr})}function En(Er){Nr({type:0,payload:{data:ut(ct({},Lr),{hack_codes:ut(ct({},Lr.hack_codes),{language:Er})})}})}const Zn=Er=>{var Fr;if(console.log(Er,"changedValues"),"course_discipline_id"in((Er==null?void 0:Er.hack)||{})){const en=ut(ct({},bt.getFieldsValue()),{hack:ut(ct({},(Fr=bt.getFieldsValue())==null?void 0:Fr.hack),{tag_discipline_ids:[]})});bt.setFieldsValue(en),Zt(ct(ct({},Pt),en));return}Zt(ct(ct({},Pt),bt.getFieldsValue()))},On=(Er,Fr=!1)=>{var en,$r;if(Fr)return()=>{Nr({type:0,payload:{data:ut(ct({},Lr),{hack:ut(ct({},Lr.hack),{is_file:!0})})}}),bt.setFieldsValue({hack:{is_file:!0}})};const bn=Er==null?void 0:Er.map(rn=>({input:rn.input,output:rn.output,score:0,position:1}));let kr=($r=(en=bt.getFieldValue("hack_sets"))==null?void 0:en.filter(rn=>rn.input||rn.output))==null?void 0:$r.concat(bn),Cr=parseInt(bt.getFieldValue("hack").code_compile_score)||0;const Mr=kr==null?void 0:kr.length,Zr=Math.floor((100-Cr)/Mr),xn=(100-Cr)%Mr;kr==null||kr.map((rn,an)=>(br&&(rn.score=Zr,an===Mr-1&&(rn.score=Zr+xn)),rn.position=an+1,rn)),Nr({type:0,payload:{data:ut(ct({},Lr),{hack_sets:kr,hack:ut(ct({},Lr.hack),{is_file:!1})})}}),bt.setFieldsValue({hack_sets:kr,hack:{is_file:!1}})},An=()=>pt(void 0,null,function*(){var Er,Fr,en,$r,bn,kr,Cr,Mr;try{yield bt.validateFields();const Zr=yield bt.getFieldsValue();if(dt.get("exercise")&&!wr.includes("paperlibrary")&&((Er=Lr==null?void 0:Lr.hack)!=null&&Er.is_my)){const xn=Zr==null?void 0:Zr.hack;let rn=0;const an=xn!=null&&xn.is_file?cr.map((Un,yt)=>ut(ct({},Un),{position:yt+1})):on.map(Un=>ut(ct({},Un),{is_file:!1}));for(let Un of an)rn+=Un.score;if(!(an!=null&&an.length)){ke.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(rn+=parseInt(xn.code_compile_score||0),rn!==100&&!xn.test_set_score){ke.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");debugger;return}we.default.confirm({title:"\u4FDD\u5B58\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u8BD5\u9898\u5E93\u4E2D\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u8BD5\u9898\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:()=>Ot(Zr,"",1),onCancel:()=>Ot(Zr,"",0)});return}Ot(Zr,"",1)}catch(Zr){const xn=(en=(Fr=Zr==null?void 0:Zr.errorFields)==null?void 0:Fr.filter(an=>{var Un;return((Un=an==null?void 0:an.name)==null?void 0:Un[0])=="hack_sets"}))==null?void 0:en.map(an=>{var Un;return(Un=an==null?void 0:an.name)==null?void 0:Un[1]});xn.length>0&&Cn(xn),bt.scrollToField((bn=($r=Zr==null?void 0:Zr.errorFields)==null?void 0:$r[0])==null?void 0:bn.name,{behavior:"smooth",block:"start"});const rn=(Mr=(Cr=(kr=Zr==null?void 0:Zr.errorFields)==null?void 0:kr[0])==null?void 0:Cr.errors)==null?void 0:Mr[0];ke.ZP.error(rn)}}),[Hn,Cn]=(0,Be.useState)(0),[Xn,Qn]=(0,Be.useState)(!1);(0,Be.useEffect)(()=>{if(Xn){const Er=document.getElementById(`scroll-key-${Hn}`);Er==null||Er.scrollIntoView({behavior:"smooth"}),Qn(!1)}},[Hn,Xn]);const Jn=[{name:lr?"\u7F16\u7A0B\u4F5C\u4E1A":dt.get("is_smart_plan")?"\u8BFE\u4EF6":"\u7F16\u7A0B\u9898",onClick:hr},{name:(xt?"\u7F16\u8F91":"\u65B0\u5EFA")+"\u7F16\u7A0B\u9898",onClick:hr}];return console.log(Lr,"data"),Oe.createElement(x.Z,{spinning:fn,delay:500},Lr?Oe.createElement("div",{className:mt.bg},Oe.createElement("div",{className:mt.nav},Oe.createElement(fe._b,{dataSource:Jn,className:mt.crumbs}),Oe.createElement(te.d4,{activeKey:kt,tabs:[{key:"1",label:"\u9898\u76EE\u8BBE\u7F6E"},{key:"2",label:"\u5B66\u5458\u521D\u59CB\u4EE3\u7801"}],onChange:Er=>pt(void 0,null,function*(){Er==="2"&&(yield gr()),Tt(Er)})})),Oe.createElement(y.default,{colon:!1,form:bt,initialValues:Lr,scrollToFirstError:!0,layout:"horizontal",name:"layout-multiple-horizontal",onValuesChange:Zn},Oe.createElement("div",{className:mt.contentWrapper},Oe.createElement("div",{style:{display:kt==="1"?"block":"none"}},Oe.createElement(ot,{onAddTestCases:Wr,form:bt,MyGroup:Yr,formValue:Pt,onChangeLanguage:En,onRemoveTestCase:tn,onAddTestCase:Or,dicts:Tr,callback_url:wr,hack:Lr.hack,onChangeScore:jt,onChangeAverage:ur,onChangeFile:Sr,uploadData:cr,setUploadData:Ht,handleUploadRatio:Ar,isshows:sn,isProgram:lr,addUploadFnc:On,activeKey:Hn,setActiveKey:Cn,user:ln,attachments:Lr==null?void 0:Lr.attachments,setAttachmentIds:Kr,isEdit:!!xt})),Oe.createElement("div",{style:{display:kt==="2"?"block":"none"},className:mt.codePanelWrapper},Oe.createElement(y.default.Item,{name:"codes",noStyle:!0},Oe.createElement(de.Z,{form:bt}))))),Oe.createElement("div",{className:mt.buttonFixed},xt?Oe.createElement(Be.Fragment,null,Oe.createElement("div",{className:mt.cancelBtn,onClick:hr},"\u53D6\u6D88"),Oe.createElement(z.ZP,{className:`${mt.saveBtn} ml20`,type:"primary",onClick:()=>pt(void 0,null,function*(){kt==="1"&&(yield gr()),Tt(kt==="1"?"2":"1")})},kt==="1"?"\u4E0B\u4E00\u6B65":"\u4E0A\u4E00\u6B65"),Oe.createElement(z.ZP,{className:`${mt.saveBtn} ml20`,loading:fn,type:"primary",onClick:(0,Fe.throttle)(An,1e3)},"\u4FDD\u5B58"),Oe.createElement(z.ZP,{type:"primary",className:`${mt.challengeBtn} ml20`,onClick:(0,Fe.throttle)(Dr,1e3),icon:Oe.createElement("img",{src:Je,width:18})},vn?"\u5F00\u59CB\u6311\u6218":"\u6A21\u62DF\u6311\u6218")):Oe.createElement(Be.Fragment,null,Oe.createElement("div",{className:mt.cancelBtn,onClick:hr},"\u53D6\u6D88"),Oe.createElement(z.ZP,{className:`${mt.saveBtn} ml20`,type:"primary",onClick:()=>pt(void 0,null,function*(){kt==="1"&&(yield gr()),Tt(kt==="1"?"2":"1")})},kt==="1"?"\u4E0B\u4E00\u6B65":"\u4E0A\u4E00\u6B65"),Oe.createElement(z.ZP,{className:`${mt.saveBtn} ml20`,loading:fn,type:"primary",onClick:(0,Fe.throttle)(An,1e3)},"\u4FDD\u5B58")))):Oe.createElement("div",{className:"vh100"}),Oe.createElement(we.default,{centered:!0,maskClosable:!1,open:Qr,title:"\u63D0\u793A",width:"484px",onCancel:()=>{ie.history.push(`/problems/newedit/${Wt}`),sr(!1)},footer:null},Oe.createElement("div",null,Oe.createElement("div",{style:{lineHeight:"26px"}},"\u672C\u6B21\u8BD5\u9898\u5185\u5BB9\u4FEE\u6539\u5DF2\u4FDD\u5B58\u6210\u529F\uFF0C\u53EF\u70B9\u51FB\u201C\u9000\u51FA\u201D\u8FD4\u56DE\u5230\u8BD5\u9898\u5E93\u9875\u9762\uFF0C\u70B9\u51FB\u201C\u6A21\u62DF\u5B9E\u6218\u201D\u8FDB\u884C\u4EE3\u7801\u8C03\u8BD5"),Oe.createElement("div",{style:{color:"#E99237",fontSize:12,marginTop:12}},Oe.createElement(Pe.Z,{style:{marginRight:10}}),"\u5982\u672C\u8BD5\u9898\u5B66\u751F\u8FDB\u5165\u9700\u8981\u5C55\u793A\u521D\u59CB\u4EE3\u7801\uFF0C\u8BF7\u70B9\u51FB",Oe.createElement("span",{style:{color:"#165DFF",cursor:"pointer",textDecoration:"underline"},onClick:()=>{ie.history.push(`/problems/newedit/${Wt}?tabKey=2`)}},"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801"),"\u8FDB\u884C\u8BBE\u7F6E")),Oe.createElement("div",{className:"mt30 mb20",style:{display:"flex",justifyContent:"flex-end"}},Oe.createElement(z.ZP,{className:"mr20",onClick:()=>{ie.history.replace(`/problemset?page=${dt.get("page")}`)}},"\u9000\u51FA"),Oe.createElement(z.ZP,{type:"primary",onClick:()=>pt(void 0,null,function*(){const Er=yield(0,ee.uE)(Wt);lr?window.location.href=`/myproblems/${Er==null?void 0:Er.identifier}?type=1`:window.location.href=`/myproblems/${Er==null?void 0:Er.identifier}`})},"\u6A21\u62DF\u5B9E\u6218"))))}},16502:function(Nt,Dt,ze){"use strict";ze.d(Dt,{GM:function(){return ie},MK:function(){return z},PR:function(){return mt},ZS:function(){return ee},d1:function(){return y},fu:function(){return ke},j2:function(){return ae},l_:function(){return we},uE:function(){return de},zQ:function(){return x}});var Be=ze(82093);function mt(){return(0,Be.U2)("problems/new.json")}function y(ne="question"){return(0,Be.U2)("disciplines.json",{source:ne})}function ke(ne){return(0,Be.U2)(`problems/${ne}/edit.json`)}function we(ne,re){return(0,Be.gz)(`problems/${ne}.json`,re)}function x(ne){return(0,Be.v_)("problems.json",ne)}function z(ne,re){return(0,Be.v_)(`exercises/${ne}/exercise_questions.json`,re)}function ie(ne,re){return(0,Be.gz)(`exercise_questions/${ne}.json`,re)}function ae(ne){return(0,Be.v_)(`problems/${ne}/publish.json`)}function ee(ne){return(0,Be.v_)(`problems/${ne}/cancel_publish.json`)}function de(ne){return(0,Be.U2)(`problems/${ne}/start.json`)}function E(ne,re){return post("tag_disciplines.json",{name:re,sub_discipline_id:ne})}},12062:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Y2:function(){return Ke},ZP:function(){return Ve}});var Be=ze(59301),mt=ze(14566),y=ze(6767),ke=ze(62957),we=ze(77019),x=ze(47889),z=ze(99571),ie=ze(62673),ae=ze(25399),ee=ze(37568),de={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},E="data:image/png;base64,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",ne=ze(47257),re=ze.n(ne),oe=ze(25992),le=ze(82093),he=ze(1012),pe=ze(49661),ve=ze(41550),ce=ze(59301),me=Object.defineProperty,Ee=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,be=(nt,Ne,We)=>Ne in nt?me(nt,Ne,{enumerable:!0,configurable:!0,writable:!0,value:We}):nt[Ne]=We,Se=(nt,Ne)=>{for(var We in Ne||(Ne={}))_e.call(Ne,We)&&be(nt,We,Ne[We]);if(Re)for(var We of Re(Ne))ye.call(Ne,We)&&be(nt,We,Ne[We]);return nt},Ie=(nt,Ne)=>Ee(nt,Te(Ne)),Me=(nt,Ne,We)=>new Promise(($e,rt)=>{var et=Ge=>{try{Ye(We.next(Ge))}catch(at){rt(at)}},Xe=Ge=>{try{Ye(We.throw(Ge))}catch(at){rt(at)}},Ye=Ge=>Ge.done?$e(Ge.value):Promise.resolve(Ge.value).then(et,Xe);Ye((We=We.apply(nt,Ne)).next())});const{Dragger:Ae}=mt.default,De=nt=>{const Ne=at=>at&&at.substring(0,at.lastIndexOf("."));for(var We=[...nt],$e=0,rt=[],et=0;et<We.length;et++){for(var Xe="",Ye=0;Ye<rt.length;Ye++)if(Ne(rt[Ye][0].name)==Ne(We[et].name)){$e=1,Xe=Ye;break}if($e==1)rt[Xe].push(We[et]),$e=0;else if($e==0){let at=new Array;at.push(We[et]),rt.push(at)}}return rt.map(at=>{if(at.forEach(Qe=>{let ft=Qe.name.split(/\.(?=[^\.]+$)/);Qe.name=`${ft[0]}.${ft[1].toLowerCase()}`}),at[0].name.includes(".in"))return at.length===2?at:[at[0],{}];if(at[0].name.includes(".out"))return at.length===2?at.reverse():[{},at[0]]})},He=({onClose:nt,onOK:Ne,visible:We,wrapClassName:$e,rootIdentifier:rt,multiple:et=!1,defaultMultipleValue:Xe=!0})=>{const[Ye,Ge]=(0,Be.useState)([]),[at,Qe]=(0,Be.useState)({}),[ft,ot]=(0,Be.useState)(!1),[Je,Fe]=(0,Be.useState)(!0),Pe=(0,Be.useRef)([]),te=(0,Be.useRef)(0),fe=()=>{nt()};(0,Be.useEffect)(()=>{Oe()},[]),(0,Be.useEffect)(()=>{We&&(Pe.current=[],te.current=0,Ge([]),Fe(Xe))},[We]);const Oe=()=>Me(void 0,null,function*(){try{const ct=yield(0,le.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),ut=JSON.parse((0,oe.pe)(ct.data));Qe(ut)}catch(ct){}}),Ue=ct=>ct&&ct.substring(0,ct.lastIndexOf(".")),xe=ct=>{var ut,pt;const St=Ue((ut=ct[0])==null?void 0:ut.name)||Ue((pt=ct[1])==null?void 0:pt.name),wt=Ye.filter(Et=>Ue(Et.name)!==St);Pe.current=[...wt],Ge([...wt])},Ce=ct=>{if(!Je){const vt=new FormData;vt.append("file",ct.file),(0,le.ZP)("/api/attachments/get_file_content.json",{method:"post",body:vt},!0).then(gt=>{if(gt.status===0){te.current=te.current+1;const dt=Pe.current.map(xt=>{var bt;if(xt.name===ct.name){const Pt=Se({},xt);return(bt=ct==null?void 0:ct.name)!=null&&bt.includes(".in")?Pt.input=gt==null?void 0:gt.content:Pt.output=gt==null?void 0:gt.content,Pt}return xt});if(Pe.current=[...dt],Ge([...dt]),te.current>0&&te.current===Ye.length){ot(!1);let xt=De(dt);xt=xt.filter(bt=>{var Pt,Zt;return!!((Pt=bt[0])!=null&&Pt.name&&((Zt=bt[1])!=null&&Zt.name))}),xt=xt.map(bt=>Ie(Se(Se({},bt[0]),bt[1]),{is_file:!1})),Ne(xt),nt()}}else ot(!1),nt()});return}const ut=new(re())({endpoint:at.end_point,region:at.region,accessKeyId:at.access_key_id,accessKeySecret:at.access_key_secret,bucket:at.bucket,stsToken:at.security_token}),pt=ct.name,St={container_type:"TestSet",file_name:pt},wt=(0,he.Z)();let Et=`testsets/${rt}/${wt}${pt.indexOf(".")>-1?"."+pt.split(".").pop():""}`;rt===null&&(Et=`testsets/${wt}${pt.indexOf(".")>-1?"."+pt.split(".").pop():""}`),ut.multipartUpload(Et,new Blob([ct.file],{type:ct.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:pt+""},url:at==null?void 0:at.callback_url,host:at==null?void 0:at.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,le.rz)(St)}}).then(function(vt){if(vt.data.status===0){te.current=te.current+1;const At=Pe.current.map(gt=>{var dt,xt,bt,Pt,Zt,cr,Ht,vr,Kr,Xr,Nr,fn,Lr,ln,Tr,vn,on;if(gt.name===((xt=(dt=vt.data)==null?void 0:dt.data)==null?void 0:xt.file_name)){const br=Se({},gt);return(Zt=(Pt=(bt=vt.data)==null?void 0:bt.data)==null?void 0:Pt.file_name)!=null&&Zt.includes(".in")?(br.in_object_key=(Ht=(cr=vt.data)==null?void 0:cr.data)==null?void 0:Ht.object,br.in_object_size=(Kr=(vr=vt.data)==null?void 0:vr.data)==null?void 0:Kr.size,br.input=(Nr=(Xr=vt.data)==null?void 0:Xr.data)==null?void 0:Nr.file_name,br.in_file=ct):(br.out_object_key=(Lr=(fn=vt.data)==null?void 0:fn.data)==null?void 0:Lr.object,br.out_object_size=(Tr=(ln=vt.data)==null?void 0:ln.data)==null?void 0:Tr.size,br.output=(on=(vn=vt.data)==null?void 0:vn.data)==null?void 0:on.file_name,br.out_file=ct),br}return gt});if(Pe.current=[...At],Ge([...At]),te.current>0&&te.current===Ye.length){ot(!1);let gt=De(At);gt=gt.filter(dt=>{var xt,bt;return!!((xt=dt[0])!=null&&xt.name&&((bt=dt[1])!=null&&bt.name))}),gt=gt.map(dt=>Ie(Se(Se({},dt[0]),dt[1]),{is_file:!0})),Ne(gt),nt()}}})},je=ct=>new Promise((ut,pt)=>{let St=0,wt=[];for(let Et=0;Et<ct.length;Et++)ct[Et].file.slice(0,1).arrayBuffer().then(()=>{St++,St===ct.length&&(wt.length?(y.ZP.warning(`${wt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),pt()):ut(ct))}).catch(vt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",vt),St++,wt.push(ct[Et].name),St===ct.length&&(wt.length?(y.ZP.warning(`${wt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),pt()):ut(ct))})}),Ze=()=>Me(void 0,null,function*(){if(Ye.length===0){y.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield je(Ye),ot(!0),De(Ye).some(ut=>{var pt,St;return!((pt=ut[0])!=null&&pt.name&&((St=ut[1])!=null&&St.name))})){ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Me(void 0,null,function*(){Ye.map(ut=>Me(void 0,null,function*(){Ce(ut)}))}),onCancel:()=>{ot(!1)}});return}Ye.map(ut=>Me(void 0,null,function*(){Ce(ut)}))}),tt={name:"file",fileList:Ye,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:ct=>{if(Ye!=null&&Ye.some(pt=>pt.name===ct.name))return y.ZP.info(`${ct.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(ct.size/1024/1024>100)return y.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(ct.name))return y.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const ut={name:ct.name,uid:ct.uid,file:ct,percent:0};return Ye.push(ut),Pe.current=[...Ye],Ge([...Ye]),!1}},it=De(Ye);return console.log(Ye,it,"fileList"),ce.createElement(ke.default,{open:We,wrapClassName:$e,onOk:Ze,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ft},onCancel:fe,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ce.createElement("div",{className:de.wrap},Ye.length?ce.createElement("div",null,ce.createElement(we.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ce.createElement("div",{style:{visibility:et?"visible":"hidden"}},ce.createElement("span",{className:de.greyText},"\u7528\u4F8B\u7C7B\u578B"),ce.createElement(x.ZP.Group,{className:`ml20 ${de.testCaseRadio}`,optionType:"button",value:Je,onChange:ct=>Fe(ct.target.value)},ce.createElement(x.ZP,{value:!1},"\u6587\u672C"),ce.createElement(x.ZP,{value:!0},"\u6587\u4EF6"))),ce.createElement(mt.default,Se({},tt),ce.createElement(z.ZP,{type:"primary",className:de.btnS},ce.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ce.createElement(Ke,{data:it,onRemove:xe})):ce.createElement("div",{className:`${de.noData} mb30`},ce.createElement(mt.default.Dragger,Ie(Se({},tt),{className:de.dragger}),ce.createElement("img",{src:E,alt:"",className:"mb20"}),ce.createElement("div",null,ce.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ce.createElement("span",{className:de.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ce.createElement("div",{className:de.text},ce.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ce.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ce.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ce.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ce.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ce.createElement("br",null))))},Ke=({data:nt=[],onRemove:Ne,width:We="auto",showScore:$e=!1,disabled:rt=!1,inputChange:et,onEvaluatingChange:Xe,onSelectAll:Ye,checkAll1:Ge,checkAll2:at,checkAll3:Qe,checkAll4:ft,checkAll5:ot,showEvaluatingSetting:Je=!1,className:Fe="",isProgramHomework:Pe=!1})=>{const te={value:"",filename:"",dataUrl:""},[fe,Oe]=(0,Be.useState)(Se({},te)),Ue=je=>{let Ze=document.createElement("a");document.body.appendChild(Ze);let tt=URL.createObjectURL(je.file);Ze.href=tt,Ze.download=je.name,Ze.click(),URL.revokeObjectURL(tt),document.body.removeChild(Ze)},xe=(je,Ze)=>{(0,pe.LR)(je,Ze)},Ce=(je,Ze)=>{ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ce.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Ne(je,Ze)},onCancel:()=>{}})};return nt.length?ce.createElement("div",{className:Fe,style:{width:We}},ce.createElement("div",{className:`${Pe?de.headProgram:de.head}`},Je&&ce.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:Ge,onChange:je=>{Ye(je.target.checked,"hidden")}}),ce.createElement(ae.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ce.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ce.createElement("div",{style:{width:Pe?"25%":"15%"}},"\u7528\u4F8B"),ce.createElement("div",{style:{width:$e?Pe?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ce.createElement("div",{style:{width:$e?Pe?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),$e&&ce.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Je&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:ft,onChange:je=>{Ye(je.target.checked,"input_visible")}}),ce.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Je&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:at,onChange:je=>{Ye(je.target.checked,"is_invisible")}}),ce.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Je&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:ot,onChange:je=>{Ye(je.target.checked,"actual_output_visible")}}),ce.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Je&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:Qe,onChange:je=>{Ye(je.target.checked,"last_match_rule")}}),ce.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ce.createElement("div",{className:de.operation,style:Pe?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ce.createElement("div",{className:de.listWrapper,style:{boxShadow:Pe?"0px 2px 4px 0px #EAEEF4":"unset"}},nt.map((je,Ze)=>{var tt,it,ct,ut;return ce.createElement("div",{key:Ze,className:de.list,style:Pe?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Je&&ce.createElement("div",{style:{width:"15%"}},ce.createElement(ie.default,{checked:!!je.hidden,onChange:pt=>{Xe(pt.target.checked,Ze,"hidden")}})),ce.createElement("div",{style:{width:Pe?"25%":"15%",paddingLeft:Pe?"5px":"0px",paddingRight:Pe?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Ze+1),ce.createElement("div",{className:de.info,style:{width:$e?Pe?"20%":"15%":"25%"}},ce.createElement("span",{title:je.input||((tt=je[0])==null?void 0:tt.name),onClick:()=>Me(void 0,null,function*(){let pt;je.input?je.input_file_url?pt=je.input_file_url:pt=je.in_file:pt=je[0];let St;typeof pt=="string"?(St=yield fetch(pt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Oe({value:yield St.text(),filename:"",dataUrl:pt})):(St=yield(0,pe.db)(pt.file),Oe({value:St.text,filename:pt.name,dataUrl:St.link}))})},je.input||((it=je[0])==null?void 0:it.name))),ce.createElement("div",{className:de.info,style:{width:$e?Pe?"20%":"15%":"25%"}},ce.createElement("span",{title:je.output||((ct=je[1])==null?void 0:ct.name),onClick:()=>Me(void 0,null,function*(){let pt;je.input?je.output_file_url?pt=je.output_file_url:pt=je.out_file:pt=je[1];let St;typeof pt=="string"?(St=yield fetch(pt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Oe({value:yield St.text(),filename:"",dataUrl:pt})):(St=yield(0,pe.db)(pt.file),Oe({value:St.text,filename:pt.name,dataUrl:St.link}))})},je.output||((ut=je[1])==null?void 0:ut.name))),$e&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ee.default,{size:"large",addonAfter:Pe?"%":null,disabled:rt,style:{width:"80%"},onChange:pt=>et(pt,Ze),value:je.score}),!Pe&&ce.createElement("span",null,"\xA0%")),Je&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:je.input_visible||!1,onChange:pt=>{Xe(pt.target.checked,Ze,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Je&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:je.is_invisible||!1,onChange:pt=>{Xe(pt.target.checked,Ze,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Je&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:je.actual_output_visible||!1,onChange:pt=>{Xe(pt.target.checked,Ze,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Je&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:je.last_match_rule||!1,onChange:pt=>{Xe(pt.target.checked,Ze,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ce.createElement("div",{onClick:()=>Ce(je,Ze),style:Pe?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ce.createElement("span",{className:de.del},"\u5220\u9664")))})),ce.createElement(ve.Z,{close:!0,data:fe.dataUrl,filename:fe.filename,type:fe.dataUrl.length?"txt":"",onClose:()=>Oe(Se({},te)),monacoEditor:{value:fe.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ce.createElement(ce.Fragment,null)};var Ve=He},16837:function(Nt,Dt,ze){"use strict";ze.d(Dt,{c:function(){return mt}});var Be=(y=>(y.FirstPage="firstPage",y.PrevPage="prevPage",y.NextPage="nextPage",y))(Be||{}),mt=(y=>(y[y.Single=0]="Single",y[y.Multiple=1]="Multiple",y[y.Judge=2]="Judge",y[y.Fill=3]="Fill",y[y.Subjective=4]="Subjective",y[y.Shixun=5]="Shixun",y[y.Program=6]="Program",y[y.Combine=7]="Combine",y))(mt||{})},90290:function(Nt,Dt,ze){"use strict";ze.d(Dt,{AL:function(){return me},Iy:function(){return de},Qv:function(){return re},ez:function(){return ce},jb:function(){return E}});var Be=ze(32834),mt=ze.n(Be),y=ze(11690),ke=ze.n(y);let we=1;function x(ye,be){const Se=ye.match(/^(\s+)(?:```)/);if(Se===null)return be;const Ie=Se[1];return be.split(`
`).map(Me=>{const Ae=Me.match(/^\s+/);if(Ae===null)return Me;const[De]=Ae;return De.length>=Ie.length?Me.slice(Ie.length):Me}).join(`
`)}let z=[],ie=["<ul>"];const ae=new(mt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function de(){z.length=0,ie=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ne(ye,be,Se,Ie){if(be>=ye.length||ye[be].level<=Se)return be;var Me=ye[be];Ie.push("<li><a href='#"+we+Me.anchor+"'>"+Me.text+"</a>"),be++;var Ae=[];return be=ne(ye,be,Me.level,Ae),Ae.length>0&&(Ie.push("<ul>"),Ae.forEach(function(De){Ie.push(De)}),Ie.push("</ul>")),Ie.push("</li>"),be=ne(ye,be,Se,Ie),be}function re(){return ne(z,0,0,ie),ie.push("</ul>"),ie.join("")}const oe={heading(ye){const be=ee.exec(ye);if(we+=1,be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},fences(ye){const be=this.rules.block.fences.exec(ye);if(be){const Se=be[0];let Ie=x(Se,be[3]||"");const Me=be[2]?be[2].trim():be[2];if(["latex","katex","math"].indexOf(Me)>=0){const Ae=pe(),De=Ie;Ie=Ae,ve[Ae]={type:"block",expression:De}}return{type:"code",raw:Se,lang:Me,text:Ie}}}},le=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const pe=()=>`__special_katext_id_${he++}__`;let ve={};function ce(){return ve}function me(){he=0,ve={}}function Ee(ye){return ye=ye.replace(le,(be,Se)=>{const Ie=pe();return ve[Ie]={type:"inline",expression:Se},Ie}),ye}const Te=ae.listitem;ae.listitem=function(ye){return Te(Ee(ye))};const Re=ae.paragraph;ae.paragraph=function(ye){return Re(Ee(ye))};const _e=ae.tablecell;ae.tablecell=function(ye,be){return _e(Ee(ye),be)},ae.code=function(ye,be,Se){const Ie=(be||"").match(/\S*/)[0];return Ie?["latex","katex","math"].indexOf(Ie)>=0?`<p class='editormd-tex'>${ye}</p>`:`<pre class="prettyprint linenums"><code class="language-${be}">${Se?ye:(0,y.escape)(ye,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Se?ye:(0,y.escape)(ye,!0))+"</code></pre>"},ae.heading=function(ye,be,Se){let Ie=this.options.headerPrefix+Se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:Ie,level:be,text:ye}),"<h"+be+' id="'+we+Ie+'">'+ye+"</h"+be+">"},mt().setOptions({silent:!0,gfm:!0,pedantic:!1}),mt().use({tokenizer:oe,renderer:ae}),Dt.ZP=mt()},89613:function(Nt,Dt,ze){"use strict";ze.d(Dt,{G:function(){return we},t:function(){return ke}});var Be=ze(7062),mt=ze.n(Be);const y=null;function ke(x,z){let ie=mt().get("__ec");ie||(ie={}),ie[x]=z,mt().set("__ec",ie)}function we(x,z){let ie=mt().get("__ec");return ie?ie[x]===void 0?z:ie[x]:z}},47257:function(Nt){(function(Dt){(function(ze){if(1)Nt.exports=ze();else var Be})(function(){var ze,Be,mt;return function(){function y(ke,we,x){function z(ee,de){if(!we[ee]){if(!ke[ee]){var E=void 0;if(!de&&E)return require(ee,!0);if(ie)return ie(ee,!0);var ne=new Error("Cannot find module '"+ee+"'");throw ne.code="MODULE_NOT_FOUND",ne}var re=we[ee]={exports:{}};ke[ee][0].call(re.exports,function(oe){var le=ke[ee][1][oe];return z(le||oe)},re,re.exports,y,ke,we,x)}return we[ee].exports}for(var ie=void 0,ae=0;ae<x.length;ae++)z(x[ae]);return z}return y}()({1:[function(y,ke,we){"use strict";var x=y("./browser/client");x.Buffer=y("buffer").Buffer,x.urllib=y("../shims/xhr"),x.version=y("./browser/version").version,ke.exports=x},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.slice.js");var ae=y("assert"),ee=y("../common/utils/checkBucketName"),de=ee.checkBucketName,E=we;function ne(oe){return Array.isArray?Array.isArray(oe):Object.prototype.toString.call(oe)==="[object Array]"}function re(oe){return oe?ne(oe)?oe:[oe]:[]}E.useBucket=function(le){return de(le),this.options.bucket=le,this},E.setBucket=function(le){return de(le),this.options.bucket=le,this},E.getBucket=function(){return this.options.bucket},E.deleteBucket=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ce=this._bucketRequestParams("DELETE",pe,"",ve),Te.next=3,this.request(ce);case 3:if(me=Te.sent,!(me.status===200||me.status===204)){Te.next=6;break}return Te.abrupt("return",{res:me.res});case 6:return Te.next=8,this.requestError(me);case 8:throw Te.sent;case 9:case"end":return Te.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.putBucketACL=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve,ce){var me,Ee;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return me=this._bucketRequestParams("PUT",pe,"acl",ce),me.headers={"x-oss-acl":ve},me.successStatuses=[200],Re.next=5,this.request(me);case 5:return Ee=Re.sent,Re.abrupt("return",{bucket:Ee.headers.location&&Ee.headers.location.substring(1)||null,res:Ee.res});case 7:case"end":return Re.stop()}},he,this)}));function le(he,pe,ve){return oe.apply(this,arguments)}return le}(),E.getBucketACL=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ce=this._bucketRequestParams("GET",pe,"acl",ve),ce.successStatuses=[200],ce.xmlResponse=!0,Te.next=5,this.request(ce);case 5:return me=Te.sent,Te.abrupt("return",{acl:me.data.AccessControlList.Grant,owner:{id:me.data.Owner.ID,displayName:me.data.Owner.DisplayName},res:me.res});case 7:case"end":return Te.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.putBucketLogging=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve,ce){var me,Ee,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return me=this._bucketRequestParams("PUT",pe,"logging",ce),Ee=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(pe,`</TargetBucket>
`),ve&&(Ee+="<TargetPrefix>".concat(ve,`</TargetPrefix>
`)),Ee+=`</LoggingEnabled>
</BucketLoggingStatus>`,me.content=Ee,me.mime="xml",me.successStatuses=[200],_e.next=9,this.request(me);case 9:return Te=_e.sent,_e.abrupt("return",{res:Te.res});case 11:case"end":return _e.stop()}},he,this)}));function le(he,pe,ve){return oe.apply(this,arguments)}return le}(),E.getBucketLogging=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me,Ee;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ce=this._bucketRequestParams("GET",pe,"logging",ve),ce.successStatuses=[200],ce.xmlResponse=!0,Re.next=5,this.request(ce);case 5:return me=Re.sent,Ee=me.data.LoggingEnabled,Re.abrupt("return",{enable:!!Ee,prefix:Ee&&Ee.TargetPrefix||null,res:me.res});case 8:case"end":return Re.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.deleteBucketLogging=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ce=this._bucketRequestParams("DELETE",pe,"logging",ve),ce.successStatuses=[204,200],Te.next=4,this.request(ce);case 4:return me=Te.sent,Te.abrupt("return",{res:me.res});case 6:case"end":return Te.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.putBucketCORS=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve,ce){var me,Ee,Te,Re,_e,ye,be,Se,Ie,Me;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:for(ve=ve||[],ae(ve.length,"rules is required"),ve.forEach(function(He){ae(He.allowedOrigin,"allowedOrigin is required"),ae(He.allowedMethod,"allowedMethod is required")}),me=this._bucketRequestParams("PUT",pe,"cors",ce),Ee=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Te=function(Ke){Ee+="<AllowedOrigin>".concat(Ke,"</AllowedOrigin>")},Re=function(Ke){Ee+="<AllowedMethod>".concat(Ke,"</AllowedMethod>")},_e=function(Ke){Ee+="<AllowedHeader>".concat(Ke,"</AllowedHeader>")},ye=function(Ke){Ee+="<ExposeHeader>".concat(Ke,"</ExposeHeader>")},be=0,Se=ve.length;be<Se;be++)Ie=ve[be],Ee+="<CORSRule>",re(Ie.allowedOrigin).forEach(Te),re(Ie.allowedMethod).forEach(Re),re(Ie.allowedHeader).forEach(_e),re(Ie.exposeHeader).forEach(ye),Ie.maxAgeSeconds&&(Ee+="<MaxAgeSeconds>".concat(Ie.maxAgeSeconds,"</MaxAgeSeconds>")),Ee+="</CORSRule>";return Ee+="</CORSConfiguration>",me.content=Ee,me.mime="xml",me.successStatuses=[200],De.next=16,this.request(me);case 16:return Me=De.sent,De.abrupt("return",{res:Me.res});case 18:case"end":return De.stop()}},he,this)}));function le(he,pe,ve){return oe.apply(this,arguments)}return le}(),E.getBucketCORS=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me,Ee,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ce=this._bucketRequestParams("GET",pe,"cors",ve),ce.successStatuses=[200],ce.xmlResponse=!0,_e.next=5,this.request(ce);case 5:return me=_e.sent,Ee=[],me.data&&me.data.CORSRule&&(Te=me.data.CORSRule,ne(Te)||(Te=[Te]),Te.forEach(function(ye){var be={};Object.keys(ye).forEach(function(Se){be[Se.slice(0,1).toLowerCase()+Se.slice(1,Se.length)]=ye[Se]}),Ee.push(be)})),_e.abrupt("return",{rules:Ee,res:me.res});case 9:case"end":return _e.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.deleteBucketCORS=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ce=this._bucketRequestParams("DELETE",pe,"cors",ve),ce.successStatuses=[204],Te.next=4,this.request(ce);case 4:return me=Te.sent,Te.abrupt("return",{res:me.res});case 6:case"end":return Te.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.putBucketReferer=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve,ce,me){var Ee,Te,Re,_e;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Ee=this._bucketRequestParams("PUT",pe,"referer",me),Te=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Te+=" <AllowEmptyReferer>".concat(ve?"true":"false",`</AllowEmptyReferer>
`),ce&&ce.length>0){for(Te+=` <RefererList>
`,Re=0;Re<ce.length;Re++)Te+=" <Referer>".concat(ce[Re],`</Referer>
`);Te+=` </RefererList>
`}else Te+=` <RefererList />
`;return Te+="</RefererConfiguration>",Ee.content=Te,Ee.mime="xml",Ee.successStatuses=[200],be.next=10,this.request(Ee);case 10:return _e=be.sent,be.abrupt("return",{res:_e.res});case 12:case"end":return be.stop()}},he,this)}));function le(he,pe,ve,ce){return oe.apply(this,arguments)}return le}(),E.getBucketReferer=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){var ce,me,Ee;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ce=this._bucketRequestParams("GET",pe,"referer",ve),ce.successStatuses=[200],ce.xmlResponse=!0,Re.next=5,this.request(ce);case 5:return me=Re.sent,Ee=me.data.RefererList.Referer||null,Ee&&(ne(Ee)||(Ee=[Ee])),Re.abrupt("return",{allowEmpty:me.data.AllowEmptyReferer==="true",referers:Ee,res:me.res});case 9:case"end":return Re.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E.deleteBucketReferer=function(){var oe=(0,ie.default)(z.default.mark(function he(pe,ve){return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,this.putBucketReferer(pe,!0,null,ve);case 2:return me.abrupt("return",me.sent);case 3:case"end":return me.stop()}},he,this)}));function le(he,pe){return oe.apply(this,arguments)}return le}(),E._bucketRequestParams=function(le,he,pe,ve){return{method:le,bucket:he,subres:pe,timeout:ve&&ve.timeout,ctx:ve&&ve.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(y,ke,we){(function(x,z){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),ae=ie(y("@babel/runtime/regenerator")),ee=ie(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.to-string.js");var de=y("debug")("ali-oss"),E=y("xml2js"),ne=y("agentkeepalive"),re=y("merge-descriptors"),oe=y("platform"),le=y("utility"),he=y("urllib"),pe=y("./version"),ve=y("bowser"),ce=y("../common/signUtils"),me=y("../common/client/initOptions"),Ee=y("../common/utils/createRequest"),Te=Ee.createRequest,Re=y("../common/utils/encoder"),_e=Re.encoder,ye=y("../common/client/getReqUrl"),be=ye.getReqUrl,Se=y("../common/utils/setSTSToken"),Ie=Se.setSTSToken,Me=y("../common/utils/retry"),Ae=Me.retry,De=y("../common/utils/isFunction"),He=De.isFunction,Ke=new ne;function Ve(){var et=oe.name,Xe=oe.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&Xe.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function nt(){return location&&location.protocol==="https:"}function Ne(et,Xe){if(Ve(),!(this instanceof Ne))return new Ne(et,Xe);et&&et.inited?this.options=et:this.options=Ne.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=he,this.agent=this.options.agent||Ke),this.ctx=Xe,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}ke.exports=Ne,Ne.initOptions=function(Xe){Xe.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Ye=Object.assign({secure:nt(),useFetch:!1},Xe);return me(Ye)};var We=Ne.prototype;We.debug=de,re(We,y("./object")),re(We,y("./bucket")),re(We,y("../common/bucket/getBucketWebsite")),re(We,y("../common/bucket/putBucketWebsite")),re(We,y("../common/bucket/deleteBucketWebsite")),re(We,y("../common/bucket/getBucketLifecycle")),re(We,y("../common/bucket/putBucketLifecycle")),re(We,y("../common/bucket/deleteBucketLifecycle")),re(We,y("../common/bucket/putBucketVersioning")),re(We,y("../common/bucket/getBucketVersioning")),re(We,y("../common/bucket/getBucketInventory")),re(We,y("../common/bucket/deleteBucketInventory")),re(We,y("../common/bucket/listBucketInventory")),re(We,y("../common/bucket/putBucketInventory")),re(We,y("../common/bucket/abortBucketWorm")),re(We,y("../common/bucket/completeBucketWorm")),re(We,y("../common/bucket/extendBucketWorm")),re(We,y("../common/bucket/getBucketWorm")),re(We,y("../common/bucket/initiateBucketWorm")),re(We,y("./managed-upload")),re(We,y("../common/multipart-copy")),re(We,y("../common/multipart")),re(We,y("../common/parallel")),We.signature=function(Xe){return this.debug("authorization stringToSign: %s",Xe,"info"),ce.computeSignature(this.options.accessKeySecret,Xe,this.options.headerEncoding)},We._getReqUrl=be,We.authorization=function(Xe,Ye,Ge,at){var Qe=ce.buildCanonicalString(Xe.toUpperCase(),Ye,{headers:at,parameters:Ge});return ce.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},We.request=function(){var et=(0,ee.default)(ae.default.mark(function Xe(Ye){var Ge=this;return ae.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,Ae($e.bind(this),this.options.retryMax,{errorHandler:function(ot){var Je=function(Pe){if(Ye.stream)return!1;var te=[-1,-2].includes(Pe.status),fe=Ge.options.requestErrorRetryHandle||function(){return!0};return te&&fe(Pe)};return!!Je(ot)}})(Ye);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",$e.call(this,Ye));case 7:case"end":return Qe.stop()}},Xe,this)}));return function(Xe){return et.apply(this,arguments)}}();function $e(et){return rt.apply(this,arguments)}function rt(){return rt=(0,ee.default)(ae.default.mark(function et(Xe){var Ye,Ge,at,Qe,ft,ot;return ae.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!(this.options.stsToken&&He(this.options.refreshSTSToken))){Fe.next=3;break}return Fe.next=3,Ie.call(this);case 3:return Ye=Te.call(this,Xe),this.options.useFetch||(Ye.params.mode="disable-fetch"),Qe=!!Xe.stream,Fe.prev=6,Fe.next=9,this.urllib.request(Ye.url,Ye.params);case 9:Ge=Fe.sent,this.debug("response %s %s, got %s, headers: %j",Xe.method,Ye.url,Ge.status,Ge.headers,"info"),Fe.next=16;break;case 13:Fe.prev=13,Fe.t0=Fe.catch(6),at=Fe.t0;case 16:if(!(Ge&&Xe.successStatuses&&Xe.successStatuses.indexOf(Ge.status)===-1)){Fe.next=28;break}return Fe.next=19,this.requestError(Ge);case 19:if(ft=Fe.sent,!(ft.code==="RequestTimeTooSkewed"&&!Qe)){Fe.next=25;break}return this.options.amendTimeSkewed=+new Date(ft.serverTime)-new Date,Fe.next=24,this.request(Xe);case 24:return Fe.abrupt("return",Fe.sent);case 25:ft.params=Xe,Fe.next=32;break;case 28:if(!at){Fe.next=32;break}return Fe.next=31,this.requestError(at);case 31:ft=Fe.sent;case 32:if(!ft){Fe.next=34;break}throw ft;case 34:if(!Xe.xmlResponse){Fe.next=39;break}return Fe.next=37,this.parseXML(Ge.data);case 37:ot=Fe.sent,Ge.data=ot;case 39:return Fe.abrupt("return",Ge);case 40:case"end":return Fe.stop()}},et,this,[[6,13]])})),rt.apply(this,arguments)}We._getResource=function(Xe){var Ye="/";return Xe.bucket&&(Ye+="".concat(Xe.bucket,"/")),Xe.object&&(Ye+=_e(Xe.object,this.options.headerEncoding)),Ye},We._escape=function(Xe){return le.encodeURIComponent(Xe).replace(/%2F/g,"/")},We._getUserAgent=function(){var Xe=z&&z.browser?"js":"nodejs",Ye="aliyun-sdk-".concat(Xe,"/").concat(pe.version),Ge=oe.description;return!Ge&&z&&(Ge="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(Ye," ").concat(Ge))},We._checkUserAgent=function(Xe){var Ye=Xe.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Ye},We.checkBrowserAndVersion=function(Xe,Ye){return ve.name===Xe&&ve.version.split(".")[0]===Ye},We.parseXML=function(Xe){return new Promise(function(Ye,Ge){x.isBuffer(Xe)&&(Xe=Xe.toString()),E.parseString(Xe,{explicitRoot:!1,explicitArray:!1},function(at,Qe){at?Ge(at):Ye(Qe)})})},We.requestError=function(){var et=(0,ee.default)(ae.default.mark(function Ye(Ge){var at,Qe,ft,ot;return ae.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(at=null,!(!Ge.data||!Ge.data.length)){Fe.next=5;break}Ge.status===-1||Ge.status===-2?(at=new Error(Ge.message),at.name=Ge.name,at.status=Ge.status,at.code=Ge.name):(Ge.status===404?(at=new Error("Object not exists"),at.name="NoSuchKeyError",at.status=404,at.code="NoSuchKey"):Ge.status===412?(at=new Error("Pre condition failed"),at.name="PreconditionFailedError",at.status=412,at.code="PreconditionFailed"):(at=new Error("Unknow error, status: ".concat(Ge.status)),at.name="UnknownError",at.status=Ge.status),at.requestId=Ge.headers["x-oss-request-id"],at.host=""),Fe.next=32;break;case 5:return Qe=String(Ge.data),this.debug("request response error data: %s",Qe,"error"),Fe.prev=7,Fe.next=10,this.parseXML(Qe);case 10:if(Fe.t0=Fe.sent,Fe.t0){Fe.next=13;break}Fe.t0={};case 13:ft=Fe.t0,Fe.next=23;break;case 16:return Fe.prev=16,Fe.t1=Fe.catch(7),this.debug(Qe,"error"),Fe.t1.message+=`
raw xml: `.concat(Qe),Fe.t1.status=Ge.status,Fe.t1.requestId=Ge.headers["x-oss-request-id"],Fe.abrupt("return",Fe.t1);case 23:ot=ft.Message||"unknow request error, status: ".concat(Ge.status),ft.Condition&&(ot+=" (condition: ".concat(ft.Condition,")")),at=new Error(ot),at.name=ft.Code?"".concat(ft.Code,"Error"):"UnknownError",at.status=Ge.status,at.code=ft.Code,at.requestId=ft.RequestId,at.hostId=ft.HostId,at.serverTime=ft.ServerTime;case 32:return this.debug("generate error %j",at,"error"),Fe.abrupt("return",at);case 34:case"end":return Fe.stop()}},Ye,this,[[7,16]])}));function Xe(Ye){return et.apply(this,arguments)}return Xe}()}).call(this)}).call(this,{isBuffer:y("../../node_modules/is-buffer/index.js")},y("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js");var ae=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),de=y("path"),E=y("mime"),ne=y("copy-to"),re=y("../common/utils/isBlob"),oe=re.isBlob,le=y("../common/utils/isFile"),he=le.isFile,pe=y("../common/utils/isBuffer"),ve=pe.isBuffer,ce=we;ce.multipartUpload=function(){var _e=(0,ae.default)(ie.default.mark(function be(Se,Ie){var Me,Ae,De,He,Ke,Ve,nt,Ne,We,$e=arguments;return ie.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Me=$e.length>2&&$e[2]!==void 0?$e[2]:{},this.resetCancelFlag(),Me.disabledMD5=Me.disabledMD5===void 0?!0:!!Me.disabledMD5,!(Me.checkpoint&&Me.checkpoint.uploadId)){et.next=8;break}return Ie&&he(Ie)&&(Me.checkpoint.file=Ie),et.next=7,this._resumeMultipart(Me.checkpoint,Me);case 7:return et.abrupt("return",et.sent);case 8:return Ae=102400,Me.mime||(he(Ie)?Me.mime=E.getType(de.extname(Ie.name)):oe(Ie)?Me.mime=Ie.type:ve(Ie)?Me.mime="":Me.mime=E.getType(de.extname(Ie))),Me.headers=Me.headers||{},this._convertMetaToHeaders(Me.meta,Me.headers),et.next=14,this._getFileSize(Ie);case 14:if(De=et.sent,!(De<Ae)){et.next=26;break}return Me.contentLength=De,et.next=19,this.put(Se,Ie,Me);case 19:if(He=et.sent,!(Me&&Me.progress)){et.next=23;break}return et.next=23,Me.progress(1);case 23:return Ke={res:He.res,bucket:this.options.bucket,name:Se,etag:He.res.headers.etag},(Me.headers&&Me.headers["x-oss-callback"]||Me.callback)&&(Ke.data=He.data),et.abrupt("return",Ke);case 26:if(!(Me.partSize&&parseInt(Me.partSize,10)!==Me.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Me.partSize&&Me.partSize<Ae)){et.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ae));case 30:return et.next=32,this.initMultipartUpload(Se,Me);case 32:if(Ve=et.sent,nt=Ve.uploadId,Ne=this._getPartSize(De,Me.partSize),We={file:Ie,name:Se,fileSize:De,partSize:Ne,uploadId:nt,doneParts:[]},!(Me&&Me.progress)){et.next=39;break}return et.next=39,Me.progress(0,We,Ve.res);case 39:return et.next=41,this._resumeMultipart(We,Me);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},be,this)}));function ye(be,Se){return _e.apply(this,arguments)}return ye}(),ce._resumeMultipart=function(){var _e=(0,ae.default)(ie.default.mark(function be(Se,Ie){var Me,Ae,De,He,Ke,Ve,nt,Ne,We,$e,rt,et,Xe,Ye,Ge,at,Qe,ft,ot;return ie.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Me=this,!this.isCancel()){Fe.next=3;break}throw this._makeCancelEvent();case 3:return Ae=Se.file,De=Se.fileSize,He=Se.partSize,Ke=Se.uploadId,Ve=Se.doneParts,nt=Se.name,Ne=[],Ve.length>0&&ne(Ve).to(Ne),We=this._divideParts(De,He),$e=We.length,rt=!1,et=function(te,fe){return new Promise(function(){var Oe=(0,ae.default)(ie.default.mark(function Ue(xe,Ce){var je,Ze,tt,it,ct;return ie.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(pt.prev=0,te.isCancel()){pt.next=29;break}return je=We[fe-1],pt.next=5,te._createBuffer(Ae,je.start,je.end);case 5:return Ze=pt.sent,tt={content:Ze,size:je.end-je.start},pt.prev=7,pt.next=10,te._uploadPart(nt,Ke,fe,tt,Ie);case 10:it=pt.sent,pt.next=18;break;case 13:if(pt.prev=13,pt.t0=pt.catch(7),pt.t0.status!==404){pt.next=17;break}throw te._makeAbortEvent();case 17:throw pt.t0;case 18:if(!(!te.isCancel()&&!rt)){pt.next=26;break}if(Se.doneParts.push({number:fe,etag:it.res.headers.etag}),!Ie.progress){pt.next=23;break}return pt.next=23,Ie.progress(Ve.length/($e+1),Se,it.res);case 23:xe({number:fe,etag:it.res.headers.etag}),pt.next=27;break;case 26:xe();case 27:pt.next=30;break;case 29:xe();case 30:pt.next=41;break;case 32:pt.prev=32,pt.t1=pt.catch(0),ct=new Error,ct.name=pt.t1.name,ct.message=pt.t1.message,ct.stack=pt.t1.stack,ct.partNum=fe,ne(pt.t1).to(ct),Ce(ct);case 41:case"end":return pt.stop()}},Ue,null,[[0,32],[7,13]])}));return function(Ue,xe){return Oe.apply(this,arguments)}}())},Xe=Array.from(new Array($e),function(Pe,te){return te+1}),Ye=Ne.map(function(Pe){return Pe.number}),Ge=Xe.filter(function(Pe){return Ye.indexOf(Pe)<0}),at=5,Qe=Ie.parallel||at,Fe.next=17,this._parallel(Ge,Qe,function(Pe){return new Promise(function(te,fe){et(Me,Pe).then(function(Oe){Oe&&Ne.push(Oe),te()}).catch(function(Oe){fe(Oe)})})});case 17:if(ft=Fe.sent,rt=!0,ot=ft.find(function(Pe){return Pe.name==="abort"}),!ot){Fe.next=22;break}throw ot;case 22:if(!this.isCancel()){Fe.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(ft&&ft.length>0)){Fe.next=28;break}throw ft[0].message="Failed to upload some parts with error: ".concat(ft[0].toString()," part_num: ").concat(ft[0].partNum),ft[0];case 28:return Fe.next=30,this.completeMultipartUpload(nt,Ke,Ne,Ie);case 30:return Fe.abrupt("return",Fe.sent);case 31:case"end":return Fe.stop()}},be,this)}));function ye(be,Se){return _e.apply(this,arguments)}return ye}(),ce._getFileSize=function(){var _e=(0,ae.default)(ie.default.mark(function be(Se){return ie.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!ve(Se)){Me.next=4;break}return Me.abrupt("return",Se.length);case 4:if(!(oe(Se)||he(Se))){Me.next=6;break}return Me.abrupt("return",Se.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Me.stop()}},be)}));function ye(be){return _e.apply(this,arguments)}return ye}();var me=y("stream"),Ee=me.Readable;function Te(_e,ye){if(!(this instanceof Te))return new Te(_e,ye);Ee.call(this,ye),this.file=_e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Te,Ee),Te.prototype.readFileAndPush=function(ye){if(this.fileBuffer)for(var be=!0;be&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Se=this.start,Ie=Se+ye;Ie=Ie>this.fileBuffer.length?this.fileBuffer.length:Ie,this.start=Ie,be=this.push(this.fileBuffer.slice(Se,Ie))}},Te.prototype._read=function(ye){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var be=16*1024;ye=ye||be;var Se=this;this.reader.onload=function(Me){Se.fileBuffer=x.from(new Uint8Array(Me.target.result)),Se.file=null,Se.readFileAndPush(ye)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ye)};function Re(_e){return _e.arrayBuffer?_e.arrayBuffer():new Promise(function(ye,be){var Se=new FileReader;Se.onload=function(Ie){ye(Ie.target.result)},Se.onerror=function(Ie){be(Ie)},Se.readAsArrayBuffer(_e)})}ce._createBuffer=function(){var _e=(0,ae.default)(ie.default.mark(function be(Se,Ie,Me){var Ae,De;return ie.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(!(oe(Se)||he(Se))){Ke.next=8;break}return Ae=Se.slice(Ie,Me),Ke.next=4,Re(Ae);case 4:return De=Ke.sent,Ke.abrupt("return",x.from(De));case 8:if(!ve(Se)){Ke.next=12;break}return Ke.abrupt("return",Se.subarray(Ie,Me));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ke.stop()}},be)}));function ye(be,Se,Ie){return _e.apply(this,arguments)}return ye}(),ce._getPartSize=function(ye,be){var Se=1e4,Ie=1*1024*1024;be||(be=Ie);var Me=Math.ceil(ye/Se);return be<Me&&(be=Me,console.warn("partSize has been set to ".concat(be,", because the partSize you provided causes partNumber to be greater than 10,000"))),be},ce._divideParts=function(ye,be){for(var Se=Math.ceil(ye/be),Ie=[],Me=0;Me<Se;Me++){var Ae=be*Me,De=Math.min(Ae+be,ye);Ie.push({start:Ae,end:De})}return Ie}}).call(this)}).call(this,y("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.promise.js");var z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("fs"),ee=y("copy-to"),de=y("path"),E=y("mime"),ne=y("../common/callback"),re=y("merge-descriptors"),oe=y("../common/utils/isBlob"),le=oe.isBlob,he=y("../common/utils/isFile"),pe=he.isFile,ve=y("../common/utils/isBuffer"),ce=ve.isBuffer,me=y("../common/utils/obj2xml"),Ee=me.obj2xml,Te=we;Te.append=function(){var Re=(0,ie.default)(z.default.mark(function ye(be,Se,Ie){var Me;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Ie=Ie||{},Ie.position===void 0&&(Ie.position="0"),Ie.subres={append:"",position:Ie.position},Ie.method="POST",De.next=6,this.put(be,Se,Ie);case 6:return Me=De.sent,Me.nextAppendPosition=Me.res.headers["x-oss-next-append-position"],De.abrupt("return",Me);case 9:case"end":return De.stop()}},ye,this)}));function _e(ye,be,Se){return Re.apply(this,arguments)}return _e}(),Te.put=function(){var Re=(0,ie.default)(z.default.mark(function ye(be,Se,Ie){var Me,Ae,De,He,Ke;return z.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Ie=Ie||{},Ie.disabledMD5=Ie.disabledMD5===void 0?!0:!!Ie.disabledMD5,Ie.headers=Ie.headers||{},be=this._objectName(be),!ce(Se)){nt.next=8;break}Me=Se,nt.next=19;break;case 8:if(!(le(Se)||pe(Se))){nt.next=18;break}return Ie.mime||(pe(Se)?Ie.mime=E.getType(de.extname(Se.name)):Ie.mime=Se.type),nt.next=12,this._createBuffer(Se,0,Se.size);case 12:return Me=nt.sent,nt.next=15,this._getFileSize(Se);case 15:Ie.contentLength=nt.sent,nt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Ie.meta,Ie.headers),Ae=Ie.method||"PUT",De=this._objectRequestParams(Ae,be,Ie),ne.encodeCallback(De,Ie),De.mime=Ie.mime,De.disabledMD5=Ie.disabledMD5,De.content=Me,De.successStatuses=[200],nt.next=29,this.request(De);case 29:return He=nt.sent,Ke={name:be,url:this._objectUrl(be),res:He.res},De.headers&&De.headers["x-oss-callback"]&&(Ke.data=JSON.parse(He.data.toString())),nt.abrupt("return",Ke);case 33:case"end":return nt.stop()}},ye,this)}));function _e(ye,be,Se){return Re.apply(this,arguments)}return _e}(),Te.putStream=function(){var Re=(0,ie.default)(z.default.mark(function ye(be,Se,Ie){var Me,Ae,De,He;return z.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ie=Ie||{},Ie.headers=Ie.headers||{},be=this._objectName(be),Ie.contentLength?Ie.headers["Content-Length"]=Ie.contentLength:Ie.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Ie.meta,Ie.headers),Me=Ie.method||"PUT",Ae=this._objectRequestParams(Me,be,Ie),ne.encodeCallback(Ae,Ie),Ae.mime=Ie.mime,Ae.stream=Se,Ae.successStatuses=[200],Ve.next=13,this.request(Ae);case 13:return De=Ve.sent,He={name:be,url:this._objectUrl(be),res:De.res},Ae.headers&&Ae.headers["x-oss-callback"]&&(He.data=JSON.parse(De.data.toString())),Ve.abrupt("return",He);case 17:case"end":return Ve.stop()}},ye,this)}));function _e(ye,be,Se){return Re.apply(this,arguments)}return _e}(),re(Te,y("../common/object/copyObject")),re(Te,y("../common/object/getObjectTagging")),re(Te,y("../common/object/putObjectTagging")),re(Te,y("../common/object/deleteObjectTagging")),re(Te,y("../common/image")),re(Te,y("../common/object/getBucketVersions")),re(Te,y("../common/object/getACL")),re(Te,y("../common/object/putACL")),re(Te,y("../common/object/head")),re(Te,y("../common/object/delete")),re(Te,y("../common/object/get")),re(Te,y("../common/object/putSymlink")),re(Te,y("../common/object/getSymlink")),re(Te,y("../common/object/deleteMulti")),re(Te,y("../common/object/getObjectMeta")),re(Te,y("../common/object/getObjectUrl")),re(Te,y("../common/object/generateObjectUrl")),re(Te,y("../common/object/signatureUrl")),re(Te,y("../common/object/asyncSignatureUrl")),Te.putMeta=function(){var Re=(0,ie.default)(z.default.mark(function ye(be,Se,Ie){var Me;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,this.copy(be,be,{meta:Se||{},timeout:Ie&&Ie.timeout,ctx:Ie&&Ie.ctx});case 2:return Me=De.sent,De.abrupt("return",Me);case 4:case"end":return De.stop()}},ye,this)}));function _e(ye,be,Se){return Re.apply(this,arguments)}return _e}(),Te.list=function(){var Re=(0,ie.default)(z.default.mark(function ye(be,Se){var Ie,Me,Ae,De,He;return z.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Ie=this._objectRequestParams("GET","",Se),Ie.query=be,Ie.xmlResponse=!0,Ie.successStatuses=[200],Ve.next=6,this.request(Ie);case 6:return Me=Ve.sent,Ae=Me.data.Contents||[],De=this,Ae&&(Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(nt){return{name:nt.Key,url:De._objectUrl(nt.Key),lastModified:nt.LastModified,etag:nt.ETag,type:nt.Type,size:Number(nt.Size),storageClass:nt.StorageClass,owner:{id:nt.Owner.ID,displayName:nt.Owner.DisplayName}}})),He=Me.data.CommonPrefixes||null,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(nt){return nt.Prefix})),Ve.abrupt("return",{res:Me.res,objects:Ae,prefixes:He,nextMarker:Me.data.NextMarker||null,isTruncated:Me.data.IsTruncated==="true"});case 13:case"end":return Ve.stop()}},ye,this)}));function _e(ye,be){return Re.apply(this,arguments)}return _e}(),Te.listV2=function(){var Re=(0,ie.default)(z.default.mark(function ye(be){var Se,Ie,Me,Ae,De,He,Ke,Ve=arguments;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Se=Ve.length>1&&Ve[1]!==void 0?Ve[1]:{},Ie=be["continuation-token"]||be.continuationToken,Ie&&(Se.subres=Object.assign({"continuation-token":Ie},Se.subres)),Me=this._objectRequestParams("GET","",Se),Me.query=Object.assign({"list-type":2},be),delete Me.query["continuation-token"],delete Me.query.continuationToken,Me.xmlResponse=!0,Me.successStatuses=[200],Ne.next=11,this.request(Me);case 11:return Ae=Ne.sent,De=Ae.data.Contents||[],He=this,De&&(Array.isArray(De)||(De=[De]),De=De.map(function(We){var $e=null;return We.Owner&&($e={id:We.Owner.ID,displayName:We.Owner.DisplayName}),{name:We.Key,url:He._objectUrl(We.Key),lastModified:We.LastModified,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:$e}})),Ke=Ae.data.CommonPrefixes||null,Ke&&(Array.isArray(Ke)||(Ke=[Ke]),Ke=Ke.map(function(We){return We.Prefix})),Ne.abrupt("return",{res:Ae.res,objects:De,prefixes:Ke,isTruncated:Ae.data.IsTruncated==="true",keyCount:+Ae.data.KeyCount,continuationToken:Ae.data.ContinuationToken||null,nextContinuationToken:Ae.data.NextContinuationToken||null});case 18:case"end":return Ne.stop()}},ye,this)}));function _e(ye){return Re.apply(this,arguments)}return _e}(),Te.restore=function(){var Re=(0,ie.default)(z.default.mark(function ye(be){var Se,Ie,Me,Ae,De=arguments;return z.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Se=De.length>1&&De[1]!==void 0?De[1]:{type:"Archive"},Se=Se||{},Se.subres=Object.assign({restore:""},Se.subres),Se.versionId&&(Se.subres.versionId=Se.versionId),Ie=this._objectRequestParams("POST",be,Se),Se.type==="ColdArchive"&&(Me={RestoreRequest:{Days:Se.Days?Se.Days:2,JobParameters:{Tier:Se.JobParameters?Se.JobParameters:"Standard"}}},Ie.content=Ee(Me,{headers:!0}),Ie.mime="xml"),Ie.successStatuses=[202],Ke.next=9,this.request(Ie);case 9:return Ae=Ke.sent,Ke.abrupt("return",{res:Ae.res});case 11:case"end":return Ke.stop()}},ye,this)}));function _e(ye){return Re.apply(this,arguments)}return _e}(),Te._objectUrl=function(_e){return this._getReqUrl({bucket:this.options.bucket,object:_e})},Te._objectRequestParams=function(_e,ye,be){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");be=be||{},ye=this._objectName(ye);var Se={object:ye,bucket:this.options.bucket,method:_e,subres:be&&be.subres,timeout:be&&be.timeout,ctx:be&&be.ctx};return be.headers&&(Se.headers={},ee(be.headers).to(Se.headers)),Se},Te._objectName=function(_e){return _e.replace(/^\/+/,"")},Te._convertMetaToHeaders=function(_e,ye){_e&&Object.keys(_e).forEach(function(be){ye["x-oss-meta-".concat(be)]=_e[be]})},Te._deleteFileSafe=function(_e){var ye=this;return new Promise(function(be){ae.exists(_e,function(Se){Se?ae.unlink(_e,function(Ie){Ie&&ye.debug("unlink %j error: %s",_e,Ie,"error"),be()}):be()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(y,ke,we){"use strict";we.version="6.18.1"},{}],7:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.abortBucketWorm=void 0;var ae=y("../utils/checkBucketName");function ee(E,ne){return de.apply(this,arguments)}function de(){return de=(0,ie.default)(z.default.mark(function E(ne,re){var oe,le;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ae.checkBucketName(ne),oe=this._bucketRequestParams("DELETE",ne,"worm",re),pe.next=4,this.request(oe);case 4:return le=pe.sent,pe.abrupt("return",{res:le.res,status:le.status});case 6:case"end":return pe.stop()}},E,this)})),de.apply(this,arguments)}we.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.completeBucketWorm=void 0;var ae=y("../utils/checkBucketName");function ee(E,ne,re){return de.apply(this,arguments)}function de(){return de=(0,ie.default)(z.default.mark(function E(ne,re,oe){var le,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ae.checkBucketName(ne),le=this._bucketRequestParams("POST",ne,{wormId:re},oe),ve.next=4,this.request(le);case 4:return he=ve.sent,ve.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return ve.stop()}},E,this)})),de.apply(this,arguments)}we.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.deleteBucketInventory=void 0;var ae=y("../utils/checkBucketName");function ee(E,ne){return de.apply(this,arguments)}function de(){return de=(0,ie.default)(z.default.mark(function E(ne,re){var oe,le,he,pe,ve=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return oe=ve.length>2&&ve[2]!==void 0?ve[2]:{},le=Object.assign({inventory:"",inventoryId:re},oe.subres),ae.checkBucketName(ne),he=this._bucketRequestParams("DELETE",ne,le,oe),he.successStatuses=[204],me.next=7,this.request(he);case 7:return pe=me.sent,me.abrupt("return",{status:pe.status,res:pe.res});case 9:case"end":return me.stop()}},E,this)})),de.apply(this,arguments)}we.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=we;de.deleteBucketLifecycle=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le){var he,pe;return z.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ee(oe),he=this._bucketRequestParams("DELETE",oe,"lifecycle",le),he.successStatuses=[204],ce.next=5,this.request(he);case 5:return pe=ce.sent,ce.abrupt("return",{res:pe.res});case 7:case"end":return ce.stop()}},re,this)}));function ne(re,oe){return E.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=we;de.deleteBucketWebsite=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le){var he,pe;return z.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ee(oe),he=this._bucketRequestParams("DELETE",oe,"website",le),he.successStatuses=[204],ce.next=5,this.request(he);case 5:return pe=ce.sent,ce.abrupt("return",{res:pe.res});case 7:case"end":return ce.stop()}},re,this)}));function ne(re,oe){return E.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.extendBucketWorm=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function de(ne,re,oe,le){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(re,oe,le,he){var pe,ve,ce;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ae.checkBucketName(re),pe=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:oe},he),ve={ExtendWormConfiguration:{RetentionPeriodInDays:le}},pe.mime="xml",pe.content=ee.obj2xml(ve,{headers:!0}),pe.successStatuses=[200],Ee.next=8,this.request(pe);case 8:return ce=Ee.sent,Ee.abrupt("return",{res:ce.res,status:ce.status});case 10:case"end":return Ee.stop()}},ne,this)})),E.apply(this,arguments)}we.extendBucketWorm=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.getBucketInventory=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function de(ne,re){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(re,oe){var le,he,pe,ve,ce=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return le=ce.length>2&&ce[2]!==void 0?ce[2]:{},he=Object.assign({inventory:"",inventoryId:oe},le.subres),ae.checkBucketName(re),pe=this._bucketRequestParams("GET",re,he,le),pe.successStatuses=[200],pe.xmlResponse=!0,Ee.next=8,this.request(pe);case 8:return ve=Ee.sent,Ee.abrupt("return",{status:ve.status,res:ve.res,inventory:ee.formatInventoryConfig(ve.data)});case 10:case"end":return Ee.stop()}},ne,this)})),E.apply(this,arguments)}we.getBucketInventory=de},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=y("../utils/isArray"),E=de.isArray,ne=y("../utils/formatObjKey"),re=ne.formatObjKey,oe=we;oe.getBucketLifecycle=function(){var le=(0,ie.default)(z.default.mark(function pe(ve,ce){var me,Ee,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ee(ve),me=this._bucketRequestParams("GET",ve,"lifecycle",ce),me.successStatuses=[200],me.xmlResponse=!0,_e.next=6,this.request(me);case 6:return Ee=_e.sent,Te=Ee.data.Rule||null,Te&&(E(Te)||(Te=[Te]),Te=Te.map(function(ye){return ye.ID&&(ye.id=ye.ID,delete ye.ID),ye.Tag&&!E(ye.Tag)&&(ye.Tag=[ye.Tag]),re(ye,"firstLowerCase")})),_e.abrupt("return",{rules:Te,res:Ee.res});case 10:case"end":return _e.stop()}},pe,this)}));function he(pe,ve){return le.apply(this,arguments)}return he}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=we;de.getBucketVersioning=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le){var he,pe,ve;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ee(oe),he=this._bucketRequestParams("GET",oe,"versioning",le),he.xmlResponse=!0,he.successStatuses=[200],me.next=6,this.request(he);case 6:return pe=me.sent,ve=pe.data.Status,me.abrupt("return",{status:pe.status,versionStatus:ve,res:pe.res});case 9:case"end":return me.stop()}},re,this)}));function ne(re,oe){return E.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=y("../utils/isObject"),E=de.isObject,ne=we;ne.getBucketWebsite=function(){var re=(0,ie.default)(z.default.mark(function le(he,pe){var ve,ce,me;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee(he),ve=this._bucketRequestParams("GET",he,"website",pe),ve.successStatuses=[200],ve.xmlResponse=!0,Te.next=6,this.request(ve);case 6:return ce=Te.sent,me=[],ce.data.RoutingRules&&ce.data.RoutingRules.RoutingRule&&(E(ce.data.RoutingRules.RoutingRule)?me=[ce.data.RoutingRules.RoutingRule]:me=ce.data.RoutingRules.RoutingRule),Te.abrupt("return",{index:ce.data.IndexDocument&&ce.data.IndexDocument.Suffix||"",supportSubDir:ce.data.IndexDocument&&ce.data.IndexDocument.SupportSubDir||"false",type:ce.data.IndexDocument&&ce.data.IndexDocument.Type,routingRules:me,error:ce.data.ErrorDocument&&ce.data.ErrorDocument.Key||null,res:ce.res});case 10:case"end":return Te.stop()}},le,this)}));function oe(le,he){return re.apply(this,arguments)}return oe}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.getBucketWorm=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function de(ne,re){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(re,oe){var le,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ae.checkBucketName(re),le=this._bucketRequestParams("GET",re,"worm",oe),le.successStatuses=[200],le.xmlResponse=!0,ve.next=6,this.request(le);case 6:return he=ve.sent,ee.dataFix(he.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ve.abrupt("return",Object.assign(Object.assign({},he.data),{res:he.res,status:he.status}));case 9:case"end":return ve.stop()}},ne,this)})),E.apply(this,arguments)}we.getBucketWorm=de},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.initiateBucketWorm=void 0;var ae=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function de(ne,re,oe){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(re,oe,le){var he,pe,ve;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ee.checkBucketName(re),he=this._bucketRequestParams("POST",re,"worm",le),pe={InitiateWormConfiguration:{RetentionPeriodInDays:oe}},he.mime="xml",he.content=ae.obj2xml(pe,{headers:!0}),he.successStatuses=[200],me.next=8,this.request(he);case 8:return ve=me.sent,me.abrupt("return",{res:ve.res,wormId:ve.res.headers["x-oss-worm-id"],status:ve.status});case 10:case"end":return me.stop()}},ne,this)})),E.apply(this,arguments)}we.initiateBucketWorm=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.listBucketInventory=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function de(ne){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(re){var oe,le,he,pe,ve,ce,me,Ee,Te=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return oe=Te.length>1&&Te[1]!==void 0?Te[1]:{},le=oe.continuationToken,he=Object.assign({inventory:""},le&&{"continuation-token":le},oe.subres),ae.checkBucketName(re),pe=this._bucketRequestParams("GET",re,he,oe),pe.successStatuses=[200],pe.xmlResponse=!0,_e.next=9,this.request(pe);case 9:return ve=_e.sent,ce=ve.data,me=ve.res,Ee=ve.status,_e.abrupt("return",{isTruncated:ce.IsTruncated==="true",nextContinuationToken:ce.NextContinuationToken,inventoryList:ee.formatInventoryConfig(ce.InventoryConfiguration,!0),status:Ee,res:me});case 12:case"end":return _e.stop()}},ne,this)})),E.apply(this,arguments)}we.listBucketInventory=de},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.putBucketInventory=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function de(ne,re){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(re,oe){var le,he,pe,ve,ce,me,Ee,Te,Re,_e,ye,be=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return le=be.length>2&&be[2]!==void 0?be[2]:{},he=Object.assign({inventory:"",inventoryId:oe.id},le.subres),ae.checkBucketName(re),pe=oe.OSSBucketDestination,ve=oe.optionalFields,ce=oe.includedObjectVersions,me="acs:oss:::",Ee="acs:ram::".concat(pe.accountId,":role/"),Te={InventoryConfiguration:{Id:oe.id,IsEnabled:oe.isEnabled,Filter:{Prefix:oe.prefix||""},Destination:{OSSBucketDestination:{Format:pe.format,AccountId:pe.accountId,RoleArn:"".concat(Ee).concat(pe.rolename),Bucket:"".concat(me).concat(pe.bucket),Prefix:pe.prefix||"",Encryption:pe.encryption||""}},Schedule:{Frequency:oe.frequency},IncludedObjectVersions:ce,OptionalFields:{Field:(ve==null?void 0:ve.field)||[]}}},Re=ee.obj2xml(Te,{headers:!0,firstUpperCase:!0}),_e=this._bucketRequestParams("PUT",re,he,le),_e.successStatuses=[200],_e.mime="xml",_e.content=Re,Ie.next=14,this.request(_e);case 14:return ye=Ie.sent,Ie.abrupt("return",{status:ye.status,res:ye.res});case 16:case"end":return Ie.stop()}},ne,this)})),E.apply(this,arguments)}we.putBucketInventory=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.array.includes.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=y("../utils/isArray"),E=de.isArray,ne=y("../utils/deepCopy"),re=ne.deepCopy,oe=y("../utils/isObject"),le=oe.isObject,he=y("../utils/obj2xml"),pe=he.obj2xml,ve=y("../utils/checkObjectTag"),ce=ve.checkObjectTag,me=y("../utils/getStrBytesCount"),Ee=me.getStrBytesCount,Te=we;Te.putBucketLifecycle=function(){var Se=(0,ie.default)(z.default.mark(function Me(Ae,De,He){var Ke,Ve,nt,Ne,We;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ee(Ae),E(De)){rt.next=3;break}throw new Error("rules must be Array");case 3:return Ke=this._bucketRequestParams("PUT",Ae,"lifecycle",He),Ve=[],nt={LifecycleConfiguration:{Rule:Ve}},De.forEach(function(et){Re(et),be(et),et.id&&(et.ID=et.id,delete et.id),Ve.push(et)}),Ne=pe(nt,{headers:!0,firstUpperCase:!0}),Ke.content=Ne,Ke.mime="xml",Ke.successStatuses=[200],rt.next=13,this.request(Ke);case 13:return We=rt.sent,rt.abrupt("return",{res:We.res});case 15:case"end":return rt.stop()}},Me,this)}));function Ie(Me,Ae,De){return Se.apply(this,arguments)}return Ie}();function Re(Se){Se.days&&(Se.expiration={days:Se.days}),Se.date&&(Se.expiration={createdBeforeDate:Se.date})}function _e(Se,Ie){var Me=Se.days,Ae=Se.createdBeforeDate;if(!Me&&!Ae)throw new Error("".concat(Ie," must includes days or createdBeforeDate"));if(Me&&!/^[1-9][0-9]*$/.test(Me))throw new Error("days must be a positive integer");if(Ae&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ae))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function ye(Se){if(!E(Se)&&!le(Se))throw new Error("tag must be Object or Array");Se=le(Se)?[Se]:Se;var Ie={},Me=re(Se);Me.forEach(function(Ae){Ie[Ae.key]=Ae.value}),ce(Ie)}function be(Se){if(Se.id&&Ee(Se.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Se.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Se.status))throw new Error("Status must be Enabled or Disabled");if(Se.transition){if(!["IA","Archive"].includes(Se.transition.storageClass))throw new Error("StorageClass must be IA or Archive");_e(Se.transition,"Transition")}if(Se.expiration){if(!Se.expiration.expiredObjectDeleteMarker)_e(Se.expiration,"Expiration");else if(Se.expiration.days||Se.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Se.abortMultipartUpload&&_e(Se.abortMultipartUpload,"AbortMultipartUpload"),!Se.expiration&&!Se.abortMultipartUpload&&!Se.transition&&!Se.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Se.tag){if(Se.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ye(Se.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=y("../utils/obj2xml"),E=de.obj2xml,ne=we;ne.putBucketVersioning=function(){var re=(0,ie.default)(z.default.mark(function le(he,pe){var ve,ce,me,Ee,Te=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(ve=Te.length>2&&Te[2]!==void 0?Te[2]:{},ee(he),["Enabled","Suspended"].includes(pe)){_e.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ce=this._bucketRequestParams("PUT",he,"versioning",ve),me={VersioningConfiguration:{Status:pe}},ce.mime="xml",ce.content=E(me,{headers:!0}),_e.next=10,this.request(ce);case 10:return Ee=_e.sent,_e.abrupt("return",{res:Ee.res,status:Ee.status});case 12:case"end":return _e.stop()}},le,this)}));function oe(le,he){return re.apply(this,arguments)}return oe}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=y("../utils/obj2xml"),E=de.obj2xml,ne=y("../utils/isArray"),re=ne.isArray,oe=we;oe.putBucketWebsite=function(){var le=(0,ie.default)(z.default.mark(function pe(ve){var ce,me,Ee,Te,Re,_e,ye,be=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(ce=be.length>1&&be[1]!==void 0?be[1]:{},me=be.length>2?be[2]:void 0,ee(ve),Ee=this._bucketRequestParams("PUT",ve,"website",me),Te={Suffix:ce.index||"index.html"},Re={IndexDocument:Te},_e={WebsiteConfiguration:Re},ce.supportSubDir&&(Te.SupportSubDir=ce.supportSubDir),ce.type&&(Te.Type=ce.type),ce.error&&(Re.ErrorDocument={Key:ce.error}),ce.routingRules===void 0){Ie.next=14;break}if(re(ce.routingRules)){Ie.next=13;break}throw new Error("RoutingRules must be Array");case 13:Re.RoutingRules={RoutingRule:ce.routingRules};case 14:return _e=E(_e),Ee.content=_e,Ee.mime="xml",Ee.successStatuses=[200],Ie.next=20,this.request(Ee);case 20:return ye=Ie.sent,Ie.abrupt("return",{res:ye.res});case 22:case"end":return Ie.stop()}},pe,this)}));function he(pe){return le.apply(this,arguments)}return he}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),we.encodeCallback=function(ie,ae){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&ae.callback){var ee={callbackUrl:encodeURI(ae.callback.url),callbackBody:ae.callback.body};ae.callback.host&&(ee.callbackHost=ae.callback.host),ae.callback.contentType&&(ee.callbackBodyType=ae.callback.contentType);var de=x.from(JSON.stringify(ee)).toString("base64");if(ie.headers["x-oss-callback"]=de,ae.callback.customValue){var E={};Object.keys(ae.callback.customValue).forEach(function(ne){E["x:".concat(ne)]=ae.callback.customValue[ne].toString()}),ie.headers["x-oss-callback-var"]=x.from(JSON.stringify(E)).toString("base64")}}}}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(y,ke,we){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var x=function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(we,"__esModule",{value:!0}),we.getReqUrl=void 0;var z=x(y("copy-to")),ie=x(y("url")),ae=x(y("merge-descriptors")),ee=x(y("is-type-of")),de=y("../utils/isIP"),E=y("../utils/checkConfigValid");function ne(re){var oe={},le=this.options.cname;E.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(oe),re.bucket&&!le&&!de.isIP(oe.hostname)&&!this.options.sldEnable&&(oe.host="".concat(re.bucket,".").concat(oe.host));var he="/";re.bucket&&this.options.sldEnable&&(he+="".concat(re.bucket,"/")),re.object&&(he+=this._escape(re.object).replace(/\+/g,"%2B")),oe.pathname=he;var pe={};if(re.query&&ae.default(pe,re.query),re.subres){var ve={};ee.default.string(re.subres)?ve[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(ce){ve[ce]=""}):ve=re.subres,ae.default(pe,ve)}return oe.query=pe,ie.default.format(oe)}we.getReqUrl=ne},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(y,ke,we){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.string.trim.js");var x=y("humanize-ms"),z=y("url"),ie=y("../utils/checkBucketName"),ae=ie.checkBucketName,ee=y("../utils/setRegion"),de=ee.setRegion,E=y("../utils/checkConfigValid"),ne=E.checkConfigValid;function re(oe,le){ne(oe,"endpoint");var he=z.parse(oe);if(he.protocol||(he=z.parse("http".concat(le?"s":"","://").concat(oe))),he.protocol!=="http:"&&he.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return he}ke.exports=function(oe){if(!oe||!oe.accessKeyId||!oe.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");oe.stsToken&&!oe.refreshSTSToken&&!oe.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),oe.bucket&&ae(oe.bucket);var le=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},oe);if(le.accessKeyId=le.accessKeyId.trim(),le.accessKeySecret=le.accessKeySecret.trim(),le.timeout&&(le.timeout=x(le.timeout)),le.endpoint)le.endpoint=re(le.endpoint,le.secure);else if(le.region)le.endpoint=de(le.region,le.internal,le.secure);else throw new Error("require options.endpoint or options.region");return le.inited=!0,le}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(y,ke,we){"use strict";var x=y("merge-descriptors"),z=we;x(z,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,de=y("querystring"),E=y("js-base64"),ne=E.Base64.encode,re=we;re.processObjectSave=function(){var le=(0,ie.default)(z.default.mark(function pe(ve,ce,me,Ee){var Te,Re,_e,ye;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return oe(ve,"sourceObject"),oe(ce,"targetObject"),oe(me,"process"),ce=this._objectName(ce),Ee&&ee(Ee),Te=this._objectRequestParams("POST",ve,{subres:"x-oss-process"}),Re=Ee?",b_".concat(ne(Ee)):"",ce=ne(ce),_e={"x-oss-process":"".concat(me,"|sys/saveas,o_").concat(ce).concat(Re)},Te.content=de.stringify(_e),Se.next=12,this.request(Te);case 12:return ye=Se.sent,Se.abrupt("return",{res:ye.res,status:ye.res.status});case 14:case"end":return Se.stop()}},pe,this)}));function he(pe,ve,ce,me){return le.apply(this,arguments)}return he}();function oe(le,he){if(!le)throw new Error("".concat(he," is required"));if(typeof le!="string")throw new Error("".concat(he," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.regexp.to-string.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),de=we;de.uploadPartCopy=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le,he,pe,ve){var ce,me,Ee,Te,Re,_e=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ce=_e.length>5&&_e[5]!==void 0?_e[5]:{},ce.headers=ce.headers||{},me=ce.versionId||ce.subres&&ce.subres.versionId||null,me?Ee="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey),"?versionId=").concat(me):Ee="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey)),ce.headers["x-oss-copy-source"]=Ee,pe&&(ce.headers["x-oss-copy-source-range"]="bytes=".concat(pe)),ce.subres={partNumber:he,uploadId:le},Te=this._objectRequestParams("PUT",oe,ce),Te.mime=ce.mime,Te.successStatuses=[200],be.next=12,this.request(Te);case 12:return Re=be.sent,be.abrupt("return",{name:oe,etag:Re.res.headers.etag,res:Re.res});case 14:case"end":return be.stop()}},re,this)}));function ne(re,oe,le,he,pe){return E.apply(this,arguments)}return ne}(),de.multipartUploadCopy=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le){var he,pe,ve,ce,me,Ee,Te,Re,_e,ye,be,Se,Ie=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return he=Ie.length>2&&Ie[2]!==void 0?Ie[2]:{},this.resetCancelFlag(),pe=he.versionId,ve=pe===void 0?null:pe,ce={versionId:ve},Ae.next=6,this._getObjectMeta(le.sourceBucketName,le.sourceKey,ce);case 6:if(me=Ae.sent,Ee=me.res.headers["content-length"],le.startOffset=le.startOffset||0,le.endOffset=le.endOffset||Ee,!(he.checkpoint&&he.checkpoint.uploadId)){Ae.next=14;break}return Ae.next=13,this._resumeMultipartCopy(he.checkpoint,le,he);case 13:return Ae.abrupt("return",Ae.sent);case 14:if(Te=102400,Re=le.endOffset-le.startOffset,!(Re<Te)){Ae.next=18;break}throw new Error("copySize must not be smaller than ".concat(Te));case 18:if(!(he.partSize&&he.partSize<Te)){Ae.next=20;break}throw new Error("partSize must not be smaller than ".concat(Te));case 20:return Ae.next=22,this.initMultipartUpload(oe,he);case 22:if(_e=Ae.sent,ye=_e.uploadId,be=this._getPartSize(Re,he.partSize),Se={name:oe,copySize:Re,partSize:be,uploadId:ye,doneParts:[]},!(he&&he.progress)){Ae.next=29;break}return Ae.next=29,he.progress(0,Se,_e.res);case 29:return Ae.next=31,this._resumeMultipartCopy(Se,le,he);case 31:return Ae.abrupt("return",Ae.sent);case 32:case"end":return Ae.stop()}},re,this)}));function ne(re,oe){return E.apply(this,arguments)}return ne}(),de._resumeMultipartCopy=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le,he){var pe,ve,ce,me,Ee,Te,Re,_e,ye,be,Se,Ie,Me,Ae,De,He,Ke,Ve,nt,Ne,We;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!this.isCancel()){rt.next=2;break}throw this._makeCancelEvent();case 2:if(pe=he.versionId,ve=pe===void 0?null:pe,ce={versionId:ve},me=oe.copySize,Ee=oe.partSize,Te=oe.uploadId,Re=oe.doneParts,_e=oe.name,ye=this._divideMultipartCopyParts(me,Ee,le.startOffset),be=ye.length,Se={headers:{}},he.copyheaders&&ee(he.copyheaders).to(Se.headers),ve&&ee(ce).to(Se),Ie=function(Xe,Ye,Ge){return new Promise(function(){var at=(0,ie.default)(z.default.mark(function Qe(ft,ot){var Je,Fe,Pe;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(fe.prev=0,Xe.isCancel()){fe.next=22;break}return Je=ye[Ye-1],Fe="".concat(Je.start,"-").concat(Je.end-1),fe.prev=4,fe.next=7,Xe.uploadPartCopy(_e,Te,Ye,Fe,Ge,Se);case 7:Pe=fe.sent,fe.next=15;break;case 10:if(fe.prev=10,fe.t0=fe.catch(4),fe.t0.status!==404){fe.next=14;break}throw Xe._makeAbortEvent();case 14:throw fe.t0;case 15:if(Xe.isCancel()){fe.next=22;break}if(ae("content-range ".concat(Pe.res.headers["content-range"])),Re.push({number:Ye,etag:Pe.res.headers.etag}),oe.doneParts=Re,!(he&&he.progress)){fe.next=22;break}return fe.next=22,he.progress(Re.length/be,oe,Pe.res);case 22:ft(),fe.next=29;break;case 25:fe.prev=25,fe.t1=fe.catch(0),fe.t1.partNum=Ye,ot(fe.t1);case 29:case"end":return fe.stop()}},Qe,null,[[0,25],[4,10]])}));return function(Qe,ft){return at.apply(this,arguments)}}())},Me=Array.from(new Array(be),function(et,Xe){return Xe+1}),Ae=Re.map(function(et){return et.number}),De=Me.filter(function(et){return Ae.indexOf(et)<0}),He=5,Ke=he.parallel||He,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ke===1)){rt.next=28;break}Ve=0;case 18:if(!(Ve<De.length)){rt.next=26;break}if(!this.isCancel()){rt.next=21;break}throw this._makeCancelEvent();case 21:return rt.next=23,Ie(this,De[Ve],le);case 23:Ve++,rt.next=18;break;case 26:rt.next=40;break;case 28:return rt.next=30,this._parallelNode(De,Ke,Ie,le);case 30:if(nt=rt.sent,Ne=nt.find(function(et){return et.name==="abort"}),!Ne){rt.next=34;break}throw Ne;case 34:if(!this.isCancel()){rt.next=36;break}throw this._makeCancelEvent();case 36:if(!(nt&&nt.length>0)){rt.next=40;break}throw We=nt[0],We.message="Failed to copy some parts with error: ".concat(We.toString()," part_num: ").concat(We.partNum),We;case 40:return rt.next=42,this.completeMultipartUpload(_e,Te,Re,he);case 42:return rt.abrupt("return",rt.sent);case 43:case"end":return rt.stop()}},re,this)}));function ne(re,oe,le){return E.apply(this,arguments)}return ne}(),de._divideMultipartCopyParts=function(ne,re,oe){for(var le=Math.ceil(ne/re),he=[],pe=0;pe<le;pe++){var ve=re*pe+oe,ce=Math.min(ve+re,ne+oe);he.push({start:ve,end:ce})}return he},de._getObjectMeta=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le,he){var pe,ve;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return pe=this.getBucket(),this.setBucket(oe),me.next=4,this.head(le,he);case 4:return ve=me.sent,this.setBucket(pe),me.abrupt("return",ve);case 7:case"end":return me.stop()}},re,this)}));function ne(re,oe,le){return E.apply(this,arguments)}return ne}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var ae=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),de=y("./callback"),E=y("./utils/deepCopy"),ne=E.deepCopyWith,re=y("./utils/isBuffer"),oe=re.isBuffer,le=y("./utils/omit"),he=le.omit,pe=we;pe.listUploads=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te){var Re,_e,ye,be;return ie.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Te=Te||{},Re={},ee(Te).to(Re),Re.subres="uploads",_e=this._objectRequestParams("GET","",Re),_e.query=Ee,_e.xmlResponse=!0,_e.successStatuses=[200],Ie.next=10,this.request(_e);case 10:return ye=Ie.sent,be=ye.data.Upload||[],Array.isArray(be)||(be=[be]),be=be.map(function(Me){return{name:Me.Key,uploadId:Me.UploadId,initiated:Me.Initiated}}),Ie.abrupt("return",{res:ye.res,uploads:be,bucket:ye.data.Bucket,nextKeyMarker:ye.data.NextKeyMarker,nextUploadIdMarker:ye.data.NextUploadIdMarker,isTruncated:ye.data.IsTruncated==="true"});case 15:case"end":return Ie.stop()}},me,this)}));function ce(me,Ee){return ve.apply(this,arguments)}return ce}(),pe.listParts=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te,Re,_e){var ye,be,Se;return ie.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return _e=_e||{},ye={},ee(_e).to(ye),ye.subres={uploadId:Te},be=this._objectRequestParams("GET",Ee,ye),be.query=Re,be.xmlResponse=!0,be.successStatuses=[200],Me.next=10,this.request(be);case 10:return Se=Me.sent,Me.abrupt("return",{res:Se.res,uploadId:Se.data.UploadId,bucket:Se.data.Bucket,name:Se.data.Key,partNumberMarker:Se.data.PartNumberMarker,nextPartNumberMarker:Se.data.NextPartNumberMarker,maxParts:Se.data.MaxParts,isTruncated:Se.data.IsTruncated,parts:Se.data.Part||[]});case 12:case"end":return Me.stop()}},me,this)}));function ce(me,Ee,Te,Re){return ve.apply(this,arguments)}return ce}(),pe.abortMultipartUpload=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te,Re){var _e,ye,be;return ie.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return this._stop(),Re=Re||{},_e={},ee(Re).to(_e),_e.subres={uploadId:Te},ye=this._objectRequestParams("DELETE",Ee,_e),ye.successStatuses=[204],Ie.next=9,this.request(ye);case 9:return be=Ie.sent,Ie.abrupt("return",{res:be.res});case 11:case"end":return Ie.stop()}},me,this)}));function ce(me,Ee,Te){return ve.apply(this,arguments)}return ce}(),pe.initMultipartUpload=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te){var Re,_e,ye;return ie.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Te=Te||{},Re={},ee(Te).to(Re),Re.headers=Re.headers||{},this._convertMetaToHeaders(Te.meta,Re.headers),Re.subres="uploads",_e=this._objectRequestParams("POST",Ee,Re),_e.mime=Te.mime,_e.xmlResponse=!0,_e.successStatuses=[200],Se.next=12,this.request(_e);case 12:return ye=Se.sent,Se.abrupt("return",{res:ye.res,bucket:ye.data.Bucket,name:ye.data.Key,uploadId:ye.data.UploadId});case 14:case"end":return Se.stop()}},me,this)}));function ce(me,Ee){return ve.apply(this,arguments)}return ce}(),pe.uploadPart=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te,Re,_e,ye,be,Se){var Ie,Me;return ie.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Ie={size:be-ye},Me=x&&x.browser,!Me){De.next=8;break}return De.next=5,this._createBuffer(_e,ye,be);case 5:Ie.content=De.sent,De.next=11;break;case 8:return De.next=10,this._createStream(_e,ye,be);case 10:Ie.stream=De.sent;case 11:return De.next=13,this._uploadPart(Ee,Te,Re,Ie,Se);case 13:return De.abrupt("return",De.sent);case 14:case"end":return De.stop()}},me,this)}));function ce(me,Ee,Te,Re,_e,ye,be){return ve.apply(this,arguments)}return ce}(),pe.completeMultipartUpload=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te,Re,_e){var ye,be,Se,Ie,Me,Ae,De,He;return ie.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:for(ye=Re.concat().sort(function(nt,Ne){return nt.number-Ne.number}).filter(function(nt,Ne,We){return!Ne||nt.number!==We[Ne-1].number}),be=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Se=0;Se<ye.length;Se++)Ie=ye[Se],be+=`<Part>
`,be+="<PartNumber>".concat(Ie.number,`</PartNumber>
`),be+="<ETag>".concat(Ie.etag,`</ETag>
`),be+=`</Part>
`;return be+="</CompleteMultipartUpload>",_e=_e||{},Me={},Me=ne(_e,function(nt){if(oe(nt))return null}),Me.subres={uploadId:Te},Me.headers=he(Me.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ae=this._objectRequestParams("POST",Ee,Me),de.encodeCallback(Ae,Me),Ae.mime="xml",Ae.content=be,Ae.headers&&Ae.headers["x-oss-callback"]||(Ae.xmlResponse=!0),Ae.successStatuses=[200],Ve.next=17,this.request(Ae);case 17:if(De=Ve.sent,!_e.progress){Ve.next=21;break}return Ve.next=21,_e.progress(1,null,De.res);case 21:return He={res:De.res,bucket:Ae.bucket,name:Ee,etag:De.res.headers.etag},Ae.headers&&Ae.headers["x-oss-callback"]&&(He.data=JSON.parse(De.data.toString())),Ve.abrupt("return",He);case 24:case"end":return Ve.stop()}},me,this)}));function ce(me,Ee,Te,Re){return ve.apply(this,arguments)}return ce}(),pe._uploadPart=function(){var ve=(0,ae.default)(ie.default.mark(function me(Ee,Te,Re,_e,ye){var be,Se,Ie,Me;return ie.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ye=ye||{},be={},ee(ye).to(be),be.headers=be.headers||{},be.headers["Content-Length"]=_e.size,be.headers=he(be.headers,["x-oss-server-side-encryption"]),be.subres={partNumber:Re,uploadId:Te},Se=this._objectRequestParams("PUT",Ee,be),Se.mime=be.mime,Ie=x&&x.browser,Ie?Se.content=_e.content:Se.stream=_e.stream,Se.successStatuses=[200],Se.disabledMD5=ye.disabledMD5,De.next=15,this.request(Se);case 15:if(Me=De.sent,Me.res.headers.etag){De.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return _e.stream&&(_e.stream=null,Se.stream=null),De.abrupt("return",{name:Ee,etag:Me.res.headers.etag,res:Me.res});case 20:case"end":return De.stop()}},me,this)}));function ce(me,Ee,Te,Re,_e){return ve.apply(this,arguments)}return ce}()}).call(this)}).call(this,y("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("url"),ee=y("utility"),de=y("copy-to"),E=y("../../common/signUtils"),ne=y("../utils/isIP"),re=ne.isIP,oe=y("../utils/setSTSToken"),le=oe.setSTSToken,he=y("../utils/isFunction"),pe=he.isFunction,ve=we;ve.asyncSignatureUrl=function(){var ce=(0,ie.default)(z.default.mark(function Ee(Te,Re){var _e,ye,be,Se,Ie;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!re(this.options.endpoint.hostname)){Ae.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Re=Re||{},Te=this._objectName(Te),Re.method=Re.method||"GET",_e=ee.timestamp()+(Re.expires||1800),ye={bucket:this.options.bucket,object:Te},be=this._getResource(ye),!(this.options.stsToken&&pe(this.options.refreshSTSToken))){Ae.next=11;break}return Ae.next=11,le.call(this);case 11:return this.options.stsToken&&(Re["security-token"]=this.options.stsToken),Se=E._signatureForURL(this.options.accessKeySecret,Re,be,_e),Ie=ae.parse(this._getReqUrl(ye)),Ie.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_e,Signature:Se.Signature},de(Se.subResource).to(Ie.query),Ae.abrupt("return",Ie.format());case 17:case"end":return Ae.stop()}},Ee,this)}));function me(Ee,Te){return ce.apply(this,arguments)}return me}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var ie=x(y("@babel/runtime/helpers/typeof")),ae=x(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),de=ee.checkBucketName,E=we,ne=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];E.copy=function(){var re=(0,ae.default)(z.default.mark(function le(he,pe,ve,ce){var me,Ee,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return(0,ie.default)(ve)==="object"&&(ce=ve),ce=ce||{},ce.headers=ce.headers||{},Object.keys(ce.headers).forEach(function(ye){ce.headers["x-oss-copy-source-".concat(ye.toLowerCase())]=ce.headers[ye]}),(ce.meta||Object.keys(ce.headers).find(function(ye){return ne.includes(ye.toLowerCase())}))&&(ce.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ce.meta,ce.headers),pe=this._getSourceName(pe,ve),ce.versionId&&(pe="".concat(pe,"?versionId=").concat(ce.versionId)),ce.headers["x-oss-copy-source"]=pe,me=this._objectRequestParams("PUT",he,ce),me.xmlResponse=!0,me.successStatuses=[200,304],_e.next=14,this.request(me);case 14:return Ee=_e.sent,Te=Ee.data,Te&&(Te={etag:Te.ETag,lastModified:Te.LastModified}),_e.abrupt("return",{data:Te,res:Ee.res});case 18:case"end":return _e.stop()}},le,this)}));function oe(le,he,pe,ve){return re.apply(this,arguments)}return oe}(),E._getSourceName=function(oe,le){return typeof le=="string"?oe=this._objectName(oe):oe[0]!=="/"?le=this.options.bucket:(le=oe.replace(/\/(.+?)(\/.*)/,"$1"),oe=oe.replace(/(\/.+?\/)(.*)/,"$2")),de(le),oe=encodeURIComponent(oe),oe="/".concat(le,"/").concat(oe),oe}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.delete=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var re,oe,le,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({},re.subres),re.versionId&&(re.subres.versionId=re.versionId),oe=this._objectRequestParams("DELETE",ne,re),oe.successStatuses=[204],ve.next=7,this.request(oe);case 7:return le=ve.sent,ve.abrupt("return",{res:le.res});case 9:case"end":return ve.stop()}},E,this)}));function de(E){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("utility"),ee=y("../utils/obj2xml"),de=ee.obj2xml,E=we;E.deleteMulti=function(){var ne=(0,ie.default)(z.default.mark(function oe(le){var he,pe,ve,ce,me,Ee,Te,Re,_e,ye,be,Se,Ie,Me=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(he=Me.length>1&&Me[1]!==void 0?Me[1]:{},pe=[],!(!le||!le.length)){De.next=4;break}throw new Error("names is required");case 4:for(ve=0;ve<le.length;ve++)ce={},typeof le[ve]=="string"?ce.Key=ae.escape(this._objectName(le[ve])):(me=le[ve],Ee=me.key,Te=me.versionId,ce.Key=ae.escape(this._objectName(Ee)),ce.VersionId=Te),pe.push(ce);return Re={Delete:{Quiet:!!he.quiet,Object:pe}},_e=de(Re,{headers:!0}),he.subres=Object.assign({delete:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),ye=this._objectRequestParams("POST","",he),ye.mime="xml",ye.content=_e,ye.xmlResponse=!0,ye.successStatuses=[200],De.next=16,this.request(ye);case 16:return be=De.sent,Se=be.data,Ie=Se&&Se.Deleted||null,Ie&&(Array.isArray(Ie)||(Ie=[Ie])),De.abrupt("return",{res:be.res,deleted:Ie||[]});case 21:case"end":return De.stop()}},oe,this)}));function re(oe){return ne.apply(this,arguments)}return re}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.deleteObjectTagging=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var re,oe,le,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({tagging:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),oe=this._objectRequestParams("DELETE",ne,re),oe.successStatuses=[204],ve.next=8,this.request(oe);case 8:return le=ve.sent,ve.abrupt("return",{status:le.status,res:le.res});case 10:case"end":return ve.stop()}},E,this)}));function de(E){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(y,ke,we){"use strict";y("core-js/modules/es.array.concat.js");var x=y("url"),z=y("../utils/isIP"),ie=z.isIP,ae=we;ae.generateObjectUrl=function(de,E){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var ne=x.parse(E),re=this.options.bucket;ne.hostname="".concat(re,".").concat(ne.hostname),ne.host="".concat(re,".").concat(ne.host),E=ne.format()}return E+this._escape(this._objectName(de))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ae=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),de=y("is-type-of"),E=we;E.get=function(){var ne=(0,ae.default)(ie.default.mark(function oe(le,he){var pe,ve,ce,me,Ee,Te,Re,_e,ye=arguments;return ie.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return pe=ye.length>2&&ye[2]!==void 0?ye[2]:{},ve=null,ce=!1,de.writableStream(he)?ve=he:de.string(he)?(ve=ee.createWriteStream(he),ce=!0):pe=he,pe=pe||{},me=x&&x.browser,Ee=pe.responseCacheControl===null?"":"no-cache",Te=me&&Ee?{"response-cache-control":Ee}:{},pe.subres=Object.assign(Te,pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),pe.process&&(pe.subres["x-oss-process"]=pe.process),Se.prev=11,_e=this._objectRequestParams("GET",le,pe),_e.writeStream=ve,_e.successStatuses=[200,206,304],Se.next=17,this.request(_e);case 17:Re=Se.sent,ce&&ve.destroy(),Se.next=28;break;case 21:if(Se.prev=21,Se.t0=Se.catch(11),!ce){Se.next=27;break}return ve.destroy(),Se.next=27,this._deleteFileSafe(he);case 27:throw Se.t0;case 28:return Se.abrupt("return",{res:Re.res,content:Re.data});case 29:case"end":return Se.stop()}},oe,this,[[11,21]])}));function re(oe,le){return ne.apply(this,arguments)}return re}()}).call(this)}).call(this,y("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.getACL=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var re,oe,le,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),oe=this._objectRequestParams("GET",ne,re),oe.successStatuses=[200],oe.xmlResponse=!0,ve.next=9,this.request(oe);case 9:return le=ve.sent,ve.abrupt("return",{acl:le.data.AccessControlList.Grant,owner:{id:le.data.Owner.ID,displayName:le.data.Owner.DisplayName},res:le.res});case 11:case"end":return ve.stop()}},E,this)}));function de(E){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we,ee=y("../utils/isObject"),de=ee.isObject,E=y("../utils/isArray"),ne=E.isArray;ae.getBucketVersions=re,ae.listObjectVersions=re;function re(){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(z.default.mark(function pe(){var ve,ce,me,Ee,Te,Re,_e,ye,be=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(ve=be.length>0&&be[0]!==void 0?be[0]:{},ce=be.length>1&&be[1]!==void 0?be[1]:{},!(ve.versionIdMarker&&ve.keyMarker===void 0)){Ie.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ce.subres=Object.assign({versions:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),me=this._objectRequestParams("GET","",ce),me.xmlResponse=!0,me.successStatuses=[200],me.query=he(ve),Ie.next=12,this.request(me);case 12:return Ee=Ie.sent,Te=Ee.data.Version||[],Re=Ee.data.DeleteMarker||[],_e=this,Te&&(Array.isArray(Te)||(Te=[Te]),Te=Te.map(function(Me){return{name:Me.Key,url:_e._objectUrl(Me.Key),lastModified:Me.LastModified,isLatest:Me.IsLatest==="true",versionId:Me.VersionId,etag:Me.ETag,type:Me.Type,size:Number(Me.Size),storageClass:Me.StorageClass,owner:{id:Me.Owner.ID,displayName:Me.Owner.DisplayName}}})),Re&&(ne(Re)||(Re=[Re]),Re=Re.map(function(Me){return{name:Me.Key,lastModified:Me.LastModified,versionId:Me.VersionId,owner:{id:Me.Owner.ID,displayName:Me.Owner.DisplayName}}})),ye=Ee.data.CommonPrefixes||null,ye&&(ne(ye)||(ye=[ye]),ye=ye.map(function(Me){return Me.Prefix})),Ie.abrupt("return",{res:Ee.res,objects:Te,deleteMarker:Re,prefixes:ye,nextMarker:Ee.data.NextKeyMarker||null,NextVersionIdMarker:Ee.data.NextVersionIdMarker||null,nextKeyMarker:Ee.data.NextKeyMarker||null,nextVersionIdMarker:Ee.data.NextVersionIdMarker||null,isTruncated:Ee.data.IsTruncated==="true"});case 21:case"end":return Ie.stop()}},pe,this)})),oe.apply(this,arguments)}function le(pe){return pe.replace(/([A-Z])/g,"-$1").toLowerCase()}function he(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve={};return de(pe)&&Object.keys(pe).forEach(function(ce){ve[le(ce)]=pe[ce]}),ve}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.getObjectMeta=function(){var ee=(0,ie.default)(z.default.mark(function E(ne,re){var oe,le;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=re||{},ne=this._objectName(ne),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),oe=this._objectRequestParams("HEAD",ne,re),oe.successStatuses=[200],pe.next=8,this.request(oe);case 8:return le=pe.sent,pe.abrupt("return",{status:le.status,res:le.res});case 10:case"end":return pe.stop()}},E,this)}));function de(E,ne){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we,ee=y("../utils/isObject"),de=ee.isObject;ae.getObjectTagging=function(){var E=(0,ie.default)(z.default.mark(function re(oe){var le,he,pe,ve,ce,me,Ee=arguments;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return le=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},le.subres=Object.assign({tagging:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),oe=this._objectName(oe),he=this._objectRequestParams("GET",oe,le),he.successStatuses=[200],Re.next=8,this.request(he);case 8:return pe=Re.sent,Re.next=11,this.parseXML(pe.data);case 11:return ve=Re.sent,ce=ve.TagSet.Tag,ce=ce&&de(ce)?[ce]:ce||[],me={},ce.forEach(function(_e){me[_e.Key]=_e.Value}),Re.abrupt("return",{status:pe.status,res:pe.res,tag:me});case 17:case"end":return Re.stop()}},re,this)}));function ne(re){return E.apply(this,arguments)}return ne}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(y,ke,we){"use strict";var x=y("../utils/isIP"),z=x.isIP,ie=we;ie.getObjectUrl=function(ee,de){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return de?de[de.length-1]!=="/"&&(de+="/"):de=this.options.endpoint.format(),de+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.getSymlink=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var re,oe,le,he,pe=arguments;return z.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),oe=this._objectRequestParams("GET",ne,re),oe.successStatuses=[200],ce.next=8,this.request(oe);case 8:return le=ce.sent,he=le.res.headers["x-oss-symlink-target"],ce.abrupt("return",{targetName:decodeURIComponent(he),res:le.res});case 11:case"end":return ce.stop()}},E,this)}));function de(E){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkEnv"),ee=ae.checkEnv,de=we;de.head=function(){var E=(0,ie.default)(z.default.mark(function re(oe){var le,he,pe,ve,ce=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return le=ce.length>1&&ce[1]!==void 0?ce[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),le.subres=Object.assign({},le.subres),le.versionId&&(le.subres.versionId=le.versionId),he=this._objectRequestParams("HEAD",oe,le),he.successStatuses=[200,304],Ee.next=8,this.request(he);case 8:return pe=Ee.sent,ve={meta:null,res:pe.res,status:pe.status},pe.status===200&&Object.keys(pe.headers).forEach(function(Te){Te.indexOf("x-oss-meta-")===0&&(ve.meta||(ve.meta={}),ve.meta[Te.substring(11)]=pe.headers[Te])}),Ee.abrupt("return",ve);case 12:case"end":return Ee.stop()}},re,this)}));function ne(re){return E.apply(this,arguments)}return ne}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.putACL=function(){var ee=(0,ie.default)(z.default.mark(function E(ne,re,oe){var le,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return oe=oe||{},oe.subres=Object.assign({acl:""},oe.subres),oe.versionId&&(oe.subres.versionId=oe.versionId),oe.headers=oe.headers||{},oe.headers["x-oss-object-acl"]=re,ne=this._objectName(ne),le=this._objectRequestParams("PUT",ne,oe),le.successStatuses=[200],ve.next=10,this.request(le);case 10:return he=ve.sent,ve.abrupt("return",{res:he.res});case 12:case"end":return ve.stop()}},E,this)}));function de(E,ne,re){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.object.keys.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/obj2xml"),ee=ae.obj2xml,de=y("../utils/checkObjectTag"),E=de.checkObjectTag,ne=we;ne.putObjectTagging=function(){var re=(0,ie.default)(z.default.mark(function le(he,pe){var ve,ce,me,Ee,Te=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ve=Te.length>2&&Te[2]!==void 0?Te[2]:{},E(pe),ve.subres=Object.assign({tagging:""},ve.subres),ve.versionId&&(ve.subres.versionId=ve.versionId),he=this._objectName(he),ce=this._objectRequestParams("PUT",he,ve),ce.successStatuses=[200],pe=Object.keys(pe).map(function(ye){return{Key:ye,Value:pe[ye]}}),me={Tagging:{TagSet:{Tag:pe}}},ce.mime="xml",ce.content=ee(me),_e.next=13,this.request(ce);case 13:return Ee=_e.sent,_e.abrupt("return",{res:Ee.res,status:Ee.status});case 15:case"end":return _e.stop()}},le,this)}));function oe(le,he){return re.apply(this,arguments)}return oe}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=we;ae.putSymlink=function(){var ee=(0,ie.default)(z.default.mark(function E(ne,re,oe){var le,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return oe=oe||{},oe.headers=oe.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(oe.meta,oe.headers),oe.headers["x-oss-symlink-target"]=re,oe.subres=Object.assign({symlink:""},oe.subres),oe.versionId&&(oe.subres.versionId=oe.versionId),oe.storageClass&&(oe.headers["x-oss-storage-class"]=oe.storageClass),ne=this._objectName(ne),le=this._objectRequestParams("PUT",ne,oe),le.successStatuses=[200],ve.next=13,this.request(le);case 13:return he=ve.sent,ve.abrupt("return",{res:he.res});case 15:case"end":return ve.stop()}},E,this)}));function de(E,ne,re){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(y,ke,we){"use strict";var x=y("url"),z=y("utility"),ie=y("copy-to"),ae=y("../../common/signUtils"),ee=y("../utils/isIP"),de=ee.isIP,E=we;E.signatureUrl=function(re,oe){if(de(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");oe=oe||{},re=this._objectName(re),oe.method=oe.method||"GET";var le=z.timestamp()+(oe.expires||1800),he={bucket:this.options.bucket,object:re},pe=this._getResource(he);this.options.stsToken&&(oe["security-token"]=this.options.stsToken);var ve=ae._signatureForURL(this.options.accessKeySecret,oe,pe,le),ce=x.parse(this._getReqUrl(he));return ce.query={OSSAccessKeyId:this.options.accessKeyId,Expires:le,Signature:ve.Signature},ie(ve.subResource).to(ce.query),ce.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.function.name.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("./utils/isArray"),ee=ae.isArray,de=we;de._parallelNode=function(){var E=(0,ie.default)(z.default.mark(function re(oe,le,he,pe){var ve,ce,me,Ee,Te,Re,_e,ye;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:ve=this,ce=[],me=[],Ee=oe.length/le,Te=oe.length%le,Re=Te===0?Ee:(oe.length-Te)/le+1,_e=1,ye=0;case 8:if(!(ye<oe.length)){Se.next=26;break}if(!ve.isCancel()){Se.next=11;break}return Se.abrupt("break",26);case 11:if(pe?me.push(he(ve,oe[ye],pe)):me.push(he(ve,oe[ye])),!(me.length===le||_e===Re&&ye===oe.length-1)){Se.next=23;break}return Se.prev=13,_e+=1,Se.next=17,Promise.all(me);case 17:Se.next=22;break;case 19:Se.prev=19,Se.t0=Se.catch(13),ce.push(Se.t0);case 22:me=[];case 23:ye++,Se.next=8;break;case 26:return Se.abrupt("return",ce);case 27:case"end":return Se.stop()}},re,this,[[13,19]])}));function ne(re,oe,le,he){return E.apply(this,arguments)}return ne}(),de._parallel=function(ne,re,oe){var le=this;return new Promise(function(he){var pe=[];if(re<=0||!ne){he(pe);return}function ve(Se){return function(){if(Se===null)throw new Error("Callback was already called.");var Ie=Se;Se=null;for(var Me=arguments.length,Ae=new Array(Me),De=0;De<Me;De++)Ae[De]=arguments[De];Ie.apply(this,Ae)}}function ce(Se){var Ie=-1,Me=Se.length;return function(){return++Ie<Me&&!le.isCancel()?{value:Se[Ie],key:Ie}:null}}var me=ce(ne),Ee=!1,Te=0,Re=!1;function _e(Se){Te-=1,Se?(Ee=!0,pe.push(Se),he(pe)):Ee&&Te<=0?(Ee=!0,he(pe)):Re||(le.isCancel()?he(pe):be())}function ye(Se,Ie){oe(Se).then(function(Me){Ie(null,Me)}).catch(function(Me){Ie(Me)})}function be(){for(Re=!0;Te<re&&!Ee&&!le.isCancel();){var Se=me();if(Se===null||pe.length>0){Ee=!0,Te<=0&&he(pe);return}Te+=1,ye(Se.value,ve(_e))}Re=!1}be()})},de.cancel=function(ne){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var oe={name:"cancel",message:"cancel"};re.destroy(oe)}}),this.multipartUploadStreams=[],ne&&this.abortMultipartUpload(ne.name,ne.uploadId,ne.options)},de.isCancel=function(){return this.options.cancelFlag},de.resetCancelFlag=function(){this.options.cancelFlag=!1},de._stop=function(){this.options.cancelFlag=!0},de._makeCancelEvent=function(){var ne={status:0,name:"cancel"};return ne},de._makeAbortEvent=function(){var ne={status:0,name:"abort",message:"upload task has been abort"};return ne}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var z=y("./../../shims/crypto/crypto.js"),ie=y("is-type-of"),ae=y("./utils/lowercaseKeyHeader"),ee=ae.lowercaseKeyHeader;we.buildCanonicalizedResource=function(E,ne){var re="".concat(E),oe="?";if(ie.string(ne)&&ne.trim()!=="")re+=oe+ne;else if(ie.array(ne))ne.sort(),re+=oe+ne.join("&");else if(ne){var le=function(ve,ce){return ve[0]>ce[0]?1:ve[0]<ce[0]?-1:0},he=function(ve){re+=oe+ve,(ne[ve]||ne[ve]===0)&&(re+="=".concat(ne[ve])),oe="&"};Object.keys(ne).sort(le).forEach(he)}return re},we.buildCanonicalString=function(E,ne,re,oe){re=re||{};var le=ee(re.headers),he="x-oss-",pe=[],ve={},ce=[E.toUpperCase(),le["content-md5"]||"",le["content-type"],oe||le["x-oss-date"]];return Object.keys(le).forEach(function(me){var Ee=me.toLowerCase();Ee.indexOf(he)===0&&(ve[Ee]=String(le[me]).trim())}),Object.keys(ve).sort().forEach(function(me){pe.push("".concat(me,":").concat(ve[me]))}),ce=ce.concat(pe),ce.push(this.buildCanonicalizedResource(ne,re.parameters)),ce.join(`
`)},we.computeSignature=function(E,ne){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",oe=z.createHmac("sha1",E);return oe.update(x.from(ne,re)).digest("base64")},we.authorization=function(E,ne,re,oe){return"OSS ".concat(E,":").concat(this.computeSignature(ne,re,oe))},we._signatureForURL=function(E){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,oe=arguments.length>3?arguments[3]:void 0,le=arguments.length>4?arguments[4]:void 0,he={},pe=ne.subResource,ve=pe===void 0?{}:pe;if(ne.process){var ce="x-oss-process";ve[ce]=ne.process}if(ne.trafficLimit){var me="x-oss-traffic-limit";ve[me]=ne.trafficLimit}if(ne.response&&Object.keys(ne.response).forEach(function(_e){var ye="response-".concat(_e.toLowerCase());ve[ye]=ne.response[_e]}),Object.keys(ne).forEach(function(_e){var ye=_e.toLowerCase(),be=ne[_e];ye.indexOf("x-oss-")===0?he[ye]=be:(ye.indexOf("content-md5")===0||ye.indexOf("content-type")===0)&&(he[_e]=be)}),Object.prototype.hasOwnProperty.call(ne,"security-token")&&(ve["security-token"]=ne["security-token"]),Object.prototype.hasOwnProperty.call(ne,"callback")){var Ee={callbackUrl:encodeURI(ne.callback.url),callbackBody:ne.callback.body};if(ne.callback.host&&(Ee.callbackHost=ne.callback.host),ne.callback.contentType&&(Ee.callbackBodyType=ne.callback.contentType),ve.callback=x.from(JSON.stringify(Ee)).toString("base64"),ne.callback.customValue){var Te={};Object.keys(ne.callback.customValue).forEach(function(_e){Te["x:".concat(_e)]=ne.callback.customValue[_e]}),ve["callback-var"]=x.from(JSON.stringify(Te)).toString("base64")}}var Re=this.buildCanonicalString(ne.method,re,{headers:he,parameters:ve},oe.toString());return{Signature:this.computeSignature(E,Re,le),subResource:ve}}}).call(this)}).call(this,y("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(y,ke,we){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.checkBucketName=void 0,we.checkBucketName=function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(x))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,ke,we){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.checkConfigValid=void 0;var x={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}we.checkConfigValid=function(ie,ae){if(x[ae]){var ee=!0;if(x[ae]instanceof Function?ee=x[ae](ie):ee=x[ae].test(ie),!ee)throw new Error("The ".concat(ae," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,ke,we){(function(x){(function(){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.checkEnv=void 0;function z(ie){x.browser&&console.warn(ie)}we.checkEnv=z}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,ke,we){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.checkObjectTag=void 0;var x=y("./checkValid"),z=x.checkValid,ie=y("./isObject"),ae=ie.isObject,ee=[{validator:function(re){if(typeof re!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],de={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function E(ne){if(!ae(ne))throw new Error("tag must be Object");var re=Object.entries(ne);if(re.length>10)throw new Error("maximum of 10 tags for a object");var oe=["key","value"];re.forEach(function(le){le.forEach(function(he,pe){z(he,de[oe[pe]])})})}we.checkObjectTag=E},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(y,ke,we){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.checkValid=void 0;function x(z,ie){ie.forEach(function(ae){if(ae.validator)ae.validator(z);else if(ae.pattern&&!ae.pattern.test(z))throw new Error(ae.msg)})}we.checkValid=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.createRequest=void 0;var z=y("./../../../shims/crypto/crypto.js"),ie=y("debug")("ali-oss"),ae=y("mime"),ee=y("dateformat"),de=y("copy-to"),E=y("path"),ne=y("./encoder"),re=ne.encoder,oe=y("./isIP"),le=oe.isIP,he=y("./setRegion"),pe=he.setRegion,ve=y("../client/getReqUrl"),ce=ve.getReqUrl,me=y("./isDingTalk"),Ee=me.isDingTalk;function Te(ye,be){return ye[be]||ye[be.toLowerCase()]}function Re(ye,be){delete ye[be],delete ye[be.toLowerCase()]}function _e(ye){var be=new Date;this.options.amendTimeSkewed&&(be=+new Date+this.options.amendTimeSkewed);var Se={"x-oss-date":ee(be,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Se["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Se["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Se,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Se["x-oss-security-token"]=this.options.stsToken),de(ye.headers).to(Se),Te(Se,"Content-Type")||(ye.mime&&ye.mime.indexOf("/")>0?Se["Content-Type"]=ye.mime:Ee()?Se["Content-Type"]="application/octet-stream":Se["Content-Type"]=ae.getType(ye.mime||E.extname(ye.object||""))),Te(Se,"Content-Type")||Re(Se,"Content-Type"),ye.content&&(ye.disabledMD5||(!ye.headers||!ye.headers["Content-MD5"]?Se["Content-MD5"]=z.createHash("md5").update(x.from(ye.content,"utf8")).digest("base64"):Se["Content-MD5"]=ye.headers["Content-MD5"]),Se["Content-Length"]||(Se["Content-Length"]=ye.content.length));var Ie=Object.prototype.hasOwnProperty;for(var Me in Se)Se[Me]&&Ie.call(Se,Me)&&(Se[Me]=re(String(Se[Me]),this.options.headerEncoding));var Ae=this._getResource(ye);if(Se.authorization=this.authorization(ye.method,Ae,ye.subres,Se,this.options.headerEncoding),le(this.options.endpoint.hostname)){var De=this.options,He=De.region,Ke=De.internal,Ve=De.secure,nt=pe(He,Ke,Ve);Se.host="".concat(ye.bucket,".").concat(nt.host)}var Ne=ce.bind(this)(ye);ie("request %s %s, with headers %j, !!stream: %s",ye.method,Ne,Se,!!ye.stream);var We=ye.timeout||this.options.timeout,$e={method:ye.method,content:ye.content,stream:ye.stream,headers:Se,timeout:We,writeStream:ye.writeStream,customResponse:ye.customResponse,ctx:ye.ctx||this.ctx};return this.agent&&($e.agent=this.agent),this.httpsAgent&&($e.httpsAgent=this.httpsAgent),$e.enableProxy=!!this.options.enableProxy,$e.proxy=this.options.proxy?this.options.proxy:null,{url:Ne,params:$e}}we.createRequest=_e}).call(this)}).call(this,y("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(y,ke,we){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.dataFix=void 0;var x=y("./isObject"),z=["true","TRUE","1",1],ie=["false","FALSE","0",0];function ae(E,ne,re){if(x.isObject(E)){var oe=ne.remove,le=oe===void 0?[]:oe,he=ne.rename,pe=he===void 0?{}:he,ve=ne.camel,ce=ve===void 0?[]:ve,me=ne.bool,Ee=me===void 0?[]:me,Te=ne.lowerFirst,Re=Te===void 0?!1:Te;return le.forEach(function(_e){return delete E[_e]}),Object.entries(pe).forEach(function(_e){E[_e[0]]&&(E[_e[1]]||(E[_e[1]]=E[_e[0]],delete E[_e[0]]))}),ce.forEach(function(_e){if(E[_e]){var ye=_e.replace(/^(.)/,function(be){return be.toLowerCase()}).replace(/-(\w)/g,function(be,Se){return Se.toUpperCase()});E[ye]||(E[ye]=E[_e])}}),Ee.forEach(function(_e){E[_e]=ee(E[_e])}),typeof re=="function"&&re(E),de(E,Re),ae}}we.dataFix=ae;function ee(E){return E?z.includes(E)?!0:ie.includes(E)?!1:E:!1}function de(E,ne){ne&&Object.keys(E).forEach(function(re){var oe=re.replace(/^\w/,function(le){return le.toLowerCase()});typeof E[oe]=="undefined"&&(E[oe]=E[re],delete E[re])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var z=x(y("@babel/runtime/helpers/typeof"));Object.defineProperty(we,"__esModule",{value:!0}),we.deepCopyWith=we.deepCopy=void 0;var ie=y("./isBuffer");we.deepCopy=function(ae){if(ae===null||(0,z.default)(ae)!=="object")return ae;if(ie.isBuffer(ae))return ae.slice();var ee=Array.isArray(ae)?[]:{};return Object.keys(ae).forEach(function(de){ee[de]=we.deepCopy(ae[de])}),ee},we.deepCopyWith=function(ae,ee){function de(E,ne,re){var oe=ee(E,ne,re);if(oe!==void 0)return oe;if(E===null||(0,z.default)(E)!=="object")return E;if(ie.isBuffer(E))return E.slice();var le=Array.isArray(E)?[]:{};return Object.keys(E).forEach(function(he){le[he]=de(E[he],he,E)}),le}return ee?de(ae,"",null):we.deepCopy(ae)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.encoder=void 0;function z(ie){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ae==="utf-8"?ie:x.from(ie).toString("latin1")}we.encoder=z}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(y,ke,we){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.formatInventoryConfig=void 0;var x=y("../utils/dataFix"),z=y("../utils/isObject"),ie=y("../utils/isArray"),ae=y("../utils/formatObjKey");function ee(E){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne&&z.isObject(E)&&(E=[E]),ie.isArray(E)?E=E.map(de):E=de(E),E}we.formatInventoryConfig=ee;function de(E){return x.dataFix(E,{bool:["IsEnabled"]},function(ne){var re,oe;ne.prefix=ne.Filter.Prefix,delete ne.Filter,ne.OSSBucketDestination=ne.Destination.OSSBucketDestination,ne.OSSBucketDestination.rolename=ne.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ne.OSSBucketDestination.RoleArn,ne.OSSBucketDestination.bucket=ne.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ne.OSSBucketDestination.Bucket,delete ne.Destination,ne.frequency=ne.Schedule.Frequency,delete ne.Schedule.Frequency,!((re=ne==null?void 0:ne.OptionalFields)===null||re===void 0)&&re.Field&&!ie.isArray((oe=ne.OptionalFields)===null||oe===void 0?void 0:oe.Field)&&(ne.OptionalFields.Field=[ne.OptionalFields.Field])}),E=ae.formatObjKey(E,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),E}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var z=x(y("@babel/runtime/helpers/typeof"));Object.defineProperty(we,"__esModule",{value:!0}),we.formatObjKey=void 0;function ie(ee,de,E){if(ee===null||(0,z.default)(ee)!=="object")return ee;var ne;if(Array.isArray(ee)){ne=[];for(var re=0;re<ee.length;re++)ne.push(ie(ee[re],de,E))}else ne={},Object.keys(ee).forEach(function(oe){ne[ae(oe,de,E)]=ie(ee[oe],de,E)});return ne}we.formatObjKey=ie;function ae(ee,de,E){return E&&E.exclude&&E.exclude.includes(ee)||(de==="firstUpperCase"?ee=ee.replace(/^./,function(ne){return ne.toUpperCase()}):de==="firstLowerCase"&&(ee=ee.replace(/^./,function(ne){return ne.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(y,ke,we){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.getStrBytesCount=void 0;function x(z){for(var ie=0,ae=0;ae<z.length;ae++){var ee=z.charAt(ae);/^[\u00-\uff]$/.test(ee)?ie+=1:ie+=2}return ie}we.getStrBytesCount=x},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,ke,we){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.isArray=void 0,we.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,ke,we){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.isBlob=void 0;function x(z){return typeof Blob!="undefined"&&z instanceof Blob}we.isBlob=x},{}],65:[function(y,ke,we){(function(x){(function(){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.isBuffer=void 0;function z(ie){return x.isBuffer(ie)}we.isBuffer=z}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.isDingTalk=void 0;function z(){return!!(x.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}we.isDingTalk=z}).call(this)}).call(this,y("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(y,ke,we){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.isFile=void 0,we.isFile=function(x){return typeof File!="undefined"&&x instanceof File}},{}],68:[function(y,ke,we){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.isFunction=void 0,we.isFunction=function(x){return typeof x=="function"}},{}],69:[function(y,ke,we){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.isIP=void 0,we.isIP=function(x){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ie=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(x)||ie.test(x)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,ke,we){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.isObject=void 0,we.isObject=function(x){return Object.prototype.toString.call(x)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,ke,we){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.lowercaseKeyHeader=void 0;var x=y("./isObject");function z(ie){var ae={};return x.isObject(ie)&&Object.keys(ie).forEach(function(ee){ae[ee.toLowerCase()]=ie[ee]}),ae}we.lowercaseKeyHeader=z},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(y,ke,we){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.obj2xml=void 0;var x=y("./formatObjKey");function z(ae){return Object.prototype.toString.call(ae).replace(/(.*? |])/g,"").toLowerCase()}function ie(ae,ee){var de="";return ee&&ee.headers&&(de=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(ae=x.formatObjKey(ae,"firstUpperCase")),z(ae)==="object"?Object.keys(ae).forEach(function(E){z(ae[E])!=="undefined"&&z(ae[E])!=="null"&&(z(ae[E])==="string"||z(ae[E])==="number"?de+="<".concat(E,">").concat(ae[E],"</").concat(E,">"):z(ae[E])==="object"?de+="<".concat(E,">").concat(ie(ae[E]),"</").concat(E,">"):z(ae[E])==="array"?de+=ae[E].map(function(ne){return"<".concat(E,">").concat(ie(ne),"</").concat(E,">")}).join(""):de+="<".concat(E,">").concat(ae[E].toString(),"</").concat(E,">"))}):de+=ae.toString(),de}we.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(y,ke,we){"use strict";y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.symbol.iterator.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/es.object.assign.js");function x(ee,de){var E=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!E){if(Array.isArray(ee)||(E=z(ee))||de&&ee&&typeof ee.length=="number"){E&&(ee=E);var ne=0,re=function(){};return{s:re,n:function(){return ne>=ee.length?{done:!0}:{done:!1,value:ee[ne++]}},e:function(ve){throw ve},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oe=!0,le=!1,he;return{s:function(){E=E.call(ee)},n:function(){var ve=E.next();return oe=ve.done,ve},e:function(ve){le=!0,he=ve},f:function(){try{!oe&&E.return!=null&&E.return()}finally{if(le)throw he}}}}function z(ee,de){if(ee){if(typeof ee=="string")return ie(ee,de);var E=Object.prototype.toString.call(ee).slice(8,-1);if(E==="Object"&&ee.constructor&&(E=ee.constructor.name),E==="Map"||E==="Set")return Array.from(ee);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return ie(ee,de)}}function ie(ee,de){(de==null||de>ee.length)&&(de=ee.length);for(var E=0,ne=new Array(de);E<de;E++)ne[E]=ee[E];return ne}Object.defineProperty(we,"__esModule",{value:!0}),we.omit=void 0;function ae(ee,de){var E=Object.assign({},ee),ne=x(de),re;try{for(ne.s();!(re=ne.n()).done;){var oe=re.value;delete E[oe]}}catch(le){ne.e(le)}finally{ne.f()}return E}we.omit=ae},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(y,ke,we){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(we,"__esModule",{value:!0}),we.retry=void 0;function x(z,ie){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,de=ae.retryDelay,E=de===void 0?500:de,ne=ae.errorHandler,re=ne===void 0?function(){return!0}:ne,oe=function le(){for(var he=arguments.length,pe=new Array(he),ve=0;ve<he;ve++)pe[ve]=arguments[ve];return new Promise(function(ce,me){z.apply(void 0,pe).then(function(Ee){ee=0,ce(Ee)}).catch(function(Ee){ee<ie&&re(Ee)?(ee++,setTimeout(function(){ce(le.apply(void 0,pe))},E)):(ee=0,me(Ee))})})};return oe}we.retry=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,ke,we){"use strict";var x=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(we,"__esModule",{value:!0}),we.setRegion=void 0;var z=x(y("url")),ie=y("./checkConfigValid");function ae(ee){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(ee,"region");var ne=E?"https://":"http://",re=de?"-internal.aliyuncs.com":".aliyuncs.com",oe="vpc100-oss-cn-";return ee.substr(0,oe.length)===oe&&(re=".aliyuncs.com"),z.default.parse(ne+ee+re)}we.setRegion=ae},{"./checkConfigValid":52,url:472}],76:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(we,"__esModule",{value:!0}),we.checkCredentials=we.setSTSToken=void 0;var ae=y("./formatObjKey");function ee(){return de.apply(this,arguments)}function de(){return de=(0,ie.default)(z.default.mark(function ne(){var re,oe;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(this.options||(this.options={}),re=new Date,!this.stsTokenFreshTime){he.next=14;break}if(!(+re-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){he.next=12;break}return this.stsTokenFreshTime=re,he.next=7,this.options.refreshSTSToken();case 7:oe=he.sent,oe=ae.formatObjKey(oe,"firstLowerCase"),oe.securityToken&&(oe.stsToken=oe.securityToken),E(oe),Object.assign(this.options,oe);case 12:he.next=15;break;case 14:this.stsTokenFreshTime=re;case 15:return he.abrupt("return",null);case 16:case"end":return he.stop()}},ne,this)})),de.apply(this,arguments)}we.setSTSToken=ee;function E(ne){var re=["accessKeySecret","accessKeyId","stsToken"],oe=Object.keys(ne);re.forEach(function(le){if(!oe.find(function(he){return he===le}))throw Error("refreshSTSToken must return contains ".concat(le))})}we.checkCredentials=E},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(y,ke,we){function x(ie,ae,ee,de,E,ne,re){try{var oe=ie[ne](re),le=oe.value}catch(he){ee(he);return}oe.done?ae(le):Promise.resolve(le).then(de,E)}function z(ie){return function(){var ae=this,ee=arguments;return new Promise(function(de,E){var ne=ie.apply(ae,ee);function re(le){x(ne,de,E,re,oe,"next",le)}function oe(le){x(ne,de,E,re,oe,"throw",le)}re(void 0)})}}ke.exports=z,ke.exports.__esModule=!0,ke.exports.default=ke.exports},{}],78:[function(y,ke,we){function x(z){return z&&z.__esModule?z:{default:z}}ke.exports=x,ke.exports.__esModule=!0,ke.exports.default=ke.exports},{}],79:[function(y,ke,we){function x(z){"@babel/helpers - typeof";return ke.exports=x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},ke.exports.__esModule=!0,ke.exports.default=ke.exports,x(z)}ke.exports=x,ke.exports.__esModule=!0,ke.exports.default=ke.exports},{}],80:[function(y,ke,we){ke.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,ke,we){ke.exports=x,ke.exports.HttpsAgent=x;function x(){}},{}],82:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("object-assign");function ie(He,Ke){if(He===Ke)return 0;for(var Ve=He.length,nt=Ke.length,Ne=0,We=Math.min(Ve,nt);Ne<We;++Ne)if(He[Ne]!==Ke[Ne]){Ve=He[Ne],nt=Ke[Ne];break}return Ve<nt?-1:nt<Ve?1:0}function ae(He){return x.Buffer&&typeof x.Buffer.isBuffer=="function"?x.Buffer.isBuffer(He):!!(He!=null&&He._isBuffer)}var ee=y("util/"),de=Object.prototype.hasOwnProperty,E=Array.prototype.slice,ne=function(){return function(){}.name==="foo"}();function re(He){return Object.prototype.toString.call(He)}function oe(He){return ae(He)||typeof x.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(He):He?!!(He instanceof DataView||He.buffer&&He.buffer instanceof ArrayBuffer):!1}var le=ke.exports=Te,he=/\s*function\s+([^\(\s]*)\s*/;function pe(He){if(ee.isFunction(He)){if(ne)return He.name;var Ke=He.toString(),Ve=Ke.match(he);return Ve&&Ve[1]}}le.AssertionError=function(Ke){this.name="AssertionError",this.actual=Ke.actual,this.expected=Ke.expected,this.operator=Ke.operator,Ke.message?(this.message=Ke.message,this.generatedMessage=!1):(this.message=me(this),this.generatedMessage=!0);var Ve=Ke.stackStartFunction||Ee;if(Error.captureStackTrace)Error.captureStackTrace(this,Ve);else{var nt=new Error;if(nt.stack){var Ne=nt.stack,We=pe(Ve),$e=Ne.indexOf(`
`+We);if($e>=0){var rt=Ne.indexOf(`
`,$e+1);Ne=Ne.substring(rt+1)}this.stack=Ne}}},ee.inherits(le.AssertionError,Error);function ve(He,Ke){return typeof He=="string"?He.length<Ke?He:He.slice(0,Ke):He}function ce(He){if(ne||!ee.isFunction(He))return ee.inspect(He);var Ke=pe(He),Ve=Ke?": "+Ke:"";return"[Function"+Ve+"]"}function me(He){return ve(ce(He.actual),128)+" "+He.operator+" "+ve(ce(He.expected),128)}function Ee(He,Ke,Ve,nt,Ne){throw new le.AssertionError({message:Ve,actual:He,expected:Ke,operator:nt,stackStartFunction:Ne})}le.fail=Ee;function Te(He,Ke){He||Ee(He,!0,Ke,"==",le.ok)}le.ok=Te,le.equal=function(Ke,Ve,nt){Ke!=Ve&&Ee(Ke,Ve,nt,"==",le.equal)},le.notEqual=function(Ke,Ve,nt){Ke==Ve&&Ee(Ke,Ve,nt,"!=",le.notEqual)},le.deepEqual=function(Ke,Ve,nt){Re(Ke,Ve,!1)||Ee(Ke,Ve,nt,"deepEqual",le.deepEqual)},le.deepStrictEqual=function(Ke,Ve,nt){Re(Ke,Ve,!0)||Ee(Ke,Ve,nt,"deepStrictEqual",le.deepStrictEqual)};function Re(He,Ke,Ve,nt){if(He===Ke)return!0;if(ae(He)&&ae(Ke))return ie(He,Ke)===0;if(ee.isDate(He)&&ee.isDate(Ke))return He.getTime()===Ke.getTime();if(ee.isRegExp(He)&&ee.isRegExp(Ke))return He.source===Ke.source&&He.global===Ke.global&&He.multiline===Ke.multiline&&He.lastIndex===Ke.lastIndex&&He.ignoreCase===Ke.ignoreCase;if((He===null||typeof He!="object")&&(Ke===null||typeof Ke!="object"))return Ve?He===Ke:He==Ke;if(oe(He)&&oe(Ke)&&re(He)===re(Ke)&&!(He instanceof Float32Array||He instanceof Float64Array))return ie(new Uint8Array(He.buffer),new Uint8Array(Ke.buffer))===0;if(ae(He)!==ae(Ke))return!1;nt=nt||{actual:[],expected:[]};var Ne=nt.actual.indexOf(He);return Ne!==-1&&Ne===nt.expected.indexOf(Ke)?!0:(nt.actual.push(He),nt.expected.push(Ke),ye(He,Ke,Ve,nt))}function _e(He){return Object.prototype.toString.call(He)=="[object Arguments]"}function ye(He,Ke,Ve,nt){if(He==null||Ke===null||Ke===void 0)return!1;if(ee.isPrimitive(He)||ee.isPrimitive(Ke))return He===Ke;if(Ve&&Object.getPrototypeOf(He)!==Object.getPrototypeOf(Ke))return!1;var Ne=_e(He),We=_e(Ke);if(Ne&&!We||!Ne&&We)return!1;if(Ne)return He=E.call(He),Ke=E.call(Ke),Re(He,Ke,Ve);var $e=De(He),rt=De(Ke),et,Xe;if($e.length!==rt.length)return!1;for($e.sort(),rt.sort(),Xe=$e.length-1;Xe>=0;Xe--)if($e[Xe]!==rt[Xe])return!1;for(Xe=$e.length-1;Xe>=0;Xe--)if(et=$e[Xe],!Re(He[et],Ke[et],Ve,nt))return!1;return!0}le.notDeepEqual=function(Ke,Ve,nt){Re(Ke,Ve,!1)&&Ee(Ke,Ve,nt,"notDeepEqual",le.notDeepEqual)},le.notDeepStrictEqual=be;function be(He,Ke,Ve){Re(He,Ke,!0)&&Ee(He,Ke,Ve,"notDeepStrictEqual",be)}le.strictEqual=function(Ke,Ve,nt){Ke!==Ve&&Ee(Ke,Ve,nt,"===",le.strictEqual)},le.notStrictEqual=function(Ke,Ve,nt){Ke===Ve&&Ee(Ke,Ve,nt,"!==",le.notStrictEqual)};function Se(He,Ke){if(!He||!Ke)return!1;if(Object.prototype.toString.call(Ke)=="[object RegExp]")return Ke.test(He);try{if(He instanceof Ke)return!0}catch(Ve){}return Error.isPrototypeOf(Ke)?!1:Ke.call({},He)===!0}function Ie(He){var Ke;try{He()}catch(Ve){Ke=Ve}return Ke}function Me(He,Ke,Ve,nt){var Ne;if(typeof Ke!="function")throw new TypeError('"block" argument must be a function');typeof Ve=="string"&&(nt=Ve,Ve=null),Ne=Ie(Ke),nt=(Ve&&Ve.name?" ("+Ve.name+").":".")+(nt?" "+nt:"."),He&&!Ne&&Ee(Ne,Ve,"Missing expected exception"+nt);var We=typeof nt=="string",$e=!He&&ee.isError(Ne),rt=!He&&Ne&&!Ve;if(($e&&We&&Se(Ne,Ve)||rt)&&Ee(Ne,Ve,"Got unwanted exception"+nt),He&&Ne&&Ve&&!Se(Ne,Ve)||!He&&Ne)throw Ne}le.throws=function(He,Ke,Ve){Me(!0,He,Ke,Ve)},le.doesNotThrow=function(He,Ke,Ve){Me(!1,He,Ke,Ve)},le.ifError=function(He){if(He)throw He};function Ae(He,Ke){He||Ee(He,!0,Ke,"==",Ae)}le.strict=z(Ae,le,{equal:le.strictEqual,deepEqual:le.deepStrictEqual,notEqual:le.notStrictEqual,notDeepEqual:le.notDeepStrictEqual}),le.strict.strict=le.strict;var De=Object.keys||function(He){var Ke=[];for(var Ve in He)de.call(He,Ve)&&Ke.push(Ve);return Ke}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,ke,we){typeof Object.create=="function"?ke.exports=function(z,ie){z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:ke.exports=function(z,ie){z.super_=ie;var ae=function(){};ae.prototype=ie.prototype,z.prototype=new ae,z.prototype.constructor=z}},{}],84:[function(y,ke,we){ke.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(y,ke,we){(function(x,z){(function(){var ie=/%[sdj%]/g;we.format=function(rt){if(!ye(rt)){for(var et=[],Xe=0;Xe<arguments.length;Xe++)et.push(de(arguments[Xe]));return et.join(" ")}for(var Xe=1,Ye=arguments,Ge=Ye.length,at=String(rt).replace(ie,function(ft){if(ft==="%%")return"%";if(Xe>=Ge)return ft;switch(ft){case"%s":return String(Ye[Xe++]);case"%d":return Number(Ye[Xe++]);case"%j":try{return JSON.stringify(Ye[Xe++])}catch(ot){return"[Circular]"}default:return ft}}),Qe=Ye[Xe];Xe<Ge;Qe=Ye[++Xe])Te(Qe)||!Me(Qe)?at+=" "+Qe:at+=" "+de(Qe);return at},we.deprecate=function(rt,et){if(Se(z.process))return function(){return we.deprecate(rt,et).apply(this,arguments)};if(x.noDeprecation===!0)return rt;var Xe=!1;function Ye(){if(!Xe){if(x.throwDeprecation)throw new Error(et);x.traceDeprecation?console.trace(et):console.error(et),Xe=!0}return rt.apply(this,arguments)}return Ye};var ae={},ee;we.debuglog=function(rt){if(Se(ee)&&(ee=x.env.NODE_DEBUG||""),rt=rt.toUpperCase(),!ae[rt])if(new RegExp("\\b"+rt+"\\b","i").test(ee)){var et=x.pid;ae[rt]=function(){var Xe=we.format.apply(we,arguments);console.error("%s %d: %s",rt,et,Xe)}}else ae[rt]=function(){};return ae[rt]};function de(rt,et){var Xe={seen:[],stylize:ne};return arguments.length>=3&&(Xe.depth=arguments[2]),arguments.length>=4&&(Xe.colors=arguments[3]),Ee(et)?Xe.showHidden=et:et&&we._extend(Xe,et),Se(Xe.showHidden)&&(Xe.showHidden=!1),Se(Xe.depth)&&(Xe.depth=2),Se(Xe.colors)&&(Xe.colors=!1),Se(Xe.customInspect)&&(Xe.customInspect=!0),Xe.colors&&(Xe.stylize=E),oe(Xe,rt,Xe.depth)}we.inspect=de,de.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},de.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(rt,et){var Xe=de.styles[et];return Xe?"\x1B["+de.colors[Xe][0]+"m"+rt+"\x1B["+de.colors[Xe][1]+"m":rt}function ne(rt,et){return rt}function re(rt){var et={};return rt.forEach(function(Xe,Ye){et[Xe]=!0}),et}function oe(rt,et,Xe){if(rt.customInspect&&et&&He(et.inspect)&&et.inspect!==we.inspect&&!(et.constructor&&et.constructor.prototype===et)){var Ye=et.inspect(Xe,rt);return ye(Ye)||(Ye=oe(rt,Ye,Xe)),Ye}var Ge=le(rt,et);if(Ge)return Ge;var at=Object.keys(et),Qe=re(at);if(rt.showHidden&&(at=Object.getOwnPropertyNames(et)),De(et)&&(at.indexOf("message")>=0||at.indexOf("description")>=0))return he(et);if(at.length===0){if(He(et)){var ft=et.name?": "+et.name:"";return rt.stylize("[Function"+ft+"]","special")}if(Ie(et))return rt.stylize(RegExp.prototype.toString.call(et),"regexp");if(Ae(et))return rt.stylize(Date.prototype.toString.call(et),"date");if(De(et))return he(et)}var ot="",Je=!1,Fe=["{","}"];if(me(et)&&(Je=!0,Fe=["[","]"]),He(et)){var Pe=et.name?": "+et.name:"";ot=" [Function"+Pe+"]"}if(Ie(et)&&(ot=" "+RegExp.prototype.toString.call(et)),Ae(et)&&(ot=" "+Date.prototype.toUTCString.call(et)),De(et)&&(ot=" "+he(et)),at.length===0&&(!Je||et.length==0))return Fe[0]+ot+Fe[1];if(Xe<0)return Ie(et)?rt.stylize(RegExp.prototype.toString.call(et),"regexp"):rt.stylize("[Object]","special");rt.seen.push(et);var te;return Je?te=pe(rt,et,Xe,Qe,at):te=at.map(function(fe){return ve(rt,et,Xe,Qe,fe,Je)}),rt.seen.pop(),ce(te,ot,Fe)}function le(rt,et){if(Se(et))return rt.stylize("undefined","undefined");if(ye(et)){var Xe="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(Xe,"string")}if(_e(et))return rt.stylize(""+et,"number");if(Ee(et))return rt.stylize(""+et,"boolean");if(Te(et))return rt.stylize("null","null")}function he(rt){return"["+Error.prototype.toString.call(rt)+"]"}function pe(rt,et,Xe,Ye,Ge){for(var at=[],Qe=0,ft=et.length;Qe<ft;++Qe)$e(et,String(Qe))?at.push(ve(rt,et,Xe,Ye,String(Qe),!0)):at.push("");return Ge.forEach(function(ot){ot.match(/^\d+$/)||at.push(ve(rt,et,Xe,Ye,ot,!0))}),at}function ve(rt,et,Xe,Ye,Ge,at){var Qe,ft,ot;if(ot=Object.getOwnPropertyDescriptor(et,Ge)||{value:et[Ge]},ot.get?ot.set?ft=rt.stylize("[Getter/Setter]","special"):ft=rt.stylize("[Getter]","special"):ot.set&&(ft=rt.stylize("[Setter]","special")),$e(Ye,Ge)||(Qe="["+Ge+"]"),ft||(rt.seen.indexOf(ot.value)<0?(Te(Xe)?ft=oe(rt,ot.value,null):ft=oe(rt,ot.value,Xe-1),ft.indexOf(`
`)>-1&&(at?ft=ft.split(`
`).map(function(Je){return" "+Je}).join(`
`).substr(2):ft=`
`+ft.split(`
`).map(function(Je){return" "+Je}).join(`
`))):ft=rt.stylize("[Circular]","special")),Se(Qe)){if(at&&Ge.match(/^\d+$/))return ft;Qe=JSON.stringify(""+Ge),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=rt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=rt.stylize(Qe,"string"))}return Qe+": "+ft}function ce(rt,et,Xe){var Ye=0,Ge=rt.reduce(function(at,Qe){return Ye++,Qe.indexOf(`
`)>=0&&Ye++,at+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ge>60?Xe[0]+(et===""?"":et+`
`)+" "+rt.join(`,
`)+" "+Xe[1]:Xe[0]+et+" "+rt.join(", ")+" "+Xe[1]}function me(rt){return Array.isArray(rt)}we.isArray=me;function Ee(rt){return typeof rt=="boolean"}we.isBoolean=Ee;function Te(rt){return rt===null}we.isNull=Te;function Re(rt){return rt==null}we.isNullOrUndefined=Re;function _e(rt){return typeof rt=="number"}we.isNumber=_e;function ye(rt){return typeof rt=="string"}we.isString=ye;function be(rt){return typeof rt=="symbol"}we.isSymbol=be;function Se(rt){return rt===void 0}we.isUndefined=Se;function Ie(rt){return Me(rt)&&Ve(rt)==="[object RegExp]"}we.isRegExp=Ie;function Me(rt){return typeof rt=="object"&&rt!==null}we.isObject=Me;function Ae(rt){return Me(rt)&&Ve(rt)==="[object Date]"}we.isDate=Ae;function De(rt){return Me(rt)&&(Ve(rt)==="[object Error]"||rt instanceof Error)}we.isError=De;function He(rt){return typeof rt=="function"}we.isFunction=He;function Ke(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}we.isPrimitive=Ke,we.isBuffer=y("./support/isBuffer");function Ve(rt){return Object.prototype.toString.call(rt)}function nt(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var Ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function We(){var rt=new Date,et=[nt(rt.getHours()),nt(rt.getMinutes()),nt(rt.getSeconds())].join(":");return[rt.getDate(),Ne[rt.getMonth()],et].join(" ")}we.log=function(){console.log("%s - %s",We(),we.format.apply(we,arguments))},we.inherits=y("inherits"),we._extend=function(rt,et){if(!et||!Me(et))return rt;for(var Xe=Object.keys(et),Ye=Xe.length;Ye--;)rt[Xe[Ye]]=et[Xe[Ye]];return rt};function $e(rt,et){return Object.prototype.hasOwnProperty.call(rt,et)}}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,ke,we){(function(x){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?x:globalThis;ke.exports=function(){for(var ee=[],de=0;de<z.length;de++)typeof ie[z[de]]=="function"&&(ee[ee.length]=z[de]);return ee}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,ke,we){"use strict";we.byteLength=ne,we.toByteArray=oe,we.fromByteArray=pe;for(var x=[],z=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,de=ae.length;ee<de;++ee)x[ee]=ae[ee],z[ae.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function E(ve){var ce=ve.length;if(ce%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var me=ve.indexOf("=");me===-1&&(me=ce);var Ee=me===ce?0:4-me%4;return[me,Ee]}function ne(ve){var ce=E(ve),me=ce[0],Ee=ce[1];return(me+Ee)*3/4-Ee}function re(ve,ce,me){return(ce+me)*3/4-me}function oe(ve){var ce,me=E(ve),Ee=me[0],Te=me[1],Re=new ie(re(ve,Ee,Te)),_e=0,ye=Te>0?Ee-4:Ee,be;for(be=0;be<ye;be+=4)ce=z[ve.charCodeAt(be)]<<18|z[ve.charCodeAt(be+1)]<<12|z[ve.charCodeAt(be+2)]<<6|z[ve.charCodeAt(be+3)],Re[_e++]=ce>>16&255,Re[_e++]=ce>>8&255,Re[_e++]=ce&255;return Te===2&&(ce=z[ve.charCodeAt(be)]<<2|z[ve.charCodeAt(be+1)]>>4,Re[_e++]=ce&255),Te===1&&(ce=z[ve.charCodeAt(be)]<<10|z[ve.charCodeAt(be+1)]<<4|z[ve.charCodeAt(be+2)]>>2,Re[_e++]=ce>>8&255,Re[_e++]=ce&255),Re}function le(ve){return x[ve>>18&63]+x[ve>>12&63]+x[ve>>6&63]+x[ve&63]}function he(ve,ce,me){for(var Ee,Te=[],Re=ce;Re<me;Re+=3)Ee=(ve[Re]<<16&16711680)+(ve[Re+1]<<8&65280)+(ve[Re+2]&255),Te.push(le(Ee));return Te.join("")}function pe(ve){for(var ce,me=ve.length,Ee=me%3,Te=[],Re=16383,_e=0,ye=me-Ee;_e<ye;_e+=Re)Te.push(he(ve,_e,_e+Re>ye?ye:_e+Re));return Ee===1?(ce=ve[me-1],Te.push(x[ce>>2]+x[ce<<4&63]+"==")):Ee===2&&(ce=(ve[me-2]<<8)+ve[me-1],Te.push(x[ce>>10]+x[ce>>4&63]+x[ce<<2&63]+"=")),Te.join("")}},{}],88:[function(y,ke,we){(function(x,z,ie){typeof ke!="undefined"&&ke.exports?ke.exports=ie():typeof ze=="function"&&ze.amd?ze(z,ie):x[z]=ie()})(this,"bowser",function(){var x=!0;function z(re){function oe(et){var Xe=re.match(et);return Xe&&Xe.length>1&&Xe[1]||""}function le(et){var Xe=re.match(et);return Xe&&Xe.length>1&&Xe[2]||""}var he=oe(/(ipod|iphone|ipad)/i).toLowerCase(),pe=/like android/i.test(re),ve=!pe&&/android/i.test(re),ce=/nexus\s*[0-6]\s*/i.test(re),me=!ce&&/nexus\s*[0-9]+/i.test(re),Ee=/CrOS/.test(re),Te=/silk/i.test(re),Re=/sailfish/i.test(re),_e=/tizen/i.test(re),ye=/(web|hpw)(o|0)s/i.test(re),be=/windows phone/i.test(re),Se=/SamsungBrowser/i.test(re),Ie=!be&&/windows/i.test(re),Me=!he&&!Te&&/macintosh/i.test(re),Ae=!ve&&!Re&&!_e&&!ye&&/linux/i.test(re),De=le(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),He=oe(/version\/(\d+(\.\d+)?)/i),Ke=/tablet/i.test(re)&&!/tablet pc/i.test(re),Ve=!Ke&&/[^-]mobi/i.test(re),nt=/xbox/i.test(re),Ne;/opera/i.test(re)?Ne={name:"Opera",opera:x,version:He||oe(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?Ne={name:"Opera",opera:x,version:oe(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||He}:/SamsungBrowser/i.test(re)?Ne={name:"Samsung Internet for Android",samsungBrowser:x,version:He||oe(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?Ne={name:"NAVER Whale browser",whale:x,version:oe(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?Ne={name:"MZ Browser",mzbrowser:x,version:oe(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?Ne={name:"Opera Coast",coast:x,version:He||oe(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?Ne={name:"Focus",focus:x,version:oe(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?Ne={name:"Yandex Browser",yandexbrowser:x,version:He||oe(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?Ne={name:"UC Browser",ucbrowser:x,version:oe(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?Ne={name:"Maxthon",maxthon:x,version:oe(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?Ne={name:"Epiphany",epiphany:x,version:oe(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?Ne={name:"Puffin",puffin:x,version:oe(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?Ne={name:"Sleipnir",sleipnir:x,version:oe(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?Ne={name:"K-Meleon",kMeleon:x,version:oe(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:be?(Ne={name:"Windows Phone",osname:"Windows Phone",windowsphone:x},De?(Ne.msedge=x,Ne.version=De):(Ne.msie=x,Ne.version=oe(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?Ne={name:"Internet Explorer",msie:x,version:oe(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ee?Ne={name:"Chrome",osname:"Chrome OS",chromeos:x,chromeBook:x,chrome:x,version:oe(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?Ne={name:"Microsoft Edge",msedge:x,version:De}:/vivaldi/i.test(re)?Ne={name:"Vivaldi",vivaldi:x,version:oe(/vivaldi\/(\d+(\.\d+)?)/i)||He}:Re?Ne={name:"Sailfish",osname:"Sailfish OS",sailfish:x,version:oe(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?Ne={name:"SeaMonkey",seamonkey:x,version:oe(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(Ne={name:"Firefox",firefox:x,version:oe(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(Ne.firefoxos=x,Ne.osname="Firefox OS")):Te?Ne={name:"Amazon Silk",silk:x,version:oe(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?Ne={name:"PhantomJS",phantom:x,version:oe(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?Ne={name:"SlimerJS",slimer:x,version:oe(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?Ne={name:"BlackBerry",osname:"BlackBerry OS",blackberry:x,version:He||oe(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ye?(Ne={name:"WebOS",osname:"WebOS",webos:x,version:He||oe(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(Ne.touchpad=x)):/bada/i.test(re)?Ne={name:"Bada",osname:"Bada",bada:x,version:oe(/dolfin\/(\d+(\.\d+)?)/i)}:_e?Ne={name:"Tizen",osname:"Tizen",tizen:x,version:oe(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||He}:/qupzilla/i.test(re)?Ne={name:"QupZilla",qupzilla:x,version:oe(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||He}:/chromium/i.test(re)?Ne={name:"Chromium",chromium:x,version:oe(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||He}:/chrome|crios|crmo/i.test(re)?Ne={name:"Chrome",chrome:x,version:oe(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ve?Ne={name:"Android",version:He}:/safari|applewebkit/i.test(re)?(Ne={name:"Safari",safari:x},He&&(Ne.version=He)):he?(Ne={name:he=="iphone"?"iPhone":he=="ipad"?"iPad":"iPod"},He&&(Ne.version=He)):/googlebot/i.test(re)?Ne={name:"Googlebot",googlebot:x,version:oe(/googlebot\/(\d+(\.\d+))/i)||He}:Ne={name:oe(/^(.*)\/(.*) /),version:le(/^(.*)\/(.*) /)},!Ne.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(Ne.name=Ne.name||"Blink",Ne.blink=x):(Ne.name=Ne.name||"Webkit",Ne.webkit=x),!Ne.version&&He&&(Ne.version=He)):!Ne.opera&&/gecko\//i.test(re)&&(Ne.name=Ne.name||"Gecko",Ne.gecko=x,Ne.version=Ne.version||oe(/gecko\/(\d+(\.\d+)?)/i)),!Ne.windowsphone&&(ve||Ne.silk)?(Ne.android=x,Ne.osname="Android"):!Ne.windowsphone&&he?(Ne[he]=x,Ne.ios=x,Ne.osname="iOS"):Me?(Ne.mac=x,Ne.osname="macOS"):nt?(Ne.xbox=x,Ne.osname="Xbox"):Ie?(Ne.windows=x,Ne.osname="Windows"):Ae&&(Ne.linux=x,Ne.osname="Linux");function We(et){switch(et){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var $e="";Ne.windows?$e=We(oe(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ne.windowsphone?$e=oe(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ne.mac?($e=oe(/Mac OS X (\d+([_\.\s]\d+)*)/i),$e=$e.replace(/[_\s]/g,".")):he?($e=oe(/os (\d+([_\s]\d+)*) like mac os x/i),$e=$e.replace(/[_\s]/g,".")):ve?$e=oe(/android[ \/-](\d+(\.\d+)*)/i):Ne.webos?$e=oe(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ne.blackberry?$e=oe(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ne.bada?$e=oe(/bada\/(\d+(\.\d+)*)/i):Ne.tizen&&($e=oe(/tizen[\/\s](\d+(\.\d+)*)/i)),$e&&(Ne.osversion=$e);var rt=!Ne.windows&&$e.split(".")[0];return Ke||me||he=="ipad"||ve&&(rt==3||rt>=4&&!Ve)||Ne.silk?Ne.tablet=x:(Ve||he=="iphone"||he=="ipod"||ve||ce||Ne.blackberry||Ne.webos||Ne.bada)&&(Ne.mobile=x),Ne.msedge||Ne.msie&&Ne.version>=10||Ne.yandexbrowser&&Ne.version>=15||Ne.vivaldi&&Ne.version>=1||Ne.chrome&&Ne.version>=20||Ne.samsungBrowser&&Ne.version>=4||Ne.whale&&de([Ne.version,"1.0"])===1||Ne.mzbrowser&&de([Ne.version,"6.0"])===1||Ne.focus&&de([Ne.version,"1.0"])===1||Ne.firefox&&Ne.version>=20||Ne.safari&&Ne.version>=6||Ne.opera&&Ne.version>=10||Ne.ios&&Ne.osversion&&Ne.osversion.split(".")[0]>=6||Ne.blackberry&&Ne.version>=10.1||Ne.chromium&&Ne.version>=20?Ne.a=x:Ne.msie&&Ne.version<10||Ne.chrome&&Ne.version<20||Ne.firefox&&Ne.version<20||Ne.safari&&Ne.version<6||Ne.opera&&Ne.version<10||Ne.ios&&Ne.osversion&&Ne.osversion.split(".")[0]<6||Ne.chromium&&Ne.version<20?Ne.c=x:Ne.x=x,Ne}var ie=z(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(re){for(var oe=0;oe<re.length;++oe){var le=re[oe];if(typeof le=="string"&&le in ie)return!0}return!1};function ae(re){return re.split(".").length}function ee(re,oe){var le=[],he;if(Array.prototype.map)return Array.prototype.map.call(re,oe);for(he=0;he<re.length;he++)le.push(oe(re[he]));return le}function de(re){for(var oe=Math.max(ae(re[0]),ae(re[1])),le=ee(re,function(he){var pe=oe-ae(he);return he=he+new Array(pe+1).join(".0"),ee(he.split("."),function(ve){return new Array(20-ve.length).join("0")+ve}).reverse()});--oe>=0;){if(le[0][oe]>le[1][oe])return 1;if(le[0][oe]===le[1][oe]){if(oe===0)return 0}else return-1}}function E(re,oe,le){var he=ie;typeof oe=="string"&&(le=oe,oe=void 0),oe===void 0&&(oe=!1),le&&(he=z(le));var pe=""+he.version;for(var ve in re)if(re.hasOwnProperty(ve)&&he[ve]){if(typeof re[ve]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ve+": "+String(re));return de([pe,re[ve]])<0}return oe}function ne(re,oe,le){return!E(re,oe,le)}return ie.isUnsupportedBrowser=E,ie.compareVersions=de,ie.check=ne,ie._detect=z,ie.detect=z,ie})},{}],89:[function(y,ke,we){},{}],90:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("base64-js"),ie=y("ieee754");we.Buffer=E,we.SlowBuffer=Ee,we.INSPECT_MAX_BYTES=50;var ae=2147483647;we.kMaxLength=ae,E.TYPED_ARRAY_SUPPORT=ee(),!E.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ee(){try{var Ce=new Uint8Array(1);return Ce.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ce.foo()===42}catch(je){return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function de(Ce){if(Ce>ae)throw new RangeError('The value "'+Ce+'" is invalid for option "size"');var je=new Uint8Array(Ce);return je.__proto__=E.prototype,je}function E(Ce,je,Ze){if(typeof Ce=="number"){if(typeof je=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return le(Ce)}return ne(Ce,je,Ze)}typeof Symbol!="undefined"&&Symbol.species!=null&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),E.poolSize=8192;function ne(Ce,je,Ze){if(typeof Ce=="string")return he(Ce,je);if(ArrayBuffer.isView(Ce))return pe(Ce);if(Ce==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ce);if(Ue(Ce,ArrayBuffer)||Ce&&Ue(Ce.buffer,ArrayBuffer))return ve(Ce,je,Ze);if(typeof Ce=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var tt=Ce.valueOf&&Ce.valueOf();if(tt!=null&&tt!==Ce)return E.from(tt,je,Ze);var it=ce(Ce);if(it)return it;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ce[Symbol.toPrimitive]=="function")return E.from(Ce[Symbol.toPrimitive]("string"),je,Ze);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ce)}E.from=function(Ce,je,Ze){return ne(Ce,je,Ze)},E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array;function re(Ce){if(typeof Ce!="number")throw new TypeError('"size" argument must be of type number');if(Ce<0)throw new RangeError('The value "'+Ce+'" is invalid for option "size"')}function oe(Ce,je,Ze){return re(Ce),Ce<=0?de(Ce):je!==void 0?typeof Ze=="string"?de(Ce).fill(je,Ze):de(Ce).fill(je):de(Ce)}E.alloc=function(Ce,je,Ze){return oe(Ce,je,Ze)};function le(Ce){return re(Ce),de(Ce<0?0:me(Ce)|0)}E.allocUnsafe=function(Ce){return le(Ce)},E.allocUnsafeSlow=function(Ce){return le(Ce)};function he(Ce,je){if((typeof je!="string"||je==="")&&(je="utf8"),!E.isEncoding(je))throw new TypeError("Unknown encoding: "+je);var Ze=Te(Ce,je)|0,tt=de(Ze),it=tt.write(Ce,je);return it!==Ze&&(tt=tt.slice(0,it)),tt}function pe(Ce){for(var je=Ce.length<0?0:me(Ce.length)|0,Ze=de(je),tt=0;tt<je;tt+=1)Ze[tt]=Ce[tt]&255;return Ze}function ve(Ce,je,Ze){if(je<0||Ce.byteLength<je)throw new RangeError('"offset" is outside of buffer bounds');if(Ce.byteLength<je+(Ze||0))throw new RangeError('"length" is outside of buffer bounds');var tt;return je===void 0&&Ze===void 0?tt=new Uint8Array(Ce):Ze===void 0?tt=new Uint8Array(Ce,je):tt=new Uint8Array(Ce,je,Ze),tt.__proto__=E.prototype,tt}function ce(Ce){if(E.isBuffer(Ce)){var je=me(Ce.length)|0,Ze=de(je);return Ze.length===0||Ce.copy(Ze,0,0,je),Ze}if(Ce.length!==void 0)return typeof Ce.length!="number"||xe(Ce.length)?de(0):pe(Ce);if(Ce.type==="Buffer"&&Array.isArray(Ce.data))return pe(Ce.data)}function me(Ce){if(Ce>=ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ae.toString(16)+" bytes");return Ce|0}function Ee(Ce){return+Ce!=Ce&&(Ce=0),E.alloc(+Ce)}E.isBuffer=function(je){return je!=null&&je._isBuffer===!0&&je!==E.prototype},E.compare=function(je,Ze){if(Ue(je,Uint8Array)&&(je=E.from(je,je.offset,je.byteLength)),Ue(Ze,Uint8Array)&&(Ze=E.from(Ze,Ze.offset,Ze.byteLength)),!E.isBuffer(je)||!E.isBuffer(Ze))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(je===Ze)return 0;for(var tt=je.length,it=Ze.length,ct=0,ut=Math.min(tt,it);ct<ut;++ct)if(je[ct]!==Ze[ct]){tt=je[ct],it=Ze[ct];break}return tt<it?-1:it<tt?1:0},E.isEncoding=function(je){switch(String(je).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(je,Ze){if(!Array.isArray(je))throw new TypeError('"list" argument must be an Array of Buffers');if(je.length===0)return E.alloc(0);var tt;if(Ze===void 0)for(Ze=0,tt=0;tt<je.length;++tt)Ze+=je[tt].length;var it=E.allocUnsafe(Ze),ct=0;for(tt=0;tt<je.length;++tt){var ut=je[tt];if(Ue(ut,Uint8Array)&&(ut=E.from(ut)),!E.isBuffer(ut))throw new TypeError('"list" argument must be an Array of Buffers');ut.copy(it,ct),ct+=ut.length}return it};function Te(Ce,je){if(E.isBuffer(Ce))return Ce.length;if(ArrayBuffer.isView(Ce)||Ue(Ce,ArrayBuffer))return Ce.byteLength;if(typeof Ce!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ce);var Ze=Ce.length,tt=arguments.length>2&&arguments[2]===!0;if(!tt&&Ze===0)return 0;for(var it=!1;;)switch(je){case"ascii":case"latin1":case"binary":return Ze;case"utf8":case"utf-8":return Fe(Ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze*2;case"hex":return Ze>>>1;case"base64":return fe(Ce).length;default:if(it)return tt?-1:Fe(Ce).length;je=(""+je).toLowerCase(),it=!0}}E.byteLength=Te;function Re(Ce,je,Ze){var tt=!1;if((je===void 0||je<0)&&(je=0),je>this.length||((Ze===void 0||Ze>this.length)&&(Ze=this.length),Ze<=0)||(Ze>>>=0,je>>>=0,Ze<=je))return"";for(Ce||(Ce="utf8");;)switch(Ce){case"hex":return rt(this,je,Ze);case"utf8":case"utf-8":return Ve(this,je,Ze);case"ascii":return We(this,je,Ze);case"latin1":case"binary":return $e(this,je,Ze);case"base64":return Ke(this,je,Ze);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,je,Ze);default:if(tt)throw new TypeError("Unknown encoding: "+Ce);Ce=(Ce+"").toLowerCase(),tt=!0}}E.prototype._isBuffer=!0;function _e(Ce,je,Ze){var tt=Ce[je];Ce[je]=Ce[Ze],Ce[Ze]=tt}E.prototype.swap16=function(){var je=this.length;if(je%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ze=0;Ze<je;Ze+=2)_e(this,Ze,Ze+1);return this},E.prototype.swap32=function(){var je=this.length;if(je%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ze=0;Ze<je;Ze+=4)_e(this,Ze,Ze+3),_e(this,Ze+1,Ze+2);return this},E.prototype.swap64=function(){var je=this.length;if(je%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ze=0;Ze<je;Ze+=8)_e(this,Ze,Ze+7),_e(this,Ze+1,Ze+6),_e(this,Ze+2,Ze+5),_e(this,Ze+3,Ze+4);return this},E.prototype.toString=function(){var je=this.length;return je===0?"":arguments.length===0?Ve(this,0,je):Re.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(je){if(!E.isBuffer(je))throw new TypeError("Argument must be a Buffer");return this===je?!0:E.compare(this,je)===0},E.prototype.inspect=function(){var je="",Ze=we.INSPECT_MAX_BYTES;return je=this.toString("hex",0,Ze).replace(/(.{2})/g,"$1 ").trim(),this.length>Ze&&(je+=" ... "),"<Buffer "+je+">"},E.prototype.compare=function(je,Ze,tt,it,ct){if(Ue(je,Uint8Array)&&(je=E.from(je,je.offset,je.byteLength)),!E.isBuffer(je))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof je);if(Ze===void 0&&(Ze=0),tt===void 0&&(tt=je?je.length:0),it===void 0&&(it=0),ct===void 0&&(ct=this.length),Ze<0||tt>je.length||it<0||ct>this.length)throw new RangeError("out of range index");if(it>=ct&&Ze>=tt)return 0;if(it>=ct)return-1;if(Ze>=tt)return 1;if(Ze>>>=0,tt>>>=0,it>>>=0,ct>>>=0,this===je)return 0;for(var ut=ct-it,pt=tt-Ze,St=Math.min(ut,pt),wt=this.slice(it,ct),Et=je.slice(Ze,tt),vt=0;vt<St;++vt)if(wt[vt]!==Et[vt]){ut=wt[vt],pt=Et[vt];break}return ut<pt?-1:pt<ut?1:0};function ye(Ce,je,Ze,tt,it){if(Ce.length===0)return-1;if(typeof Ze=="string"?(tt=Ze,Ze=0):Ze>2147483647?Ze=2147483647:Ze<-2147483648&&(Ze=-2147483648),Ze=+Ze,xe(Ze)&&(Ze=it?0:Ce.length-1),Ze<0&&(Ze=Ce.length+Ze),Ze>=Ce.length){if(it)return-1;Ze=Ce.length-1}else if(Ze<0)if(it)Ze=0;else return-1;if(typeof je=="string"&&(je=E.from(je,tt)),E.isBuffer(je))return je.length===0?-1:be(Ce,je,Ze,tt,it);if(typeof je=="number")return je=je&255,typeof Uint8Array.prototype.indexOf=="function"?it?Uint8Array.prototype.indexOf.call(Ce,je,Ze):Uint8Array.prototype.lastIndexOf.call(Ce,je,Ze):be(Ce,[je],Ze,tt,it);throw new TypeError("val must be string, number or Buffer")}function be(Ce,je,Ze,tt,it){var ct=1,ut=Ce.length,pt=je.length;if(tt!==void 0&&(tt=String(tt).toLowerCase(),tt==="ucs2"||tt==="ucs-2"||tt==="utf16le"||tt==="utf-16le")){if(Ce.length<2||je.length<2)return-1;ct=2,ut/=2,pt/=2,Ze/=2}function St(gt,dt){return ct===1?gt[dt]:gt.readUInt16BE(dt*ct)}var wt;if(it){var Et=-1;for(wt=Ze;wt<ut;wt++)if(St(Ce,wt)===St(je,Et===-1?0:wt-Et)){if(Et===-1&&(Et=wt),wt-Et+1===pt)return Et*ct}else Et!==-1&&(wt-=wt-Et),Et=-1}else for(Ze+pt>ut&&(Ze=ut-pt),wt=Ze;wt>=0;wt--){for(var vt=!0,At=0;At<pt;At++)if(St(Ce,wt+At)!==St(je,At)){vt=!1;break}if(vt)return wt}return-1}E.prototype.includes=function(je,Ze,tt){return this.indexOf(je,Ze,tt)!==-1},E.prototype.indexOf=function(je,Ze,tt){return ye(this,je,Ze,tt,!0)},E.prototype.lastIndexOf=function(je,Ze,tt){return ye(this,je,Ze,tt,!1)};function Se(Ce,je,Ze,tt){Ze=Number(Ze)||0;var it=Ce.length-Ze;tt?(tt=Number(tt),tt>it&&(tt=it)):tt=it;var ct=je.length;tt>ct/2&&(tt=ct/2);for(var ut=0;ut<tt;++ut){var pt=parseInt(je.substr(ut*2,2),16);if(xe(pt))return ut;Ce[Ze+ut]=pt}return ut}function Ie(Ce,je,Ze,tt){return Oe(Fe(je,Ce.length-Ze),Ce,Ze,tt)}function Me(Ce,je,Ze,tt){return Oe(Pe(je),Ce,Ze,tt)}function Ae(Ce,je,Ze,tt){return Me(Ce,je,Ze,tt)}function De(Ce,je,Ze,tt){return Oe(fe(je),Ce,Ze,tt)}function He(Ce,je,Ze,tt){return Oe(te(je,Ce.length-Ze),Ce,Ze,tt)}E.prototype.write=function(je,Ze,tt,it){if(Ze===void 0)it="utf8",tt=this.length,Ze=0;else if(tt===void 0&&typeof Ze=="string")it=Ze,tt=this.length,Ze=0;else if(isFinite(Ze))Ze=Ze>>>0,isFinite(tt)?(tt=tt>>>0,it===void 0&&(it="utf8")):(it=tt,tt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ct=this.length-Ze;if((tt===void 0||tt>ct)&&(tt=ct),je.length>0&&(tt<0||Ze<0)||Ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");it||(it="utf8");for(var ut=!1;;)switch(it){case"hex":return Se(this,je,Ze,tt);case"utf8":case"utf-8":return Ie(this,je,Ze,tt);case"ascii":return Me(this,je,Ze,tt);case"latin1":case"binary":return Ae(this,je,Ze,tt);case"base64":return De(this,je,Ze,tt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,je,Ze,tt);default:if(ut)throw new TypeError("Unknown encoding: "+it);it=(""+it).toLowerCase(),ut=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ke(Ce,je,Ze){return je===0&&Ze===Ce.length?z.fromByteArray(Ce):z.fromByteArray(Ce.slice(je,Ze))}function Ve(Ce,je,Ze){Ze=Math.min(Ce.length,Ze);for(var tt=[],it=je;it<Ze;){var ct=Ce[it],ut=null,pt=ct>239?4:ct>223?3:ct>191?2:1;if(it+pt<=Ze){var St,wt,Et,vt;switch(pt){case 1:ct<128&&(ut=ct);break;case 2:St=Ce[it+1],(St&192)===128&&(vt=(ct&31)<<6|St&63,vt>127&&(ut=vt));break;case 3:St=Ce[it+1],wt=Ce[it+2],(St&192)===128&&(wt&192)===128&&(vt=(ct&15)<<12|(St&63)<<6|wt&63,vt>2047&&(vt<55296||vt>57343)&&(ut=vt));break;case 4:St=Ce[it+1],wt=Ce[it+2],Et=Ce[it+3],(St&192)===128&&(wt&192)===128&&(Et&192)===128&&(vt=(ct&15)<<18|(St&63)<<12|(wt&63)<<6|Et&63,vt>65535&&vt<1114112&&(ut=vt))}}ut===null?(ut=65533,pt=1):ut>65535&&(ut-=65536,tt.push(ut>>>10&1023|55296),ut=56320|ut&1023),tt.push(ut),it+=pt}return Ne(tt)}var nt=4096;function Ne(Ce){var je=Ce.length;if(je<=nt)return String.fromCharCode.apply(String,Ce);for(var Ze="",tt=0;tt<je;)Ze+=String.fromCharCode.apply(String,Ce.slice(tt,tt+=nt));return Ze}function We(Ce,je,Ze){var tt="";Ze=Math.min(Ce.length,Ze);for(var it=je;it<Ze;++it)tt+=String.fromCharCode(Ce[it]&127);return tt}function $e(Ce,je,Ze){var tt="";Ze=Math.min(Ce.length,Ze);for(var it=je;it<Ze;++it)tt+=String.fromCharCode(Ce[it]);return tt}function rt(Ce,je,Ze){var tt=Ce.length;(!je||je<0)&&(je=0),(!Ze||Ze<0||Ze>tt)&&(Ze=tt);for(var it="",ct=je;ct<Ze;++ct)it+=Je(Ce[ct]);return it}function et(Ce,je,Ze){for(var tt=Ce.slice(je,Ze),it="",ct=0;ct<tt.length;ct+=2)it+=String.fromCharCode(tt[ct]+tt[ct+1]*256);return it}E.prototype.slice=function(je,Ze){var tt=this.length;je=~~je,Ze=Ze===void 0?tt:~~Ze,je<0?(je+=tt,je<0&&(je=0)):je>tt&&(je=tt),Ze<0?(Ze+=tt,Ze<0&&(Ze=0)):Ze>tt&&(Ze=tt),Ze<je&&(Ze=je);var it=this.subarray(je,Ze);return it.__proto__=E.prototype,it};function Xe(Ce,je,Ze){if(Ce%1!==0||Ce<0)throw new RangeError("offset is not uint");if(Ce+je>Ze)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(je,Ze,tt){je=je>>>0,Ze=Ze>>>0,tt||Xe(je,Ze,this.length);for(var it=this[je],ct=1,ut=0;++ut<Ze&&(ct*=256);)it+=this[je+ut]*ct;return it},E.prototype.readUIntBE=function(je,Ze,tt){je=je>>>0,Ze=Ze>>>0,tt||Xe(je,Ze,this.length);for(var it=this[je+--Ze],ct=1;Ze>0&&(ct*=256);)it+=this[je+--Ze]*ct;return it},E.prototype.readUInt8=function(je,Ze){return je=je>>>0,Ze||Xe(je,1,this.length),this[je]},E.prototype.readUInt16LE=function(je,Ze){return je=je>>>0,Ze||Xe(je,2,this.length),this[je]|this[je+1]<<8},E.prototype.readUInt16BE=function(je,Ze){return je=je>>>0,Ze||Xe(je,2,this.length),this[je]<<8|this[je+1]},E.prototype.readUInt32LE=function(je,Ze){return je=je>>>0,Ze||Xe(je,4,this.length),(this[je]|this[je+1]<<8|this[je+2]<<16)+this[je+3]*16777216},E.prototype.readUInt32BE=function(je,Ze){return je=je>>>0,Ze||Xe(je,4,this.length),this[je]*16777216+(this[je+1]<<16|this[je+2]<<8|this[je+3])},E.prototype.readIntLE=function(je,Ze,tt){je=je>>>0,Ze=Ze>>>0,tt||Xe(je,Ze,this.length);for(var it=this[je],ct=1,ut=0;++ut<Ze&&(ct*=256);)it+=this[je+ut]*ct;return ct*=128,it>=ct&&(it-=Math.pow(2,8*Ze)),it},E.prototype.readIntBE=function(je,Ze,tt){je=je>>>0,Ze=Ze>>>0,tt||Xe(je,Ze,this.length);for(var it=Ze,ct=1,ut=this[je+--it];it>0&&(ct*=256);)ut+=this[je+--it]*ct;return ct*=128,ut>=ct&&(ut-=Math.pow(2,8*Ze)),ut},E.prototype.readInt8=function(je,Ze){return je=je>>>0,Ze||Xe(je,1,this.length),this[je]&128?(255-this[je]+1)*-1:this[je]},E.prototype.readInt16LE=function(je,Ze){je=je>>>0,Ze||Xe(je,2,this.length);var tt=this[je]|this[je+1]<<8;return tt&32768?tt|4294901760:tt},E.prototype.readInt16BE=function(je,Ze){je=je>>>0,Ze||Xe(je,2,this.length);var tt=this[je+1]|this[je]<<8;return tt&32768?tt|4294901760:tt},E.prototype.readInt32LE=function(je,Ze){return je=je>>>0,Ze||Xe(je,4,this.length),this[je]|this[je+1]<<8|this[je+2]<<16|this[je+3]<<24},E.prototype.readInt32BE=function(je,Ze){return je=je>>>0,Ze||Xe(je,4,this.length),this[je]<<24|this[je+1]<<16|this[je+2]<<8|this[je+3]},E.prototype.readFloatLE=function(je,Ze){return je=je>>>0,Ze||Xe(je,4,this.length),ie.read(this,je,!0,23,4)},E.prototype.readFloatBE=function(je,Ze){return je=je>>>0,Ze||Xe(je,4,this.length),ie.read(this,je,!1,23,4)},E.prototype.readDoubleLE=function(je,Ze){return je=je>>>0,Ze||Xe(je,8,this.length),ie.read(this,je,!0,52,8)},E.prototype.readDoubleBE=function(je,Ze){return je=je>>>0,Ze||Xe(je,8,this.length),ie.read(this,je,!1,52,8)};function Ye(Ce,je,Ze,tt,it,ct){if(!E.isBuffer(Ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(je>it||je<ct)throw new RangeError('"value" argument is out of bounds');if(Ze+tt>Ce.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(je,Ze,tt,it){if(je=+je,Ze=Ze>>>0,tt=tt>>>0,!it){var ct=Math.pow(2,8*tt)-1;Ye(this,je,Ze,tt,ct,0)}var ut=1,pt=0;for(this[Ze]=je&255;++pt<tt&&(ut*=256);)this[Ze+pt]=je/ut&255;return Ze+tt},E.prototype.writeUIntBE=function(je,Ze,tt,it){if(je=+je,Ze=Ze>>>0,tt=tt>>>0,!it){var ct=Math.pow(2,8*tt)-1;Ye(this,je,Ze,tt,ct,0)}var ut=tt-1,pt=1;for(this[Ze+ut]=je&255;--ut>=0&&(pt*=256);)this[Ze+ut]=je/pt&255;return Ze+tt},E.prototype.writeUInt8=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,1,255,0),this[Ze]=je&255,Ze+1},E.prototype.writeUInt16LE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,2,65535,0),this[Ze]=je&255,this[Ze+1]=je>>>8,Ze+2},E.prototype.writeUInt16BE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,2,65535,0),this[Ze]=je>>>8,this[Ze+1]=je&255,Ze+2},E.prototype.writeUInt32LE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,4,4294967295,0),this[Ze+3]=je>>>24,this[Ze+2]=je>>>16,this[Ze+1]=je>>>8,this[Ze]=je&255,Ze+4},E.prototype.writeUInt32BE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,4,4294967295,0),this[Ze]=je>>>24,this[Ze+1]=je>>>16,this[Ze+2]=je>>>8,this[Ze+3]=je&255,Ze+4},E.prototype.writeIntLE=function(je,Ze,tt,it){if(je=+je,Ze=Ze>>>0,!it){var ct=Math.pow(2,8*tt-1);Ye(this,je,Ze,tt,ct-1,-ct)}var ut=0,pt=1,St=0;for(this[Ze]=je&255;++ut<tt&&(pt*=256);)je<0&&St===0&&this[Ze+ut-1]!==0&&(St=1),this[Ze+ut]=(je/pt>>0)-St&255;return Ze+tt},E.prototype.writeIntBE=function(je,Ze,tt,it){if(je=+je,Ze=Ze>>>0,!it){var ct=Math.pow(2,8*tt-1);Ye(this,je,Ze,tt,ct-1,-ct)}var ut=tt-1,pt=1,St=0;for(this[Ze+ut]=je&255;--ut>=0&&(pt*=256);)je<0&&St===0&&this[Ze+ut+1]!==0&&(St=1),this[Ze+ut]=(je/pt>>0)-St&255;return Ze+tt},E.prototype.writeInt8=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,1,127,-128),je<0&&(je=255+je+1),this[Ze]=je&255,Ze+1},E.prototype.writeInt16LE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,2,32767,-32768),this[Ze]=je&255,this[Ze+1]=je>>>8,Ze+2},E.prototype.writeInt16BE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,2,32767,-32768),this[Ze]=je>>>8,this[Ze+1]=je&255,Ze+2},E.prototype.writeInt32LE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,4,2147483647,-2147483648),this[Ze]=je&255,this[Ze+1]=je>>>8,this[Ze+2]=je>>>16,this[Ze+3]=je>>>24,Ze+4},E.prototype.writeInt32BE=function(je,Ze,tt){return je=+je,Ze=Ze>>>0,tt||Ye(this,je,Ze,4,2147483647,-2147483648),je<0&&(je=4294967295+je+1),this[Ze]=je>>>24,this[Ze+1]=je>>>16,this[Ze+2]=je>>>8,this[Ze+3]=je&255,Ze+4};function Ge(Ce,je,Ze,tt,it,ct){if(Ze+tt>Ce.length)throw new RangeError("Index out of range");if(Ze<0)throw new RangeError("Index out of range")}function at(Ce,je,Ze,tt,it){return je=+je,Ze=Ze>>>0,it||Ge(Ce,je,Ze,4,34028234663852886e22,-34028234663852886e22),ie.write(Ce,je,Ze,tt,23,4),Ze+4}E.prototype.writeFloatLE=function(je,Ze,tt){return at(this,je,Ze,!0,tt)},E.prototype.writeFloatBE=function(je,Ze,tt){return at(this,je,Ze,!1,tt)};function Qe(Ce,je,Ze,tt,it){return je=+je,Ze=Ze>>>0,it||Ge(Ce,je,Ze,8,17976931348623157e292,-17976931348623157e292),ie.write(Ce,je,Ze,tt,52,8),Ze+8}E.prototype.writeDoubleLE=function(je,Ze,tt){return Qe(this,je,Ze,!0,tt)},E.prototype.writeDoubleBE=function(je,Ze,tt){return Qe(this,je,Ze,!1,tt)},E.prototype.copy=function(je,Ze,tt,it){if(!E.isBuffer(je))throw new TypeError("argument should be a Buffer");if(tt||(tt=0),!it&&it!==0&&(it=this.length),Ze>=je.length&&(Ze=je.length),Ze||(Ze=0),it>0&&it<tt&&(it=tt),it===tt||je.length===0||this.length===0)return 0;if(Ze<0)throw new RangeError("targetStart out of bounds");if(tt<0||tt>=this.length)throw new RangeError("Index out of range");if(it<0)throw new RangeError("sourceEnd out of bounds");it>this.length&&(it=this.length),je.length-Ze<it-tt&&(it=je.length-Ze+tt);var ct=it-tt;if(this===je&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ze,tt,it);else if(this===je&&tt<Ze&&Ze<it)for(var ut=ct-1;ut>=0;--ut)je[ut+Ze]=this[ut+tt];else Uint8Array.prototype.set.call(je,this.subarray(tt,it),Ze);return ct},E.prototype.fill=function(je,Ze,tt,it){if(typeof je=="string"){if(typeof Ze=="string"?(it=Ze,Ze=0,tt=this.length):typeof tt=="string"&&(it=tt,tt=this.length),it!==void 0&&typeof it!="string")throw new TypeError("encoding must be a string");if(typeof it=="string"&&!E.isEncoding(it))throw new TypeError("Unknown encoding: "+it);if(je.length===1){var ct=je.charCodeAt(0);(it==="utf8"&&ct<128||it==="latin1")&&(je=ct)}}else typeof je=="number"&&(je=je&255);if(Ze<0||this.length<Ze||this.length<tt)throw new RangeError("Out of range index");if(tt<=Ze)return this;Ze=Ze>>>0,tt=tt===void 0?this.length:tt>>>0,je||(je=0);var ut;if(typeof je=="number")for(ut=Ze;ut<tt;++ut)this[ut]=je;else{var pt=E.isBuffer(je)?je:E.from(je,it),St=pt.length;if(St===0)throw new TypeError('The value "'+je+'" is invalid for argument "value"');for(ut=0;ut<tt-Ze;++ut)this[ut+Ze]=pt[ut%St]}return this};var ft=/[^+/0-9A-Za-z-_]/g;function ot(Ce){if(Ce=Ce.split("=")[0],Ce=Ce.trim().replace(ft,""),Ce.length<2)return"";for(;Ce.length%4!==0;)Ce=Ce+"=";return Ce}function Je(Ce){return Ce<16?"0"+Ce.toString(16):Ce.toString(16)}function Fe(Ce,je){je=je||1/0;for(var Ze,tt=Ce.length,it=null,ct=[],ut=0;ut<tt;++ut){if(Ze=Ce.charCodeAt(ut),Ze>55295&&Ze<57344){if(!it){if(Ze>56319){(je-=3)>-1&&ct.push(239,191,189);continue}else if(ut+1===tt){(je-=3)>-1&&ct.push(239,191,189);continue}it=Ze;continue}if(Ze<56320){(je-=3)>-1&&ct.push(239,191,189),it=Ze;continue}Ze=(it-55296<<10|Ze-56320)+65536}else it&&(je-=3)>-1&&ct.push(239,191,189);if(it=null,Ze<128){if((je-=1)<0)break;ct.push(Ze)}else if(Ze<2048){if((je-=2)<0)break;ct.push(Ze>>6|192,Ze&63|128)}else if(Ze<65536){if((je-=3)<0)break;ct.push(Ze>>12|224,Ze>>6&63|128,Ze&63|128)}else if(Ze<1114112){if((je-=4)<0)break;ct.push(Ze>>18|240,Ze>>12&63|128,Ze>>6&63|128,Ze&63|128)}else throw new Error("Invalid code point")}return ct}function Pe(Ce){for(var je=[],Ze=0;Ze<Ce.length;++Ze)je.push(Ce.charCodeAt(Ze)&255);return je}function te(Ce,je){for(var Ze,tt,it,ct=[],ut=0;ut<Ce.length&&!((je-=2)<0);++ut)Ze=Ce.charCodeAt(ut),tt=Ze>>8,it=Ze%256,ct.push(it),ct.push(tt);return ct}function fe(Ce){return z.toByteArray(ot(Ce))}function Oe(Ce,je,Ze,tt){for(var it=0;it<tt&&!(it+Ze>=je.length||it>=Ce.length);++it)je[it+Ze]=Ce[it];return it}function Ue(Ce,je){return Ce instanceof je||Ce!=null&&Ce.constructor!=null&&Ce.constructor.name!=null&&Ce.constructor.name===je.name}function xe(Ce){return Ce!==Ce}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,ke,we){ke.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(y,ke,we){"use strict";var x=y("get-intrinsic"),z=y("./"),ie=z(x("String.prototype.indexOf"));ke.exports=function(ee,de){var E=x(ee,!!de);return typeof E=="function"&&ie(ee,".prototype.")>-1?z(E):E}},{"./":93,"get-intrinsic":348}],93:[function(y,ke,we){"use strict";var x=y("function-bind"),z=y("get-intrinsic"),ie=z("%Function.prototype.apply%"),ae=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||x.call(ae,ie),de=z("%Object.getOwnPropertyDescriptor%",!0),E=z("%Object.defineProperty%",!0),ne=z("%Math.max%");if(E)try{E({},"a",{value:1})}catch(oe){E=null}ke.exports=function(le){var he=ee(x,ae,arguments);if(de&&E){var pe=de(he,"length");pe.configurable&&E(he,"length",{value:1+ne(0,le.length-(arguments.length-1))})}return he};var re=function(){return ee(x,ie,arguments)};E?E(ke.exports,"apply",{value:re}):ke.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(y,ke,we){"use strict";var x=Array.prototype.slice;ke.exports=z;function z(ae,ee){if(!(this instanceof z))return new z(ae,ee);this.src=ae,this._withAccess=ee}z.prototype.withAccess=function(ae){return this._withAccess=ae!==!1,this},z.prototype.pick=function(ae){return Array.isArray(ae)||(ae=x.call(arguments)),ae.length&&(this.keys=ae),this},z.prototype.to=function(ae){if(ae=ae||{},!this.src)return ae;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var de=0;de<ee.length;de++)E=ee[de],ae[E]===void 0&&(ae[E]=this.src[E]);return ae}for(var de=0;de<ee.length;de++){var E=ee[de];if(ie(ae,E)){var ne=this.src.__lookupGetter__(E),re=this.src.__lookupSetter__(E);ne&&ae.__defineGetter__(E,ne),re&&ae.__defineSetter__(E,re),!ne&&!re&&(ae[E]=this.src[E])}}return ae},z.prototype.toCover=function(ae){for(var ee=this.keys||Object.keys(this.src),de=0;de<ee.length;de++){var E=ee[de];delete ae[E];var ne=this.src.__lookupGetter__(E),re=this.src.__lookupSetter__(E);ne&&ae.__defineGetter__(E,ne),re&&ae.__defineSetter__(E,re),!ne&&!re&&(ae[E]=this.src[E])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(ae){var ee={};return this.to(ee),this.src=ae,this.to(ee),this.src=ee,this};function ie(ae,ee){return ae[ee]===void 0&&ae.__lookupGetter__(ee)===void 0&&ae.__lookupSetter__(ee)===void 0}},{}],95:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=y("../internals/try-to-string"),ae=x.TypeError;ke.exports=function(ee){if(z(ee))return ee;throw ae(ie(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-constructor"),ie=y("../internals/try-to-string"),ae=x.TypeError;ke.exports=function(ee){if(z(ee))return ee;throw ae(ie(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=x.String,ae=x.TypeError;ke.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw ae("Can't set "+ie(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,ke,we){var x=y("../internals/well-known-symbol"),z=y("../internals/object-create"),ie=y("../internals/object-define-property"),ae=x("unscopables"),ee=Array.prototype;ee[ae]==null&&ie.f(ee,ae,{configurable:!0,value:z(null)}),ke.exports=function(de){ee[ae][de]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,ke,we){"use strict";var x=y("../internals/string-multibyte").charAt;ke.exports=function(z,ie,ae){return ie+(ae?x(z,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/object-is-prototype-of"),ie=x.TypeError;ke.exports=function(ae,ee){if(z(ee,ae))return ae;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-object"),ie=x.String,ae=x.TypeError;ke.exports=function(ee){if(z(ee))return ee;throw ae(ie(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,ke,we){ke.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-native"),z=y("../internals/descriptors"),ie=y("../internals/global"),ae=y("../internals/is-callable"),ee=y("../internals/is-object"),de=y("../internals/has-own-property"),E=y("../internals/classof"),ne=y("../internals/try-to-string"),re=y("../internals/create-non-enumerable-property"),oe=y("../internals/redefine"),le=y("../internals/object-define-property").f,he=y("../internals/object-is-prototype-of"),pe=y("../internals/object-get-prototype-of"),ve=y("../internals/object-set-prototype-of"),ce=y("../internals/well-known-symbol"),me=y("../internals/uid"),Ee=ie.Int8Array,Te=Ee&&Ee.prototype,Re=ie.Uint8ClampedArray,_e=Re&&Re.prototype,ye=Ee&&pe(Ee),be=Te&&pe(Te),Se=Object.prototype,Ie=ie.TypeError,Me=ce("toStringTag"),Ae=me("TYPED_ARRAY_TAG"),De=me("TYPED_ARRAY_CONSTRUCTOR"),He=x&&!!ve&&E(ie.opera)!=="Opera",Ke=!1,Ve,nt,Ne,We={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},$e={BigInt64Array:8,BigUint64Array:8},rt=function(ft){if(!ee(ft))return!1;var ot=E(ft);return ot==="DataView"||de(We,ot)||de($e,ot)},et=function(Qe){if(!ee(Qe))return!1;var ft=E(Qe);return de(We,ft)||de($e,ft)},Xe=function(Qe){if(et(Qe))return Qe;throw Ie("Target is not a typed array")},Ye=function(Qe){if(ae(Qe)&&(!ve||he(ye,Qe)))return Qe;throw Ie(ne(Qe)+" is not a typed array constructor")},Ge=function(Qe,ft,ot,Je){if(z){if(ot)for(var Fe in We){var Pe=ie[Fe];if(Pe&&de(Pe.prototype,Qe))try{delete Pe.prototype[Qe]}catch(te){try{Pe.prototype[Qe]=ft}catch(fe){}}}(!be[Qe]||ot)&&oe(be,Qe,ot?ft:He&&Te[Qe]||ft,Je)}},at=function(Qe,ft,ot){var Je,Fe;if(z){if(ve){if(ot){for(Je in We)if(Fe=ie[Je],Fe&&de(Fe,Qe))try{delete Fe[Qe]}catch(Pe){}}if(!ye[Qe]||ot)try{return oe(ye,Qe,ot?ft:He&&ye[Qe]||ft)}catch(Pe){}else return}for(Je in We)Fe=ie[Je],Fe&&(!Fe[Qe]||ot)&&oe(Fe,Qe,ft)}};for(Ve in We)nt=ie[Ve],Ne=nt&&nt.prototype,Ne?re(Ne,De,nt):He=!1;for(Ve in $e)nt=ie[Ve],Ne=nt&&nt.prototype,Ne&&re(Ne,De,nt);if((!He||!ae(ye)||ye===Function.prototype)&&(ye=function(){throw Ie("Incorrect invocation")},He))for(Ve in We)ie[Ve]&&ve(ie[Ve],ye);if((!He||!be||be===Se)&&(be=ye.prototype,He))for(Ve in We)ie[Ve]&&ve(ie[Ve].prototype,be);if(He&&pe(_e)!==be&&ve(_e,be),z&&!de(be,Me)){Ke=!0,le(be,Me,{get:function(){return ee(this)?this[Ae]:void 0}});for(Ve in We)ie[Ve]&&re(ie[Ve],Ae,Ve)}ke.exports={NATIVE_ARRAY_BUFFER_VIEWS:He,TYPED_ARRAY_CONSTRUCTOR:De,TYPED_ARRAY_TAG:Ke&&Ae,aTypedArray:Xe,aTypedArrayConstructor:Ye,exportTypedArrayMethod:Ge,exportTypedArrayStaticMethod:at,isView:rt,isTypedArray:et,TypedArray:ye,TypedArrayPrototype:be}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(y,ke,we){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),ie=y("../internals/descriptors"),ae=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),de=y("../internals/create-non-enumerable-property"),E=y("../internals/redefine-all"),ne=y("../internals/fails"),re=y("../internals/an-instance"),oe=y("../internals/to-integer-or-infinity"),le=y("../internals/to-length"),he=y("../internals/to-index"),pe=y("../internals/ieee754"),ve=y("../internals/object-get-prototype-of"),ce=y("../internals/object-set-prototype-of"),me=y("../internals/object-get-own-property-names").f,Ee=y("../internals/object-define-property").f,Te=y("../internals/array-fill"),Re=y("../internals/array-slice-simple"),_e=y("../internals/set-to-string-tag"),ye=y("../internals/internal-state"),be=ee.PROPER,Se=ee.CONFIGURABLE,Ie=ye.get,Me=ye.set,Ae="ArrayBuffer",De="DataView",He="prototype",Ke="Wrong length",Ve="Wrong index",nt=x[Ae],Ne=nt,We=Ne&&Ne[He],$e=x[De],rt=$e&&$e[He],et=Object.prototype,Xe=x.Array,Ye=x.RangeError,Ge=z(Te),at=z([].reverse),Qe=pe.pack,ft=pe.unpack,ot=function(ut){return[ut&255]},Je=function(ut){return[ut&255,ut>>8&255]},Fe=function(ut){return[ut&255,ut>>8&255,ut>>16&255,ut>>24&255]},Pe=function(ut){return ut[3]<<24|ut[2]<<16|ut[1]<<8|ut[0]},te=function(ut){return Qe(ut,23,4)},fe=function(ut){return Qe(ut,52,8)},Oe=function(ut,pt){Ee(ut[He],pt,{get:function(){return Ie(this)[pt]}})},Ue=function(ut,pt,St,wt){var Et=he(St),vt=Ie(ut);if(Et+pt>vt.byteLength)throw Ye(Ve);var At=Ie(vt.buffer).bytes,gt=Et+vt.byteOffset,dt=Re(At,gt,gt+pt);return wt?dt:at(dt)},xe=function(ut,pt,St,wt,Et,vt){var At=he(St),gt=Ie(ut);if(At+pt>gt.byteLength)throw Ye(Ve);for(var dt=Ie(gt.buffer).bytes,xt=At+gt.byteOffset,bt=wt(+Et),Pt=0;Pt<pt;Pt++)dt[xt+Pt]=bt[vt?Pt:pt-Pt-1]};if(!ae)Ne=function(pt){re(this,We);var St=he(pt);Me(this,{bytes:Ge(Xe(St),0),byteLength:St}),ie||(this.byteLength=St)},We=Ne[He],$e=function(pt,St,wt){re(this,rt),re(pt,We);var Et=Ie(pt).byteLength,vt=oe(St);if(vt<0||vt>Et)throw Ye("Wrong offset");if(wt=wt===void 0?Et-vt:le(wt),vt+wt>Et)throw Ye(Ke);Me(this,{buffer:pt,byteLength:wt,byteOffset:vt}),ie||(this.buffer=pt,this.byteLength=wt,this.byteOffset=vt)},rt=$e[He],ie&&(Oe(Ne,"byteLength"),Oe($e,"buffer"),Oe($e,"byteLength"),Oe($e,"byteOffset")),E(rt,{getInt8:function(pt){return Ue(this,1,pt)[0]<<24>>24},getUint8:function(pt){return Ue(this,1,pt)[0]},getInt16:function(pt){var St=Ue(this,2,pt,arguments.length>1?arguments[1]:void 0);return(St[1]<<8|St[0])<<16>>16},getUint16:function(pt){var St=Ue(this,2,pt,arguments.length>1?arguments[1]:void 0);return St[1]<<8|St[0]},getInt32:function(pt){return Pe(Ue(this,4,pt,arguments.length>1?arguments[1]:void 0))},getUint32:function(pt){return Pe(Ue(this,4,pt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(pt){return ft(Ue(this,4,pt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(pt){return ft(Ue(this,8,pt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(pt,St){xe(this,1,pt,ot,St)},setUint8:function(pt,St){xe(this,1,pt,ot,St)},setInt16:function(pt,St){xe(this,2,pt,Je,St,arguments.length>2?arguments[2]:void 0)},setUint16:function(pt,St){xe(this,2,pt,Je,St,arguments.length>2?arguments[2]:void 0)},setInt32:function(pt,St){xe(this,4,pt,Fe,St,arguments.length>2?arguments[2]:void 0)},setUint32:function(pt,St){xe(this,4,pt,Fe,St,arguments.length>2?arguments[2]:void 0)},setFloat32:function(pt,St){xe(this,4,pt,te,St,arguments.length>2?arguments[2]:void 0)},setFloat64:function(pt,St){xe(this,8,pt,fe,St,arguments.length>2?arguments[2]:void 0)}});else{var Ce=be&&nt.name!==Ae;if(!ne(function(){nt(1)})||!ne(function(){new nt(-1)})||ne(function(){return new nt,new nt(1.5),new nt(NaN),Ce&&!Se})){Ne=function(pt){return re(this,We),new nt(he(pt))},Ne[He]=We;for(var je=me(nt),Ze=0,tt;je.length>Ze;)(tt=je[Ze++])in Ne||de(Ne,tt,nt[tt]);We.constructor=Ne}else Ce&&Se&&de(nt,"name",Ae);ce&&ve(rt)!==et&&ce(rt,et);var it=new $e(new Ne(2)),ct=z(rt.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),(it.getInt8(0)||!it.getInt8(1))&&E(rt,{setInt8:function(pt,St){ct(this,pt,St<<24>>24)},setUint8:function(pt,St){ct(this,pt,St<<24>>24)}},{unsafe:!0})}_e(Ne,Ae),_e($e,De),ke.exports={ArrayBuffer:Ne,DataView:$e}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(y,ke,we){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),ae=Math.min;ke.exports=[].copyWithin||function(de,E){var ne=x(this),re=ie(ne),oe=z(de,re),le=z(E,re),he=arguments.length>2?arguments[2]:void 0,pe=ae((he===void 0?re:z(he,re))-le,re-oe),ve=1;for(le<oe&&oe<le+pe&&(ve=-1,le+=pe-1,oe+=pe-1);pe-- >0;)le in ne?ne[oe]=ne[le]:delete ne[oe],oe+=ve,le+=ve;return ne}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,ke,we){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like");ke.exports=function(ee){for(var de=x(this),E=ie(de),ne=arguments.length,re=z(ne>1?arguments[1]:void 0,E),oe=ne>2?arguments[2]:void 0,le=oe===void 0?E:z(oe,E);le>re;)de[re++]=ee;return de}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,ke,we){"use strict";var x=y("../internals/array-iteration").forEach,z=y("../internals/array-method-is-strict"),ie=z("forEach");ke.exports=ie?[].forEach:function(ee){return x(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(y,ke,we){var x=y("../internals/length-of-array-like");ke.exports=function(z,ie){for(var ae=0,ee=x(ie),de=new z(ee);ee>ae;)de[ae]=ie[ae++];return de}},{"../internals/length-of-array-like":188}],109:[function(y,ke,we){"use strict";var x=y("../internals/global"),z=y("../internals/function-bind-context"),ie=y("../internals/function-call"),ae=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),de=y("../internals/is-array-iterator-method"),E=y("../internals/is-constructor"),ne=y("../internals/length-of-array-like"),re=y("../internals/create-property"),oe=y("../internals/get-iterator"),le=y("../internals/get-iterator-method"),he=x.Array;ke.exports=function(ve){var ce=ae(ve),me=E(this),Ee=arguments.length,Te=Ee>1?arguments[1]:void 0,Re=Te!==void 0;Re&&(Te=z(Te,Ee>2?arguments[2]:void 0));var _e=le(ce),ye=0,be,Se,Ie,Me,Ae,De;if(_e&&!(this==he&&de(_e)))for(Me=oe(ce,_e),Ae=Me.next,Se=me?new this:[];!(Ie=ie(Ae,Me)).done;ye++)De=Re?ee(Me,Te,[Ie.value,ye],!0):Ie.value,re(Se,ye,De);else for(be=ne(ce),Se=me?new this(be):he(be);be>ye;ye++)De=Re?Te(ce[ye],ye):ce[ye],re(Se,ye,De);return Se.length=ye,Se}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(y,ke,we){var x=y("../internals/to-indexed-object"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),ae=function(ee){return function(de,E,ne){var re=x(de),oe=ie(re),le=z(ne,oe),he;if(ee&&E!=E){for(;oe>le;)if(he=re[le++],he!=he)return!0}else for(;oe>le;le++)if((ee||le in re)&&re[le]===E)return ee||le||0;return!ee&&-1}};ke.exports={includes:ae(!0),indexOf:ae(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,ke,we){var x=y("../internals/function-bind-context"),z=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),ae=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/array-species-create"),E=z([].push),ne=function(re){var oe=re==1,le=re==2,he=re==3,pe=re==4,ve=re==6,ce=re==7,me=re==5||ve;return function(Ee,Te,Re,_e){for(var ye=ae(Ee),be=ie(ye),Se=x(Te,Re),Ie=ee(be),Me=0,Ae=_e||de,De=oe?Ae(Ee,Ie):le||ce?Ae(Ee,0):void 0,He,Ke;Ie>Me;Me++)if((me||Me in be)&&(He=be[Me],Ke=Se(He,Me,ye),re))if(oe)De[Me]=Ke;else if(Ke)switch(re){case 3:return!0;case 5:return He;case 6:return Me;case 2:E(De,He)}else switch(re){case 4:return!1;case 7:E(De,He)}return ve?-1:he||pe?pe:De}};ke.exports={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6),filterReject:ne(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(y,ke,we){"use strict";var x=y("../internals/function-apply"),z=y("../internals/to-indexed-object"),ie=y("../internals/to-integer-or-infinity"),ae=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),de=Math.min,E=[].lastIndexOf,ne=!!E&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),oe=ne||!re;ke.exports=oe?function(he){if(ne)return x(E,this,arguments)||0;var pe=z(this),ve=ae(pe),ce=ve-1;for(arguments.length>1&&(ce=de(ce,ie(arguments[1]))),ce<0&&(ce=ve+ce);ce>=0;ce--)if(ce in pe&&pe[ce]===he)return ce||0;return-1}:E},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(y,ke,we){var x=y("../internals/fails"),z=y("../internals/well-known-symbol"),ie=y("../internals/engine-v8-version"),ae=z("species");ke.exports=function(ee){return ie>=51||!x(function(){var de=[],E=de.constructor={};return E[ae]=function(){return{foo:1}},de[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,ke,we){"use strict";var x=y("../internals/fails");ke.exports=function(z,ie){var ae=[][z];return!!ae&&x(function(){ae.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/a-callable"),ie=y("../internals/to-object"),ae=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),de=x.TypeError,E=function(ne){return function(re,oe,le,he){z(oe);var pe=ie(re),ve=ae(pe),ce=ee(pe),me=ne?ce-1:0,Ee=ne?-1:1;if(le<2)for(;;){if(me in ve){he=ve[me],me+=Ee;break}if(me+=Ee,ne?me<0:ce<=me)throw de("Reduce of empty array with no initial value")}for(;ne?me>=0:ce>me;me+=Ee)me in ve&&(he=oe(he,ve[me],me,pe));return he}};ke.exports={left:E(!1),right:E(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),ae=y("../internals/create-property"),ee=x.Array,de=Math.max;ke.exports=function(E,ne,re){for(var oe=ie(E),le=z(ne,oe),he=z(re===void 0?oe:re,oe),pe=ee(de(he-le,0)),ve=0;le<he;le++,ve++)ae(pe,ve,E[le]);return pe.length=ve,pe}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,ke,we){var x=y("../internals/function-uncurry-this");ke.exports=x([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,ke,we){var x=y("../internals/array-slice-simple"),z=Math.floor,ie=function(de,E){var ne=de.length,re=z(ne/2);return ne<8?ae(de,E):ee(de,ie(x(de,0,re),E),ie(x(de,re),E),E)},ae=function(de,E){for(var ne=de.length,re=1,oe,le;re<ne;){for(le=re,oe=de[re];le&&E(de[le-1],oe)>0;)de[le]=de[--le];le!==re++&&(de[le]=oe)}return de},ee=function(de,E,ne,re){for(var oe=E.length,le=ne.length,he=0,pe=0;he<oe||pe<le;)de[he+pe]=he<oe&&pe<le?re(E[he],ne[pe])<=0?E[he++]:ne[pe++]:he<oe?E[he++]:ne[pe++];return de};ke.exports=ie},{"../internals/array-slice-simple":116}],119:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-array"),ie=y("../internals/is-constructor"),ae=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),de=ee("species"),E=x.Array;ke.exports=function(ne){var re;return z(ne)&&(re=ne.constructor,ie(re)&&(re===E||z(re.prototype))?re=void 0:ae(re)&&(re=re[de],re===null&&(re=void 0))),re===void 0?E:re}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,ke,we){var x=y("../internals/array-species-constructor");ke.exports=function(z,ie){return new(x(z))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(y,ke,we){var x=y("../internals/an-object"),z=y("../internals/iterator-close");ke.exports=function(ie,ae,ee,de){try{return de?ae(x(ee)[0],ee[1]):ae(ee)}catch(E){z(ie,"throw",E)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,ke,we){var x=y("../internals/well-known-symbol"),z=x("iterator"),ie=!1;try{var ae=0,ee={next:function(){return{done:!!ae++}},return:function(){ie=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(de){}ke.exports=function(de,E){if(!E&&!ie)return!1;var ne=!1;try{var re={};re[z]=function(){return{next:function(){return{done:ne=!0}}}},de(re)}catch(oe){}return ne}},{"../internals/well-known-symbol":268}],123:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=x({}.toString),ie=x("".slice);ke.exports=function(ae){return ie(z(ae),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/to-string-tag-support"),ie=y("../internals/is-callable"),ae=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),de=ee("toStringTag"),E=x.Object,ne=ae(function(){return arguments}())=="Arguments",re=function(oe,le){try{return oe[le]}catch(he){}};ke.exports=z?ae:function(oe){var le,he,pe;return oe===void 0?"Undefined":oe===null?"Null":typeof(he=re(le=E(oe),de))=="string"?he:ne?ae(le):(pe=ae(le))=="Object"&&ie(le.callee)?"Arguments":pe}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(y,ke,we){var x=y("../internals/has-own-property"),z=y("../internals/own-keys"),ie=y("../internals/object-get-own-property-descriptor"),ae=y("../internals/object-define-property");ke.exports=function(ee,de,E){for(var ne=z(de),re=ae.f,oe=ie.f,le=0;le<ne.length;le++){var he=ne[le];!x(ee,he)&&!(E&&x(E,he))&&re(ee,he,oe(de,he))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(y,ke,we){var x=y("../internals/well-known-symbol"),z=x("match");ke.exports=function(ie){var ae=/./;try{"/./"[ie](ae)}catch(ee){try{return ae[z]=!1,"/./"[ie](ae)}catch(de){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,ke,we){var x=y("../internals/fails");ke.exports=!x(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(y,ke,we){"use strict";var x=y("../internals/iterators-core").IteratorPrototype,z=y("../internals/object-create"),ie=y("../internals/create-property-descriptor"),ae=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),de=function(){return this};ke.exports=function(E,ne,re,oe){var le=ne+" Iterator";return E.prototype=z(x,{next:ie(+!oe,re)}),ae(E,le,!1,!0),ee[le]=de,E}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");ke.exports=x?function(ae,ee,de){return z.f(ae,ee,ie(1,de))}:function(ae,ee,de){return ae[ee]=de,ae}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,ke,we){ke.exports=function(x,z){return{enumerable:!(x&1),configurable:!(x&2),writable:!(x&4),value:z}}},{}],131:[function(y,ke,we){"use strict";var x=y("../internals/to-property-key"),z=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");ke.exports=function(ae,ee,de){var E=x(ee);E in ae?z.f(ae,E,ie(0,de)):ae[E]=de}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/is-pure"),ae=y("../internals/function-name"),ee=y("../internals/is-callable"),de=y("../internals/create-iterator-constructor"),E=y("../internals/object-get-prototype-of"),ne=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),oe=y("../internals/create-non-enumerable-property"),le=y("../internals/redefine"),he=y("../internals/well-known-symbol"),pe=y("../internals/iterators"),ve=y("../internals/iterators-core"),ce=ae.PROPER,me=ae.CONFIGURABLE,Ee=ve.IteratorPrototype,Te=ve.BUGGY_SAFARI_ITERATORS,Re=he("iterator"),_e="keys",ye="values",be="entries",Se=function(){return this};ke.exports=function(Ie,Me,Ae,De,He,Ke,Ve){de(Ae,Me,De);var nt=function(Qe){if(Qe===He&&et)return et;if(!Te&&Qe in $e)return $e[Qe];switch(Qe){case _e:return function(){return new Ae(this,Qe)};case ye:return function(){return new Ae(this,Qe)};case be:return function(){return new Ae(this,Qe)}}return function(){return new Ae(this)}},Ne=Me+" Iterator",We=!1,$e=Ie.prototype,rt=$e[Re]||$e["@@iterator"]||He&&$e[He],et=!Te&&rt||nt(He),Xe=Me=="Array"&&$e.entries||rt,Ye,Ge,at;if(Xe&&(Ye=E(Xe.call(new Ie)),Ye!==Object.prototype&&Ye.next&&(!ie&&E(Ye)!==Ee&&(ne?ne(Ye,Ee):ee(Ye[Re])||le(Ye,Re,Se)),re(Ye,Ne,!0,!0),ie&&(pe[Ne]=Se))),ce&&He==ye&&rt&&rt.name!==ye&&(!ie&&me?oe($e,"name",ye):(We=!0,et=function(){return z(rt,this)})),He)if(Ge={values:nt(ye),keys:Ke?et:nt(_e),entries:nt(be)},Ve)for(at in Ge)(Te||We||!(at in $e))&&le($e,at,Ge[at]);else x({target:Me,proto:!0,forced:Te||We},Ge);return(!ie||Ve)&&$e[Re]!==et&&le($e,Re,et,{name:He}),pe[Me]=et,Ge}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(y,ke,we){var x=y("../internals/path"),z=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol-wrapped"),ae=y("../internals/object-define-property").f;ke.exports=function(ee){var de=x.Symbol||(x.Symbol={});z(de,ee)||ae(de,ee,{value:ie.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,ke,we){var x=y("../internals/fails");ke.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-object"),ie=x.document,ae=z(ie)&&z(ie.createElement);ke.exports=function(ee){return ae?ie.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,ke,we){ke.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(y,ke,we){var x=y("../internals/document-create-element"),z=x("span").classList,ie=z&&z.constructor&&z.constructor.prototype;ke.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(y,ke,we){var x=y("../internals/engine-user-agent"),z=x.match(/firefox\/(\d+)/i);ke.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(y,ke,we){ke.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,ke,we){var x=y("../internals/engine-user-agent");ke.exports=/MSIE|Trident/.test(x)},{"../internals/engine-user-agent":145}],141:[function(y,ke,we){var x=y("../internals/engine-user-agent"),z=y("../internals/global");ke.exports=/ipad|iphone|ipod/i.test(x)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,ke,we){var x=y("../internals/engine-user-agent");ke.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(x)},{"../internals/engine-user-agent":145}],143:[function(y,ke,we){var x=y("../internals/classof-raw"),z=y("../internals/global");ke.exports=x(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,ke,we){var x=y("../internals/engine-user-agent");ke.exports=/web0s(?!.*chrome)/i.test(x)},{"../internals/engine-user-agent":145}],145:[function(y,ke,we){var x=y("../internals/get-built-in");ke.exports=x("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/engine-user-agent"),ie=x.process,ae=x.Deno,ee=ie&&ie.versions||ae&&ae.version,de=ee&&ee.v8,E,ne;de&&(E=de.split("."),ne=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!ne&&z&&(E=z.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=z.match(/Chrome\/(\d+)/),E&&(ne=+E[1]))),ke.exports=ne},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,ke,we){var x=y("../internals/engine-user-agent"),z=x.match(/AppleWebKit\/(\d+)\./);ke.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(y,ke,we){ke.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/object-get-own-property-descriptor").f,ie=y("../internals/create-non-enumerable-property"),ae=y("../internals/redefine"),ee=y("../internals/set-global"),de=y("../internals/copy-constructor-properties"),E=y("../internals/is-forced");ke.exports=function(ne,re){var oe=ne.target,le=ne.global,he=ne.stat,pe,ve,ce,me,Ee,Te;if(le?ve=x:he?ve=x[oe]||ee(oe,{}):ve=(x[oe]||{}).prototype,ve)for(ce in re){if(Ee=re[ce],ne.noTargetGet?(Te=z(ve,ce),me=Te&&Te.value):me=ve[ce],pe=E(le?ce:oe+(he?".":"#")+ce,ne.forced),!pe&&me!==void 0){if(typeof Ee==typeof me)continue;de(Ee,me)}(ne.sham||me&&me.sham)&&ie(Ee,"sham",!0),ae(ve,ce,Ee,ne)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(y,ke,we){ke.exports=function(x){try{return!!x()}catch(z){return!0}}},{}],151:[function(y,ke,we){"use strict";y("../modules/es.regexp.exec");var x=y("../internals/function-uncurry-this"),z=y("../internals/redefine"),ie=y("../internals/regexp-exec"),ae=y("../internals/fails"),ee=y("../internals/well-known-symbol"),de=y("../internals/create-non-enumerable-property"),E=ee("species"),ne=RegExp.prototype;ke.exports=function(re,oe,le,he){var pe=ee(re),ve=!ae(function(){var Te={};return Te[pe]=function(){return 7},""[re](Te)!=7}),ce=ve&&!ae(function(){var Te=!1,Re=/a/;return re==="split"&&(Re={},Re.constructor={},Re.constructor[E]=function(){return Re},Re.flags="",Re[pe]=/./[pe]),Re.exec=function(){return Te=!0,null},Re[pe](""),!Te});if(!ve||!ce||le){var me=x(/./[pe]),Ee=oe(pe,""[re],function(Te,Re,_e,ye,be){var Se=x(Te),Ie=Re.exec;return Ie===ie||Ie===ne.exec?ve&&!be?{done:!0,value:me(Re,_e,ye)}:{done:!0,value:Se(_e,Re,ye)}:{done:!1}});z(String.prototype,re,Ee[0]),z(ne,pe,Ee[1])}he&&de(ne[pe],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(y,ke,we){var x=y("../internals/function-bind-native"),z=Function.prototype,ie=z.apply,ae=z.call;ke.exports=typeof Reflect=="object"&&Reflect.apply||(x?ae.bind(ie):function(){return ae.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/a-callable"),ie=y("../internals/function-bind-native"),ae=x(x.bind);ke.exports=function(ee,de){return z(ee),de===void 0?ee:ie?ae(ee,de):function(){return ee.apply(de,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,ke,we){var x=y("../internals/fails");ke.exports=!x(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,ke,we){var x=y("../internals/function-bind-native"),z=Function.prototype.call;ke.exports=x?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/has-own-property"),ie=Function.prototype,ae=x&&Object.getOwnPropertyDescriptor,ee=z(ie,"name"),de=ee&&function(){}.name==="something",E=ee&&(!x||x&&ae(ie,"name").configurable);ke.exports={EXISTS:ee,PROPER:de,CONFIGURABLE:E}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,ke,we){var x=y("../internals/function-bind-native"),z=Function.prototype,ie=z.bind,ae=z.call,ee=x&&ie.bind(ae,ae);ke.exports=x?function(de){return de&&ee(de)}:function(de){return de&&function(){return ae.apply(de,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=function(ae){return z(ae)?ae:void 0};ke.exports=function(ae,ee){return arguments.length<2?ie(x[ae]):x[ae]&&x[ae][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,ke,we){var x=y("../internals/classof"),z=y("../internals/get-method"),ie=y("../internals/iterators"),ae=y("../internals/well-known-symbol"),ee=ae("iterator");ke.exports=function(de){if(de!=null)return z(de,ee)||z(de,"@@iterator")||ie[x(de)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/a-callable"),ae=y("../internals/an-object"),ee=y("../internals/try-to-string"),de=y("../internals/get-iterator-method"),E=x.TypeError;ke.exports=function(ne,re){var oe=arguments.length<2?de(ne):re;if(ie(oe))return ae(z(oe,ne));throw E(ee(ne)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(y,ke,we){var x=y("../internals/a-callable");ke.exports=function(z,ie){var ae=z[ie];return ae==null?void 0:x(ae)}},{"../internals/a-callable":95}],162:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),ie=Math.floor,ae=x("".charAt),ee=x("".replace),de=x("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ne=/\$([$&'`]|\d{1,2})/g;ke.exports=function(re,oe,le,he,pe,ve){var ce=le+re.length,me=he.length,Ee=ne;return pe!==void 0&&(pe=z(pe),Ee=E),ee(ve,Ee,function(Te,Re){var _e;switch(ae(Re,0)){case"$":return"$";case"&":return re;case"`":return de(oe,0,le);case"'":return de(oe,ce);case"<":_e=pe[de(Re,1,-1)];break;default:var ye=+Re;if(ye===0)return Te;if(ye>me){var be=ie(ye/10);return be===0?Te:be<=me?he[be-1]===void 0?ae(Re,1):he[be-1]+ae(Re,1):Te}_e=he[ye-1]}return _e===void 0?"":_e})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,ke,we){(function(x){(function(){var z=function(ie){return ie&&ie.Math==Math&&ie};ke.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof x=="object"&&x)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),ie=x({}.hasOwnProperty);ke.exports=Object.hasOwn||function(ee,de){return ie(z(ee),de)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,ke,we){ke.exports={}},{}],166:[function(y,ke,we){var x=y("../internals/global");ke.exports=function(z,ie){var ae=x.console;ae&&ae.error&&(arguments.length==1?ae.error(z):ae.error(z,ie))}},{"../internals/global":163}],167:[function(y,ke,we){var x=y("../internals/get-built-in");ke.exports=x("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/fails"),ie=y("../internals/document-create-element");ke.exports=!x&&!z(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,ke,we){var x=y("../internals/global"),z=x.Array,ie=Math.abs,ae=Math.pow,ee=Math.floor,de=Math.log,E=Math.LN2,ne=function(oe,le,he){var pe=z(he),ve=he*8-le-1,ce=(1<<ve)-1,me=ce>>1,Ee=le===23?ae(2,-24)-ae(2,-77):0,Te=oe<0||oe===0&&1/oe<0?1:0,Re=0,_e,ye,be;for(oe=ie(oe),oe!=oe||oe===1/0?(ye=oe!=oe?1:0,_e=ce):(_e=ee(de(oe)/E),be=ae(2,-_e),oe*be<1&&(_e--,be*=2),_e+me>=1?oe+=Ee/be:oe+=Ee*ae(2,1-me),oe*be>=2&&(_e++,be/=2),_e+me>=ce?(ye=0,_e=ce):_e+me>=1?(ye=(oe*be-1)*ae(2,le),_e=_e+me):(ye=oe*ae(2,me-1)*ae(2,le),_e=0));le>=8;)pe[Re++]=ye&255,ye/=256,le-=8;for(_e=_e<<le|ye,ve+=le;ve>0;)pe[Re++]=_e&255,_e/=256,ve-=8;return pe[--Re]|=Te*128,pe},re=function(oe,le){var he=oe.length,pe=he*8-le-1,ve=(1<<pe)-1,ce=ve>>1,me=pe-7,Ee=he-1,Te=oe[Ee--],Re=Te&127,_e;for(Te>>=7;me>0;)Re=Re*256+oe[Ee--],me-=8;for(_e=Re&(1<<-me)-1,Re>>=-me,me+=le;me>0;)_e=_e*256+oe[Ee--],me-=8;if(Re===0)Re=1-ce;else{if(Re===ve)return _e?NaN:Te?-1/0:1/0;_e=_e+ae(2,le),Re=Re-ce}return(Te?-1:1)*_e*ae(2,Re-le)};ke.exports={pack:ne,unpack:re}},{"../internals/global":163}],170:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),ae=y("../internals/classof-raw"),ee=x.Object,de=z("".split);ke.exports=ie(function(){return!ee("z").propertyIsEnumerable(0)})?function(E){return ae(E)=="String"?de(E,""):ee(E)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,ke,we){var x=y("../internals/is-callable"),z=y("../internals/is-object"),ie=y("../internals/object-set-prototype-of");ke.exports=function(ae,ee,de){var E,ne;return ie&&x(E=ee.constructor)&&E!==de&&z(ne=E.prototype)&&ne!==de.prototype&&ie(ae,ne),ae}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/is-callable"),ie=y("../internals/shared-store"),ae=x(Function.toString);z(ie.inspectSource)||(ie.inspectSource=function(ee){return ae(ee)}),ke.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,ke,we){var x=y("../internals/native-weak-map"),z=y("../internals/global"),ie=y("../internals/function-uncurry-this"),ae=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),de=y("../internals/has-own-property"),E=y("../internals/shared-store"),ne=y("../internals/shared-key"),re=y("../internals/hidden-keys"),oe="Object already initialized",le=z.TypeError,he=z.WeakMap,pe,ve,ce,me=function(Se){return ce(Se)?ve(Se):pe(Se,{})},Ee=function(Se){return function(Ie){var Me;if(!ae(Ie)||(Me=ve(Ie)).type!==Se)throw le("Incompatible receiver, "+Se+" required");return Me}};if(x||E.state){var Te=E.state||(E.state=new he),Re=ie(Te.get),_e=ie(Te.has),ye=ie(Te.set);pe=function(Se,Ie){if(_e(Te,Se))throw new le(oe);return Ie.facade=Se,ye(Te,Se,Ie),Ie},ve=function(Se){return Re(Te,Se)||{}},ce=function(Se){return _e(Te,Se)}}else{var be=ne("state");re[be]=!0,pe=function(Se,Ie){if(de(Se,be))throw new le(oe);return Ie.facade=Se,ee(Se,be,Ie),Ie},ve=function(Se){return de(Se,be)?Se[be]:{}},ce=function(Se){return de(Se,be)}}ke.exports={set:pe,get:ve,has:ce,enforce:me,getterFor:Ee}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(y,ke,we){var x=y("../internals/well-known-symbol"),z=y("../internals/iterators"),ie=x("iterator"),ae=Array.prototype;ke.exports=function(ee){return ee!==void 0&&(z.Array===ee||ae[ie]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,ke,we){var x=y("../internals/classof-raw");ke.exports=Array.isArray||function(ie){return x(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,ke,we){ke.exports=function(x){return typeof x=="function"}},{}],177:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/fails"),ie=y("../internals/is-callable"),ae=y("../internals/classof"),ee=y("../internals/get-built-in"),de=y("../internals/inspect-source"),E=function(){},ne=[],re=ee("Reflect","construct"),oe=/^\s*(?:class|function)\b/,le=x(oe.exec),he=!oe.exec(E),pe=function(me){if(!ie(me))return!1;try{return re(E,ne,me),!0}catch(Ee){return!1}},ve=function(me){if(!ie(me))return!1;switch(ae(me)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return he||!!le(oe,de(me))}catch(Ee){return!0}};ve.sham=!0,ke.exports=!re||z(function(){var ce;return pe(pe.call)||!pe(Object)||!pe(function(){ce=!0})||ce})?ve:pe},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(y,ke,we){var x=y("../internals/fails"),z=y("../internals/is-callable"),ie=/#|\.prototype\./,ae=function(re,oe){var le=de[ee(re)];return le==ne?!0:le==E?!1:z(oe)?x(oe):!!oe},ee=ae.normalize=function(re){return String(re).replace(ie,".").toLowerCase()},de=ae.data={},E=ae.NATIVE="N",ne=ae.POLYFILL="P";ke.exports=ae},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,ke,we){var x=y("../internals/is-object"),z=Math.floor;ke.exports=Number.isInteger||function(ae){return!x(ae)&&isFinite(ae)&&z(ae)===ae}},{"../internals/is-object":180}],180:[function(y,ke,we){var x=y("../internals/is-callable");ke.exports=function(z){return typeof z=="object"?z!==null:x(z)}},{"../internals/is-callable":176}],181:[function(y,ke,we){ke.exports=!1},{}],182:[function(y,ke,we){var x=y("../internals/is-object"),z=y("../internals/classof-raw"),ie=y("../internals/well-known-symbol"),ae=ie("match");ke.exports=function(ee){var de;return x(ee)&&((de=ee[ae])!==void 0?!!de:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/get-built-in"),ie=y("../internals/is-callable"),ae=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),de=x.Object;ke.exports=ee?function(E){return typeof E=="symbol"}:function(E){var ne=z("Symbol");return ie(ne)&&ae(ne.prototype,de(E))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-bind-context"),ie=y("../internals/function-call"),ae=y("../internals/an-object"),ee=y("../internals/try-to-string"),de=y("../internals/is-array-iterator-method"),E=y("../internals/length-of-array-like"),ne=y("../internals/object-is-prototype-of"),re=y("../internals/get-iterator"),oe=y("../internals/get-iterator-method"),le=y("../internals/iterator-close"),he=x.TypeError,pe=function(ce,me){this.stopped=ce,this.result=me},ve=pe.prototype;ke.exports=function(ce,me,Ee){var Te=Ee&&Ee.that,Re=!!(Ee&&Ee.AS_ENTRIES),_e=!!(Ee&&Ee.IS_ITERATOR),ye=!!(Ee&&Ee.INTERRUPTED),be=z(me,Te),Se,Ie,Me,Ae,De,He,Ke,Ve=function(Ne){return Se&&le(Se,"normal",Ne),new pe(!0,Ne)},nt=function(Ne){return Re?(ae(Ne),ye?be(Ne[0],Ne[1],Ve):be(Ne[0],Ne[1])):ye?be(Ne,Ve):be(Ne)};if(_e)Se=ce;else{if(Ie=oe(ce),!Ie)throw he(ee(ce)+" is not iterable");if(de(Ie)){for(Me=0,Ae=E(ce);Ae>Me;Me++)if(De=nt(ce[Me]),De&&ne(ve,De))return De;return new pe(!1)}Se=re(ce,Ie)}for(He=Se.next;!(Ke=ie(He,Se)).done;){try{De=nt(Ke.value)}catch(Ne){le(Se,"throw",Ne)}if(typeof De=="object"&&De&&ne(ve,De))return De}return new pe(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(y,ke,we){var x=y("../internals/function-call"),z=y("../internals/an-object"),ie=y("../internals/get-method");ke.exports=function(ae,ee,de){var E,ne;z(ae);try{if(E=ie(ae,"return"),!E){if(ee==="throw")throw de;return de}E=x(E,ae)}catch(re){ne=!0,E=re}if(ee==="throw")throw de;if(ne)throw E;return z(E),de}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,ke,we){"use strict";var x=y("../internals/fails"),z=y("../internals/is-callable"),ie=y("../internals/object-create"),ae=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),de=y("../internals/well-known-symbol"),E=y("../internals/is-pure"),ne=de("iterator"),re=!1,oe,le,he;[].keys&&(he=[].keys(),"next"in he?(le=ae(ae(he)),le!==Object.prototype&&(oe=le)):re=!0);var pe=oe==null||x(function(){var ve={};return oe[ne].call(ve)!==ve});pe?oe={}:E&&(oe=ie(oe)),z(oe[ne])||ee(oe,ne,function(){return this}),ke.exports={IteratorPrototype:oe,BUGGY_SAFARI_ITERATORS:re}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(y,ke,we){arguments[4][165][0].apply(we,arguments)},{dup:165}],188:[function(y,ke,we){var x=y("../internals/to-length");ke.exports=function(z){return x(z.length)}},{"../internals/to-length":249}],189:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-bind-context"),ie=y("../internals/object-get-own-property-descriptor").f,ae=y("../internals/task").set,ee=y("../internals/engine-is-ios"),de=y("../internals/engine-is-ios-pebble"),E=y("../internals/engine-is-webos-webkit"),ne=y("../internals/engine-is-node"),re=x.MutationObserver||x.WebKitMutationObserver,oe=x.document,le=x.process,he=x.Promise,pe=ie(x,"queueMicrotask"),ve=pe&&pe.value,ce,me,Ee,Te,Re,_e,ye,be;ve||(ce=function(){var Se,Ie;for(ne&&(Se=le.domain)&&Se.exit();me;){Ie=me.fn,me=me.next;try{Ie()}catch(Me){throw me?Te():Ee=void 0,Me}}Ee=void 0,Se&&Se.enter()},!ee&&!ne&&!E&&re&&oe?(Re=!0,_e=oe.createTextNode(""),new re(ce).observe(_e,{characterData:!0}),Te=function(){_e.data=Re=!Re}):!de&&he&&he.resolve?(ye=he.resolve(void 0),ye.constructor=he,be=z(ye.then,ye),Te=function(){be(ce)}):ne?Te=function(){le.nextTick(ce)}:(ae=z(ae,x),Te=function(){ae(ce)})),ke.exports=ve||function(Se){var Ie={fn:Se,next:void 0};Ee&&(Ee.next=Ie),me||(me=Ie,Te()),Ee=Ie}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(y,ke,we){var x=y("../internals/native-symbol");ke.exports=x&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,ke,we){var x=y("../internals/engine-v8-version"),z=y("../internals/fails");ke.exports=!!Object.getOwnPropertySymbols&&!z(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&x&&x<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=y("../internals/inspect-source"),ae=x.WeakMap;ke.exports=z(ae)&&/native code/.test(ie(ae))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,ke,we){"use strict";var x=y("../internals/a-callable"),z=function(ie){var ae,ee;this.promise=new ie(function(de,E){if(ae!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");ae=de,ee=E}),this.resolve=x(ae),this.reject=x(ee)};ke.exports.f=function(ie){return new z(ie)}},{"../internals/a-callable":95}],194:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-regexp"),ie=x.TypeError;ke.exports=function(ae){if(z(ae))throw ie("The method doesn't accept regular expressions");return ae}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,ke,we){"use strict";var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),ie=y("../internals/function-call"),ae=y("../internals/fails"),ee=y("../internals/object-keys"),de=y("../internals/object-get-own-property-symbols"),E=y("../internals/object-property-is-enumerable"),ne=y("../internals/to-object"),re=y("../internals/indexed-object"),oe=Object.assign,le=Object.defineProperty,he=z([].concat);ke.exports=!oe||ae(function(){if(x&&oe({b:1},oe(le({},"a",{enumerable:!0,get:function(){le(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var pe={},ve={},ce=Symbol(),me="abcdefghijklmnopqrst";return pe[ce]=7,me.split("").forEach(function(Ee){ve[Ee]=Ee}),oe({},pe)[ce]!=7||ee(oe({},ve)).join("")!=me})?function(ve,ce){for(var me=ne(ve),Ee=arguments.length,Te=1,Re=de.f,_e=E.f;Ee>Te;)for(var ye=re(arguments[Te++]),be=Re?he(ee(ye),Re(ye)):ee(ye),Se=be.length,Ie=0,Me;Se>Ie;)Me=be[Ie++],(!x||ie(_e,ye,Me))&&(me[Me]=ye[Me]);return me}:oe},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(y,ke,we){var x=y("../internals/an-object"),z=y("../internals/object-define-properties"),ie=y("../internals/enum-bug-keys"),ae=y("../internals/hidden-keys"),ee=y("../internals/html"),de=y("../internals/document-create-element"),E=y("../internals/shared-key"),ne=">",re="<",oe="prototype",le="script",he=E("IE_PROTO"),pe=function(){},ve=function(Re){return re+le+ne+Re+re+"/"+le+ne},ce=function(Re){Re.write(ve("")),Re.close();var _e=Re.parentWindow.Object;return Re=null,_e},me=function(){var Re=de("iframe"),_e="java"+le+":",ye;return Re.style.display="none",ee.appendChild(Re),Re.src=String(_e),ye=Re.contentWindow.document,ye.open(),ye.write(ve("document.F=Object")),ye.close(),ye.F},Ee,Te=function(){try{Ee=new ActiveXObject("htmlfile")}catch(_e){}Te=typeof document!="undefined"?document.domain&&Ee?ce(Ee):me():ce(Ee);for(var Re=ie.length;Re--;)delete Te[oe][ie[Re]];return Te()};ae[he]=!0,ke.exports=Object.create||function(_e,ye){var be;return _e!==null?(pe[oe]=x(_e),be=new pe,pe[oe]=null,be[he]=_e):be=Te(),ye===void 0?be:z.f(be,ye)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/v8-prototype-define-bug"),ie=y("../internals/object-define-property"),ae=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),de=y("../internals/object-keys");we.f=x&&!z?Object.defineProperties:function(ne,re){ae(ne);for(var oe=ee(re),le=de(re),he=le.length,pe=0,ve;he>pe;)ie.f(ne,ve=le[pe++],oe[ve]);return ne}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/descriptors"),ie=y("../internals/ie8-dom-define"),ae=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),de=y("../internals/to-property-key"),E=x.TypeError,ne=Object.defineProperty,re=Object.getOwnPropertyDescriptor,oe="enumerable",le="configurable",he="writable";we.f=z?ae?function(ve,ce,me){if(ee(ve),ce=de(ce),ee(me),typeof ve=="function"&&ce==="prototype"&&"value"in me&&he in me&&!me[he]){var Ee=re(ve,ce);Ee&&Ee[he]&&(ve[ce]=me.value,me={configurable:le in me?me[le]:Ee[le],enumerable:oe in me?me[oe]:Ee[oe],writable:!1})}return ne(ve,ce,me)}:ne:function(ve,ce,me){if(ee(ve),ce=de(ce),ee(me),ie)try{return ne(ve,ce,me)}catch(Ee){}if("get"in me||"set"in me)throw E("Accessors not supported");return"value"in me&&(ve[ce]=me.value),ve}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/function-call"),ie=y("../internals/object-property-is-enumerable"),ae=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),de=y("../internals/to-property-key"),E=y("../internals/has-own-property"),ne=y("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;we.f=x?re:function(le,he){if(le=ee(le),he=de(he),ne)try{return re(le,he)}catch(pe){}if(E(le,he))return ae(!z(ie.f,le,he),le[he])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(y,ke,we){var x=y("../internals/classof-raw"),z=y("../internals/to-indexed-object"),ie=y("../internals/object-get-own-property-names").f,ae=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],de=function(E){try{return ie(E)}catch(ne){return ae(ee)}};ke.exports.f=function(ne){return ee&&x(ne)=="Window"?de(ne):ie(z(ne))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,ke,we){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys"),ie=z.concat("length","prototype");we.f=Object.getOwnPropertyNames||function(ee){return x(ee,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,ke,we){we.f=Object.getOwnPropertySymbols},{}],203:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/has-own-property"),ie=y("../internals/is-callable"),ae=y("../internals/to-object"),ee=y("../internals/shared-key"),de=y("../internals/correct-prototype-getter"),E=ee("IE_PROTO"),ne=x.Object,re=ne.prototype;ke.exports=de?ne.getPrototypeOf:function(oe){var le=ae(oe);if(z(le,E))return le[E];var he=le.constructor;return ie(he)&&le instanceof he?he.prototype:le instanceof ne?re:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(y,ke,we){var x=y("../internals/function-uncurry-this");ke.exports=x({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),ie=y("../internals/to-indexed-object"),ae=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),de=x([].push);ke.exports=function(E,ne){var re=ie(E),oe=0,le=[],he;for(he in re)!z(ee,he)&&z(re,he)&&de(le,he);for(;ne.length>oe;)z(re,he=ne[oe++])&&(~ae(le,he)||de(le,he));return le}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(y,ke,we){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys");ke.exports=Object.keys||function(ae){return x(ae,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,ke,we){"use strict";var x={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,ie=z&&!x.call({1:2},1);we.f=ie?function(ee){var de=z(this,ee);return!!de&&de.enumerable}:x},{}],208:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/an-object"),ie=y("../internals/a-possible-prototype");ke.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ae=!1,ee={},de;try{de=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),de(ee,[]),ae=ee instanceof Array}catch(E){}return function(ne,re){return z(ne),ie(re),ae?de(ne,re):ne.__proto__=re,ne}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),ie=y("../internals/object-keys"),ae=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,de=z(ee),E=z([].push),ne=function(re){return function(oe){for(var le=ae(oe),he=ie(le),pe=he.length,ve=0,ce=[],me;pe>ve;)me=he[ve++],(!x||de(le,me))&&E(ce,re?[me,le[me]]:le[me]);return ce}};ke.exports={entries:ne(!0),values:ne(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(y,ke,we){"use strict";var x=y("../internals/to-string-tag-support"),z=y("../internals/classof");ke.exports=x?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/is-callable"),ae=y("../internals/is-object"),ee=x.TypeError;ke.exports=function(de,E){var ne,re;if(E==="string"&&ie(ne=de.toString)&&!ae(re=z(ne,de))||ie(ne=de.valueOf)&&!ae(re=z(ne,de))||E!=="string"&&ie(ne=de.toString)&&!ae(re=z(ne,de)))return re;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(y,ke,we){var x=y("../internals/get-built-in"),z=y("../internals/function-uncurry-this"),ie=y("../internals/object-get-own-property-names"),ae=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),de=z([].concat);ke.exports=x("Reflect","ownKeys")||function(ne){var re=ie.f(ee(ne)),oe=ae.f;return oe?de(re,oe(ne)):re}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(y,ke,we){var x=y("../internals/global");ke.exports=x},{"../internals/global":163}],214:[function(y,ke,we){ke.exports=function(x){try{return{error:!1,value:x()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/promise-native-constructor"),ie=y("../internals/is-callable"),ae=y("../internals/is-forced"),ee=y("../internals/inspect-source"),de=y("../internals/well-known-symbol"),E=y("../internals/engine-is-browser"),ne=y("../internals/is-pure"),re=y("../internals/engine-v8-version"),oe=z&&z.prototype,le=de("species"),he=!1,pe=ie(x.PromiseRejectionEvent),ve=ae("Promise",function(){var ce=ee(z),me=ce!==String(z);if(!me&&re===66||ne&&!(oe.catch&&oe.finally))return!0;if(re>=51&&/native code/.test(ce))return!1;var Ee=new z(function(_e){_e(1)}),Te=function(_e){_e(function(){},function(){})},Re=Ee.constructor={};return Re[le]=Te,he=Ee.then(function(){})instanceof Te,he?!me&&E&&!pe:!0});ke.exports={CONSTRUCTOR:ve,REJECTION_EVENT:pe,SUBCLASSING:he}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(y,ke,we){var x=y("../internals/global");ke.exports=x.Promise},{"../internals/global":163}],217:[function(y,ke,we){var x=y("../internals/an-object"),z=y("../internals/is-object"),ie=y("../internals/new-promise-capability");ke.exports=function(ae,ee){if(x(ae),z(ee)&&ee.constructor===ae)return ee;var de=ie.f(ae),E=de.resolve;return E(ee),de.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,ke,we){var x=y("../internals/promise-native-constructor"),z=y("../internals/check-correctness-of-iteration"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR;ke.exports=ie||!z(function(ae){x.all(ae).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,ke,we){var x=y("../internals/object-define-property").f;ke.exports=function(z,ie,ae){ae in z||x(z,ae,{configurable:!0,get:function(){return ie[ae]},set:function(ee){ie[ae]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,ke,we){var x=function(){this.head=null,this.tail=null};x.prototype={add:function(z){var ie={item:z,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},ke.exports=x},{}],221:[function(y,ke,we){var x=y("../internals/redefine");ke.exports=function(z,ie,ae){for(var ee in ie)x(z,ee,ie[ee],ae);return z}},{"../internals/redefine":222}],222:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=y("../internals/has-own-property"),ae=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),de=y("../internals/inspect-source"),E=y("../internals/internal-state"),ne=y("../internals/function-name").CONFIGURABLE,re=E.get,oe=E.enforce,le=String(String).split("String");(ke.exports=function(he,pe,ve,ce){var me=ce?!!ce.unsafe:!1,Ee=ce?!!ce.enumerable:!1,Te=ce?!!ce.noTargetGet:!1,Re=ce&&ce.name!==void 0?ce.name:pe,_e;if(z(ve)&&(String(Re).slice(0,7)==="Symbol("&&(Re="["+String(Re).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(ve,"name")||ne&&ve.name!==Re)&&ae(ve,"name",Re),_e=oe(ve),_e.source||(_e.source=le.join(typeof Re=="string"?Re:""))),he===x){Ee?he[pe]=ve:ee(pe,ve);return}else me?!Te&&he[pe]&&(Ee=!0):delete he[pe];Ee?he[pe]=ve:ae(he,pe,ve)})(Function.prototype,"toString",function(){return z(this)&&re(this).source||de(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/an-object"),ae=y("../internals/is-callable"),ee=y("../internals/classof-raw"),de=y("../internals/regexp-exec"),E=x.TypeError;ke.exports=function(ne,re){var oe=ne.exec;if(ae(oe)){var le=z(oe,ne,re);return le!==null&&ie(le),le}if(ee(ne)==="RegExp")return z(de,ne,re);throw E("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(y,ke,we){"use strict";var x=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),ie=y("../internals/to-string"),ae=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),de=y("../internals/shared"),E=y("../internals/object-create"),ne=y("../internals/internal-state").get,re=y("../internals/regexp-unsupported-dot-all"),oe=y("../internals/regexp-unsupported-ncg"),le=de("native-string-replace",String.prototype.replace),he=RegExp.prototype.exec,pe=he,ve=z("".charAt),ce=z("".indexOf),me=z("".replace),Ee=z("".slice),Te=function(){var be=/a/,Se=/b*/g;return x(he,be,"a"),x(he,Se,"a"),be.lastIndex!==0||Se.lastIndex!==0}(),Re=ee.BROKEN_CARET,_e=/()??/.exec("")[1]!==void 0,ye=Te||_e||Re||re||oe;ye&&(pe=function(Se){var Ie=this,Me=ne(Ie),Ae=ie(Se),De=Me.raw,He,Ke,Ve,nt,Ne,We,$e;if(De)return De.lastIndex=Ie.lastIndex,He=x(pe,De,Ae),Ie.lastIndex=De.lastIndex,He;var rt=Me.groups,et=Re&&Ie.sticky,Xe=x(ae,Ie),Ye=Ie.source,Ge=0,at=Ae;if(et&&(Xe=me(Xe,"y",""),ce(Xe,"g")===-1&&(Xe+="g"),at=Ee(Ae,Ie.lastIndex),Ie.lastIndex>0&&(!Ie.multiline||Ie.multiline&&ve(Ae,Ie.lastIndex-1)!==`
`)&&(Ye="(?: "+Ye+")",at=" "+at,Ge++),Ke=new RegExp("^(?:"+Ye+")",Xe)),_e&&(Ke=new RegExp("^"+Ye+"$(?!\\s)",Xe)),Te&&(Ve=Ie.lastIndex),nt=x(he,et?Ke:Ie,at),et?nt?(nt.input=Ee(nt.input,Ge),nt[0]=Ee(nt[0],Ge),nt.index=Ie.lastIndex,Ie.lastIndex+=nt[0].length):Ie.lastIndex=0:Te&&nt&&(Ie.lastIndex=Ie.global?nt.index+nt[0].length:Ve),_e&&nt&&nt.length>1&&x(le,nt[0],Ke,function(){for(Ne=1;Ne<arguments.length-2;Ne++)arguments[Ne]===void 0&&(nt[Ne]=void 0)}),nt&&rt)for(nt.groups=We=E(null),Ne=0;Ne<rt.length;Ne++)$e=rt[Ne],We[$e[0]]=nt[$e[1]];return nt}),ke.exports=pe},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(y,ke,we){"use strict";var x=y("../internals/an-object");ke.exports=function(){var z=x(this),ie="";return z.hasIndices&&(ie+="d"),z.global&&(ie+="g"),z.ignoreCase&&(ie+="i"),z.multiline&&(ie+="m"),z.dotAll&&(ie+="s"),z.unicode&&(ie+="u"),z.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(y,ke,we){var x=y("../internals/function-call"),z=y("../internals/has-own-property"),ie=y("../internals/object-is-prototype-of"),ae=y("../internals/regexp-flags"),ee=RegExp.prototype;ke.exports=function(de){var E=de.flags;return E===void 0&&!("flags"in ee)&&!z(de,"flags")&&ie(ee,de)?x(ae,de):E}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,ke,we){var x=y("../internals/fails"),z=y("../internals/global"),ie=z.RegExp,ae=x(function(){var E=ie("a","y");return E.lastIndex=2,E.exec("abcd")!=null}),ee=ae||x(function(){return!ie("a","y").sticky}),de=ae||x(function(){var E=ie("^r","gy");return E.lastIndex=2,E.exec("str")!=null});ke.exports={BROKEN_CARET:de,MISSED_STICKY:ee,UNSUPPORTED_Y:ae}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,ke,we){var x=y("../internals/fails"),z=y("../internals/global"),ie=z.RegExp;ke.exports=x(function(){var ae=ie(".","s");return!(ae.dotAll&&ae.exec(`
`)&&ae.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,ke,we){var x=y("../internals/fails"),z=y("../internals/global"),ie=z.RegExp;ke.exports=x(function(){var ae=ie("(?<a>b)","g");return ae.exec("b").groups.a!=="b"||"b".replace(ae,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,ke,we){var x=y("../internals/global"),z=x.TypeError;ke.exports=function(ie){if(ie==null)throw z("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(y,ke,we){ke.exports=Object.is||function(z,ie){return z===ie?z!==0||1/z===1/ie:z!=z&&ie!=ie}},{}],232:[function(y,ke,we){var x=y("../internals/global"),z=Object.defineProperty;ke.exports=function(ie,ae){try{z(x,ie,{value:ae,configurable:!0,writable:!0})}catch(ee){x[ie]=ae}return ae}},{"../internals/global":163}],233:[function(y,ke,we){"use strict";var x=y("../internals/get-built-in"),z=y("../internals/object-define-property"),ie=y("../internals/well-known-symbol"),ae=y("../internals/descriptors"),ee=ie("species");ke.exports=function(de){var E=x(de),ne=z.f;ae&&E&&!E[ee]&&ne(E,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(y,ke,we){var x=y("../internals/object-define-property").f,z=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol"),ae=ie("toStringTag");ke.exports=function(ee,de,E){ee&&!E&&(ee=ee.prototype),ee&&!z(ee,ae)&&x(ee,ae,{configurable:!0,value:de})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,ke,we){var x=y("../internals/shared"),z=y("../internals/uid"),ie=x("keys");ke.exports=function(ae){return ie[ae]||(ie[ae]=z(ae))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/set-global"),ie="__core-js_shared__",ae=x[ie]||z(ie,{});ke.exports=ae},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,ke,we){var x=y("../internals/is-pure"),z=y("../internals/shared-store");(ke.exports=function(ie,ae){return z[ie]||(z[ie]=ae!==void 0?ae:{})})("versions",[]).push({version:"3.22.1",mode:x?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(y,ke,we){var x=y("../internals/an-object"),z=y("../internals/a-constructor"),ie=y("../internals/well-known-symbol"),ae=ie("species");ke.exports=function(ee,de){var E=x(ee).constructor,ne;return E===void 0||(ne=x(E)[ae])==null?de:z(ne)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-string"),ae=y("../internals/require-object-coercible"),ee=x("".charAt),de=x("".charCodeAt),E=x("".slice),ne=function(re){return function(oe,le){var he=ie(ae(oe)),pe=z(le),ve=he.length,ce,me;return pe<0||pe>=ve?re?"":void 0:(ce=de(he,pe),ce<55296||ce>56319||pe+1===ve||(me=de(he,pe+1))<56320||me>57343?re?ee(he,pe):ce:re?E(he,pe,pe+2):(ce-55296<<10)+(me-56320)+65536)}};ke.exports={codeAt:ne(!1),charAt:ne(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,ke,we){var x=y("../internals/function-name").PROPER,z=y("../internals/fails"),ie=y("../internals/whitespaces"),ae="\u200B\x85\u180E";ke.exports=function(ee){return z(function(){return!!ie[ee]()||ae[ee]()!==ae||x&&ie[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=y("../internals/require-object-coercible"),ie=y("../internals/to-string"),ae=y("../internals/whitespaces"),ee=x("".replace),de="["+ae+"]",E=RegExp("^"+de+de+"*"),ne=RegExp(de+de+"*$"),re=function(oe){return function(le){var he=ie(z(le));return oe&1&&(he=ee(he,E,"")),oe&2&&(he=ee(he,ne,"")),he}};ke.exports={start:re(1),end:re(2),trim:re(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,ke,we){var x=y("../internals/function-call"),z=y("../internals/get-built-in"),ie=y("../internals/well-known-symbol"),ae=y("../internals/redefine");ke.exports=function(){var ee=z("Symbol"),de=ee&&ee.prototype,E=de&&de.valueOf,ne=ie("toPrimitive");de&&!de[ne]&&ae(de,ne,function(re){return x(E,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-apply"),ie=y("../internals/function-bind-context"),ae=y("../internals/is-callable"),ee=y("../internals/has-own-property"),de=y("../internals/fails"),E=y("../internals/html"),ne=y("../internals/array-slice"),re=y("../internals/document-create-element"),oe=y("../internals/validate-arguments-length"),le=y("../internals/engine-is-ios"),he=y("../internals/engine-is-node"),pe=x.setImmediate,ve=x.clearImmediate,ce=x.process,me=x.Dispatch,Ee=x.Function,Te=x.MessageChannel,Re=x.String,_e=0,ye={},be="onreadystatechange",Se,Ie,Me,Ae;try{Se=x.location}catch(nt){}var De=function(nt){if(ee(ye,nt)){var Ne=ye[nt];delete ye[nt],Ne()}},He=function(nt){return function(){De(nt)}},Ke=function(nt){De(nt.data)},Ve=function(nt){x.postMessage(Re(nt),Se.protocol+"//"+Se.host)};(!pe||!ve)&&(pe=function(Ne){oe(arguments.length,1);var We=ae(Ne)?Ne:Ee(Ne),$e=ne(arguments,1);return ye[++_e]=function(){z(We,void 0,$e)},Ie(_e),_e},ve=function(Ne){delete ye[Ne]},he?Ie=function(nt){ce.nextTick(He(nt))}:me&&me.now?Ie=function(nt){me.now(He(nt))}:Te&&!le?(Me=new Te,Ae=Me.port2,Me.port1.onmessage=Ke,Ie=ie(Ae.postMessage,Ae)):x.addEventListener&&ae(x.postMessage)&&!x.importScripts&&Se&&Se.protocol!=="file:"&&!de(Ve)?(Ie=Ve,x.addEventListener("message",Ke,!1)):be in re("script")?Ie=function(nt){E.appendChild(re("script"))[be]=function(){E.removeChild(this),De(nt)}}:Ie=function(nt){setTimeout(He(nt),0)}),ke.exports={set:pe,clear:ve}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(y,ke,we){var x=y("../internals/function-uncurry-this");ke.exports=x(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,ke,we){var x=y("../internals/to-integer-or-infinity"),z=Math.max,ie=Math.min;ke.exports=function(ae,ee){var de=x(ae);return de<0?z(de+ee,0):ie(de,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-length"),ae=x.RangeError;ke.exports=function(ee){if(ee===void 0)return 0;var de=z(ee),E=ie(de);if(de!==E)throw ae("Wrong length or index");return E}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,ke,we){var x=y("../internals/indexed-object"),z=y("../internals/require-object-coercible");ke.exports=function(ie){return x(z(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,ke,we){var x=Math.ceil,z=Math.floor;ke.exports=function(ie){var ae=+ie;return ae!==ae||ae===0?0:(ae>0?z:x)(ae)}},{}],249:[function(y,ke,we){var x=y("../internals/to-integer-or-infinity"),z=Math.min;ke.exports=function(ie){return ie>0?z(x(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/require-object-coercible"),ie=x.Object;ke.exports=function(ae){return ie(z(ae))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/to-positive-integer"),ie=x.RangeError;ke.exports=function(ae,ee){var de=z(ae);if(de%ee)throw ie("Wrong offset");return de}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),ie=x.RangeError;ke.exports=function(ae){var ee=z(ae);if(ee<0)throw ie("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/is-object"),ae=y("../internals/is-symbol"),ee=y("../internals/get-method"),de=y("../internals/ordinary-to-primitive"),E=y("../internals/well-known-symbol"),ne=x.TypeError,re=E("toPrimitive");ke.exports=function(oe,le){if(!ie(oe)||ae(oe))return oe;var he=ee(oe,re),pe;if(he){if(le===void 0&&(le="default"),pe=z(he,oe,le),!ie(pe)||ae(pe))return pe;throw ne("Can't convert object to primitive value")}return le===void 0&&(le="number"),de(oe,le)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(y,ke,we){var x=y("../internals/to-primitive"),z=y("../internals/is-symbol");ke.exports=function(ie){var ae=x(ie,"string");return z(ae)?ae:ae+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,ke,we){var x=y("../internals/well-known-symbol"),z=x("toStringTag"),ie={};ie[z]="z",ke.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/classof"),ie=x.String;ke.exports=function(ae){if(z(ae)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(ae)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,ke,we){var x=y("../internals/global"),z=x.String;ke.exports=function(ie){try{return z(ie)}catch(ae){return"Object"}}},{"../internals/global":163}],258:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/function-call"),ae=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),de=y("../internals/array-buffer-view-core"),E=y("../internals/array-buffer"),ne=y("../internals/an-instance"),re=y("../internals/create-property-descriptor"),oe=y("../internals/create-non-enumerable-property"),le=y("../internals/is-integral-number"),he=y("../internals/to-length"),pe=y("../internals/to-index"),ve=y("../internals/to-offset"),ce=y("../internals/to-property-key"),me=y("../internals/has-own-property"),Ee=y("../internals/classof"),Te=y("../internals/is-object"),Re=y("../internals/is-symbol"),_e=y("../internals/object-create"),ye=y("../internals/object-is-prototype-of"),be=y("../internals/object-set-prototype-of"),Se=y("../internals/object-get-own-property-names").f,Ie=y("../internals/typed-array-from"),Me=y("../internals/array-iteration").forEach,Ae=y("../internals/set-species"),De=y("../internals/object-define-property"),He=y("../internals/object-get-own-property-descriptor"),Ke=y("../internals/internal-state"),Ve=y("../internals/inherit-if-required"),nt=Ke.get,Ne=Ke.set,We=De.f,$e=He.f,rt=Math.round,et=z.RangeError,Xe=E.ArrayBuffer,Ye=Xe.prototype,Ge=E.DataView,at=de.NATIVE_ARRAY_BUFFER_VIEWS,Qe=de.TYPED_ARRAY_CONSTRUCTOR,ft=de.TYPED_ARRAY_TAG,ot=de.TypedArray,Je=de.TypedArrayPrototype,Fe=de.aTypedArrayConstructor,Pe=de.isTypedArray,te="BYTES_PER_ELEMENT",fe="Wrong length",Oe=function(tt,it){Fe(tt);for(var ct=0,ut=it.length,pt=new tt(ut);ut>ct;)pt[ct]=it[ct++];return pt},Ue=function(tt,it){We(tt,it,{get:function(){return nt(this)[it]}})},xe=function(tt){var it;return ye(Ye,tt)||(it=Ee(tt))=="ArrayBuffer"||it=="SharedArrayBuffer"},Ce=function(tt,it){return Pe(tt)&&!Re(it)&&it in tt&&le(+it)&&it>=0},je=function(it,ct){return ct=ce(ct),Ce(it,ct)?re(2,it[ct]):$e(it,ct)},Ze=function(it,ct,ut){return ct=ce(ct),Ce(it,ct)&&Te(ut)&&me(ut,"value")&&!me(ut,"get")&&!me(ut,"set")&&!ut.configurable&&(!me(ut,"writable")||ut.writable)&&(!me(ut,"enumerable")||ut.enumerable)?(it[ct]=ut.value,it):We(it,ct,ut)};ae?(at||(He.f=je,De.f=Ze,Ue(Je,"buffer"),Ue(Je,"byteOffset"),Ue(Je,"byteLength"),Ue(Je,"length")),x({target:"Object",stat:!0,forced:!at},{getOwnPropertyDescriptor:je,defineProperty:Ze}),ke.exports=function(tt,it,ct){var ut=tt.match(/\d+$/)[0]/8,pt=tt+(ct?"Clamped":"")+"Array",St="get"+tt,wt="set"+tt,Et=z[pt],vt=Et,At=vt&&vt.prototype,gt={},dt=function(Pt,Zt){var cr=nt(Pt);return cr.view[St](Zt*ut+cr.byteOffset,!0)},xt=function(Pt,Zt,cr){var Ht=nt(Pt);ct&&(cr=(cr=rt(cr))<0?0:cr>255?255:cr&255),Ht.view[wt](Zt*ut+Ht.byteOffset,cr,!0)},bt=function(Pt,Zt){We(Pt,Zt,{get:function(){return dt(this,Zt)},set:function(cr){return xt(this,Zt,cr)},enumerable:!0})};at?ee&&(vt=it(function(Pt,Zt,cr,Ht){return ne(Pt,At),Ve(function(){return Te(Zt)?xe(Zt)?Ht!==void 0?new Et(Zt,ve(cr,ut),Ht):cr!==void 0?new Et(Zt,ve(cr,ut)):new Et(Zt):Pe(Zt)?Oe(vt,Zt):ie(Ie,vt,Zt):new Et(pe(Zt))}(),Pt,vt)}),be&&be(vt,ot),Me(Se(Et),function(Pt){Pt in vt||oe(vt,Pt,Et[Pt])}),vt.prototype=At):(vt=it(function(Pt,Zt,cr,Ht){ne(Pt,At);var vr=0,Kr=0,Xr,Nr,fn;if(!Te(Zt))fn=pe(Zt),Nr=fn*ut,Xr=new Xe(Nr);else if(xe(Zt)){Xr=Zt,Kr=ve(cr,ut);var Lr=Zt.byteLength;if(Ht===void 0){if(Lr%ut||(Nr=Lr-Kr,Nr<0))throw et(fe)}else if(Nr=he(Ht)*ut,Nr+Kr>Lr)throw et(fe);fn=Nr/ut}else return Pe(Zt)?Oe(vt,Zt):ie(Ie,vt,Zt);for(Ne(Pt,{buffer:Xr,byteOffset:Kr,byteLength:Nr,length:fn,view:new Ge(Xr)});vr<fn;)bt(Pt,vr++)}),be&&be(vt,ot),At=vt.prototype=_e(Je)),At.constructor!==vt&&oe(At,"constructor",vt),oe(At,Qe,vt),ft&&oe(At,ft,pt),gt[pt]=vt,x({global:!0,forced:vt!=Et,sham:!at},gt),te in vt||oe(vt,te,ut),te in At||oe(At,te,ut),Ae(pt)}):ke.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/fails"),ie=y("../internals/check-correctness-of-iteration"),ae=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=x.ArrayBuffer,de=x.Int8Array;ke.exports=!ae||!z(function(){de(1)})||!z(function(){new de(-1)})||!ie(function(E){new de,new de(null),new de(1.5),new de(E)},!0)||z(function(){return new de(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(y,ke,we){var x=y("../internals/array-from-constructor-and-list"),z=y("../internals/typed-array-species-constructor");ke.exports=function(ie,ae){return x(z(ie),ae)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,ke,we){var x=y("../internals/function-bind-context"),z=y("../internals/function-call"),ie=y("../internals/a-constructor"),ae=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/get-iterator"),E=y("../internals/get-iterator-method"),ne=y("../internals/is-array-iterator-method"),re=y("../internals/array-buffer-view-core").aTypedArrayConstructor;ke.exports=function(le){var he=ie(this),pe=ae(le),ve=arguments.length,ce=ve>1?arguments[1]:void 0,me=ce!==void 0,Ee=E(pe),Te,Re,_e,ye,be,Se;if(Ee&&!ne(Ee))for(be=de(pe,Ee),Se=be.next,pe=[];!(ye=z(Se,be)).done;)pe.push(ye.value);for(me&&ve>2&&(ce=x(ce,arguments[2])),Re=ee(pe),_e=new(re(he))(Re),Te=0;Re>Te;Te++)_e[Te]=me?ce(pe[Te],Te):pe[Te];return _e}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(y,ke,we){var x=y("../internals/array-buffer-view-core"),z=y("../internals/species-constructor"),ie=x.TYPED_ARRAY_CONSTRUCTOR,ae=x.aTypedArrayConstructor;ke.exports=function(ee){return ae(z(ee,ee[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,ke,we){var x=y("../internals/function-uncurry-this"),z=0,ie=Math.random(),ae=x(1 .toString);ke.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+ae(++z+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,ke,we){var x=y("../internals/native-symbol");ke.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/fails");ke.exports=x&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,ke,we){var x=y("../internals/global"),z=x.TypeError;ke.exports=function(ie,ae){if(ie<ae)throw z("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(y,ke,we){var x=y("../internals/well-known-symbol");we.f=x},{"../internals/well-known-symbol":268}],268:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/shared"),ie=y("../internals/has-own-property"),ae=y("../internals/uid"),ee=y("../internals/native-symbol"),de=y("../internals/use-symbol-as-uid"),E=z("wks"),ne=x.Symbol,re=ne&&ne.for,oe=de?ne:ne&&ne.withoutSetter||ae;ke.exports=function(le){if(!ie(E,le)||!(ee||typeof E[le]=="string")){var he="Symbol."+le;ee&&ie(ne,le)?E[le]=ne[le]:de&&re?E[le]=re(he):E[le]=oe(he)}return E[le]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(y,ke,we){ke.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/array-buffer"),ae=y("../internals/set-species"),ee="ArrayBuffer",de=ie[ee],E=z[ee];x({global:!0,forced:E!==de},{ArrayBuffer:de}),ae(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),ae=y("../internals/array-buffer"),ee=y("../internals/an-object"),de=y("../internals/to-absolute-index"),E=y("../internals/to-length"),ne=y("../internals/species-constructor"),re=ae.ArrayBuffer,oe=ae.DataView,le=oe.prototype,he=z(re.prototype.slice),pe=z(le.getUint8),ve=z(le.setUint8),ce=ie(function(){return!new re(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ce},{slice:function(Ee,Te){if(he&&Te===void 0)return he(ee(this),Ee);for(var Re=ee(this).byteLength,_e=de(Ee,Re),ye=de(Te===void 0?Re:Te,Re),be=new(ne(this,re))(E(ye-_e)),Se=new oe(this),Ie=new oe(be),Me=0;_e<ye;)ve(Ie,Me++,pe(Se,_e++));return be}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/fails"),ae=y("../internals/is-array"),ee=y("../internals/is-object"),de=y("../internals/to-object"),E=y("../internals/length-of-array-like"),ne=y("../internals/create-property"),re=y("../internals/array-species-create"),oe=y("../internals/array-method-has-species-support"),le=y("../internals/well-known-symbol"),he=y("../internals/engine-v8-version"),pe=le("isConcatSpreadable"),ve=9007199254740991,ce="Maximum allowed index exceeded",me=z.TypeError,Ee=he>=51||!ie(function(){var ye=[];return ye[pe]=!1,ye.concat()[0]!==ye}),Te=oe("concat"),Re=function(ye){if(!ee(ye))return!1;var be=ye[pe];return be!==void 0?!!be:ae(ye)},_e=!Ee||!Te;x({target:"Array",proto:!0,forced:_e},{concat:function(be){var Se=de(this),Ie=re(Se,0),Me=0,Ae,De,He,Ke,Ve;for(Ae=-1,He=arguments.length;Ae<He;Ae++)if(Ve=Ae===-1?Se:arguments[Ae],Re(Ve)){if(Ke=E(Ve),Me+Ke>ve)throw me(ce);for(De=0;De<Ke;De++,Me++)De in Ve&&ne(Ie,Me,Ve[De])}else{if(Me>=ve)throw me(ce);ne(Ie,Me++,Ve)}return Ie.length=Me,Ie}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/array-fill"),ie=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{fill:z}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").filter,ie=y("../internals/array-method-has-species-support"),ae=ie("filter");x({target:"Array",proto:!0,forced:!ae},{filter:function(de){return z(this,de,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").find,ie=y("../internals/add-to-unscopables"),ae="find",ee=!0;ae in[]&&Array(1)[ae](function(){ee=!1}),x({target:"Array",proto:!0,forced:ee},{find:function(E){return z(this,E,arguments.length>1?arguments[1]:void 0)}}),ie(ae)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/array-from"),ie=y("../internals/check-correctness-of-iteration"),ae=!ie(function(ee){Array.from(ee)});x({target:"Array",stat:!0,forced:ae},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/array-includes").includes,ie=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,ke,we){"use strict";var x=y("../internals/to-indexed-object"),z=y("../internals/add-to-unscopables"),ie=y("../internals/iterators"),ae=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,de=y("../internals/define-iterator"),E=y("../internals/is-pure"),ne=y("../internals/descriptors"),re="Array Iterator",oe=ae.set,le=ae.getterFor(re);ke.exports=de(Array,"Array",function(pe,ve){oe(this,{type:re,target:x(pe),index:0,kind:ve})},function(){var pe=le(this),ve=pe.target,ce=pe.kind,me=pe.index++;return!ve||me>=ve.length?(pe.target=void 0,{value:void 0,done:!0}):ce=="keys"?{value:me,done:!1}:ce=="values"?{value:ve[me],done:!1}:{value:[me,ve[me]],done:!1}},"values");var he=ie.Arguments=ie.Array;if(z("keys"),z("values"),z("entries"),!E&&ne&&he.name!=="values")try{ee(he,"name",{value:"values"})}catch(pe){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),ae=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),de=z([].join),E=ie!=Object,ne=ee("join",",");x({target:"Array",proto:!0,forced:E||!ne},{join:function(oe){return de(ae(this),oe===void 0?",":oe)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").map,ie=y("../internals/array-method-has-species-support"),ae=ie("map");x({target:"Array",proto:!0,forced:!ae},{map:function(de){return z(this,de,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/is-array"),ae=y("../internals/is-constructor"),ee=y("../internals/is-object"),de=y("../internals/to-absolute-index"),E=y("../internals/length-of-array-like"),ne=y("../internals/to-indexed-object"),re=y("../internals/create-property"),oe=y("../internals/well-known-symbol"),le=y("../internals/array-method-has-species-support"),he=y("../internals/array-slice"),pe=le("slice"),ve=oe("species"),ce=z.Array,me=Math.max;x({target:"Array",proto:!0,forced:!pe},{slice:function(Te,Re){var _e=ne(this),ye=E(_e),be=de(Te,ye),Se=de(Re===void 0?ye:Re,ye),Ie,Me,Ae;if(ie(_e)&&(Ie=_e.constructor,ae(Ie)&&(Ie===ce||ie(Ie.prototype))?Ie=void 0:ee(Ie)&&(Ie=Ie[ve],Ie===null&&(Ie=void 0)),Ie===ce||Ie===void 0))return he(_e,be,Se);for(Me=new(Ie===void 0?ce:Ie)(me(Se-be,0)),Ae=0;be<Se;be++,Ae++)be in _e&&re(Me,Ae,_e[be]);return Me.length=Ae,Me}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/a-callable"),ae=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/to-string"),E=y("../internals/fails"),ne=y("../internals/array-sort"),re=y("../internals/array-method-is-strict"),oe=y("../internals/engine-ff-version"),le=y("../internals/engine-is-ie-or-edge"),he=y("../internals/engine-v8-version"),pe=y("../internals/engine-webkit-version"),ve=[],ce=z(ve.sort),me=z(ve.push),Ee=E(function(){ve.sort(void 0)}),Te=E(function(){ve.sort(null)}),Re=re("sort"),_e=!E(function(){if(he)return he<70;if(!(oe&&oe>3)){if(le)return!0;if(pe)return pe<603;var Se="",Ie,Me,Ae,De;for(Ie=65;Ie<76;Ie++){switch(Me=String.fromCharCode(Ie),Ie){case 66:case 69:case 70:case 72:Ae=3;break;case 68:case 71:Ae=4;break;default:Ae=2}for(De=0;De<47;De++)ve.push({k:Me+De,v:Ae})}for(ve.sort(function(He,Ke){return Ke.v-He.v}),De=0;De<ve.length;De++)Me=ve[De].k.charAt(0),Se.charAt(Se.length-1)!==Me&&(Se+=Me);return Se!=="DGBEFHACIJK"}}),ye=Ee||!Te||!Re||!_e,be=function(Se){return function(Ie,Me){return Me===void 0?-1:Ie===void 0?1:Se!==void 0?+Se(Ie,Me)||0:de(Ie)>de(Me)?1:-1}};x({target:"Array",proto:!0,forced:ye},{sort:function(Ie){Ie!==void 0&&ie(Ie);var Me=ae(this);if(_e)return Ie===void 0?ce(Me):ce(Me,Ie);var Ae=[],De=ee(Me),He,Ke;for(Ke=0;Ke<De;Ke++)Ke in Me&&me(Ae,Me[Ke]);for(ne(Ae,be(Ie)),He=Ae.length,Ke=0;Ke<He;)Me[Ke]=Ae[Ke++];for(;Ke<De;)delete Me[Ke++];return Me}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/to-absolute-index"),ae=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),de=y("../internals/to-object"),E=y("../internals/array-species-create"),ne=y("../internals/create-property"),re=y("../internals/array-method-has-species-support"),oe=re("splice"),le=z.TypeError,he=Math.max,pe=Math.min,ve=9007199254740991,ce="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!oe},{splice:function(Ee,Te){var Re=de(this),_e=ee(Re),ye=ie(Ee,_e),be=arguments.length,Se,Ie,Me,Ae,De,He;if(be===0?Se=Ie=0:be===1?(Se=0,Ie=_e-ye):(Se=be-2,Ie=pe(he(ae(Te),0),_e-ye)),_e+Se-Ie>ve)throw le(ce);for(Me=E(Re,Ie),Ae=0;Ae<Ie;Ae++)De=ye+Ae,De in Re&&ne(Me,Ae,Re[De]);if(Me.length=Ie,Se<Ie){for(Ae=ye;Ae<_e-Ie;Ae++)De=Ae+Ie,He=Ae+Se,De in Re?Re[He]=Re[De]:delete Re[He];for(Ae=_e;Ae>_e-Ie+Se;Ae--)delete Re[Ae-1]}else if(Se>Ie)for(Ae=_e-Ie;Ae>ye;Ae--)De=Ae+Ie-1,He=Ae+Se-1,De in Re?Re[He]=Re[De]:delete Re[He];for(Ae=0;Ae<Se;Ae++)Re[Ae+ye]=arguments[Ae+2];return Re.length=_e-Ie+Se,Me}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/function-name").EXISTS,ie=y("../internals/function-uncurry-this"),ae=y("../internals/object-define-property").f,ee=Function.prototype,de=ie(ee.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ne=ie(E.exec),re="name";x&&!z&&ae(ee,re,{configurable:!0,get:function(){try{return ne(E,de(this))[1]}catch(oe){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/get-built-in"),ie=y("../internals/function-apply"),ae=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),de=y("../internals/fails"),E=y("../internals/is-array"),ne=y("../internals/is-callable"),re=y("../internals/is-object"),oe=y("../internals/is-symbol"),le=y("../internals/array-slice"),he=y("../internals/native-symbol"),pe=z("JSON","stringify"),ve=ee(/./.exec),ce=ee("".charAt),me=ee("".charCodeAt),Ee=ee("".replace),Te=ee(1 .toString),Re=/[\uD800-\uDFFF]/g,_e=/^[\uD800-\uDBFF]$/,ye=/^[\uDC00-\uDFFF]$/,be=!he||de(function(){var Ae=z("Symbol")();return pe([Ae])!="[null]"||pe({a:Ae})!="{}"||pe(Object(Ae))!="{}"}),Se=de(function(){return pe("\uDF06\uD834")!=='"\\udf06\\ud834"'||pe("\uDEAD")!=='"\\udead"'}),Ie=function(Ae,De){var He=le(arguments),Ke=De;if(!(!re(De)&&Ae===void 0||oe(Ae)))return E(De)||(De=function(Ve,nt){if(ne(Ke)&&(nt=ae(Ke,this,Ve,nt)),!oe(nt))return nt}),He[1]=De,ie(pe,null,He)},Me=function(Ae,De,He){var Ke=ce(He,De-1),Ve=ce(He,De+1);return ve(_e,Ae)&&!ve(ye,Ve)||ve(ye,Ae)&&!ve(_e,Ke)?"\\u"+Te(me(Ae,0),16):Ae};pe&&x({target:"JSON",stat:!0,forced:be||Se},{stringify:function(De,He,Ke){var Ve=le(arguments),nt=ie(be?Ie:pe,null,Ve);return Se&&typeof nt=="string"?Ee(nt,Re,Me):nt}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(y,ke,we){"use strict";var x=y("../internals/descriptors"),z=y("../internals/global"),ie=y("../internals/function-uncurry-this"),ae=y("../internals/is-forced"),ee=y("../internals/redefine"),de=y("../internals/has-own-property"),E=y("../internals/inherit-if-required"),ne=y("../internals/object-is-prototype-of"),re=y("../internals/is-symbol"),oe=y("../internals/to-primitive"),le=y("../internals/fails"),he=y("../internals/object-get-own-property-names").f,pe=y("../internals/object-get-own-property-descriptor").f,ve=y("../internals/object-define-property").f,ce=y("../internals/this-number-value"),me=y("../internals/string-trim").trim,Ee="Number",Te=z[Ee],Re=Te.prototype,_e=z.TypeError,ye=ie("".slice),be=ie("".charCodeAt),Se=function(Ke){var Ve=oe(Ke,"number");return typeof Ve=="bigint"?Ve:Ie(Ve)},Ie=function(Ke){var Ve=oe(Ke,"number"),nt,Ne,We,$e,rt,et,Xe,Ye;if(re(Ve))throw _e("Cannot convert a Symbol value to a number");if(typeof Ve=="string"&&Ve.length>2){if(Ve=me(Ve),nt=be(Ve,0),nt===43||nt===45){if(Ne=be(Ve,2),Ne===88||Ne===120)return NaN}else if(nt===48){switch(be(Ve,1)){case 66:case 98:We=2,$e=49;break;case 79:case 111:We=8,$e=55;break;default:return+Ve}for(rt=ye(Ve,2),et=rt.length,Xe=0;Xe<et;Xe++)if(Ye=be(rt,Xe),Ye<48||Ye>$e)return NaN;return parseInt(rt,We)}}return+Ve};if(ae(Ee,!Te(" 0o1")||!Te("0b1")||Te("+0x1"))){for(var Me=function(Ve){var nt=arguments.length<1?0:Te(Se(Ve)),Ne=this;return ne(Re,Ne)&&le(function(){ce(Ne)})?E(Object(nt),Ne,Me):nt},Ae=x?he(Te):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),De=0,He;Ae.length>De;De++)de(Te,He=Ae[De])&&!de(Me,He)&&ve(Me,He,pe(Te,He));Me.prototype=Re,Re.constructor=Me,ee(z,Ee,Me)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/object-assign");x({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/object-to-array").entries;x({target:"Object",stat:!0},{entries:function(ae){return z(ae)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/native-symbol"),ie=y("../internals/fails"),ae=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),de=!z||ie(function(){ae.f(1)});x({target:"Object",stat:!0,forced:de},{getOwnPropertySymbols:function(ne){var re=ae.f;return re?re(ee(ne)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/to-object"),ie=y("../internals/object-keys"),ae=y("../internals/fails"),ee=ae(function(){ie(1)});x({target:"Object",stat:!0,forced:ee},{keys:function(E){return ie(z(E))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,ke,we){var x=y("../internals/to-string-tag-support"),z=y("../internals/redefine"),ie=y("../internals/object-to-string");x||z(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/a-callable"),ae=y("../internals/new-promise-capability"),ee=y("../internals/perform"),de=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{all:function(re){var oe=this,le=ae.f(oe),he=le.resolve,pe=le.reject,ve=ee(function(){var ce=ie(oe.resolve),me=[],Ee=0,Te=1;de(re,function(Re){var _e=Ee++,ye=!1;Te++,z(ce,oe,Re).then(function(be){ye||(ye=!0,me[_e]=be,--Te||he(me))},pe)}),--Te||he(me)});return ve.error&&pe(ve.value),le.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR,ae=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),de=y("../internals/is-callable"),E=y("../internals/redefine"),ne=ae&&ae.prototype;if(x({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(oe){return this.then(void 0,oe)}}),!z&&de(ae)){var re=ee("Promise").prototype.catch;ne.catch!==re&&E(ne,"catch",re,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),ie=y("../internals/engine-is-node"),ae=y("../internals/global"),ee=y("../internals/function-call"),de=y("../internals/redefine"),E=y("../internals/redefine-all"),ne=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),oe=y("../internals/set-species"),le=y("../internals/a-callable"),he=y("../internals/is-callable"),pe=y("../internals/is-object"),ve=y("../internals/an-instance"),ce=y("../internals/species-constructor"),me=y("../internals/task").set,Ee=y("../internals/microtask"),Te=y("../internals/host-report-errors"),Re=y("../internals/perform"),_e=y("../internals/queue"),ye=y("../internals/internal-state"),be=y("../internals/promise-native-constructor"),Se=y("../internals/promise-constructor-detection"),Ie=y("../internals/new-promise-capability"),Me="Promise",Ae=Se.CONSTRUCTOR,De=Se.REJECTION_EVENT,He=Se.SUBCLASSING,Ke=ye.getterFor(Me),Ve=ye.set,nt=be&&be.prototype,Ne=be,We=nt,$e=ae.TypeError,rt=ae.document,et=ae.process,Xe=Ie.f,Ye=Xe,Ge=!!(rt&&rt.createEvent&&ae.dispatchEvent),at="unhandledrejection",Qe="rejectionhandled",ft=0,ot=1,Je=2,Fe=1,Pe=2,te,fe,Oe,Ue,xe=function(wt){var Et;return pe(wt)&&he(Et=wt.then)?Et:!1},Ce=function(wt,Et){var vt=Et.value,At=Et.state==ot,gt=At?wt.ok:wt.fail,dt=wt.resolve,xt=wt.reject,bt=wt.domain,Pt,Zt,cr;try{gt?(At||(Et.rejection===Pe&&ct(Et),Et.rejection=Fe),gt===!0?Pt=vt:(bt&&bt.enter(),Pt=gt(vt),bt&&(bt.exit(),cr=!0)),Pt===wt.promise?xt($e("Promise-chain cycle")):(Zt=xe(Pt))?ee(Zt,Pt,dt,xt):dt(Pt)):xt(vt)}catch(Ht){bt&&!cr&&bt.exit(),xt(Ht)}},je=function(wt,Et){wt.notified||(wt.notified=!0,Ee(function(){for(var vt=wt.reactions,At;At=vt.get();)Ce(At,wt);wt.notified=!1,Et&&!wt.rejection&&tt(wt)}))},Ze=function(wt,Et,vt){var At,gt;Ge?(At=rt.createEvent("Event"),At.promise=Et,At.reason=vt,At.initEvent(wt,!1,!0),ae.dispatchEvent(At)):At={promise:Et,reason:vt},!De&&(gt=ae["on"+wt])?gt(At):wt===at&&Te("Unhandled promise rejection",vt)},tt=function(wt){ee(me,ae,function(){var Et=wt.facade,vt=wt.value,At=it(wt),gt;if(At&&(gt=Re(function(){ie?et.emit("unhandledRejection",vt,Et):Ze(at,Et,vt)}),wt.rejection=ie||it(wt)?Pe:Fe,gt.error))throw gt.value})},it=function(wt){return wt.rejection!==Fe&&!wt.parent},ct=function(wt){ee(me,ae,function(){var Et=wt.facade;ie?et.emit("rejectionHandled",Et):Ze(Qe,Et,wt.value)})},ut=function(wt,Et,vt){return function(At){wt(Et,At,vt)}},pt=function(wt,Et,vt){wt.done||(wt.done=!0,vt&&(wt=vt),wt.value=Et,wt.state=Je,je(wt,!0))},St=function(wt,Et,vt){if(!wt.done){wt.done=!0,vt&&(wt=vt);try{if(wt.facade===Et)throw $e("Promise can't be resolved itself");var At=xe(Et);At?Ee(function(){var gt={done:!1};try{ee(At,Et,ut(St,gt,wt),ut(pt,gt,wt))}catch(dt){pt(gt,dt,wt)}}):(wt.value=Et,wt.state=ot,je(wt,!1))}catch(gt){pt({done:!1},gt,wt)}}};if(Ae&&(Ne=function(Et){ve(this,We),le(Et),ee(te,this);var vt=Ke(this);try{Et(ut(St,vt),ut(pt,vt))}catch(At){pt(vt,At)}},We=Ne.prototype,te=function(Et){Ve(this,{type:Me,done:!1,notified:!1,parent:!1,reactions:new _e,rejection:!1,state:ft,value:void 0})},te.prototype=E(We,{then:function(Et,vt){var At=Ke(this),gt=Xe(ce(this,Ne));return At.parent=!0,gt.ok=he(Et)?Et:!0,gt.fail=he(vt)&&vt,gt.domain=ie?et.domain:void 0,At.state==ft?At.reactions.add(gt):Ee(function(){Ce(gt,At)}),gt.promise}}),fe=function(){var wt=new te,Et=Ke(wt);this.promise=wt,this.resolve=ut(St,Et),this.reject=ut(pt,Et)},Ie.f=Xe=function(wt){return wt===Ne||wt===Oe?new fe(wt):Ye(wt)},!z&&he(be)&&nt!==Object.prototype)){Ue=nt.then,He||de(nt,"then",function(Et,vt){var At=this;return new Ne(function(gt,dt){ee(Ue,At,gt,dt)}).then(Et,vt)},{unsafe:!0});try{delete nt.constructor}catch(wt){}ne&&ne(nt,We)}x({global:!0,wrap:!0,forced:Ae},{Promise:Ne}),re(Ne,Me,!1,!0),oe(Me)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(y,ke,we){y("../modules/es.promise.constructor"),y("../modules/es.promise.all"),y("../modules/es.promise.catch"),y("../modules/es.promise.race"),y("../modules/es.promise.reject"),y("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/a-callable"),ae=y("../internals/new-promise-capability"),ee=y("../internals/perform"),de=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{race:function(re){var oe=this,le=ae.f(oe),he=le.reject,pe=ee(function(){var ve=ie(oe.resolve);de(re,function(ce){z(ve,oe,ce).then(le.resolve,he)})});return pe.error&&he(pe.value),le.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/new-promise-capability"),ae=y("../internals/promise-constructor-detection").CONSTRUCTOR;x({target:"Promise",stat:!0,forced:ae},{reject:function(de){var E=ie.f(this);return z(E.reject,void 0,de),E.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/get-built-in"),ie=y("../internals/is-pure"),ae=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,de=y("../internals/promise-resolve"),E=z("Promise"),ne=ie&&!ee;x({target:"Promise",stat:!0,forced:ie||ee},{resolve:function(oe){return de(ne&&this===E?ae:this,oe)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(y,ke,we){var x=y("../internals/descriptors"),z=y("../internals/global"),ie=y("../internals/function-uncurry-this"),ae=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),de=y("../internals/create-non-enumerable-property"),E=y("../internals/object-get-own-property-names").f,ne=y("../internals/object-is-prototype-of"),re=y("../internals/is-regexp"),oe=y("../internals/to-string"),le=y("../internals/regexp-get-flags"),he=y("../internals/regexp-sticky-helpers"),pe=y("../internals/proxy-accessor"),ve=y("../internals/redefine"),ce=y("../internals/fails"),me=y("../internals/has-own-property"),Ee=y("../internals/internal-state").enforce,Te=y("../internals/set-species"),Re=y("../internals/well-known-symbol"),_e=y("../internals/regexp-unsupported-dot-all"),ye=y("../internals/regexp-unsupported-ncg"),be=Re("match"),Se=z.RegExp,Ie=Se.prototype,Me=z.SyntaxError,Ae=ie(Ie.exec),De=ie("".charAt),He=ie("".replace),Ke=ie("".indexOf),Ve=ie("".slice),nt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ne=/a/g,We=/a/g,$e=new Se(Ne)!==Ne,rt=he.MISSED_STICKY,et=he.UNSUPPORTED_Y,Xe=x&&(!$e||rt||_e||ye||ce(function(){return We[be]=!1,Se(Ne)!=Ne||Se(We)==We||Se(Ne,"i")!="/a/i"})),Ye=function(ot){for(var Je=ot.length,Fe=0,Pe="",te=!1,fe;Fe<=Je;Fe++){if(fe=De(ot,Fe),fe==="\\"){Pe+=fe+De(ot,++Fe);continue}!te&&fe==="."?Pe+="[\\s\\S]":(fe==="["?te=!0:fe==="]"&&(te=!1),Pe+=fe)}return Pe},Ge=function(ot){for(var Je=ot.length,Fe=0,Pe="",te=[],fe={},Oe=!1,Ue=!1,xe=0,Ce="",je;Fe<=Je;Fe++){if(je=De(ot,Fe),je==="\\")je=je+De(ot,++Fe);else if(je==="]")Oe=!1;else if(!Oe)switch(!0){case je==="[":Oe=!0;break;case je==="(":Ae(nt,Ve(ot,Fe+1))&&(Fe+=2,Ue=!0),Pe+=je,xe++;continue;case(je===">"&&Ue):if(Ce===""||me(fe,Ce))throw new Me("Invalid capture group name");fe[Ce]=!0,te[te.length]=[Ce,xe],Ue=!1,Ce="";continue}Ue?Ce+=je:Pe+=je}return[Pe,te]};if(ae("RegExp",Xe)){for(var at=function(Je,Fe){var Pe=ne(Ie,this),te=re(Je),fe=Fe===void 0,Oe=[],Ue=Je,xe,Ce,je,Ze,tt,it;if(!Pe&&te&&fe&&Je.constructor===at)return Je;if((te||ne(Ie,Je))&&(Je=Je.source,fe&&(Fe=le(Ue))),Je=Je===void 0?"":oe(Je),Fe=Fe===void 0?"":oe(Fe),Ue=Je,_e&&"dotAll"in Ne&&(Ce=!!Fe&&Ke(Fe,"s")>-1,Ce&&(Fe=He(Fe,/s/g,""))),xe=Fe,rt&&"sticky"in Ne&&(je=!!Fe&&Ke(Fe,"y")>-1,je&&et&&(Fe=He(Fe,/y/g,""))),ye&&(Ze=Ge(Je),Je=Ze[0],Oe=Ze[1]),tt=ee(Se(Je,Fe),Pe?this:Ie,at),(Ce||je||Oe.length)&&(it=Ee(tt),Ce&&(it.dotAll=!0,it.raw=at(Ye(Je),xe)),je&&(it.sticky=!0),Oe.length&&(it.groups=Oe)),Je!==Ue)try{de(tt,"source",Ue===""?"(?:)":Ue)}catch(ct){}return tt},Qe=E(Se),ft=0;Qe.length>ft;)pe(at,Se,Qe[ft++]);Ie.constructor=at,at.prototype=Ie,ve(z,"RegExp",at)}Te("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/regexp-exec");x({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(y,ke,we){"use strict";var x=y("../internals/function-name").PROPER,z=y("../internals/redefine"),ie=y("../internals/an-object"),ae=y("../internals/to-string"),ee=y("../internals/fails"),de=y("../internals/regexp-get-flags"),E="toString",ne=RegExp.prototype,re=ne[E],oe=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),le=x&&re.name!=E;(oe||le)&&z(RegExp.prototype,E,function(){var pe=ie(this),ve=ae(pe.source),ce=ae(de(pe));return"/"+ve+"/"+ce},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/not-a-regexp"),ae=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),de=y("../internals/correct-is-regexp-logic"),E=z("".indexOf);x({target:"String",proto:!0,forced:!de("includes")},{includes:function(re){return!!~E(ee(ae(this)),ee(ie(re)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(y,ke,we){"use strict";var x=y("../internals/string-multibyte").charAt,z=y("../internals/to-string"),ie=y("../internals/internal-state"),ae=y("../internals/define-iterator"),ee="String Iterator",de=ie.set,E=ie.getterFor(ee);ae(String,"String",function(ne){de(this,{type:ee,string:z(ne),index:0})},function(){var re=E(this),oe=re.string,le=re.index,he;return le>=oe.length?{value:void 0,done:!0}:(he=x(oe,le),re.index+=he.length,{value:he,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,ke,we){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),ae=y("../internals/to-length"),ee=y("../internals/to-string"),de=y("../internals/require-object-coercible"),E=y("../internals/get-method"),ne=y("../internals/advance-string-index"),re=y("../internals/regexp-exec-abstract");z("match",function(oe,le,he){return[function(ve){var ce=de(this),me=ve==null?void 0:E(ve,oe);return me?x(me,ve,ce):new RegExp(ve)[oe](ee(ce))},function(pe){var ve=ie(this),ce=ee(pe),me=he(le,ve,ce);if(me.done)return me.value;if(!ve.global)return re(ve,ce);var Ee=ve.unicode;ve.lastIndex=0;for(var Te=[],Re=0,_e;(_e=re(ve,ce))!==null;){var ye=ee(_e[0]);Te[Re]=ye,ye===""&&(ve.lastIndex=ne(ce,ae(ve.lastIndex),Ee)),Re++}return Re===0?null:Te}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(y,ke,we){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),ae=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),de=y("../internals/an-object"),E=y("../internals/is-callable"),ne=y("../internals/to-integer-or-infinity"),re=y("../internals/to-length"),oe=y("../internals/to-string"),le=y("../internals/require-object-coercible"),he=y("../internals/advance-string-index"),pe=y("../internals/get-method"),ve=y("../internals/get-substitution"),ce=y("../internals/regexp-exec-abstract"),me=y("../internals/well-known-symbol"),Ee=me("replace"),Te=Math.max,Re=Math.min,_e=ie([].concat),ye=ie([].push),be=ie("".indexOf),Se=ie("".slice),Ie=function(He){return He===void 0?He:String(He)},Me=function(){return"a".replace(/./,"$0")==="$0"}(),Ae=function(){return/./[Ee]?/./[Ee]("a","$0")==="":!1}(),De=!ee(function(){var He=/./;return He.exec=function(){var Ke=[];return Ke.groups={a:"7"},Ke},"".replace(He,"$<a>")!=="7"});ae("replace",function(He,Ke,Ve){var nt=Ae?"$":"$0";return[function(We,$e){var rt=le(this),et=We==null?void 0:pe(We,Ee);return et?z(et,We,rt,$e):z(Ke,oe(rt),We,$e)},function(Ne,We){var $e=de(this),rt=oe(Ne);if(typeof We=="string"&&be(We,nt)===-1&&be(We,"$<")===-1){var et=Ve(Ke,$e,rt,We);if(et.done)return et.value}var Xe=E(We);Xe||(We=oe(We));var Ye=$e.global;if(Ye){var Ge=$e.unicode;$e.lastIndex=0}for(var at=[];;){var Qe=ce($e,rt);if(Qe===null||(ye(at,Qe),!Ye))break;var ft=oe(Qe[0]);ft===""&&($e.lastIndex=he(rt,re($e.lastIndex),Ge))}for(var ot="",Je=0,Fe=0;Fe<at.length;Fe++){Qe=at[Fe];for(var Pe=oe(Qe[0]),te=Te(Re(ne(Qe.index),rt.length),0),fe=[],Oe=1;Oe<Qe.length;Oe++)ye(fe,Ie(Qe[Oe]));var Ue=Qe.groups;if(Xe){var xe=_e([Pe],fe,te,rt);Ue!==void 0&&ye(xe,Ue);var Ce=oe(x(We,void 0,xe))}else Ce=ve(Pe,rt,te,fe,Ue,We);te>=Je&&(ot+=Se(rt,Je,te)+Ce,Je=te+Pe.length)}return ot+Se(rt,Je)}]},!De||!Me||Ae)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(y,ke,we){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),ae=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),de=y("../internals/to-string"),E=y("../internals/get-method"),ne=y("../internals/regexp-exec-abstract");z("search",function(re,oe,le){return[function(pe){var ve=ae(this),ce=pe==null?void 0:E(pe,re);return ce?x(ce,pe,ve):new RegExp(pe)[re](de(ve))},function(he){var pe=ie(this),ve=de(he),ce=le(oe,pe,ve);if(ce.done)return ce.value;var me=pe.lastIndex;ee(me,0)||(pe.lastIndex=0);var Ee=ne(pe,ve);return ee(pe.lastIndex,me)||(pe.lastIndex=me),Ee===null?-1:Ee.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(y,ke,we){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),ae=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),de=y("../internals/an-object"),E=y("../internals/require-object-coercible"),ne=y("../internals/species-constructor"),re=y("../internals/advance-string-index"),oe=y("../internals/to-length"),le=y("../internals/to-string"),he=y("../internals/get-method"),pe=y("../internals/array-slice-simple"),ve=y("../internals/regexp-exec-abstract"),ce=y("../internals/regexp-exec"),me=y("../internals/regexp-sticky-helpers"),Ee=y("../internals/fails"),Te=me.UNSUPPORTED_Y,Re=4294967295,_e=Math.min,ye=[].push,be=ie(/./.exec),Se=ie(ye),Ie=ie("".slice),Me=!Ee(function(){var Ae=/(?:)/,De=Ae.exec;Ae.exec=function(){return De.apply(this,arguments)};var He="ab".split(Ae);return He.length!==2||He[0]!=="a"||He[1]!=="b"});ae("split",function(Ae,De,He){var Ke;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ke=function(Ve,nt){var Ne=le(E(this)),We=nt===void 0?Re:nt>>>0;if(We===0)return[];if(Ve===void 0)return[Ne];if(!ee(Ve))return z(De,Ne,Ve,We);for(var $e=[],rt=(Ve.ignoreCase?"i":"")+(Ve.multiline?"m":"")+(Ve.unicode?"u":"")+(Ve.sticky?"y":""),et=0,Xe=new RegExp(Ve.source,rt+"g"),Ye,Ge,at;(Ye=z(ce,Xe,Ne))&&(Ge=Xe.lastIndex,!(Ge>et&&(Se($e,Ie(Ne,et,Ye.index)),Ye.length>1&&Ye.index<Ne.length&&x(ye,$e,pe(Ye,1)),at=Ye[0].length,et=Ge,$e.length>=We)));)Xe.lastIndex===Ye.index&&Xe.lastIndex++;return et===Ne.length?(at||!be(Xe,""))&&Se($e,""):Se($e,Ie(Ne,et)),$e.length>We?pe($e,0,We):$e}:"0".split(void 0,0).length?Ke=function(Ve,nt){return Ve===void 0&&nt===0?[]:z(De,this,Ve,nt)}:Ke=De,[function(nt,Ne){var We=E(this),$e=nt==null?void 0:he(nt,Ae);return $e?z($e,nt,We,Ne):z(Ke,le(We),nt,Ne)},function(Ve,nt){var Ne=de(this),We=le(Ve),$e=He(Ke,Ne,We,nt,Ke!==De);if($e.done)return $e.value;var rt=ne(Ne,RegExp),et=Ne.unicode,Xe=(Ne.ignoreCase?"i":"")+(Ne.multiline?"m":"")+(Ne.unicode?"u":"")+(Te?"g":"y"),Ye=new rt(Te?"^(?:"+Ne.source+")":Ne,Xe),Ge=nt===void 0?Re:nt>>>0;if(Ge===0)return[];if(We.length===0)return ve(Ye,We)===null?[We]:[];for(var at=0,Qe=0,ft=[];Qe<We.length;){Ye.lastIndex=Te?0:Qe;var ot=ve(Ye,Te?Ie(We,Qe):We),Je;if(ot===null||(Je=_e(oe(Ye.lastIndex+(Te?Qe:0)),We.length))===at)Qe=re(We,Qe,et);else{if(Se(ft,Ie(We,at,Qe)),ft.length===Ge)return ft;for(var Fe=1;Fe<=ot.length-1;Fe++)if(Se(ft,ot[Fe]),ft.length===Ge)return ft;Qe=at=Je}}return Se(ft,Ie(We,at)),ft}]},!Me,Te)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/string-trim").trim,ie=y("../internals/string-trim-forced");x({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/function-call"),ae=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),de=y("../internals/descriptors"),E=y("../internals/native-symbol"),ne=y("../internals/fails"),re=y("../internals/has-own-property"),oe=y("../internals/object-is-prototype-of"),le=y("../internals/an-object"),he=y("../internals/to-indexed-object"),pe=y("../internals/to-property-key"),ve=y("../internals/to-string"),ce=y("../internals/create-property-descriptor"),me=y("../internals/object-create"),Ee=y("../internals/object-keys"),Te=y("../internals/object-get-own-property-names"),Re=y("../internals/object-get-own-property-names-external"),_e=y("../internals/object-get-own-property-symbols"),ye=y("../internals/object-get-own-property-descriptor"),be=y("../internals/object-define-property"),Se=y("../internals/object-define-properties"),Ie=y("../internals/object-property-is-enumerable"),Me=y("../internals/redefine"),Ae=y("../internals/shared"),De=y("../internals/shared-key"),He=y("../internals/hidden-keys"),Ke=y("../internals/uid"),Ve=y("../internals/well-known-symbol"),nt=y("../internals/well-known-symbol-wrapped"),Ne=y("../internals/define-well-known-symbol"),We=y("../internals/symbol-define-to-primitive"),$e=y("../internals/set-to-string-tag"),rt=y("../internals/internal-state"),et=y("../internals/array-iteration").forEach,Xe=De("hidden"),Ye="Symbol",Ge="prototype",at=rt.set,Qe=rt.getterFor(Ye),ft=Object[Ge],ot=z.Symbol,Je=ot&&ot[Ge],Fe=z.TypeError,Pe=z.QObject,te=ye.f,fe=be.f,Oe=Re.f,Ue=Ie.f,xe=ae([].push),Ce=Ae("symbols"),je=Ae("op-symbols"),Ze=Ae("wks"),tt=!Pe||!Pe[Ge]||!Pe[Ge].findChild,it=de&&ne(function(){return me(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(gt,dt,xt){var bt=te(ft,dt);bt&&delete ft[dt],fe(gt,dt,xt),bt&&gt!==ft&&fe(ft,dt,bt)}:fe,ct=function(gt,dt){var xt=Ce[gt]=me(Je);return at(xt,{type:Ye,tag:gt,description:dt}),de||(xt.description=dt),xt},ut=function(dt,xt,bt){dt===ft&&ut(je,xt,bt),le(dt);var Pt=pe(xt);return le(bt),re(Ce,Pt)?(bt.enumerable?(re(dt,Xe)&&dt[Xe][Pt]&&(dt[Xe][Pt]=!1),bt=me(bt,{enumerable:ce(0,!1)})):(re(dt,Xe)||fe(dt,Xe,ce(1,{})),dt[Xe][Pt]=!0),it(dt,Pt,bt)):fe(dt,Pt,bt)},pt=function(dt,xt){le(dt);var bt=he(xt),Pt=Ee(bt).concat(At(bt));return et(Pt,function(Zt){(!de||ie(wt,bt,Zt))&&ut(dt,Zt,bt[Zt])}),dt},St=function(dt,xt){return xt===void 0?me(dt):pt(me(dt),xt)},wt=function(dt){var xt=pe(dt),bt=ie(Ue,this,xt);return this===ft&&re(Ce,xt)&&!re(je,xt)?!1:bt||!re(this,xt)||!re(Ce,xt)||re(this,Xe)&&this[Xe][xt]?bt:!0},Et=function(dt,xt){var bt=he(dt),Pt=pe(xt);if(!(bt===ft&&re(Ce,Pt)&&!re(je,Pt))){var Zt=te(bt,Pt);return Zt&&re(Ce,Pt)&&!(re(bt,Xe)&&bt[Xe][Pt])&&(Zt.enumerable=!0),Zt}},vt=function(dt){var xt=Oe(he(dt)),bt=[];return et(xt,function(Pt){!re(Ce,Pt)&&!re(He,Pt)&&xe(bt,Pt)}),bt},At=function(gt){var dt=gt===ft,xt=Oe(dt?je:he(gt)),bt=[];return et(xt,function(Pt){re(Ce,Pt)&&(!dt||re(ft,Pt))&&xe(bt,Ce[Pt])}),bt};E||(ot=function(){if(oe(Je,this))throw Fe("Symbol is not a constructor");var dt=!arguments.length||arguments[0]===void 0?void 0:ve(arguments[0]),xt=Ke(dt),bt=function(Pt){this===ft&&ie(bt,je,Pt),re(this,Xe)&&re(this[Xe],xt)&&(this[Xe][xt]=!1),it(this,xt,ce(1,Pt))};return de&&tt&&it(ft,xt,{configurable:!0,set:bt}),ct(xt,dt)},Je=ot[Ge],Me(Je,"toString",function(){return Qe(this).tag}),Me(ot,"withoutSetter",function(gt){return ct(Ke(gt),gt)}),Ie.f=wt,be.f=ut,Se.f=pt,ye.f=Et,Te.f=Re.f=vt,_e.f=At,nt.f=function(gt){return ct(Ve(gt),gt)},de&&(fe(Je,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Me(ft,"propertyIsEnumerable",wt,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:ot}),et(Ee(Ze),function(gt){Ne(gt)}),x({target:Ye,stat:!0,forced:!E},{useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),x({target:"Object",stat:!0,forced:!E,sham:!de},{create:St,defineProperty:ut,defineProperties:pt,getOwnPropertyDescriptor:Et}),x({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:vt}),We(),$e(ot,Ye),He[Xe]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(y,ke,we){"use strict";var x=y("../internals/export"),z=y("../internals/descriptors"),ie=y("../internals/global"),ae=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),de=y("../internals/is-callable"),E=y("../internals/object-is-prototype-of"),ne=y("../internals/to-string"),re=y("../internals/object-define-property").f,oe=y("../internals/copy-constructor-properties"),le=ie.Symbol,he=le&&le.prototype;if(z&&de(le)&&(!("description"in he)||le().description!==void 0)){var pe={},ve=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:ne(arguments[0]),Se=E(he,this)?new le(be):be===void 0?le():le(be);return be===""&&(pe[Se]=!0),Se};oe(ve,le),ve.prototype=he,he.constructor=ve;var ce=String(le("test"))=="Symbol(test)",me=ae(he.toString),Ee=ae(he.valueOf),Te=/^Symbol\((.*)\)[^)]+$/,Re=ae("".replace),_e=ae("".slice);re(he,"description",{configurable:!0,get:function(){var be=Ee(this),Se=me(be);if(ee(pe,be))return"";var Ie=ce?_e(Se,7,-1):Re(Se,Te,"$1");return Ie===""?void 0:Ie}}),x({global:!0,forced:!0},{Symbol:ve})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/get-built-in"),ie=y("../internals/has-own-property"),ae=y("../internals/to-string"),ee=y("../internals/shared"),de=y("../internals/native-symbol-registry"),E=ee("string-to-symbol-registry"),ne=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!de},{for:function(re){var oe=ae(re);if(ie(E,oe))return E[oe];var le=z("Symbol")(oe);return E[oe]=le,ne[le]=oe,le}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(y,ke,we){var x=y("../internals/define-well-known-symbol");x("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,ke,we){y("../modules/es.symbol.constructor"),y("../modules/es.symbol.for"),y("../modules/es.symbol.key-for"),y("../modules/es.json.stringify"),y("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(y,ke,we){var x=y("../internals/export"),z=y("../internals/has-own-property"),ie=y("../internals/is-symbol"),ae=y("../internals/try-to-string"),ee=y("../internals/shared"),de=y("../internals/native-symbol-registry"),E=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!de},{keyFor:function(re){if(!ie(re))throw TypeError(ae(re)+" is not a symbol");if(z(E,re))return E[re]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(y,ke,we){"use strict";var x=y("../internals/function-uncurry-this"),z=y("../internals/array-buffer-view-core"),ie=y("../internals/array-copy-within"),ae=x(ie),ee=z.aTypedArray,de=z.exportTypedArrayMethod;de("copyWithin",function(ne,re){return ae(ee(this),ne,re,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").every,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("every",function(de){return z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-call"),ie=y("../internals/array-fill"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("fill",function(E){var ne=arguments.length;return z(ie,ae(this),E,ne>1?arguments[1]:void 0,ne>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").filter,ie=y("../internals/typed-array-from-species-and-list"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("filter",function(E){var ne=z(ae(this),E,arguments.length>1?arguments[1]:void 0);return ie(this,ne)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").findIndex,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("findIndex",function(de){return z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").find,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("find",function(de){return z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").forEach,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("forEach",function(de){z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").includes,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("includes",function(de){return z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").indexOf,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("indexOf",function(de){return z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,ke,we){"use strict";var x=y("../internals/global"),z=y("../internals/fails"),ie=y("../internals/function-uncurry-this"),ae=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),de=y("../internals/well-known-symbol"),E=de("iterator"),ne=x.Uint8Array,re=ie(ee.values),oe=ie(ee.keys),le=ie(ee.entries),he=ae.aTypedArray,pe=ae.exportTypedArrayMethod,ve=ne&&ne.prototype,ce=!z(function(){ve[E].call([1])}),me=!!ve&&ve.values&&ve[E]===ve.values&&ve.values.name==="values",Ee=function(){return re(he(this))};pe("entries",function(){return le(he(this))},ce),pe("keys",function(){return oe(he(this))},ce),pe("values",Ee,ce||!me,{name:"values"}),pe(E,Ee,ce||!me,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-uncurry-this"),ie=x.aTypedArray,ae=x.exportTypedArrayMethod,ee=z([].join);ae("join",function(E){return ee(ie(this),E)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-apply"),ie=y("../internals/array-last-index-of"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("lastIndexOf",function(E){var ne=arguments.length;return z(ie,ae(this),ne>1?[E,arguments[1]]:[E])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").map,ie=y("../internals/typed-array-species-constructor"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("map",function(E){return z(ae(this),E,arguments.length>1?arguments[1]:void 0,function(ne,re){return new(ie(ne))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").right,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("reduceRight",function(de){var E=arguments.length;return z(ie(this),de,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").left,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("reduce",function(de){var E=arguments.length;return z(ie(this),de,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=x.aTypedArray,ie=x.exportTypedArrayMethod,ae=Math.floor;ie("reverse",function(){for(var de=this,E=z(de).length,ne=ae(E/2),re=0,oe;re<ne;)oe=de[re],de[re++]=de[--E],de[E]=oe;return de})},{"../internals/array-buffer-view-core":103}],331:[function(y,ke,we){"use strict";var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/array-buffer-view-core"),ae=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),de=y("../internals/to-object"),E=y("../internals/fails"),ne=x.RangeError,re=x.Int8Array,oe=re&&re.prototype,le=oe&&oe.set,he=ie.aTypedArray,pe=ie.exportTypedArrayMethod,ve=!E(function(){var me=new Uint8ClampedArray(2);return z(le,me,{length:1,0:3},1),me[1]!==3}),ce=ve&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var me=new re(2);return me.set(1),me.set("2",1),me[0]!==0||me[1]!==2});pe("set",function(Ee){he(this);var Te=ee(arguments.length>1?arguments[1]:void 0,1),Re=de(Ee);if(ve)return z(le,this,Re,Te);var _e=this.length,ye=ae(Re),be=0;if(ye+Te>_e)throw ne("Wrong length");for(;be<ye;)this[Te+be]=Re[be++]},!ve||ce)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/typed-array-species-constructor"),ie=y("../internals/fails"),ae=y("../internals/array-slice"),ee=x.aTypedArray,de=x.exportTypedArrayMethod,E=ie(function(){new Int8Array(1).slice()});de("slice",function(re,oe){for(var le=ae(ee(this),re,oe),he=z(this),pe=0,ve=le.length,ce=new he(ve);ve>pe;)ce[pe]=le[pe++];return ce},E)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").some,ie=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("some",function(de){return z(ie(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,ke,we){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),ae=y("../internals/a-callable"),ee=y("../internals/array-sort"),de=y("../internals/array-buffer-view-core"),E=y("../internals/engine-ff-version"),ne=y("../internals/engine-is-ie-or-edge"),re=y("../internals/engine-v8-version"),oe=y("../internals/engine-webkit-version"),le=de.aTypedArray,he=de.exportTypedArrayMethod,pe=x.Uint16Array,ve=pe&&z(pe.prototype.sort),ce=!!ve&&!(ie(function(){ve(new pe(2),null)})&&ie(function(){ve(new pe(2),{})})),me=!!ve&&!ie(function(){if(re)return re<74;if(E)return E<67;if(ne)return!0;if(oe)return oe<602;var Te=new pe(516),Re=Array(516),_e,ye;for(_e=0;_e<516;_e++)ye=_e%4,Te[_e]=515-_e,Re[_e]=_e-2*ye+3;for(ve(Te,function(be,Se){return(be/4|0)-(Se/4|0)}),_e=0;_e<516;_e++)if(Te[_e]!==Re[_e])return!0}),Ee=function(Te){return function(Re,_e){return Te!==void 0?+Te(Re,_e)||0:_e!==_e?-1:Re!==Re?1:Re===0&&_e===0?1/Re>0&&1/_e<0?1:-1:Re>_e}};he("sort",function(Re){return Re!==void 0&&ae(Re),me?ve(this,Re):ee(le(this),Ee(Re))},!me||ce)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/to-length"),ie=y("../internals/to-absolute-index"),ae=y("../internals/typed-array-species-constructor"),ee=x.aTypedArray,de=x.exportTypedArrayMethod;de("subarray",function(ne,re){var oe=ee(this),le=oe.length,he=ie(ne,le),pe=ae(oe);return new pe(oe.buffer,oe.byteOffset+he*oe.BYTES_PER_ELEMENT,z((re===void 0?le:ie(re,le))-he))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(y,ke,we){"use strict";var x=y("../internals/global"),z=y("../internals/function-apply"),ie=y("../internals/array-buffer-view-core"),ae=y("../internals/fails"),ee=y("../internals/array-slice"),de=x.Int8Array,E=ie.aTypedArray,ne=ie.exportTypedArrayMethod,re=[].toLocaleString,oe=!!de&&ae(function(){re.call(new de(1))}),le=ae(function(){return[1,2].toLocaleString()!=new de([1,2]).toLocaleString()})||!ae(function(){de.prototype.toLocaleString.call([1,2])});ne("toLocaleString",function(){return z(re,oe?ee(E(this)):E(this),ee(arguments))},le)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(y,ke,we){"use strict";var x=y("../internals/array-buffer-view-core").exportTypedArrayMethod,z=y("../internals/fails"),ie=y("../internals/global"),ae=y("../internals/function-uncurry-this"),ee=ie.Uint8Array,de=ee&&ee.prototype||{},E=[].toString,ne=ae([].join);z(function(){E.call({})})&&(E=function(){return ne(this)});var re=de.toString!=E;x("toString",E,re)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,ke,we){var x=y("../internals/typed-array-constructor");x("Uint8",function(z){return function(ae,ee,de){return z(this,ae,ee,de)}})},{"../internals/typed-array-constructor":258}],339:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),ae=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),de=function(ne){if(ne&&ne.forEach!==ae)try{ee(ne,"forEach",ae)}catch(re){ne.forEach=ae}};for(var E in z)z[E]&&de(x[E]&&x[E].prototype);de(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(y,ke,we){var x=y("../internals/global"),z=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),ae=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),de=y("../internals/well-known-symbol"),E=de("iterator"),ne=de("toStringTag"),re=ae.values,oe=function(he,pe){if(he){if(he[E]!==re)try{ee(he,E,re)}catch(ce){he[E]=re}if(he[ne]||ee(he,ne,pe),z[pe]){for(var ve in ae)if(he[ve]!==ae[ve])try{ee(he,ve,ae[ve])}catch(ce){he[ve]=ae[ve]}}}};for(var le in z)oe(x[le]&&x[le].prototype,le);oe(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(y,ke,we){function x(me){return Array.isArray?Array.isArray(me):ce(me)==="[object Array]"}we.isArray=x;function z(me){return typeof me=="boolean"}we.isBoolean=z;function ie(me){return me===null}we.isNull=ie;function ae(me){return me==null}we.isNullOrUndefined=ae;function ee(me){return typeof me=="number"}we.isNumber=ee;function de(me){return typeof me=="string"}we.isString=de;function E(me){return typeof me=="symbol"}we.isSymbol=E;function ne(me){return me===void 0}we.isUndefined=ne;function re(me){return ce(me)==="[object RegExp]"}we.isRegExp=re;function oe(me){return typeof me=="object"&&me!==null}we.isObject=oe;function le(me){return ce(me)==="[object Date]"}we.isDate=le;function he(me){return ce(me)==="[object Error]"||me instanceof Error}we.isError=he;function pe(me){return typeof me=="function"}we.isFunction=pe;function ve(me){return me===null||typeof me=="boolean"||typeof me=="number"||typeof me=="string"||typeof me=="symbol"||typeof me=="undefined"}we.isPrimitive=ve,we.isBuffer=y("buffer").Buffer.isBuffer;function ce(me){return Object.prototype.toString.call(me)}},{buffer:90}],342:[function(y,ke,we){(function(x){"use strict";var z=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ne=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,re=/[^-+\dA-Z]/g;return function(oe,le,he,pe){if(arguments.length===1&&de(oe)==="string"&&!/\d/.test(oe)&&(le=oe,oe=void 0),oe=oe||new Date,oe instanceof Date||(oe=new Date(oe)),isNaN(oe))throw TypeError("Invalid date");le=String(z.masks[le]||le||z.masks.default);var ve=le.slice(0,4);(ve==="UTC:"||ve==="GMT:")&&(le=le.slice(4),he=!0,ve==="GMT:"&&(pe=!0));var ce=he?"getUTC":"get",me=oe[ce+"Date"](),Ee=oe[ce+"Day"](),Te=oe[ce+"Month"](),Re=oe[ce+"FullYear"](),_e=oe[ce+"Hours"](),ye=oe[ce+"Minutes"](),be=oe[ce+"Seconds"](),Se=oe[ce+"Milliseconds"](),Ie=he?0:oe.getTimezoneOffset(),Me=ae(oe),Ae=ee(oe),De={d:me,dd:ie(me),ddd:z.i18n.dayNames[Ee],dddd:z.i18n.dayNames[Ee+7],m:Te+1,mm:ie(Te+1),mmm:z.i18n.monthNames[Te],mmmm:z.i18n.monthNames[Te+12],yy:String(Re).slice(2),yyyy:Re,h:_e%12||12,hh:ie(_e%12||12),H:_e,HH:ie(_e),M:ye,MM:ie(ye),s:be,ss:ie(be),l:ie(Se,3),L:ie(Math.round(Se/10)),t:_e<12?"a":"p",tt:_e<12?"am":"pm",T:_e<12?"A":"P",TT:_e<12?"AM":"PM",Z:pe?"GMT":he?"UTC":(String(oe).match(ne)||[""]).pop().replace(re,""),o:(Ie>0?"-":"+")+ie(Math.floor(Math.abs(Ie)/60)*100+Math.abs(Ie)%60,4),S:["th","st","nd","rd"][me%10>3?0:(me%100-me%10!=10)*me%10],W:Me,N:Ae};return le.replace(E,function(He){return He in De?De[He]:He.slice(1,He.length-1)})}}();z.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ie(E,ne){for(E=String(E),ne=ne||2;E.length<ne;)E="0"+E;return E}function ae(E){var ne=new Date(E.getFullYear(),E.getMonth(),E.getDate());ne.setDate(ne.getDate()-(ne.getDay()+6)%7+3);var re=new Date(ne.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var oe=ne.getTimezoneOffset()-re.getTimezoneOffset();ne.setHours(ne.getHours()-oe);var le=(ne-re)/(864e5*7);return 1+Math.floor(le)}function ee(E){var ne=E.getDay();return ne===0&&(ne=7),ne}function de(E){return E===null?"null":E===void 0?"undefined":typeof E!="object"?typeof E:Array.isArray(E)?"array":{}.toString.call(E).slice(8,-1).toLowerCase()}typeof ze=="function"&&ze.amd?ze(function(){return z}):typeof we=="object"?ke.exports=z:x.dateFormat=z})(this)},{}],343:[function(y,ke,we){"use strict";var x=/["'&<>]/;ke.exports=z;function z(ie){var ae=""+ie,ee=x.exec(ae);if(!ee)return ae;var de,E="",ne=0,re=0;for(ne=ee.index;ne<ae.length;ne++){switch(ae.charCodeAt(ne)){case 34:de="&quot;";break;case 38:de="&amp;";break;case 39:de="&#39;";break;case 60:de="&lt;";break;case 62:de="&gt;";break;default:continue}re!==ne&&(E+=ae.substring(re,ne)),re=ne+1,E+=de}return re!==ne?E+ae.substring(re,ne):E}},{}],344:[function(y,ke,we){"use strict";var x=typeof Reflect=="object"?Reflect:null,z=x&&typeof x.apply=="function"?x.apply:function(be,Se,Ie){return Function.prototype.apply.call(be,Se,Ie)},ie;x&&typeof x.ownKeys=="function"?ie=x.ownKeys:Object.getOwnPropertySymbols?ie=function(be){return Object.getOwnPropertyNames(be).concat(Object.getOwnPropertySymbols(be))}:ie=function(be){return Object.getOwnPropertyNames(be)};function ae(ye){console&&console.warn&&console.warn(ye)}var ee=Number.isNaN||function(be){return be!==be};function de(){de.init.call(this)}ke.exports=de,ke.exports.once=Te,de.EventEmitter=de,de.prototype._events=void 0,de.prototype._eventsCount=0,de.prototype._maxListeners=void 0;var E=10;function ne(ye){if(typeof ye!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ye)}Object.defineProperty(de,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(ye){if(typeof ye!="number"||ye<0||ee(ye))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ye+".");E=ye}}),de.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},de.prototype.setMaxListeners=function(be){if(typeof be!="number"||be<0||ee(be))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+be+".");return this._maxListeners=be,this};function re(ye){return ye._maxListeners===void 0?de.defaultMaxListeners:ye._maxListeners}de.prototype.getMaxListeners=function(){return re(this)},de.prototype.emit=function(be){for(var Se=[],Ie=1;Ie<arguments.length;Ie++)Se.push(arguments[Ie]);var Me=be==="error",Ae=this._events;if(Ae!==void 0)Me=Me&&Ae.error===void 0;else if(!Me)return!1;if(Me){var De;if(Se.length>0&&(De=Se[0]),De instanceof Error)throw De;var He=new Error("Unhandled error."+(De?" ("+De.message+")":""));throw He.context=De,He}var Ke=Ae[be];if(Ke===void 0)return!1;if(typeof Ke=="function")z(Ke,this,Se);else for(var Ve=Ke.length,nt=ce(Ke,Ve),Ie=0;Ie<Ve;++Ie)z(nt[Ie],this,Se);return!0};function oe(ye,be,Se,Ie){var Me,Ae,De;if(ne(Se),Ae=ye._events,Ae===void 0?(Ae=ye._events=Object.create(null),ye._eventsCount=0):(Ae.newListener!==void 0&&(ye.emit("newListener",be,Se.listener?Se.listener:Se),Ae=ye._events),De=Ae[be]),De===void 0)De=Ae[be]=Se,++ye._eventsCount;else if(typeof De=="function"?De=Ae[be]=Ie?[Se,De]:[De,Se]:Ie?De.unshift(Se):De.push(Se),Me=re(ye),Me>0&&De.length>Me&&!De.warned){De.warned=!0;var He=new Error("Possible EventEmitter memory leak detected. "+De.length+" "+String(be)+" listeners added. Use emitter.setMaxListeners() to increase limit");He.name="MaxListenersExceededWarning",He.emitter=ye,He.type=be,He.count=De.length,ae(He)}return ye}de.prototype.addListener=function(be,Se){return oe(this,be,Se,!1)},de.prototype.on=de.prototype.addListener,de.prototype.prependListener=function(be,Se){return oe(this,be,Se,!0)};function le(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function he(ye,be,Se){var Ie={fired:!1,wrapFn:void 0,target:ye,type:be,listener:Se},Me=le.bind(Ie);return Me.listener=Se,Ie.wrapFn=Me,Me}de.prototype.once=function(be,Se){return ne(Se),this.on(be,he(this,be,Se)),this},de.prototype.prependOnceListener=function(be,Se){return ne(Se),this.prependListener(be,he(this,be,Se)),this},de.prototype.removeListener=function(be,Se){var Ie,Me,Ae,De,He;if(ne(Se),Me=this._events,Me===void 0)return this;if(Ie=Me[be],Ie===void 0)return this;if(Ie===Se||Ie.listener===Se)--this._eventsCount===0?this._events=Object.create(null):(delete Me[be],Me.removeListener&&this.emit("removeListener",be,Ie.listener||Se));else if(typeof Ie!="function"){for(Ae=-1,De=Ie.length-1;De>=0;De--)if(Ie[De]===Se||Ie[De].listener===Se){He=Ie[De].listener,Ae=De;break}if(Ae<0)return this;Ae===0?Ie.shift():me(Ie,Ae),Ie.length===1&&(Me[be]=Ie[0]),Me.removeListener!==void 0&&this.emit("removeListener",be,He||Se)}return this},de.prototype.off=de.prototype.removeListener,de.prototype.removeAllListeners=function(be){var Se,Ie,Me;if(Ie=this._events,Ie===void 0)return this;if(Ie.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ie[be]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ie[be]),this;if(arguments.length===0){var Ae=Object.keys(Ie),De;for(Me=0;Me<Ae.length;++Me)De=Ae[Me],De!=="removeListener"&&this.removeAllListeners(De);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Se=Ie[be],typeof Se=="function")this.removeListener(be,Se);else if(Se!==void 0)for(Me=Se.length-1;Me>=0;Me--)this.removeListener(be,Se[Me]);return this};function pe(ye,be,Se){var Ie=ye._events;if(Ie===void 0)return[];var Me=Ie[be];return Me===void 0?[]:typeof Me=="function"?Se?[Me.listener||Me]:[Me]:Se?Ee(Me):ce(Me,Me.length)}de.prototype.listeners=function(be){return pe(this,be,!0)},de.prototype.rawListeners=function(be){return pe(this,be,!1)},de.listenerCount=function(ye,be){return typeof ye.listenerCount=="function"?ye.listenerCount(be):ve.call(ye,be)},de.prototype.listenerCount=ve;function ve(ye){var be=this._events;if(be!==void 0){var Se=be[ye];if(typeof Se=="function")return 1;if(Se!==void 0)return Se.length}return 0}de.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function ce(ye,be){for(var Se=new Array(be),Ie=0;Ie<be;++Ie)Se[Ie]=ye[Ie];return Se}function me(ye,be){for(;be+1<ye.length;be++)ye[be]=ye[be+1];ye.pop()}function Ee(ye){for(var be=new Array(ye.length),Se=0;Se<be.length;++Se)be[Se]=ye[Se].listener||ye[Se];return be}function Te(ye,be){return new Promise(function(Se,Ie){function Me(De){ye.removeListener(be,Ae),Ie(De)}function Ae(){typeof ye.removeListener=="function"&&ye.removeListener("error",Me),Se([].slice.call(arguments))}_e(ye,be,Ae,{once:!0}),be!=="error"&&Re(ye,Me,{once:!0})})}function Re(ye,be,Se){typeof ye.on=="function"&&_e(ye,"error",be,Se)}function _e(ye,be,Se,Ie){if(typeof ye.on=="function")Ie.once?ye.once(be,Se):ye.on(be,Se);else if(typeof ye.addEventListener=="function")ye.addEventListener(be,function Me(Ae){Ie.once&&ye.removeEventListener(be,Me),Se(Ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ye)}},{}],345:[function(y,ke,we){"use strict";var x=y("is-callable"),z=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,ae=function(re,oe,le){for(var he=0,pe=re.length;he<pe;he++)ie.call(re,he)&&(le==null?oe(re[he],he,re):oe.call(le,re[he],he,re))},ee=function(re,oe,le){for(var he=0,pe=re.length;he<pe;he++)le==null?oe(re.charAt(he),he,re):oe.call(le,re.charAt(he),he,re)},de=function(re,oe,le){for(var he in re)ie.call(re,he)&&(le==null?oe(re[he],he,re):oe.call(le,re[he],he,re))},E=function(re,oe,le){if(!x(oe))throw new TypeError("iterator must be a function");var he;arguments.length>=3&&(he=le),z.call(re)==="[object Array]"?ae(re,oe,he):typeof re=="string"?ee(re,oe,he):de(re,oe,he)};ke.exports=E},{"is-callable":367}],346:[function(y,ke,we){"use strict";var x="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,ie=Object.prototype.toString,ae="[object Function]";ke.exports=function(de){var E=this;if(typeof E!="function"||ie.call(E)!==ae)throw new TypeError(x+E);for(var ne=z.call(arguments,1),re,oe=function(){if(this instanceof re){var ce=E.apply(this,ne.concat(z.call(arguments)));return Object(ce)===ce?ce:this}else return E.apply(de,ne.concat(z.call(arguments)))},le=Math.max(0,E.length-ne.length),he=[],pe=0;pe<le;pe++)he.push("$"+pe);if(re=Function("binder","return function ("+he.join(",")+"){ return binder.apply(this,arguments); }")(oe),E.prototype){var ve=function(){};ve.prototype=E.prototype,re.prototype=new ve,ve.prototype=null}return re}},{}],347:[function(y,ke,we){"use strict";var x=y("./implementation");ke.exports=Function.prototype.bind||x},{"./implementation":346}],348:[function(y,ke,we){"use strict";var x,z=SyntaxError,ie=Function,ae=TypeError,ee=function(Ke){try{return ie('"use strict"; return ('+Ke+").constructor;")()}catch(Ve){}},de=Object.getOwnPropertyDescriptor;if(de)try{de({},"")}catch(Ke){de=null}var E=function(){throw new ae},ne=de?function(){try{return arguments.callee,E}catch(Ke){try{return de(arguments,"callee").get}catch(Ve){return E}}}():E,re=y("has-symbols")(),oe=y("has-proto")(),le=Object.getPrototypeOf||(oe?function(Ke){return Ke.__proto__}:null),he={},pe=typeof Uint8Array=="undefined"||!le?x:le(Uint8Array),ve={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":re&&le?le([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics=="undefined"?x:Atomics,"%BigInt%":typeof BigInt=="undefined"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?x:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?x:FinalizationRegistry,"%Function%":ie,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array=="undefined"?x:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&le?le(le([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!le?x:le(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?x:Promise,"%Proxy%":typeof Proxy=="undefined"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?x:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re||!le?x:le(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&le?le(""[Symbol.iterator]()):x,"%Symbol%":re?Symbol:x,"%SyntaxError%":z,"%ThrowTypeError%":ne,"%TypedArray%":pe,"%TypeError%":ae,"%Uint8Array%":typeof Uint8Array=="undefined"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?x:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?x:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?x:WeakSet};if(le)try{null.error}catch(Ke){var ce=le(le(Ke));ve["%Error.prototype%"]=ce}var me=function Ke(Ve){var nt;if(Ve==="%AsyncFunction%")nt=ee("async function () {}");else if(Ve==="%GeneratorFunction%")nt=ee("function* () {}");else if(Ve==="%AsyncGeneratorFunction%")nt=ee("async function* () {}");else if(Ve==="%AsyncGenerator%"){var Ne=Ke("%AsyncGeneratorFunction%");Ne&&(nt=Ne.prototype)}else if(Ve==="%AsyncIteratorPrototype%"){var We=Ke("%AsyncGenerator%");We&&le&&(nt=le(We.prototype))}return ve[Ve]=nt,nt},Ee={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Te=y("function-bind"),Re=y("has"),_e=Te.call(Function.call,Array.prototype.concat),ye=Te.call(Function.apply,Array.prototype.splice),be=Te.call(Function.call,String.prototype.replace),Se=Te.call(Function.call,String.prototype.slice),Ie=Te.call(Function.call,RegExp.prototype.exec),Me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ae=/\\(\\)?/g,De=function(Ve){var nt=Se(Ve,0,1),Ne=Se(Ve,-1);if(nt==="%"&&Ne!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Ne==="%"&&nt!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var We=[];return be(Ve,Me,function($e,rt,et,Xe){We[We.length]=et?be(Xe,Ae,"$1"):rt||$e}),We},He=function(Ve,nt){var Ne=Ve,We;if(Re(Ee,Ne)&&(We=Ee[Ne],Ne="%"+We[0]+"%"),Re(ve,Ne)){var $e=ve[Ne];if($e===he&&($e=me(Ne)),typeof $e=="undefined"&&!nt)throw new ae("intrinsic "+Ve+" exists, but is not available. Please file an issue!");return{alias:We,name:Ne,value:$e}}throw new z("intrinsic "+Ve+" does not exist!")};ke.exports=function(Ve,nt){if(typeof Ve!="string"||Ve.length===0)throw new ae("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof nt!="boolean")throw new ae('"allowMissing" argument must be a boolean');if(Ie(/^%?[^%]*%?$/,Ve)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ne=De(Ve),We=Ne.length>0?Ne[0]:"",$e=He("%"+We+"%",nt),rt=$e.name,et=$e.value,Xe=!1,Ye=$e.alias;Ye&&(We=Ye[0],ye(Ne,_e([0,1],Ye)));for(var Ge=1,at=!0;Ge<Ne.length;Ge+=1){var Qe=Ne[Ge],ft=Se(Qe,0,1),ot=Se(Qe,-1);if((ft==='"'||ft==="'"||ft==="`"||ot==='"'||ot==="'"||ot==="`")&&ft!==ot)throw new z("property names with quotes must have matching quotes");if((Qe==="constructor"||!at)&&(Xe=!0),We+="."+Qe,rt="%"+We+"%",Re(ve,rt))et=ve[rt];else if(et!=null){if(!(Qe in et)){if(!nt)throw new ae("base intrinsic for "+Ve+" exists, but the property is not available.");return}if(de&&Ge+1>=Ne.length){var Je=de(et,Qe);at=!!Je,at&&"get"in Je&&!("originalValue"in Je.get)?et=Je.get:et=et[Qe]}else at=Re(et,Qe),et=et[Qe];at&&!Xe&&(ve[rt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,ke,we){"use strict";var x=y("get-intrinsic"),z=x("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(ie){z=null}ke.exports=z},{"get-intrinsic":348}],350:[function(y,ke,we){"use strict";var x={foo:{}},z=Object;ke.exports=function(){return{__proto__:x}.foo===x.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(y,ke,we){"use strict";var x=typeof Symbol!="undefined"&&Symbol,z=y("./shams");ke.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(y,ke,we){"use strict";ke.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},ie=Symbol("test"),ae=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(ae)!=="[object Symbol]")return!1;var ee=42;z[ie]=ee;for(ie in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var de=Object.getOwnPropertySymbols(z);if(de.length!==1||de[0]!==ie||!Object.prototype.propertyIsEnumerable.call(z,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(z,ie);if(E.value!==ee||E.enumerable!==!0)return!1}return!0}},{}],353:[function(y,ke,we){"use strict";var x=y("has-symbols/shams");ke.exports=function(){return x()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,ke,we){"use strict";var x=y("function-bind");ke.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,ke,we){var x=y("http"),z=y("url"),ie=ke.exports;for(var ae in x)x.hasOwnProperty(ae)&&(ie[ae]=x[ae]);ie.request=function(de,E){return de=ee(de),x.request.call(this,de,E)},ie.get=function(de,E){return de=ee(de),x.get.call(this,de,E)};function ee(de){if(typeof de=="string"&&(de=z.parse(de)),de.protocol||(de.protocol="https:"),de.protocol!=="https:")throw new Error('Protocol "'+de.protocol+'" not supported. Expected "https:"');return de}},{http:468,url:472}],356:[function(y,ke,we){"use strict";var x=y("util"),z=y("ms");ke.exports=function(ie){if(typeof ie=="number")return ie;var ae=z(ie);if(ae===void 0){var ee=new Error(x.format("humanize-ms(%j) result undefined",ie));console.warn(ee.stack)}return ae}},{ms:376,util:419}],357:[function(y,ke,we){we.read=function(x,z,ie,ae,ee){var de,E,ne=ee*8-ae-1,re=(1<<ne)-1,oe=re>>1,le=-7,he=ie?ee-1:0,pe=ie?-1:1,ve=x[z+he];for(he+=pe,de=ve&(1<<-le)-1,ve>>=-le,le+=ne;le>0;de=de*256+x[z+he],he+=pe,le-=8);for(E=de&(1<<-le)-1,de>>=-le,le+=ae;le>0;E=E*256+x[z+he],he+=pe,le-=8);if(de===0)de=1-oe;else{if(de===re)return E?NaN:(ve?-1:1)*(1/0);E=E+Math.pow(2,ae),de=de-oe}return(ve?-1:1)*E*Math.pow(2,de-ae)},we.write=function(x,z,ie,ae,ee,de){var E,ne,re,oe=de*8-ee-1,le=(1<<oe)-1,he=le>>1,pe=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=ae?0:de-1,ce=ae?1:-1,me=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(ne=isNaN(z)?1:0,E=le):(E=Math.floor(Math.log(z)/Math.LN2),z*(re=Math.pow(2,-E))<1&&(E--,re*=2),E+he>=1?z+=pe/re:z+=pe*Math.pow(2,1-he),z*re>=2&&(E++,re/=2),E+he>=le?(ne=0,E=le):E+he>=1?(ne=(z*re-1)*Math.pow(2,ee),E=E+he):(ne=z*Math.pow(2,he-1)*Math.pow(2,ee),E=0));ee>=8;x[ie+ve]=ne&255,ve+=ce,ne/=256,ee-=8);for(E=E<<ee|ne,oe+=ee;oe>0;x[ie+ve]=E&255,ve+=ce,E/=256,oe-=8);x[ie+ve-ce]|=me*128}},{}],358:[function(y,ke,we){"use strict";var x=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],z,ie,ae=-1,ee=[],de=!1;function E(){!z||!ie||(z=!1,ie.length?ee=ie.concat(ee):ae=-1,ee.length&&ne())}function ne(){if(!z){de=!1,z=!0;for(var ve=ee.length,ce=setTimeout(E);ve;){for(ie=ee,ee=[];ie&&++ae<ve;)ie[ae].run();ae=-1,ve=ee.length}ie=null,ae=-1,z=!1,clearTimeout(ce)}}for(var re,oe=-1,le=x.length;++oe<le;)if(x[oe]&&x[oe].test&&x[oe].test()){re=x[oe].install(ne);break}function he(ve,ce){this.fun=ve,this.array=ce}he.prototype.run=function(){var ve=this.fun,ce=this.array;switch(ce.length){case 0:return ve();case 1:return ve(ce[0]);case 2:return ve(ce[0],ce[1]);case 3:return ve(ce[0],ce[1],ce[2]);default:return ve.apply(null,ce)}},ke.exports=pe;function pe(ve){var ce=new Array(arguments.length-1);if(arguments.length>1)for(var me=1;me<arguments.length;me++)ce[me-1]=arguments[me];ee.push(new he(ve,ce)),!de&&!z&&(de=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,ke,we){(function(x){(function(){"use strict";we.test=function(){return x.setImmediate?!1:typeof x.MessageChannel!="undefined"},we.install=function(z){var ie=new x.MessageChannel;return ie.port1.onmessage=z,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,ke,we){(function(x){(function(){"use strict";var z=x.MutationObserver||x.WebKitMutationObserver;we.test=function(){return z},we.install=function(ie){var ae=0,ee=new z(ie),de=x.document.createTextNode("");return ee.observe(de,{characterData:!0}),function(){de.data=ae=++ae%2}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,ke,we){(function(x){(function(){"use strict";we.test=function(){return typeof x.queueMicrotask=="function"},we.install=function(z){return function(){x.queueMicrotask(z)}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,ke,we){(function(x){(function(){"use strict";we.test=function(){return"document"in x&&"onreadystatechange"in x.document.createElement("script")},we.install=function(z){return function(){var ie=x.document.createElement("script");return ie.onreadystatechange=function(){z(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},x.document.documentElement.appendChild(ie),z}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,ke,we){"use strict";we.test=function(){return!0},we.install=function(x){return function(){setTimeout(x,0)}}},{}],364:[function(y,ke,we){typeof Object.create=="function"?ke.exports=function(z,ie){ie&&(z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:ke.exports=function(z,ie){if(ie){z.super_=ie;var ae=function(){};ae.prototype=ie.prototype,z.prototype=new ae,z.prototype.constructor=z}}},{}],365:[function(y,ke,we){"use strict";var x=y("has-tostringtag/shams")(),z=y("call-bind/callBound"),ie=z("Object.prototype.toString"),ae=function(ne){return x&&ne&&typeof ne=="object"&&Symbol.toStringTag in ne?!1:ie(ne)==="[object Arguments]"},ee=function(ne){return ae(ne)?!0:ne!==null&&typeof ne=="object"&&typeof ne.length=="number"&&ne.length>=0&&ie(ne)!=="[object Array]"&&ie(ne.callee)==="[object Function]"},de=function(){return ae(arguments)}();ae.isLegacyArguments=ee,ke.exports=de?ae:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,ke,we){ke.exports=function(ie){return ie!=null&&(x(ie)||z(ie)||!!ie._isBuffer)};function x(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function z(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&x(ie.slice(0,0))}},{}],367:[function(y,ke,we){"use strict";var x=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,ae;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw ae}}),ae={},z(function(){throw 42},null,ie)}catch(Re){Re!==ae&&(z=null)}else z=null;var ee=/^\s*class\b/,de=function(_e){try{var ye=x.call(_e);return ee.test(ye)}catch(be){return!1}},E=function(_e){try{return de(_e)?!1:(x.call(_e),!0)}catch(ye){return!1}},ne=Object.prototype.toString,re="[object Object]",oe="[object Function]",le="[object GeneratorFunction]",he="[object HTMLAllCollection]",pe="[object HTML document.all class]",ve="[object HTMLCollection]",ce=typeof Symbol=="function"&&!!Symbol.toStringTag,me=!(0 in[,]),Ee=function(){return!1};if(typeof document=="object"){var Te=document.all;ne.call(Te)===ne.call(document.all)&&(Ee=function(_e){if((me||!_e)&&(typeof _e=="undefined"||typeof _e=="object"))try{var ye=ne.call(_e);return(ye===he||ye===pe||ye===ve||ye===re)&&_e("")==null}catch(be){}return!1})}ke.exports=z?function(_e){if(Ee(_e))return!0;if(!_e||typeof _e!="function"&&typeof _e!="object")return!1;try{z(_e,null,ie)}catch(ye){if(ye!==ae)return!1}return!de(_e)&&E(_e)}:function(_e){if(Ee(_e))return!0;if(!_e||typeof _e!="function"&&typeof _e!="object")return!1;if(ce)return E(_e);if(de(_e))return!1;var ye=ne.call(_e);return ye!==oe&&ye!==le&&!/^\[object HTML/.test(ye)?!1:E(_e)}},{}],368:[function(y,ke,we){"use strict";var x=Object.prototype.toString,z=Function.prototype.toString,ie=/^\s*(?:function)?\*/,ae=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,de=function(){if(!ae)return!1;try{return Function("return function*() {}")()}catch(ne){}},E;ke.exports=function(re){if(typeof re!="function")return!1;if(ie.test(z.call(re)))return!0;if(!ae){var oe=x.call(re);return oe==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof E=="undefined"){var le=de();E=le?ee(le):!1}return ee(re)===E}},{"has-tostringtag/shams":353}],369:[function(y,ke,we){"use strict";var x=y("which-typed-array");ke.exports=function(ie){return!!x(ie)}},{"which-typed-array":420}],370:[function(y,ke,we){var x={}.toString;ke.exports=Array.isArray||function(z){return x.call(z)=="[object Array]"}},{}],371:[function(y,ke,we){(function(x){(function(){(function(z,ie){typeof we=="object"&&typeof ke!="undefined"?ke.exports=ie(z):typeof ze=="function"&&ze.amd?ze(ie):ie(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x!="undefined"?x:this,function(z){"use strict";z=z||{};var ie=z.Base64,ae="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=function(Ve){for(var nt={},Ne=0,We=Ve.length;Ne<We;Ne++)nt[Ve.charAt(Ne)]=Ne;return nt}(ee),E=String.fromCharCode,ne=function(Ve){if(Ve.length<2){var nt=Ve.charCodeAt(0);return nt<128?Ve:nt<2048?E(192|nt>>>6)+E(128|nt&63):E(224|nt>>>12&15)+E(128|nt>>>6&63)+E(128|nt&63)}else{var nt=65536+(Ve.charCodeAt(0)-55296)*1024+(Ve.charCodeAt(1)-56320);return E(240|nt>>>18&7)+E(128|nt>>>12&63)+E(128|nt>>>6&63)+E(128|nt&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,oe=function(Ve){return Ve.replace(re,ne)},le=function(Ve){var nt=[0,2,1][Ve.length%3],Ne=Ve.charCodeAt(0)<<16|(Ve.length>1?Ve.charCodeAt(1):0)<<8|(Ve.length>2?Ve.charCodeAt(2):0),We=[ee.charAt(Ne>>>18),ee.charAt(Ne>>>12&63),nt>=2?"=":ee.charAt(Ne>>>6&63),nt>=1?"=":ee.charAt(Ne&63)];return We.join("")},he=z.btoa&&typeof z.btoa=="function"?function(Ve){return z.btoa(Ve)}:function(Ve){if(Ve.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ve.replace(/[\s\S]{1,3}/g,le)},pe=function(Ve){return he(oe(String(Ve)))},ve=function(Ve){return Ve.replace(/[+\/]/g,function(nt){return nt=="+"?"-":"_"}).replace(/=/g,"")},ce=function(Ve,nt){return nt?ve(pe(Ve)):pe(Ve)},me=function(Ve){return ce(Ve,!0)},Ee;z.Uint8Array&&(Ee=function(Ve,nt){for(var Ne="",We=0,$e=Ve.length;We<$e;We+=3){var rt=Ve[We],et=Ve[We+1],Xe=Ve[We+2],Ye=rt<<16|et<<8|Xe;Ne+=ee.charAt(Ye>>>18)+ee.charAt(Ye>>>12&63)+(typeof et!="undefined"?ee.charAt(Ye>>>6&63):"=")+(typeof Xe!="undefined"?ee.charAt(Ye&63):"=")}return nt?ve(Ne):Ne});var Te=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Re=function(Ve){switch(Ve.length){case 4:var nt=(7&Ve.charCodeAt(0))<<18|(63&Ve.charCodeAt(1))<<12|(63&Ve.charCodeAt(2))<<6|63&Ve.charCodeAt(3),Ne=nt-65536;return E((Ne>>>10)+55296)+E((Ne&1023)+56320);case 3:return E((15&Ve.charCodeAt(0))<<12|(63&Ve.charCodeAt(1))<<6|63&Ve.charCodeAt(2));default:return E((31&Ve.charCodeAt(0))<<6|63&Ve.charCodeAt(1))}},_e=function(Ve){return Ve.replace(Te,Re)},ye=function(Ve){var nt=Ve.length,Ne=nt%4,We=(nt>0?de[Ve.charAt(0)]<<18:0)|(nt>1?de[Ve.charAt(1)]<<12:0)|(nt>2?de[Ve.charAt(2)]<<6:0)|(nt>3?de[Ve.charAt(3)]:0),$e=[E(We>>>16),E(We>>>8&255),E(We&255)];return $e.length-=[0,0,2,1][Ne],$e.join("")},be=z.atob&&typeof z.atob=="function"?function(Ve){return z.atob(Ve)}:function(Ve){return Ve.replace(/\S{1,4}/g,ye)},Se=function(Ve){return be(String(Ve).replace(/[^A-Za-z0-9\+\/]/g,""))},Ie=function(Ve){return _e(be(Ve))},Me=function(Ve){return String(Ve).replace(/[-_]/g,function(nt){return nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ae=function(Ve){return Ie(Me(Ve))},De;z.Uint8Array&&(De=function(Ve){return Uint8Array.from(Se(Me(Ve)),function(nt){return nt.charCodeAt(0)})});var He=function(){var Ve=z.Base64;return z.Base64=ie,Ve};if(z.Base64={VERSION:ae,atob:Se,btoa:he,fromBase64:Ae,toBase64:ce,utob:oe,encode:ce,encodeURI:me,btou:_e,decode:Ae,noConflict:He,fromUint8Array:Ee,toUint8Array:De},typeof Object.defineProperty=="function"){var Ke=function(Ve){return{value:Ve,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ke(function(){return Ae(this)})),Object.defineProperty(String.prototype,"toBase64",Ke(function(Ve){return ce(this,Ve)})),Object.defineProperty(String.prototype,"toBase64URI",Ke(function(){return ce(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof ke!="undefined"&&ke.exports?ke.exports.Base64=z.Base64:typeof ze=="function"&&ze.amd&&ze([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,ke,we){"use strict";ke.exports=z;var x=Object.prototype.hasOwnProperty;function z(ie,ae,ee){if(!ie)throw new TypeError("argument dest is required");if(!ae)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(ae).forEach(function(E){if(!(!ee&&x.call(ie,E))){var ne=Object.getOwnPropertyDescriptor(ae,E);Object.defineProperty(ie,E,ne)}}),ie}},{}],373:[function(y,ke,we){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.regexp.constructor.js"),y("core-js/modules/es.regexp.to-string.js");function x(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}x.prototype.define=function(z,ie){for(var ae in z){var ee=z[ae].map(function(re){return re.toLowerCase()});ae=ae.toLowerCase();for(var de=0;de<ee.length;de++){var E=ee[de];if(E[0]!=="*"){if(!ie&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+ae+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+ae+'".');this._types[E]=ae}}if(ie||!this._extensions[ae]){var ne=ee[0];this._extensions[ae]=ne[0]!=="*"?ne:ne.substr(1)}}},x.prototype.getType=function(z){z=String(z);var ie=z.replace(/^.*[/\\]/,"").toLowerCase(),ae=ie.replace(/^.*\./,"").toLowerCase(),ee=ie.length<z.length,de=ae.length<ie.length-1;return(de||!ee)&&this._types[ae]||null},x.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},ke.exports=x},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(y,ke,we){"use strict";var x=y("./Mime");ke.exports=new x(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,ke,we){"use strict";ke.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(y,ke,we){var x=1e3,z=x*60,ie=z*60,ae=ie*24,ee=ae*7,de=ae*365.25;ke.exports=function(le,he){he=he||{};var pe=typeof le;if(pe==="string"&&le.length>0)return E(le);if(pe==="number"&&isFinite(le))return he.long?re(le):ne(le);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(le))};function E(le){if(le=String(le),!(le.length>100)){var he=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(le);if(he){var pe=parseFloat(he[1]),ve=(he[2]||"ms").toLowerCase();switch(ve){case"years":case"year":case"yrs":case"yr":case"y":return pe*de;case"weeks":case"week":case"w":return pe*ee;case"days":case"day":case"d":return pe*ae;case"hours":case"hour":case"hrs":case"hr":case"h":return pe*ie;case"minutes":case"minute":case"mins":case"min":case"m":return pe*z;case"seconds":case"second":case"secs":case"sec":case"s":return pe*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pe;default:return}}}}function ne(le){var he=Math.abs(le);return he>=ae?Math.round(le/ae)+"d":he>=ie?Math.round(le/ie)+"h":he>=z?Math.round(le/z)+"m":he>=x?Math.round(le/x)+"s":le+"ms"}function re(le){var he=Math.abs(le);return he>=ae?oe(le,he,ae,"day"):he>=ie?oe(le,he,ie,"hour"):he>=z?oe(le,he,z,"minute"):he>=x?oe(le,he,x,"second"):le+" ms"}function oe(le,he,pe,ve){var ce=he>=pe*1.5;return Math.round(le/pe)+" "+ve+(ce?"s":"")}},{}],377:[function(y,ke,we){"use strict";var x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function ae(de){if(de==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(de)}function ee(){try{if(!Object.assign)return!1;var de=new String("abc");if(de[5]="de",Object.getOwnPropertyNames(de)[0]==="5")return!1;for(var E={},ne=0;ne<10;ne++)E["_"+String.fromCharCode(ne)]=ne;var re=Object.getOwnPropertyNames(E).map(function(le){return E[le]});if(re.join("")!=="0123456789")return!1;var oe={};return"abcdefghijklmnopqrst".split("").forEach(function(le){oe[le]=le}),Object.keys(Object.assign({},oe)).join("")==="abcdefghijklmnopqrst"}catch(le){return!1}}ke.exports=ee()?Object.assign:function(de,E){for(var ne,re=ae(de),oe,le=1;le<arguments.length;le++){ne=Object(arguments[le]);for(var he in ne)z.call(ne,he)&&(re[he]=ne[he]);if(x){oe=x(ne);for(var pe=0;pe<oe.length;pe++)ie.call(ne,oe[pe])&&(re[oe[pe]]=ne[oe[pe]])}}return re}},{}],378:[function(y,ke,we){(function(x){(function(){"use strict";function z(de){if(typeof de!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(de))}function ie(de,E){for(var ne="",re=0,oe=-1,le=0,he,pe=0;pe<=de.length;++pe){if(pe<de.length)he=de.charCodeAt(pe);else{if(he===47)break;he=47}if(he===47){if(!(oe===pe-1||le===1))if(oe!==pe-1&&le===2){if(ne.length<2||re!==2||ne.charCodeAt(ne.length-1)!==46||ne.charCodeAt(ne.length-2)!==46){if(ne.length>2){var ve=ne.lastIndexOf("/");if(ve!==ne.length-1){ve===-1?(ne="",re=0):(ne=ne.slice(0,ve),re=ne.length-1-ne.lastIndexOf("/")),oe=pe,le=0;continue}}else if(ne.length===2||ne.length===1){ne="",re=0,oe=pe,le=0;continue}}E&&(ne.length>0?ne+="/..":ne="..",re=2)}else ne.length>0?ne+="/"+de.slice(oe+1,pe):ne=de.slice(oe+1,pe),re=pe-oe-1;oe=pe,le=0}else he===46&&le!==-1?++le:le=-1}return ne}function ae(de,E){var ne=E.dir||E.root,re=E.base||(E.name||"")+(E.ext||"");return ne?ne===E.root?ne+re:ne+de+re:re}var ee={resolve:function(){for(var E="",ne=!1,re,oe=arguments.length-1;oe>=-1&&!ne;oe--){var le;oe>=0?le=arguments[oe]:(re===void 0&&(re=x.cwd()),le=re),z(le),le.length!==0&&(E=le+"/"+E,ne=le.charCodeAt(0)===47)}return E=ie(E,!ne),ne?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(z(E),E.length===0)return".";var ne=E.charCodeAt(0)===47,re=E.charCodeAt(E.length-1)===47;return E=ie(E,!ne),E.length===0&&!ne&&(E="."),E.length>0&&re&&(E+="/"),ne?"/"+E:E},isAbsolute:function(E){return z(E),E.length>0&&E.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var E,ne=0;ne<arguments.length;++ne){var re=arguments[ne];z(re),re.length>0&&(E===void 0?E=re:E+="/"+re)}return E===void 0?".":ee.normalize(E)},relative:function(E,ne){if(z(E),z(ne),E===ne||(E=ee.resolve(E),ne=ee.resolve(ne),E===ne))return"";for(var re=1;re<E.length&&E.charCodeAt(re)===47;++re);for(var oe=E.length,le=oe-re,he=1;he<ne.length&&ne.charCodeAt(he)===47;++he);for(var pe=ne.length,ve=pe-he,ce=le<ve?le:ve,me=-1,Ee=0;Ee<=ce;++Ee){if(Ee===ce){if(ve>ce){if(ne.charCodeAt(he+Ee)===47)return ne.slice(he+Ee+1);if(Ee===0)return ne.slice(he+Ee)}else le>ce&&(E.charCodeAt(re+Ee)===47?me=Ee:Ee===0&&(me=0));break}var Te=E.charCodeAt(re+Ee),Re=ne.charCodeAt(he+Ee);if(Te!==Re)break;Te===47&&(me=Ee)}var _e="";for(Ee=re+me+1;Ee<=oe;++Ee)(Ee===oe||E.charCodeAt(Ee)===47)&&(_e.length===0?_e+="..":_e+="/..");return _e.length>0?_e+ne.slice(he+me):(he+=me,ne.charCodeAt(he)===47&&++he,ne.slice(he))},_makeLong:function(E){return E},dirname:function(E){if(z(E),E.length===0)return".";for(var ne=E.charCodeAt(0),re=ne===47,oe=-1,le=!0,he=E.length-1;he>=1;--he)if(ne=E.charCodeAt(he),ne===47){if(!le){oe=he;break}}else le=!1;return oe===-1?re?"/":".":re&&oe===1?"//":E.slice(0,oe)},basename:function(E,ne){if(ne!==void 0&&typeof ne!="string")throw new TypeError('"ext" argument must be a string');z(E);var re=0,oe=-1,le=!0,he;if(ne!==void 0&&ne.length>0&&ne.length<=E.length){if(ne.length===E.length&&ne===E)return"";var pe=ne.length-1,ve=-1;for(he=E.length-1;he>=0;--he){var ce=E.charCodeAt(he);if(ce===47){if(!le){re=he+1;break}}else ve===-1&&(le=!1,ve=he+1),pe>=0&&(ce===ne.charCodeAt(pe)?--pe===-1&&(oe=he):(pe=-1,oe=ve))}return re===oe?oe=ve:oe===-1&&(oe=E.length),E.slice(re,oe)}else{for(he=E.length-1;he>=0;--he)if(E.charCodeAt(he)===47){if(!le){re=he+1;break}}else oe===-1&&(le=!1,oe=he+1);return oe===-1?"":E.slice(re,oe)}},extname:function(E){z(E);for(var ne=-1,re=0,oe=-1,le=!0,he=0,pe=E.length-1;pe>=0;--pe){var ve=E.charCodeAt(pe);if(ve===47){if(!le){re=pe+1;break}continue}oe===-1&&(le=!1,oe=pe+1),ve===46?ne===-1?ne=pe:he!==1&&(he=1):ne!==-1&&(he=-1)}return ne===-1||oe===-1||he===0||he===1&&ne===oe-1&&ne===re+1?"":E.slice(ne,oe)},format:function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return ae("/",E)},parse:function(E){z(E);var ne={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return ne;var re=E.charCodeAt(0),oe=re===47,le;oe?(ne.root="/",le=1):le=0;for(var he=-1,pe=0,ve=-1,ce=!0,me=E.length-1,Ee=0;me>=le;--me){if(re=E.charCodeAt(me),re===47){if(!ce){pe=me+1;break}continue}ve===-1&&(ce=!1,ve=me+1),re===46?he===-1?he=me:Ee!==1&&(Ee=1):he!==-1&&(Ee=-1)}return he===-1||ve===-1||Ee===0||Ee===1&&he===ve-1&&he===pe+1?ve!==-1&&(pe===0&&oe?ne.base=ne.name=E.slice(1,ve):ne.base=ne.name=E.slice(pe,ve)):(pe===0&&oe?(ne.name=E.slice(1,he),ne.base=E.slice(1,ve)):(ne.name=E.slice(pe,he),ne.base=E.slice(pe,ve)),ne.ext=E.slice(he,ve)),pe>0?ne.dir=E.slice(0,pe-1):oe&&(ne.dir="/"),ne},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,ke.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,ke,we){(function(x){(function(){(function(){"use strict";var z={function:!0,object:!0},ie=z[typeof window]&&window||this,ae=ie,ee=z[typeof we]&&we,de=z[typeof ke]&&ke&&!ke.nodeType&&ke,E=ee&&de&&typeof x=="object"&&x;E&&(E.global===E||E.window===E||E.self===E)&&(ie=E);var ne=Math.pow(2,53)-1,re=/\bOpera/,oe=this,le=Object.prototype,he=le.hasOwnProperty,pe=le.toString;function ve(Ae){return Ae=String(Ae),Ae.charAt(0).toUpperCase()+Ae.slice(1)}function ce(Ae,De,He){var Ke={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return De&&He&&/^Win/i.test(Ae)&&!/^Windows Phone /i.test(Ae)&&(Ke=Ke[/[\d.]+$/.exec(Ae)])&&(Ae="Windows "+Ke),Ae=String(Ae),De&&He&&(Ae=Ae.replace(RegExp(De,"i"),He)),Ae=Ee(Ae.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ae}function me(Ae,De){var He=-1,Ke=Ae?Ae.length:0;if(typeof Ke=="number"&&Ke>-1&&Ke<=ne)for(;++He<Ke;)De(Ae[He],He,Ae);else Te(Ae,De)}function Ee(Ae){return Ae=Se(Ae),/^(?:webOS|i(?:OS|P))/.test(Ae)?Ae:ve(Ae)}function Te(Ae,De){for(var He in Ae)he.call(Ae,He)&&De(Ae[He],He,Ae)}function Re(Ae){return Ae==null?ve(Ae):pe.call(Ae).slice(8,-1)}function _e(Ae,De){var He=Ae!=null?typeof Ae[De]:"number";return!/^(?:boolean|number|string|undefined)$/.test(He)&&(He=="object"?!!Ae[De]:!0)}function ye(Ae){return String(Ae).replace(/([ -])(?!$)/g,"$1?")}function be(Ae,De){var He=null;return me(Ae,function(Ke,Ve){He=De(He,Ke,Ve,Ae)}),He}function Se(Ae){return String(Ae).replace(/^ +| +$/g,"")}function Ie(Ae){var De=ie,He=Ae&&typeof Ae=="object"&&Re(Ae)!="String";He&&(De=Ae,Ae=null);var Ke=De.navigator||{},Ve=Ke.userAgent||"";Ae||(Ae=Ve);var nt=He||oe==ae,Ne=He?!!Ke.likeChrome:/\bChrome\b/.test(Ae)&&!/internal|\n/i.test(pe.toString()),We="Object",$e=He?We:"ScriptBridgingProxyObject",rt=He?We:"Environment",et=He&&De.java?"JavaPackage":Re(De.java),Xe=He?We:"RuntimeObject",Ye=/\bJava/.test(et)&&De.java,Ge=Ye&&Re(De.environment)==rt,at=Ye?"a":"\u03B1",Qe=Ye?"b":"\u03B2",ft=De.document||{},ot=De.operamini||De.opera,Je=re.test(Je=He&&ot?ot["[[Class]]"]:Re(ot))?Je:ot=null,Fe,Pe=Ae,te=[],fe=null,Oe=Ae==Ve,Ue=Oe&&ot&&typeof ot.version=="function"&&ot.version(),xe,Ce=ct([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),je=pt(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ze=wt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),tt=ut({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),it=St(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ct(gt){return be(gt,function(dt,xt){return dt||RegExp("\\b"+(xt.pattern||ye(xt))+"\\b","i").exec(Ae)&&(xt.label||xt)})}function ut(gt){return be(gt,function(dt,xt,bt){return dt||(xt[Ze]||xt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ze)]||RegExp("\\b"+ye(bt)+"(?:\\b|\\w*\\d)","i").exec(Ae))&&bt})}function pt(gt){return be(gt,function(dt,xt){return dt||RegExp("\\b"+(xt.pattern||ye(xt))+"\\b","i").exec(Ae)&&(xt.label||xt)})}function St(gt){return be(gt,function(dt,xt){var bt=xt.pattern||ye(xt);return!dt&&(dt=RegExp("\\b"+bt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ae))&&(dt=ce(dt,bt,xt.label||xt)),dt})}function wt(gt){return be(gt,function(dt,xt){var bt=xt.pattern||ye(xt);return!dt&&(dt=RegExp("\\b"+bt+" *\\d+[.\\w_]*","i").exec(Ae)||RegExp("\\b"+bt+" *\\w+-[\\w]*","i").exec(Ae)||RegExp("\\b"+bt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ae))&&((dt=String(xt.label&&!RegExp(bt,"i").test(xt.label)?xt.label:dt).split("/"))[1]&&!/[\d.]+/.test(dt[0])&&(dt[0]+=" "+dt[1]),xt=xt.label||xt,dt=Ee(dt[0].replace(RegExp(bt,"i"),xt).replace(RegExp("; *(?:"+xt+"[_-])?","i")," ").replace(RegExp("("+xt+")[-_.]?(\\w)","i"),"$1 $2"))),dt})}function Et(gt){return be(gt,function(dt,xt){return dt||(RegExp(xt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ae)||0)[1]||null})}function vt(){return this.description||""}if(Ce&&(Ce=[Ce]),/\bAndroid\b/.test(it)&&!Ze&&(Fe=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ae))&&(Ze=Se(Fe[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),tt&&!Ze?Ze=wt([tt]):tt&&Ze&&(Ze=Ze.replace(RegExp("^("+ye(tt)+")[-_.\\s]","i"),tt+" ").replace(RegExp("^("+ye(tt)+")[-_.]?(\\w)","i"),tt+" $2")),(Fe=/\bGoogle TV\b/.exec(Ze))&&(Ze=Fe[0]),/\bSimulator\b/i.test(Ae)&&(Ze=(Ze?Ze+" ":"")+"Simulator"),je=="Opera Mini"&&/\bOPiOS\b/.test(Ae)&&te.push("running in Turbo/Uncompressed mode"),je=="IE"&&/\blike iPhone OS\b/.test(Ae)?(Fe=Ie(Ae.replace(/like iPhone OS/,"")),tt=Fe.manufacturer,Ze=Fe.product):/^iP/.test(Ze)?(je||(je="Safari"),it="iOS"+((Fe=/ OS ([\d_]+)/i.exec(Ae))?" "+Fe[1].replace(/_/g,"."):"")):je=="Konqueror"&&/^Linux\b/i.test(it)?it="Kubuntu":tt&&tt!="Google"&&(/Chrome/.test(je)&&!/\bMobile Safari\b/i.test(Ae)||/\bVita\b/.test(Ze))||/\bAndroid\b/.test(it)&&/^Chrome/.test(je)&&/\bVersion\//i.test(Ae)?(je="Android Browser",it=/\bAndroid\b/.test(it)?it:"Android"):je=="Silk"?(/\bMobi/i.test(Ae)||(it="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(Ae)&&te.unshift("accelerated")):je=="UC Browser"&&/\bUCWEB\b/.test(Ae)?te.push("speed mode"):je=="PaleMoon"&&(Fe=/\bFirefox\/([\d.]+)\b/.exec(Ae))?te.push("identifying as Firefox "+Fe[1]):je=="Firefox"&&(Fe=/\b(Mobile|Tablet|TV)\b/i.exec(Ae))?(it||(it="Firefox OS"),Ze||(Ze=Fe[1])):!je||(Fe=!/\bMinefield\b/i.test(Ae)&&/\b(?:Firefox|Safari)\b/.exec(je))?(je&&!Ze&&/[\/,]|^[^(]+?\)/.test(Ae.slice(Ae.indexOf(Fe+"/")+8))&&(je=null),(Fe=Ze||tt||it)&&(Ze||tt||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(it))&&(je=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(it)?it:Fe)+" Browser")):je=="Electron"&&(Fe=(/\bChrome\/([\d.]+)\b/.exec(Ae)||0)[1])&&te.push("Chromium "+Fe),Ue||(Ue=Et(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ye(je),"(?:Firefox|Minefield|NetFront)"])),(Fe=Ce=="iCab"&&parseFloat(Ue)>3&&"WebKit"||/\bOpera\b/.test(je)&&(/\bOPR\b/.test(Ae)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ae)&&!/^(?:Trident|EdgeHTML)$/.test(Ce)&&"WebKit"||!Ce&&/\bMSIE\b/i.test(Ae)&&(it=="Mac OS"?"Tasman":"Trident")||Ce=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(je)&&"NetFront")&&(Ce=[Fe]),je=="IE"&&(Fe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ae)||0)[1])?(je+=" Mobile",it="Windows Phone "+(/\+$/.test(Fe)?Fe:Fe+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ae)?(je="IE Mobile",it="Windows Phone 8.x",te.unshift("desktop mode"),Ue||(Ue=(/\brv:([\d.]+)/.exec(Ae)||0)[1])):je!="IE"&&Ce=="Trident"&&(Fe=/\brv:([\d.]+)/.exec(Ae))&&(je&&te.push("identifying as "+je+(Ue?" "+Ue:"")),je="IE",Ue=Fe[1]),Oe){if(_e(De,"global"))if(Ye&&(Fe=Ye.lang.System,Pe=Fe.getProperty("os.arch"),it=it||Fe.getProperty("os.name")+" "+Fe.getProperty("os.version")),Ge){try{Ue=De.require("ringo/engine").version.join("."),je="RingoJS"}catch(gt){(Fe=De.system)&&Fe.global.system==De.system&&(je="Narwhal",it||(it=Fe[0].os||null))}je||(je="Rhino")}else typeof De.process=="object"&&!De.process.browser&&(Fe=De.process)&&(typeof Fe.versions=="object"&&(typeof Fe.versions.electron=="string"?(te.push("Node "+Fe.versions.node),je="Electron",Ue=Fe.versions.electron):typeof Fe.versions.nw=="string"&&(te.push("Chromium "+Ue,"Node "+Fe.versions.node),je="NW.js",Ue=Fe.versions.nw)),je||(je="Node.js",Pe=Fe.arch,it=Fe.platform,Ue=/[\d.]+/.exec(Fe.version),Ue=Ue?Ue[0]:null));else Re(Fe=De.runtime)==$e?(je="Adobe AIR",it=Fe.flash.system.Capabilities.os):Re(Fe=De.phantom)==Xe?(je="PhantomJS",Ue=(Fe=Fe.version||null)&&Fe.major+"."+Fe.minor+"."+Fe.patch):typeof ft.documentMode=="number"&&(Fe=/\bTrident\/(\d+)/i.exec(Ae))?(Ue=[Ue,ft.documentMode],(Fe=+Fe[1]+4)!=Ue[1]&&(te.push("IE "+Ue[1]+" mode"),Ce&&(Ce[1]=""),Ue[1]=Fe),Ue=je=="IE"?String(Ue[1].toFixed(1)):Ue[0]):typeof ft.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(je)&&(te.push("masking as "+je+" "+Ue),je="IE",Ue="11.0",Ce=["Trident"],it="Windows");it=it&&Ee(it)}if(Ue&&(Fe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ue)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ae+";"+(Oe&&Ke.appMinorVersion))||/\bMinefield\b/i.test(Ae)&&"a")&&(fe=/b/i.test(Fe)?"beta":"alpha",Ue=Ue.replace(RegExp(Fe+"\\+?$"),"")+(fe=="beta"?Qe:at)+(/\d+\+?/.exec(Fe)||"")),je=="Fennec"||je=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(it))je="Firefox Mobile";else if(je=="Maxthon"&&Ue)Ue=Ue.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ze))Ze=="Xbox 360"&&(it=null),Ze=="Xbox 360"&&/\bIEMobile\b/.test(Ae)&&te.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(je)||je&&!Ze&&!/Browser|Mobi/.test(je))&&(it=="Windows CE"||/Mobi/i.test(Ae)))je+=" Mobile";else if(je=="IE"&&Oe)try{De.external===null&&te.unshift("platform preview")}catch(gt){te.unshift("embedded")}else(/\bBlackBerry\b/.test(Ze)||/\bBB10\b/.test(Ae))&&(Fe=(RegExp(Ze.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ae)||0)[1]||Ue)?(Fe=[Fe,/BB10/.test(Ae)],it=(Fe[1]?(Ze=null,tt="BlackBerry"):"Device Software")+" "+Fe[0],Ue=null):this!=Te&&Ze!="Wii"&&(Oe&&ot||/Opera/.test(je)&&/\b(?:MSIE|Firefox)\b/i.test(Ae)||je=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(it)||je=="IE"&&(it&&!/^Win/.test(it)&&Ue>5.5||/\bWindows XP\b/.test(it)&&Ue>8||Ue==8&&!/\bTrident\b/.test(Ae)))&&!re.test(Fe=Ie.call(Te,Ae.replace(re,"")+";"))&&Fe.name&&(Fe="ing as "+Fe.name+((Fe=Fe.version)?" "+Fe:""),re.test(je)?(/\bIE\b/.test(Fe)&&it=="Mac OS"&&(it=null),Fe="identify"+Fe):(Fe="mask"+Fe,Je?je=Ee(Je.replace(/([a-z])([A-Z])/g,"$1 $2")):je="Opera",/\bIE\b/.test(Fe)&&(it=null),Oe||(Ue=null)),Ce=["Presto"],te.push(Fe));(Fe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ae)||0)[1])&&(Fe=[parseFloat(Fe.replace(/\.(\d)$/,".0$1")),Fe],je=="Safari"&&Fe[1].slice(-1)=="+"?(je="WebKit Nightly",fe="alpha",Ue=Fe[1].slice(0,-1)):(Ue==Fe[1]||Ue==(Fe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ae)||0)[1]))&&(Ue=null),Fe[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ae)||0)[1],Fe[0]==537.36&&Fe[2]==537.36&&parseFloat(Fe[1])>=28&&Ce=="WebKit"&&(Ce=["Blink"]),!Oe||!Ne&&!Fe[1]?(Ce&&(Ce[1]="like Safari"),Fe=(Fe=Fe[0],Fe<400?1:Fe<500?2:Fe<526?3:Fe<533?4:Fe<534?"4+":Fe<535?5:Fe<537?6:Fe<538?7:Fe<601?8:Fe<602?9:Fe<604?10:Fe<606?11:Fe<608?12:"12")):(Ce&&(Ce[1]="like Chrome"),Fe=Fe[1]||(Fe=Fe[0],Fe<530?1:Fe<532?2:Fe<532.05?3:Fe<533?4:Fe<534.03?5:Fe<534.07?6:Fe<534.1?7:Fe<534.13?8:Fe<534.16?9:Fe<534.24?10:Fe<534.3?11:Fe<535.01?12:Fe<535.02?"13+":Fe<535.07?15:Fe<535.11?16:Fe<535.19?17:Fe<536.05?18:Fe<536.1?19:Fe<537.01?20:Fe<537.11?"21+":Fe<537.13?23:Fe<537.18?24:Fe<537.24?25:Fe<537.36?26:Ce!="Blink"?"27":"28")),Ce&&(Ce[1]+=" "+(Fe+=typeof Fe=="number"?".x":/[.+]/.test(Fe)?"":"+")),je=="Safari"&&(!Ue||parseInt(Ue)>45)?Ue=Fe:je=="Chrome"&&/\bHeadlessChrome/i.test(Ae)&&te.unshift("headless")),je=="Opera"&&(Fe=/\bzbov|zvav$/.exec(it))?(je+=" ",te.unshift("desktop mode"),Fe=="zvav"?(je+="Mini",Ue=null):je+="Mobile",it=it.replace(RegExp(" *"+Fe+"$"),"")):je=="Safari"&&/\bChrome\b/.exec(Ce&&Ce[1])?(te.unshift("desktop mode"),je="Chrome Mobile",Ue=null,/\bOS X\b/.test(it)?(tt="Apple",it="iOS 4.3+"):it=null):/\bSRWare Iron\b/.test(je)&&!Ue&&(Ue=Et("Chrome")),Ue&&Ue.indexOf(Fe=/[\d.]+$/.exec(it))==0&&Ae.indexOf("/"+Fe+"-")>-1&&(it=Se(it.replace(Fe,""))),it&&it.indexOf(je)!=-1&&!RegExp(je+" OS").test(it)&&(it=it.replace(RegExp(" *"+ye(je)+" *"),"")),Ce&&!/\b(?:Avant|Nook)\b/.test(je)&&(/Browser|Lunascape|Maxthon/.test(je)||je!="Safari"&&/^iOS/.test(it)&&/\bSafari\b/.test(Ce[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(je)&&Ce[1])&&(Fe=Ce[Ce.length-1])&&te.push(Fe),te.length&&(te=["("+te.join("; ")+")"]),tt&&Ze&&Ze.indexOf(tt)<0&&te.push("on "+tt),Ze&&te.push((/^on /.test(te[te.length-1])?"":"on ")+Ze),it&&(Fe=/ ([\d.+]+)$/.exec(it),xe=Fe&&it.charAt(it.length-Fe[0].length-1)=="/",it={architecture:32,family:Fe&&!xe?it.replace(Fe[0],""):it,version:Fe?Fe[1]:null,toString:function(){var gt=this.version;return this.family+(gt&&!xe?" "+gt:"")+(this.architecture==64?" 64-bit":"")}}),(Fe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Pe))&&!/\bi686\b/i.test(Pe)?(it&&(it.architecture=64,it.family=it.family.replace(RegExp(" *"+Fe),"")),je&&(/\bWOW64\b/i.test(Ae)||Oe&&/\w(?:86|32)$/.test(Ke.cpuClass||Ke.platform)&&!/\bWin64; x64\b/i.test(Ae))&&te.unshift("32-bit")):it&&/^OS X/.test(it.family)&&je=="Chrome"&&parseFloat(Ue)>=39&&(it.architecture=64),Ae||(Ae=null);var At={};return At.description=Ae,At.layout=Ce&&Ce[0],At.manufacturer=tt,At.name=je,At.prerelease=fe,At.product=Ze,At.ua=Ae,At.version=je&&Ue,At.os=it||{architecture:null,family:null,version:null,toString:function(){return"null"}},At.parse=Ie,At.toString=vt,At.version&&te.unshift(Ue),At.name&&te.unshift(je),it&&je&&!(it==String(it).split(" ")[0]&&(it==je.split(" ")[0]||Ze))&&te.push(Ze?"("+it+")":"on "+it),te.length&&(At.description=te.join(" ")),At}var Me=Ie();typeof ze=="function"&&typeof ze.amd=="object"&&ze.amd?(ie.platform=Me,ze(function(){return Me})):ee&&de?Te(Me,function(Ae,De){ee[De]=Ae}):ie.platform=Me}).call(this)}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,ke,we){(function(x){(function(){"use strict";typeof x=="undefined"||!x.version||x.version.indexOf("v0.")===0||x.version.indexOf("v1.")===0&&x.version.indexOf("v1.8.")!==0?ke.exports={nextTick:z}:ke.exports=x;function z(ie,ae,ee,de){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var E=arguments.length,ne,re;switch(E){case 0:case 1:return x.nextTick(ie);case 2:return x.nextTick(function(){ie.call(null,ae)});case 3:return x.nextTick(function(){ie.call(null,ae,ee)});case 4:return x.nextTick(function(){ie.call(null,ae,ee,de)});default:for(ne=new Array(E-1),re=0;re<ne.length;)ne[re++]=arguments[re];return x.nextTick(function(){ie.apply(null,ne)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,ke,we){var x=ke.exports={},z,ie;function ae(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=ae}catch(me){z=ae}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=ee}catch(me){ie=ee}})();function de(me){if(z===setTimeout)return setTimeout(me,0);if((z===ae||!z)&&setTimeout)return z=setTimeout,setTimeout(me,0);try{return z(me,0)}catch(Ee){try{return z.call(null,me,0)}catch(Te){return z.call(this,me,0)}}}function E(me){if(ie===clearTimeout)return clearTimeout(me);if((ie===ee||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(me);try{return ie(me)}catch(Ee){try{return ie.call(null,me)}catch(Te){return ie.call(this,me)}}}var ne=[],re=!1,oe,le=-1;function he(){!re||!oe||(re=!1,oe.length?ne=oe.concat(ne):le=-1,ne.length&&pe())}function pe(){if(!re){var me=de(he);re=!0;for(var Ee=ne.length;Ee;){for(oe=ne,ne=[];++le<Ee;)oe&&oe[le].run();le=-1,Ee=ne.length}oe=null,re=!1,E(me)}}x.nextTick=function(me){var Ee=new Array(arguments.length-1);if(arguments.length>1)for(var Te=1;Te<arguments.length;Te++)Ee[Te-1]=arguments[Te];ne.push(new ve(me,Ee)),ne.length===1&&!re&&de(pe)};function ve(me,Ee){this.fun=me,this.array=Ee}ve.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={};function ce(){}x.on=ce,x.addListener=ce,x.once=ce,x.off=ce,x.removeListener=ce,x.removeAllListeners=ce,x.emit=ce,x.prependListener=ce,x.prependOnceListener=ce,x.listeners=function(me){return[]},x.binding=function(me){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(me){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},{}],382:[function(y,ke,we){(function(x){(function(){(function(z){var ie=typeof we=="object"&&we&&!we.nodeType&&we,ae=typeof ke=="object"&&ke&&!ke.nodeType&&ke,ee=typeof x=="object"&&x;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var de,E=2147483647,ne=36,re=1,oe=26,le=38,he=700,pe=72,ve=128,ce="-",me=/^xn--/,Ee=/[^\x20-\x7E]/,Te=/[\x2E\u3002\uFF0E\uFF61]/g,Re={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_e=ne-re,ye=Math.floor,be=String.fromCharCode,Se;function Ie(et){throw new RangeError(Re[et])}function Me(et,Xe){for(var Ye=et.length,Ge=[];Ye--;)Ge[Ye]=Xe(et[Ye]);return Ge}function Ae(et,Xe){var Ye=et.split("@"),Ge="";Ye.length>1&&(Ge=Ye[0]+"@",et=Ye[1]),et=et.replace(Te,".");var at=et.split("."),Qe=Me(at,Xe).join(".");return Ge+Qe}function De(et){for(var Xe=[],Ye=0,Ge=et.length,at,Qe;Ye<Ge;)at=et.charCodeAt(Ye++),at>=55296&&at<=56319&&Ye<Ge?(Qe=et.charCodeAt(Ye++),(Qe&64512)==56320?Xe.push(((at&1023)<<10)+(Qe&1023)+65536):(Xe.push(at),Ye--)):Xe.push(at);return Xe}function He(et){return Me(et,function(Xe){var Ye="";return Xe>65535&&(Xe-=65536,Ye+=be(Xe>>>10&1023|55296),Xe=56320|Xe&1023),Ye+=be(Xe),Ye}).join("")}function Ke(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:ne}function Ve(et,Xe){return et+22+75*(et<26)-((Xe!=0)<<5)}function nt(et,Xe,Ye){var Ge=0;for(et=Ye?ye(et/he):et>>1,et+=ye(et/Xe);et>_e*oe>>1;Ge+=ne)et=ye(et/_e);return ye(Ge+(_e+1)*et/(et+le))}function Ne(et){var Xe=[],Ye=et.length,Ge,at=0,Qe=ve,ft=pe,ot,Je,Fe,Pe,te,fe,Oe,Ue,xe;for(ot=et.lastIndexOf(ce),ot<0&&(ot=0),Je=0;Je<ot;++Je)et.charCodeAt(Je)>=128&&Ie("not-basic"),Xe.push(et.charCodeAt(Je));for(Fe=ot>0?ot+1:0;Fe<Ye;){for(Pe=at,te=1,fe=ne;Fe>=Ye&&Ie("invalid-input"),Oe=Ke(et.charCodeAt(Fe++)),(Oe>=ne||Oe>ye((E-at)/te))&&Ie("overflow"),at+=Oe*te,Ue=fe<=ft?re:fe>=ft+oe?oe:fe-ft,!(Oe<Ue);fe+=ne)xe=ne-Ue,te>ye(E/xe)&&Ie("overflow"),te*=xe;Ge=Xe.length+1,ft=nt(at-Pe,Ge,Pe==0),ye(at/Ge)>E-Qe&&Ie("overflow"),Qe+=ye(at/Ge),at%=Ge,Xe.splice(at++,0,Qe)}return He(Xe)}function We(et){var Xe,Ye,Ge,at,Qe,ft,ot,Je,Fe,Pe,te,fe=[],Oe,Ue,xe,Ce;for(et=De(et),Oe=et.length,Xe=ve,Ye=0,Qe=pe,ft=0;ft<Oe;++ft)te=et[ft],te<128&&fe.push(be(te));for(Ge=at=fe.length,at&&fe.push(ce);Ge<Oe;){for(ot=E,ft=0;ft<Oe;++ft)te=et[ft],te>=Xe&&te<ot&&(ot=te);for(Ue=Ge+1,ot-Xe>ye((E-Ye)/Ue)&&Ie("overflow"),Ye+=(ot-Xe)*Ue,Xe=ot,ft=0;ft<Oe;++ft)if(te=et[ft],te<Xe&&++Ye>E&&Ie("overflow"),te==Xe){for(Je=Ye,Fe=ne;Pe=Fe<=Qe?re:Fe>=Qe+oe?oe:Fe-Qe,!(Je<Pe);Fe+=ne)Ce=Je-Pe,xe=ne-Pe,fe.push(be(Ve(Pe+Ce%xe,0))),Je=ye(Ce/xe);fe.push(be(Ve(Je,0))),Qe=nt(Ye,Ue,Ge==at),Ye=0,++Ge}++Ye,++Xe}return fe.join("")}function $e(et){return Ae(et,function(Xe){return me.test(Xe)?Ne(Xe.slice(4).toLowerCase()):Xe})}function rt(et){return Ae(et,function(Xe){return Ee.test(Xe)?"xn--"+We(Xe):Xe})}if(de={version:"1.4.1",ucs2:{decode:De,encode:He},decode:Ne,encode:We,toASCII:rt,toUnicode:$e},typeof ze=="function"&&typeof ze.amd=="object"&&ze.amd)ze("punycode",function(){return de});else if(ie&&ae)if(ke.exports==ie)ae.exports=de;else for(Se in de)de.hasOwnProperty(Se)&&(ie[Se]=de[Se]);else z.punycode=de})(this)}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,ke,we){"use strict";function x(ie,ae){return Object.prototype.hasOwnProperty.call(ie,ae)}ke.exports=function(ie,ae,ee,de){ae=ae||"&",ee=ee||"=";var E={};if(typeof ie!="string"||ie.length===0)return E;var ne=/\+/g;ie=ie.split(ae);var re=1e3;de&&typeof de.maxKeys=="number"&&(re=de.maxKeys);var oe=ie.length;re>0&&oe>re&&(oe=re);for(var le=0;le<oe;++le){var he=ie[le].replace(ne,"%20"),pe=he.indexOf(ee),ve,ce,me,Ee;pe>=0?(ve=he.substr(0,pe),ce=he.substr(pe+1)):(ve=he,ce=""),me=decodeURIComponent(ve),Ee=decodeURIComponent(ce),x(E,me)?z(E[me])?E[me].push(Ee):E[me]=[E[me],Ee]:E[me]=Ee}return E};var z=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(y,ke,we){"use strict";var x=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};ke.exports=function(ee,de,E,ne){return de=de||"&",E=E||"=",ee===null&&(ee=void 0),typeof ee=="object"?ie(ae(ee),function(re){var oe=encodeURIComponent(x(re))+E;return z(ee[re])?ie(ee[re],function(le){return oe+encodeURIComponent(x(le))}).join(de):oe+encodeURIComponent(x(ee[re]))}).join(de):ne?encodeURIComponent(x(ne))+E+encodeURIComponent(x(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function ie(ee,de){if(ee.map)return ee.map(de);for(var E=[],ne=0;ne<ee.length;ne++)E.push(de(ee[ne],ne));return E}var ae=Object.keys||function(ee){var de=[];for(var E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&de.push(E);return de}},{}],385:[function(y,ke,we){"use strict";we.decode=we.parse=y("./decode"),we.encode=we.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,ke,we){"use strict";var x=y("process-nextick-args"),z=Object.keys||function(he){var pe=[];for(var ve in he)pe.push(ve);return pe};ke.exports=re;var ie=Object.create(y("core-util-is"));ie.inherits=y("inherits");var ae=y("./_stream_readable"),ee=y("./_stream_writable");ie.inherits(re,ae);for(var de=z(ee.prototype),E=0;E<de.length;E++){var ne=de[E];re.prototype[ne]||(re.prototype[ne]=ee.prototype[ne])}function re(he){if(!(this instanceof re))return new re(he);ae.call(this,he),ee.call(this,he),he&&he.readable===!1&&(this.readable=!1),he&&he.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,he&&he.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",oe)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oe(){this.allowHalfOpen||this._writableState.ended||x.nextTick(le,this)}function le(he){he.end()}Object.defineProperty(re.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}}),re.prototype._destroy=function(he,pe){this.push(null),this.end(),x.nextTick(pe,he)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,ke,we){"use strict";ke.exports=ie;var x=y("./_stream_transform"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(ie,x);function ie(ae){if(!(this instanceof ie))return new ie(ae);x.call(this,ae)}ie.prototype._transform=function(ae,ee,de){de(null,ae)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,ke,we){(function(x,z){(function(){"use strict";var ie=y("process-nextick-args");ke.exports=be;var ae=y("isarray"),ee;be.ReadableState=ye;var de=y("events").EventEmitter,E=function(te,fe){return te.listeners(fe).length},ne=y("./internal/streams/stream"),re=y("safe-buffer").Buffer,oe=z.Uint8Array||function(){};function le(te){return re.from(te)}function he(te){return re.isBuffer(te)||te instanceof oe}var pe=Object.create(y("core-util-is"));pe.inherits=y("inherits");var ve=y("util"),ce=void 0;ve&&ve.debuglog?ce=ve.debuglog("stream"):ce=function(){};var me=y("./internal/streams/BufferList"),Ee=y("./internal/streams/destroy"),Te;pe.inherits(be,ne);var Re=["error","close","destroy","pause","resume"];function _e(te,fe,Oe){if(typeof te.prependListener=="function")return te.prependListener(fe,Oe);!te._events||!te._events[fe]?te.on(fe,Oe):ae(te._events[fe])?te._events[fe].unshift(Oe):te._events[fe]=[Oe,te._events[fe]]}function ye(te,fe){ee=ee||y("./_stream_duplex"),te=te||{};var Oe=fe instanceof ee;this.objectMode=!!te.objectMode,Oe&&(this.objectMode=this.objectMode||!!te.readableObjectMode);var Ue=te.highWaterMark,xe=te.readableHighWaterMark,Ce=this.objectMode?16:16*1024;Ue||Ue===0?this.highWaterMark=Ue:Oe&&(xe||xe===0)?this.highWaterMark=xe:this.highWaterMark=Ce,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new me,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(Te||(Te=y("string_decoder/").StringDecoder),this.decoder=new Te(te.encoding),this.encoding=te.encoding)}function be(te){if(ee=ee||y("./_stream_duplex"),!(this instanceof be))return new be(te);this._readableState=new ye(te,this),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),ne.call(this)}Object.defineProperty(be.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),be.prototype.destroy=Ee.destroy,be.prototype._undestroy=Ee.undestroy,be.prototype._destroy=function(te,fe){this.push(null),fe(te)},be.prototype.push=function(te,fe){var Oe=this._readableState,Ue;return Oe.objectMode?Ue=!0:typeof te=="string"&&(fe=fe||Oe.defaultEncoding,fe!==Oe.encoding&&(te=re.from(te,fe),fe=""),Ue=!0),Se(this,te,fe,!1,Ue)},be.prototype.unshift=function(te){return Se(this,te,null,!0,!1)};function Se(te,fe,Oe,Ue,xe){var Ce=te._readableState;if(fe===null)Ce.reading=!1,Ve(te,Ce);else{var je;xe||(je=Me(Ce,fe)),je?te.emit("error",je):Ce.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!Ce.objectMode&&Object.getPrototypeOf(fe)!==re.prototype&&(fe=le(fe)),Ue?Ce.endEmitted?te.emit("error",new Error("stream.unshift() after end event")):Ie(te,Ce,fe,!0):Ce.ended?te.emit("error",new Error("stream.push() after EOF")):(Ce.reading=!1,Ce.decoder&&!Oe?(fe=Ce.decoder.write(fe),Ce.objectMode||fe.length!==0?Ie(te,Ce,fe,!1):We(te,Ce)):Ie(te,Ce,fe,!1))):Ue||(Ce.reading=!1)}return Ae(Ce)}function Ie(te,fe,Oe,Ue){fe.flowing&&fe.length===0&&!fe.sync?(te.emit("data",Oe),te.read(0)):(fe.length+=fe.objectMode?1:Oe.length,Ue?fe.buffer.unshift(Oe):fe.buffer.push(Oe),fe.needReadable&&nt(te)),We(te,fe)}function Me(te,fe){var Oe;return!he(fe)&&typeof fe!="string"&&fe!==void 0&&!te.objectMode&&(Oe=new TypeError("Invalid non-string/buffer chunk")),Oe}function Ae(te){return!te.ended&&(te.needReadable||te.length<te.highWaterMark||te.length===0)}be.prototype.isPaused=function(){return this._readableState.flowing===!1},be.prototype.setEncoding=function(te){return Te||(Te=y("string_decoder/").StringDecoder),this._readableState.decoder=new Te(te),this._readableState.encoding=te,this};var De=8388608;function He(te){return te>=De?te=De:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function Ke(te,fe){return te<=0||fe.length===0&&fe.ended?0:fe.objectMode?1:te!==te?fe.flowing&&fe.length?fe.buffer.head.data.length:fe.length:(te>fe.highWaterMark&&(fe.highWaterMark=He(te)),te<=fe.length?te:fe.ended?fe.length:(fe.needReadable=!0,0))}be.prototype.read=function(te){ce("read",te),te=parseInt(te,10);var fe=this._readableState,Oe=te;if(te!==0&&(fe.emittedReadable=!1),te===0&&fe.needReadable&&(fe.length>=fe.highWaterMark||fe.ended))return ce("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?Je(this):nt(this),null;if(te=Ke(te,fe),te===0&&fe.ended)return fe.length===0&&Je(this),null;var Ue=fe.needReadable;ce("need readable",Ue),(fe.length===0||fe.length-te<fe.highWaterMark)&&(Ue=!0,ce("length less than watermark",Ue)),fe.ended||fe.reading?(Ue=!1,ce("reading or ended",Ue)):Ue&&(ce("do read"),fe.reading=!0,fe.sync=!0,fe.length===0&&(fe.needReadable=!0),this._read(fe.highWaterMark),fe.sync=!1,fe.reading||(te=Ke(Oe,fe)));var xe;return te>0?xe=at(te,fe):xe=null,xe===null?(fe.needReadable=!0,te=0):fe.length-=te,fe.length===0&&(fe.ended||(fe.needReadable=!0),Oe!==te&&fe.ended&&Je(this)),xe!==null&&this.emit("data",xe),xe};function Ve(te,fe){if(!fe.ended){if(fe.decoder){var Oe=fe.decoder.end();Oe&&Oe.length&&(fe.buffer.push(Oe),fe.length+=fe.objectMode?1:Oe.length)}fe.ended=!0,nt(te)}}function nt(te){var fe=te._readableState;fe.needReadable=!1,fe.emittedReadable||(ce("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?ie.nextTick(Ne,te):Ne(te))}function Ne(te){ce("emit readable"),te.emit("readable"),Ge(te)}function We(te,fe){fe.readingMore||(fe.readingMore=!0,ie.nextTick($e,te,fe))}function $e(te,fe){for(var Oe=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&(ce("maybeReadMore read 0"),te.read(0),Oe!==fe.length);)Oe=fe.length;fe.readingMore=!1}be.prototype._read=function(te){this.emit("error",new Error("_read() is not implemented"))},be.prototype.pipe=function(te,fe){var Oe=this,Ue=this._readableState;switch(Ue.pipesCount){case 0:Ue.pipes=te;break;case 1:Ue.pipes=[Ue.pipes,te];break;default:Ue.pipes.push(te);break}Ue.pipesCount+=1,ce("pipe count=%d opts=%j",Ue.pipesCount,fe);var xe=(!fe||fe.end!==!1)&&te!==x.stdout&&te!==x.stderr,Ce=xe?Ze:vt;Ue.endEmitted?ie.nextTick(Ce):Oe.once("end",Ce),te.on("unpipe",je);function je(At,gt){ce("onunpipe"),At===Oe&&gt&&gt.hasUnpiped===!1&&(gt.hasUnpiped=!0,ct())}function Ze(){ce("onend"),te.end()}var tt=rt(Oe);te.on("drain",tt);var it=!1;function ct(){ce("cleanup"),te.removeListener("close",wt),te.removeListener("finish",Et),te.removeListener("drain",tt),te.removeListener("error",St),te.removeListener("unpipe",je),Oe.removeListener("end",Ze),Oe.removeListener("end",vt),Oe.removeListener("data",pt),it=!0,Ue.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&tt()}var ut=!1;Oe.on("data",pt);function pt(At){ce("ondata"),ut=!1;var gt=te.write(At);gt===!1&&!ut&&((Ue.pipesCount===1&&Ue.pipes===te||Ue.pipesCount>1&&Pe(Ue.pipes,te)!==-1)&&!it&&(ce("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,ut=!0),Oe.pause())}function St(At){ce("onerror",At),vt(),te.removeListener("error",St),E(te,"error")===0&&te.emit("error",At)}_e(te,"error",St);function wt(){te.removeListener("finish",Et),vt()}te.once("close",wt);function Et(){ce("onfinish"),te.removeListener("close",wt),vt()}te.once("finish",Et);function vt(){ce("unpipe"),Oe.unpipe(te)}return te.emit("pipe",Oe),Ue.flowing||(ce("pipe resume"),Oe.resume()),te};function rt(te){return function(){var fe=te._readableState;ce("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&E(te,"data")&&(fe.flowing=!0,Ge(te))}}be.prototype.unpipe=function(te){var fe=this._readableState,Oe={hasUnpiped:!1};if(fe.pipesCount===0)return this;if(fe.pipesCount===1)return te&&te!==fe.pipes?this:(te||(te=fe.pipes),fe.pipes=null,fe.pipesCount=0,fe.flowing=!1,te&&te.emit("unpipe",this,Oe),this);if(!te){var Ue=fe.pipes,xe=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var Ce=0;Ce<xe;Ce++)Ue[Ce].emit("unpipe",this,Oe);return this}var je=Pe(fe.pipes,te);return je===-1?this:(fe.pipes.splice(je,1),fe.pipesCount-=1,fe.pipesCount===1&&(fe.pipes=fe.pipes[0]),te.emit("unpipe",this,Oe),this)},be.prototype.on=function(te,fe){var Oe=ne.prototype.on.call(this,te,fe);if(te==="data")this._readableState.flowing!==!1&&this.resume();else if(te==="readable"){var Ue=this._readableState;!Ue.endEmitted&&!Ue.readableListening&&(Ue.readableListening=Ue.needReadable=!0,Ue.emittedReadable=!1,Ue.reading?Ue.length&&nt(this):ie.nextTick(et,this))}return Oe},be.prototype.addListener=be.prototype.on;function et(te){ce("readable nexttick read 0"),te.read(0)}be.prototype.resume=function(){var te=this._readableState;return te.flowing||(ce("resume"),te.flowing=!0,Xe(this,te)),this};function Xe(te,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,ie.nextTick(Ye,te,fe))}function Ye(te,fe){fe.reading||(ce("resume read 0"),te.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,te.emit("resume"),Ge(te),fe.flowing&&!fe.reading&&te.read(0)}be.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ge(te){var fe=te._readableState;for(ce("flow",fe.flowing);fe.flowing&&te.read()!==null;);}be.prototype.wrap=function(te){var fe=this,Oe=this._readableState,Ue=!1;te.on("end",function(){if(ce("wrapped end"),Oe.decoder&&!Oe.ended){var je=Oe.decoder.end();je&&je.length&&fe.push(je)}fe.push(null)}),te.on("data",function(je){if(ce("wrapped data"),Oe.decoder&&(je=Oe.decoder.write(je)),!(Oe.objectMode&&je==null)&&!(!Oe.objectMode&&(!je||!je.length))){var Ze=fe.push(je);Ze||(Ue=!0,te.pause())}});for(var xe in te)this[xe]===void 0&&typeof te[xe]=="function"&&(this[xe]=function(je){return function(){return te[je].apply(te,arguments)}}(xe));for(var Ce=0;Ce<Re.length;Ce++)te.on(Re[Ce],this.emit.bind(this,Re[Ce]));return this._read=function(je){ce("wrapped _read",je),Ue&&(Ue=!1,te.resume())},this},Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),be._fromList=at;function at(te,fe){if(fe.length===0)return null;var Oe;return fe.objectMode?Oe=fe.buffer.shift():!te||te>=fe.length?(fe.decoder?Oe=fe.buffer.join(""):fe.buffer.length===1?Oe=fe.buffer.head.data:Oe=fe.buffer.concat(fe.length),fe.buffer.clear()):Oe=Qe(te,fe.buffer,fe.decoder),Oe}function Qe(te,fe,Oe){var Ue;return te<fe.head.data.length?(Ue=fe.head.data.slice(0,te),fe.head.data=fe.head.data.slice(te)):te===fe.head.data.length?Ue=fe.shift():Ue=Oe?ft(te,fe):ot(te,fe),Ue}function ft(te,fe){var Oe=fe.head,Ue=1,xe=Oe.data;for(te-=xe.length;Oe=Oe.next;){var Ce=Oe.data,je=te>Ce.length?Ce.length:te;if(je===Ce.length?xe+=Ce:xe+=Ce.slice(0,te),te-=je,te===0){je===Ce.length?(++Ue,Oe.next?fe.head=Oe.next:fe.head=fe.tail=null):(fe.head=Oe,Oe.data=Ce.slice(je));break}++Ue}return fe.length-=Ue,xe}function ot(te,fe){var Oe=re.allocUnsafe(te),Ue=fe.head,xe=1;for(Ue.data.copy(Oe),te-=Ue.data.length;Ue=Ue.next;){var Ce=Ue.data,je=te>Ce.length?Ce.length:te;if(Ce.copy(Oe,Oe.length-te,0,je),te-=je,te===0){je===Ce.length?(++xe,Ue.next?fe.head=Ue.next:fe.head=fe.tail=null):(fe.head=Ue,Ue.data=Ce.slice(je));break}++xe}return fe.length-=xe,Oe}function Je(te){var fe=te._readableState;if(fe.length>0)throw new Error('"endReadable()" called on non-empty stream');fe.endEmitted||(fe.ended=!0,ie.nextTick(Fe,fe,te))}function Fe(te,fe){!te.endEmitted&&te.length===0&&(te.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function Pe(te,fe){for(var Oe=0,Ue=te.length;Oe<Ue;Oe++)if(te[Oe]===fe)return Oe;return-1}}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(y,ke,we){"use strict";ke.exports=ae;var x=y("./_stream_duplex"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(ae,x);function ie(E,ne){var re=this._transformState;re.transforming=!1;var oe=re.writecb;if(!oe)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,ne!=null&&this.push(ne),oe(E);var le=this._readableState;le.reading=!1,(le.needReadable||le.length<le.highWaterMark)&&this._read(le.highWaterMark)}function ae(E){if(!(this instanceof ae))return new ae(E);x.call(this,E),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",ee)}function ee(){var E=this;typeof this._flush=="function"?this._flush(function(ne,re){de(E,ne,re)}):de(this,null,null)}ae.prototype.push=function(E,ne){return this._transformState.needTransform=!1,x.prototype.push.call(this,E,ne)},ae.prototype._transform=function(E,ne,re){throw new Error("_transform() is not implemented")},ae.prototype._write=function(E,ne,re){var oe=this._transformState;if(oe.writecb=re,oe.writechunk=E,oe.writeencoding=ne,!oe.transforming){var le=this._readableState;(oe.needTransform||le.needReadable||le.length<le.highWaterMark)&&this._read(le.highWaterMark)}},ae.prototype._read=function(E){var ne=this._transformState;ne.writechunk!==null&&ne.writecb&&!ne.transforming?(ne.transforming=!0,this._transform(ne.writechunk,ne.writeencoding,ne.afterTransform)):ne.needTransform=!0},ae.prototype._destroy=function(E,ne){var re=this;x.prototype._destroy.call(this,E,function(oe){ne(oe),re.emit("close")})};function de(E,ne,re){if(ne)return E.emit("error",ne);if(re!=null&&E.push(re),E._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(E._transformState.transforming)throw new Error("Calling transform done when still transforming");return E.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(y,ke,we){(function(x,z,ie){(function(){"use strict";var ae=y("process-nextick-args");ke.exports=_e;function ee(Ye,Ge,at){this.chunk=Ye,this.encoding=Ge,this.callback=at,this.next=null}function de(Ye){var Ge=this;this.next=null,this.entry=null,this.finish=function(){Xe(Ge,Ye)}}var E=!x.browser&&["v0.10","v0.9."].indexOf(x.version.slice(0,5))>-1?ie:ae.nextTick,ne;_e.WritableState=Te;var re=Object.create(y("core-util-is"));re.inherits=y("inherits");var oe={deprecate:y("util-deprecate")},le=y("./internal/streams/stream"),he=y("safe-buffer").Buffer,pe=z.Uint8Array||function(){};function ve(Ye){return he.from(Ye)}function ce(Ye){return he.isBuffer(Ye)||Ye instanceof pe}var me=y("./internal/streams/destroy");re.inherits(_e,le);function Ee(){}function Te(Ye,Ge){ne=ne||y("./_stream_duplex"),Ye=Ye||{};var at=Ge instanceof ne;this.objectMode=!!Ye.objectMode,at&&(this.objectMode=this.objectMode||!!Ye.writableObjectMode);var Qe=Ye.highWaterMark,ft=Ye.writableHighWaterMark,ot=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:at&&(ft||ft===0)?this.highWaterMark=ft:this.highWaterMark=ot,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Je=Ye.decodeStrings===!1;this.decodeStrings=!Je,this.defaultEncoding=Ye.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){He(Ge,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new de(this)}Te.prototype.getBuffer=function(){for(var Ge=this.bufferedRequest,at=[];Ge;)at.push(Ge),Ge=Ge.next;return at},function(){try{Object.defineProperty(Te.prototype,"buffer",{get:oe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ye){}}();var Re;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Re=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:function(Ye){return Re.call(this,Ye)?!0:this!==_e?!1:Ye&&Ye._writableState instanceof Te}})):Re=function(Ye){return Ye instanceof this};function _e(Ye){if(ne=ne||y("./_stream_duplex"),!Re.call(_e,this)&&!(this instanceof ne))return new _e(Ye);this._writableState=new Te(Ye,this),this.writable=!0,Ye&&(typeof Ye.write=="function"&&(this._write=Ye.write),typeof Ye.writev=="function"&&(this._writev=Ye.writev),typeof Ye.destroy=="function"&&(this._destroy=Ye.destroy),typeof Ye.final=="function"&&(this._final=Ye.final)),le.call(this)}_e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ye(Ye,Ge){var at=new Error("write after end");Ye.emit("error",at),ae.nextTick(Ge,at)}function be(Ye,Ge,at,Qe){var ft=!0,ot=!1;return at===null?ot=new TypeError("May not write null values to stream"):typeof at!="string"&&at!==void 0&&!Ge.objectMode&&(ot=new TypeError("Invalid non-string/buffer chunk")),ot&&(Ye.emit("error",ot),ae.nextTick(Qe,ot),ft=!1),ft}_e.prototype.write=function(Ye,Ge,at){var Qe=this._writableState,ft=!1,ot=!Qe.objectMode&&ce(Ye);return ot&&!he.isBuffer(Ye)&&(Ye=ve(Ye)),typeof Ge=="function"&&(at=Ge,Ge=null),ot?Ge="buffer":Ge||(Ge=Qe.defaultEncoding),typeof at!="function"&&(at=Ee),Qe.ended?ye(this,at):(ot||be(this,Qe,Ye,at))&&(Qe.pendingcb++,ft=Ie(this,Qe,ot,Ye,Ge,at)),ft},_e.prototype.cork=function(){var Ye=this._writableState;Ye.corked++},_e.prototype.uncork=function(){var Ye=this._writableState;Ye.corked&&(Ye.corked--,!Ye.writing&&!Ye.corked&&!Ye.finished&&!Ye.bufferProcessing&&Ye.bufferedRequest&&nt(this,Ye))},_e.prototype.setDefaultEncoding=function(Ge){if(typeof Ge=="string"&&(Ge=Ge.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ge+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ge);return this._writableState.defaultEncoding=Ge,this};function Se(Ye,Ge,at){return!Ye.objectMode&&Ye.decodeStrings!==!1&&typeof Ge=="string"&&(Ge=he.from(Ge,at)),Ge}Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ie(Ye,Ge,at,Qe,ft,ot){if(!at){var Je=Se(Ge,Qe,ft);Qe!==Je&&(at=!0,ft="buffer",Qe=Je)}var Fe=Ge.objectMode?1:Qe.length;Ge.length+=Fe;var Pe=Ge.length<Ge.highWaterMark;if(Pe||(Ge.needDrain=!0),Ge.writing||Ge.corked){var te=Ge.lastBufferedRequest;Ge.lastBufferedRequest={chunk:Qe,encoding:ft,isBuf:at,callback:ot,next:null},te?te.next=Ge.lastBufferedRequest:Ge.bufferedRequest=Ge.lastBufferedRequest,Ge.bufferedRequestCount+=1}else Me(Ye,Ge,!1,Fe,Qe,ft,ot);return Pe}function Me(Ye,Ge,at,Qe,ft,ot,Je){Ge.writelen=Qe,Ge.writecb=Je,Ge.writing=!0,Ge.sync=!0,at?Ye._writev(ft,Ge.onwrite):Ye._write(ft,ot,Ge.onwrite),Ge.sync=!1}function Ae(Ye,Ge,at,Qe,ft){--Ge.pendingcb,at?(ae.nextTick(ft,Qe),ae.nextTick(rt,Ye,Ge),Ye._writableState.errorEmitted=!0,Ye.emit("error",Qe)):(ft(Qe),Ye._writableState.errorEmitted=!0,Ye.emit("error",Qe),rt(Ye,Ge))}function De(Ye){Ye.writing=!1,Ye.writecb=null,Ye.length-=Ye.writelen,Ye.writelen=0}function He(Ye,Ge){var at=Ye._writableState,Qe=at.sync,ft=at.writecb;if(De(at),Ge)Ae(Ye,at,Qe,Ge,ft);else{var ot=Ne(at);!ot&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&nt(Ye,at),Qe?E(Ke,Ye,at,ot,ft):Ke(Ye,at,ot,ft)}}function Ke(Ye,Ge,at,Qe){at||Ve(Ye,Ge),Ge.pendingcb--,Qe(),rt(Ye,Ge)}function Ve(Ye,Ge){Ge.length===0&&Ge.needDrain&&(Ge.needDrain=!1,Ye.emit("drain"))}function nt(Ye,Ge){Ge.bufferProcessing=!0;var at=Ge.bufferedRequest;if(Ye._writev&&at&&at.next){var Qe=Ge.bufferedRequestCount,ft=new Array(Qe),ot=Ge.corkedRequestsFree;ot.entry=at;for(var Je=0,Fe=!0;at;)ft[Je]=at,at.isBuf||(Fe=!1),at=at.next,Je+=1;ft.allBuffers=Fe,Me(Ye,Ge,!0,Ge.length,ft,"",ot.finish),Ge.pendingcb++,Ge.lastBufferedRequest=null,ot.next?(Ge.corkedRequestsFree=ot.next,ot.next=null):Ge.corkedRequestsFree=new de(Ge),Ge.bufferedRequestCount=0}else{for(;at;){var Pe=at.chunk,te=at.encoding,fe=at.callback,Oe=Ge.objectMode?1:Pe.length;if(Me(Ye,Ge,!1,Oe,Pe,te,fe),at=at.next,Ge.bufferedRequestCount--,Ge.writing)break}at===null&&(Ge.lastBufferedRequest=null)}Ge.bufferedRequest=at,Ge.bufferProcessing=!1}_e.prototype._write=function(Ye,Ge,at){at(new Error("_write() is not implemented"))},_e.prototype._writev=null,_e.prototype.end=function(Ye,Ge,at){var Qe=this._writableState;typeof Ye=="function"?(at=Ye,Ye=null,Ge=null):typeof Ge=="function"&&(at=Ge,Ge=null),Ye!=null&&this.write(Ye,Ge),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&et(this,Qe,at)};function Ne(Ye){return Ye.ending&&Ye.length===0&&Ye.bufferedRequest===null&&!Ye.finished&&!Ye.writing}function We(Ye,Ge){Ye._final(function(at){Ge.pendingcb--,at&&Ye.emit("error",at),Ge.prefinished=!0,Ye.emit("prefinish"),rt(Ye,Ge)})}function $e(Ye,Ge){!Ge.prefinished&&!Ge.finalCalled&&(typeof Ye._final=="function"?(Ge.pendingcb++,Ge.finalCalled=!0,ae.nextTick(We,Ye,Ge)):(Ge.prefinished=!0,Ye.emit("prefinish")))}function rt(Ye,Ge){var at=Ne(Ge);return at&&($e(Ye,Ge),Ge.pendingcb===0&&(Ge.finished=!0,Ye.emit("finish"))),at}function et(Ye,Ge,at){Ge.ending=!0,rt(Ye,Ge),at&&(Ge.finished?ae.nextTick(at):Ye.once("finish",at)),Ge.ended=!0,Ye.writable=!1}function Xe(Ye,Ge,at){var Qe=Ye.entry;for(Ye.entry=null;Qe;){var ft=Qe.callback;Ge.pendingcb--,ft(at),Qe=Qe.next}Ge.corkedRequestsFree?Ge.corkedRequestsFree.next=Ye:Ge.corkedRequestsFree=Ye}Object.defineProperty(_e.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ye){this._writableState&&(this._writableState.destroyed=Ye)}}),_e.prototype.destroy=me.destroy,_e.prototype._undestroy=me.undestroy,_e.prototype._destroy=function(Ye,Ge){this.end(),Ge(Ye)}}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(y,ke,we){"use strict";function x(ee,de){if(!(ee instanceof de))throw new TypeError("Cannot call a class as a function")}var z=y("safe-buffer").Buffer,ie=y("util");function ae(ee,de,E){ee.copy(de,E)}ke.exports=function(){function ee(){x(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(E){var ne={data:E,next:null};this.length>0?this.tail.next=ne:this.head=ne,this.tail=ne,++this.length},ee.prototype.unshift=function(E){var ne={data:E,next:this.head};this.length===0&&(this.tail=ne),this.head=ne,++this.length},ee.prototype.shift=function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(E){if(this.length===0)return"";for(var ne=this.head,re=""+ne.data;ne=ne.next;)re+=E+ne.data;return re},ee.prototype.concat=function(E){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var ne=z.allocUnsafe(E>>>0),re=this.head,oe=0;re;)ae(re.data,ne,oe),oe+=re.data.length,re=re.next;return ne},ee}(),ie&&ie.inspect&&ie.inspect.custom&&(ke.exports.prototype[ie.inspect.custom]=function(){var ee=ie.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,ke,we){"use strict";var x=y("process-nextick-args");function z(ee,de){var E=this,ne=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return ne||re?(de?de(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&x.nextTick(ae,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(oe){!de&&oe?(x.nextTick(ae,E,oe),E._writableState&&(E._writableState.errorEmitted=!0)):de&&de(oe)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ae(ee,de){ee.emit("error",de)}ke.exports={destroy:z,undestroy:ie}},{"process-nextick-args":380}],393:[function(y,ke,we){ke.exports=y("events").EventEmitter},{events:344}],394:[function(y,ke,we){we=ke.exports=y("./lib/_stream_readable.js"),we.Stream=we,we.Readable=we,we.Writable=y("./lib/_stream_writable.js"),we.Duplex=y("./lib/_stream_duplex.js"),we.Transform=y("./lib/_stream_transform.js"),we.PassThrough=y("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(y,ke,we){var x=function(z){"use strict";var ie=Object.prototype,ae=ie.hasOwnProperty,ee,de=typeof Symbol=="function"?Symbol:{},E=de.iterator||"@@iterator",ne=de.asyncIterator||"@@asyncIterator",re=de.toStringTag||"@@toStringTag";function oe($e,rt,et){return Object.defineProperty($e,rt,{value:et,enumerable:!0,configurable:!0,writable:!0}),$e[rt]}try{oe({},"")}catch($e){oe=function(rt,et,Xe){return rt[et]=Xe}}function le($e,rt,et,Xe){var Ye=rt&&rt.prototype instanceof Te?rt:Te,Ge=Object.create(Ye.prototype),at=new nt(Xe||[]);return Ge._invoke=De($e,et,at),Ge}z.wrap=le;function he($e,rt,et){try{return{type:"normal",arg:$e.call(rt,et)}}catch(Xe){return{type:"throw",arg:Xe}}}var pe="suspendedStart",ve="suspendedYield",ce="executing",me="completed",Ee={};function Te(){}function Re(){}function _e(){}var ye={};oe(ye,E,function(){return this});var be=Object.getPrototypeOf,Se=be&&be(be(Ne([])));Se&&Se!==ie&&ae.call(Se,E)&&(ye=Se);var Ie=_e.prototype=Te.prototype=Object.create(ye);Re.prototype=_e,oe(Ie,"constructor",_e),oe(_e,"constructor",Re),Re.displayName=oe(_e,re,"GeneratorFunction");function Me($e){["next","throw","return"].forEach(function(rt){oe($e,rt,function(et){return this._invoke(rt,et)})})}z.isGeneratorFunction=function($e){var rt=typeof $e=="function"&&$e.constructor;return rt?rt===Re||(rt.displayName||rt.name)==="GeneratorFunction":!1},z.mark=function($e){return Object.setPrototypeOf?Object.setPrototypeOf($e,_e):($e.__proto__=_e,oe($e,re,"GeneratorFunction")),$e.prototype=Object.create(Ie),$e},z.awrap=function($e){return{__await:$e}};function Ae($e,rt){function et(Ge,at,Qe,ft){var ot=he($e[Ge],$e,at);if(ot.type==="throw")ft(ot.arg);else{var Je=ot.arg,Fe=Je.value;return Fe&&typeof Fe=="object"&&ae.call(Fe,"__await")?rt.resolve(Fe.__await).then(function(Pe){et("next",Pe,Qe,ft)},function(Pe){et("throw",Pe,Qe,ft)}):rt.resolve(Fe).then(function(Pe){Je.value=Pe,Qe(Je)},function(Pe){return et("throw",Pe,Qe,ft)})}}var Xe;function Ye(Ge,at){function Qe(){return new rt(function(ft,ot){et(Ge,at,ft,ot)})}return Xe=Xe?Xe.then(Qe,Qe):Qe()}this._invoke=Ye}Me(Ae.prototype),oe(Ae.prototype,ne,function(){return this}),z.AsyncIterator=Ae,z.async=function($e,rt,et,Xe,Ye){Ye===void 0&&(Ye=Promise);var Ge=new Ae(le($e,rt,et,Xe),Ye);return z.isGeneratorFunction(rt)?Ge:Ge.next().then(function(at){return at.done?at.value:Ge.next()})};function De($e,rt,et){var Xe=pe;return function(Ge,at){if(Xe===ce)throw new Error("Generator is already running");if(Xe===me){if(Ge==="throw")throw at;return We()}for(et.method=Ge,et.arg=at;;){var Qe=et.delegate;if(Qe){var ft=He(Qe,et);if(ft){if(ft===Ee)continue;return ft}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(Xe===pe)throw Xe=me,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);Xe=ce;var ot=he($e,rt,et);if(ot.type==="normal"){if(Xe=et.done?me:ve,ot.arg===Ee)continue;return{value:ot.arg,done:et.done}}else ot.type==="throw"&&(Xe=me,et.method="throw",et.arg=ot.arg)}}}function He($e,rt){var et=$e.iterator[rt.method];if(et===ee){if(rt.delegate=null,rt.method==="throw"){if($e.iterator.return&&(rt.method="return",rt.arg=ee,He($e,rt),rt.method==="throw"))return Ee;rt.method="throw",rt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ee}var Xe=he(et,$e.iterator,rt.arg);if(Xe.type==="throw")return rt.method="throw",rt.arg=Xe.arg,rt.delegate=null,Ee;var Ye=Xe.arg;if(!Ye)return rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,Ee;if(Ye.done)rt[$e.resultName]=Ye.value,rt.next=$e.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=ee);else return Ye;return rt.delegate=null,Ee}Me(Ie),oe(Ie,re,"Generator"),oe(Ie,E,function(){return this}),oe(Ie,"toString",function(){return"[object Generator]"});function Ke($e){var rt={tryLoc:$e[0]};1 in $e&&(rt.catchLoc=$e[1]),2 in $e&&(rt.finallyLoc=$e[2],rt.afterLoc=$e[3]),this.tryEntries.push(rt)}function Ve($e){var rt=$e.completion||{};rt.type="normal",delete rt.arg,$e.completion=rt}function nt($e){this.tryEntries=[{tryLoc:"root"}],$e.forEach(Ke,this),this.reset(!0)}z.keys=function($e){var rt=[];for(var et in $e)rt.push(et);return rt.reverse(),function Xe(){for(;rt.length;){var Ye=rt.pop();if(Ye in $e)return Xe.value=Ye,Xe.done=!1,Xe}return Xe.done=!0,Xe}};function Ne($e){if($e){var rt=$e[E];if(rt)return rt.call($e);if(typeof $e.next=="function")return $e;if(!isNaN($e.length)){var et=-1,Xe=function Ye(){for(;++et<$e.length;)if(ae.call($e,et))return Ye.value=$e[et],Ye.done=!1,Ye;return Ye.value=ee,Ye.done=!0,Ye};return Xe.next=Xe}}return{next:We}}z.values=Ne;function We(){return{value:ee,done:!0}}return nt.prototype={constructor:nt,reset:function($e){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach(Ve),!$e)for(var rt in this)rt.charAt(0)==="t"&&ae.call(this,rt)&&!isNaN(+rt.slice(1))&&(this[rt]=ee)},stop:function(){this.done=!0;var $e=this.tryEntries[0],rt=$e.completion;if(rt.type==="throw")throw rt.arg;return this.rval},dispatchException:function($e){if(this.done)throw $e;var rt=this;function et(ft,ot){return Ge.type="throw",Ge.arg=$e,rt.next=ft,ot&&(rt.method="next",rt.arg=ee),!!ot}for(var Xe=this.tryEntries.length-1;Xe>=0;--Xe){var Ye=this.tryEntries[Xe],Ge=Ye.completion;if(Ye.tryLoc==="root")return et("end");if(Ye.tryLoc<=this.prev){var at=ae.call(Ye,"catchLoc"),Qe=ae.call(Ye,"finallyLoc");if(at&&Qe){if(this.prev<Ye.catchLoc)return et(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return et(Ye.finallyLoc)}else if(at){if(this.prev<Ye.catchLoc)return et(Ye.catchLoc,!0)}else if(Qe){if(this.prev<Ye.finallyLoc)return et(Ye.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function($e,rt){for(var et=this.tryEntries.length-1;et>=0;--et){var Xe=this.tryEntries[et];if(Xe.tryLoc<=this.prev&&ae.call(Xe,"finallyLoc")&&this.prev<Xe.finallyLoc){var Ye=Xe;break}}Ye&&($e==="break"||$e==="continue")&&Ye.tryLoc<=rt&&rt<=Ye.finallyLoc&&(Ye=null);var Ge=Ye?Ye.completion:{};return Ge.type=$e,Ge.arg=rt,Ye?(this.method="next",this.next=Ye.finallyLoc,Ee):this.complete(Ge)},complete:function($e,rt){if($e.type==="throw")throw $e.arg;return $e.type==="break"||$e.type==="continue"?this.next=$e.arg:$e.type==="return"?(this.rval=this.arg=$e.arg,this.method="return",this.next="end"):$e.type==="normal"&&rt&&(this.next=rt),Ee},finish:function($e){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.finallyLoc===$e)return this.complete(et.completion,et.afterLoc),Ve(et),Ee}},catch:function($e){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.tryLoc===$e){var Xe=et.completion;if(Xe.type==="throw"){var Ye=Xe.arg;Ve(et)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function($e,rt,et){return this.delegate={iterator:Ne($e),resultName:rt,nextLoc:et},this.method==="next"&&(this.arg=ee),Ee}},z}(typeof ke=="object"?ke.exports:{});try{regeneratorRuntime=x}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},{}],396:[function(y,ke,we){var x=y("buffer"),z=x.Buffer;function ie(ee,de){for(var E in ee)de[E]=ee[E]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?ke.exports=x:(ie(x,we),we.Buffer=ae);function ae(ee,de,E){return z(ee,de,E)}ie(z,ae),ae.from=function(ee,de,E){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,de,E)},ae.alloc=function(ee,de,E){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ne=z(ee);return de!==void 0?typeof E=="string"?ne.fill(de,E):ne.fill(de):ne.fill(0),ne},ae.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},ae.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(ee)}},{buffer:90}],397:[function(y,ke,we){(function(x){(function(){(function(z){z.parser=function(Je,Fe){return new ae(Je,Fe)},z.SAXParser=ae,z.SAXStream=le,z.createStream=oe,z.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ae(Je,Fe){if(!(this instanceof ae))return new ae(Je,Fe);var Pe=this;de(Pe),Pe.q=Pe.c="",Pe.bufferCheckPosition=z.MAX_BUFFER_LENGTH,Pe.opt=Fe||{},Pe.opt.lowercase=Pe.opt.lowercase||Pe.opt.lowercasetags,Pe.looseCase=Pe.opt.lowercase?"toLowerCase":"toUpperCase",Pe.tags=[],Pe.closed=Pe.closedRoot=Pe.sawRoot=!1,Pe.tag=Pe.error=null,Pe.strict=!!Je,Pe.noscript=!!(Je||Pe.opt.noscript),Pe.state=Ae.BEGIN,Pe.strictEntities=Pe.opt.strictEntities,Pe.ENTITIES=Pe.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),Pe.attribList=[],Pe.opt.xmlns&&(Pe.ns=Object.create(me)),Pe.trackPosition=Pe.opt.position!==!1,Pe.trackPosition&&(Pe.position=Pe.line=Pe.column=0),He(Pe,"onready")}Object.create||(Object.create=function(Je){function Fe(){}Fe.prototype=Je;var Pe=new Fe;return Pe}),Object.keys||(Object.keys=function(Je){var Fe=[];for(var Pe in Je)Je.hasOwnProperty(Pe)&&Fe.push(Pe);return Fe});function ee(Je){for(var Fe=Math.max(z.MAX_BUFFER_LENGTH,10),Pe=0,te=0,fe=ie.length;te<fe;te++){var Oe=Je[ie[te]].length;if(Oe>Fe)switch(ie[te]){case"textNode":Ve(Je);break;case"cdata":Ke(Je,"oncdata",Je.cdata),Je.cdata="";break;case"script":Ke(Je,"onscript",Je.script),Je.script="";break;default:Ne(Je,"Max buffer length exceeded: "+ie[te])}Pe=Math.max(Pe,Oe)}var Ue=z.MAX_BUFFER_LENGTH-Pe;Je.bufferCheckPosition=Ue+Je.position}function de(Je){for(var Fe=0,Pe=ie.length;Fe<Pe;Fe++)Je[ie[Fe]]=""}function E(Je){Ve(Je),Je.cdata!==""&&(Ke(Je,"oncdata",Je.cdata),Je.cdata=""),Je.script!==""&&(Ke(Je,"onscript",Je.script),Je.script="")}ae.prototype={end:function(){We(this)},write:ot,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var ne;try{ne=y("stream").Stream}catch(Je){ne=function(){}}var re=z.EVENTS.filter(function(Je){return Je!=="error"&&Je!=="end"});function oe(Je,Fe){return new le(Je,Fe)}function le(Je,Fe){if(!(this instanceof le))return new le(Je,Fe);ne.apply(this),this._parser=new ae(Je,Fe),this.writable=!0,this.readable=!0;var Pe=this;this._parser.onend=function(){Pe.emit("end")},this._parser.onerror=function(te){Pe.emit("error",te),Pe._parser.error=null},this._decoder=null,re.forEach(function(te){Object.defineProperty(Pe,"on"+te,{get:function(){return Pe._parser["on"+te]},set:function(fe){if(!fe)return Pe.removeAllListeners(te),Pe._parser["on"+te]=fe,fe;Pe.on(te,fe)},enumerable:!0,configurable:!1})})}le.prototype=Object.create(ne.prototype,{constructor:{value:le}}),le.prototype.write=function(Je){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(Je)){if(!this._decoder){var Fe=y("string_decoder").StringDecoder;this._decoder=new Fe("utf8")}Je=this._decoder.write(Je)}return this._parser.write(Je.toString()),this.emit("data",Je),!0},le.prototype.end=function(Je){return Je&&Je.length&&this.write(Je),this._parser.end(),!0},le.prototype.on=function(Je,Fe){var Pe=this;return!Pe._parser["on"+Je]&&re.indexOf(Je)!==-1&&(Pe._parser["on"+Je]=function(){var te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);te.splice(0,0,Je),Pe.emit.apply(Pe,te)}),ne.prototype.on.call(Pe,Je,Fe)};var he="[CDATA[",pe="DOCTYPE",ve="http://www.w3.org/XML/1998/namespace",ce="http://www.w3.org/2000/xmlns/",me={xml:ve,xmlns:ce},Ee=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Te=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Re=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_e=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function ye(Je){return Je===" "||Je===`
`||Je==="\r"||Je===" "}function be(Je){return Je==='"'||Je==="'"}function Se(Je){return Je===">"||ye(Je)}function Ie(Je,Fe){return Je.test(Fe)}function Me(Je,Fe){return!Ie(Je,Fe)}var Ae=0;z.STATE={BEGIN:Ae++,BEGIN_WHITESPACE:Ae++,TEXT:Ae++,TEXT_ENTITY:Ae++,OPEN_WAKA:Ae++,SGML_DECL:Ae++,SGML_DECL_QUOTED:Ae++,DOCTYPE:Ae++,DOCTYPE_QUOTED:Ae++,DOCTYPE_DTD:Ae++,DOCTYPE_DTD_QUOTED:Ae++,COMMENT_STARTING:Ae++,COMMENT:Ae++,COMMENT_ENDING:Ae++,COMMENT_ENDED:Ae++,CDATA:Ae++,CDATA_ENDING:Ae++,CDATA_ENDING_2:Ae++,PROC_INST:Ae++,PROC_INST_BODY:Ae++,PROC_INST_ENDING:Ae++,OPEN_TAG:Ae++,OPEN_TAG_SLASH:Ae++,ATTRIB:Ae++,ATTRIB_NAME:Ae++,ATTRIB_NAME_SAW_WHITE:Ae++,ATTRIB_VALUE:Ae++,ATTRIB_VALUE_QUOTED:Ae++,ATTRIB_VALUE_CLOSED:Ae++,ATTRIB_VALUE_UNQUOTED:Ae++,ATTRIB_VALUE_ENTITY_Q:Ae++,ATTRIB_VALUE_ENTITY_U:Ae++,CLOSE_TAG:Ae++,CLOSE_TAG_SAW_WHITE:Ae++,SCRIPT:Ae++,SCRIPT_ENDING:Ae++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(z.ENTITIES).forEach(function(Je){var Fe=z.ENTITIES[Je],Pe=typeof Fe=="number"?String.fromCharCode(Fe):Fe;z.ENTITIES[Je]=Pe});for(var De in z.STATE)z.STATE[z.STATE[De]]=De;Ae=z.STATE;function He(Je,Fe,Pe){Je[Fe]&&Je[Fe](Pe)}function Ke(Je,Fe,Pe){Je.textNode&&Ve(Je),He(Je,Fe,Pe)}function Ve(Je){Je.textNode=nt(Je.opt,Je.textNode),Je.textNode&&He(Je,"ontext",Je.textNode),Je.textNode=""}function nt(Je,Fe){return Je.trim&&(Fe=Fe.trim()),Je.normalize&&(Fe=Fe.replace(/\s+/g," ")),Fe}function Ne(Je,Fe){return Ve(Je),Je.trackPosition&&(Fe+=`
Line: `+Je.line+`
Column: `+Je.column+`
Char: `+Je.c),Fe=new Error(Fe),Je.error=Fe,He(Je,"onerror",Fe),Je}function We(Je){return Je.sawRoot&&!Je.closedRoot&&$e(Je,"Unclosed root tag"),Je.state!==Ae.BEGIN&&Je.state!==Ae.BEGIN_WHITESPACE&&Je.state!==Ae.TEXT&&Ne(Je,"Unexpected end"),Ve(Je),Je.c="",Je.closed=!0,He(Je,"onend"),ae.call(Je,Je.strict,Je.opt),Je}function $e(Je,Fe){if(typeof Je!="object"||!(Je instanceof ae))throw new Error("bad call to strictFail");Je.strict&&Ne(Je,Fe)}function rt(Je){Je.strict||(Je.tagName=Je.tagName[Je.looseCase]());var Fe=Je.tags[Je.tags.length-1]||Je,Pe=Je.tag={name:Je.tagName,attributes:{}};Je.opt.xmlns&&(Pe.ns=Fe.ns),Je.attribList.length=0,Ke(Je,"onopentagstart",Pe)}function et(Je,Fe){var Pe=Je.indexOf(":"),te=Pe<0?["",Je]:Je.split(":"),fe=te[0],Oe=te[1];return Fe&&Je==="xmlns"&&(fe="xmlns",Oe=""),{prefix:fe,local:Oe}}function Xe(Je){if(Je.strict||(Je.attribName=Je.attribName[Je.looseCase]()),Je.attribList.indexOf(Je.attribName)!==-1||Je.tag.attributes.hasOwnProperty(Je.attribName)){Je.attribName=Je.attribValue="";return}if(Je.opt.xmlns){var Fe=et(Je.attribName,!0),Pe=Fe.prefix,te=Fe.local;if(Pe==="xmlns")if(te==="xml"&&Je.attribValue!==ve)$e(Je,"xml: prefix must be bound to "+ve+`
Actual: `+Je.attribValue);else if(te==="xmlns"&&Je.attribValue!==ce)$e(Je,"xmlns: prefix must be bound to "+ce+`
Actual: `+Je.attribValue);else{var fe=Je.tag,Oe=Je.tags[Je.tags.length-1]||Je;fe.ns===Oe.ns&&(fe.ns=Object.create(Oe.ns)),fe.ns[te]=Je.attribValue}Je.attribList.push([Je.attribName,Je.attribValue])}else Je.tag.attributes[Je.attribName]=Je.attribValue,Ke(Je,"onattribute",{name:Je.attribName,value:Je.attribValue});Je.attribName=Je.attribValue=""}function Ye(Je,Fe){if(Je.opt.xmlns){var Pe=Je.tag,te=et(Je.tagName);Pe.prefix=te.prefix,Pe.local=te.local,Pe.uri=Pe.ns[te.prefix]||"",Pe.prefix&&!Pe.uri&&($e(Je,"Unbound namespace prefix: "+JSON.stringify(Je.tagName)),Pe.uri=te.prefix);var fe=Je.tags[Je.tags.length-1]||Je;Pe.ns&&fe.ns!==Pe.ns&&Object.keys(Pe.ns).forEach(function(pt){Ke(Je,"onopennamespace",{prefix:pt,uri:Pe.ns[pt]})});for(var Oe=0,Ue=Je.attribList.length;Oe<Ue;Oe++){var xe=Je.attribList[Oe],Ce=xe[0],je=xe[1],Ze=et(Ce,!0),tt=Ze.prefix,it=Ze.local,ct=tt===""?"":Pe.ns[tt]||"",ut={name:Ce,value:je,prefix:tt,local:it,uri:ct};tt&&tt!=="xmlns"&&!ct&&($e(Je,"Unbound namespace prefix: "+JSON.stringify(tt)),ut.uri=tt),Je.tag.attributes[Ce]=ut,Ke(Je,"onattribute",ut)}Je.attribList.length=0}Je.tag.isSelfClosing=!!Fe,Je.sawRoot=!0,Je.tags.push(Je.tag),Ke(Je,"onopentag",Je.tag),Fe||(!Je.noscript&&Je.tagName.toLowerCase()==="script"?Je.state=Ae.SCRIPT:Je.state=Ae.TEXT,Je.tag=null,Je.tagName=""),Je.attribName=Je.attribValue="",Je.attribList.length=0}function Ge(Je){if(!Je.tagName){$e(Je,"Weird empty close tag."),Je.textNode+="</>",Je.state=Ae.TEXT;return}if(Je.script){if(Je.tagName!=="script"){Je.script+="</"+Je.tagName+">",Je.tagName="",Je.state=Ae.SCRIPT;return}Ke(Je,"onscript",Je.script),Je.script=""}var Fe=Je.tags.length,Pe=Je.tagName;Je.strict||(Pe=Pe[Je.looseCase]());for(var te=Pe;Fe--;){var fe=Je.tags[Fe];if(fe.name!==te)$e(Je,"Unexpected close tag");else break}if(Fe<0){$e(Je,"Unmatched closing tag: "+Je.tagName),Je.textNode+="</"+Je.tagName+">",Je.state=Ae.TEXT;return}Je.tagName=Pe;for(var Oe=Je.tags.length;Oe-- >Fe;){var Ue=Je.tag=Je.tags.pop();Je.tagName=Je.tag.name,Ke(Je,"onclosetag",Je.tagName);var xe={};for(var Ce in Ue.ns)xe[Ce]=Ue.ns[Ce];var je=Je.tags[Je.tags.length-1]||Je;Je.opt.xmlns&&Ue.ns!==je.ns&&Object.keys(Ue.ns).forEach(function(Ze){var tt=Ue.ns[Ze];Ke(Je,"onclosenamespace",{prefix:Ze,uri:tt})})}Fe===0&&(Je.closedRoot=!0),Je.tagName=Je.attribValue=Je.attribName="",Je.attribList.length=0,Je.state=Ae.TEXT}function at(Je){var Fe=Je.entity,Pe=Fe.toLowerCase(),te,fe="";return Je.ENTITIES[Fe]?Je.ENTITIES[Fe]:Je.ENTITIES[Pe]?Je.ENTITIES[Pe]:(Fe=Pe,Fe.charAt(0)==="#"&&(Fe.charAt(1)==="x"?(Fe=Fe.slice(2),te=parseInt(Fe,16),fe=te.toString(16)):(Fe=Fe.slice(1),te=parseInt(Fe,10),fe=te.toString(10))),Fe=Fe.replace(/^0+/,""),isNaN(te)||fe.toLowerCase()!==Fe?($e(Je,"Invalid character entity"),"&"+Je.entity+";"):String.fromCodePoint(te))}function Qe(Je,Fe){Fe==="<"?(Je.state=Ae.OPEN_WAKA,Je.startTagPosition=Je.position):ye(Fe)||($e(Je,"Non-whitespace before first tag."),Je.textNode=Fe,Je.state=Ae.TEXT)}function ft(Je,Fe){var Pe="";return Fe<Je.length&&(Pe=Je.charAt(Fe)),Pe}function ot(Je){var Fe=this;if(this.error)throw this.error;if(Fe.closed)return Ne(Fe,"Cannot write after close. Assign an onready handler.");if(Je===null)return We(Fe);typeof Je=="object"&&(Je=Je.toString());for(var Pe=0,te="";te=ft(Je,Pe++),Fe.c=te,!!te;)switch(Fe.trackPosition&&(Fe.position++,te===`
`?(Fe.line++,Fe.column=0):Fe.column++),Fe.state){case Ae.BEGIN:if(Fe.state=Ae.BEGIN_WHITESPACE,te==="\uFEFF")continue;Qe(Fe,te);continue;case Ae.BEGIN_WHITESPACE:Qe(Fe,te);continue;case Ae.TEXT:if(Fe.sawRoot&&!Fe.closedRoot){for(var fe=Pe-1;te&&te!=="<"&&te!=="&";)te=ft(Je,Pe++),te&&Fe.trackPosition&&(Fe.position++,te===`
`?(Fe.line++,Fe.column=0):Fe.column++);Fe.textNode+=Je.substring(fe,Pe-1)}te==="<"&&!(Fe.sawRoot&&Fe.closedRoot&&!Fe.strict)?(Fe.state=Ae.OPEN_WAKA,Fe.startTagPosition=Fe.position):(!ye(te)&&(!Fe.sawRoot||Fe.closedRoot)&&$e(Fe,"Text data outside of root node."),te==="&"?Fe.state=Ae.TEXT_ENTITY:Fe.textNode+=te);continue;case Ae.SCRIPT:te==="<"?Fe.state=Ae.SCRIPT_ENDING:Fe.script+=te;continue;case Ae.SCRIPT_ENDING:te==="/"?Fe.state=Ae.CLOSE_TAG:(Fe.script+="<"+te,Fe.state=Ae.SCRIPT);continue;case Ae.OPEN_WAKA:if(te==="!")Fe.state=Ae.SGML_DECL,Fe.sgmlDecl="";else if(!ye(te))if(Ie(Ee,te))Fe.state=Ae.OPEN_TAG,Fe.tagName=te;else if(te==="/")Fe.state=Ae.CLOSE_TAG,Fe.tagName="";else if(te==="?")Fe.state=Ae.PROC_INST,Fe.procInstName=Fe.procInstBody="";else{if($e(Fe,"Unencoded <"),Fe.startTagPosition+1<Fe.position){var Oe=Fe.position-Fe.startTagPosition;te=new Array(Oe).join(" ")+te}Fe.textNode+="<"+te,Fe.state=Ae.TEXT}continue;case Ae.SGML_DECL:(Fe.sgmlDecl+te).toUpperCase()===he?(Ke(Fe,"onopencdata"),Fe.state=Ae.CDATA,Fe.sgmlDecl="",Fe.cdata=""):Fe.sgmlDecl+te==="--"?(Fe.state=Ae.COMMENT,Fe.comment="",Fe.sgmlDecl=""):(Fe.sgmlDecl+te).toUpperCase()===pe?(Fe.state=Ae.DOCTYPE,(Fe.doctype||Fe.sawRoot)&&$e(Fe,"Inappropriately located doctype declaration"),Fe.doctype="",Fe.sgmlDecl=""):te===">"?(Ke(Fe,"onsgmldeclaration",Fe.sgmlDecl),Fe.sgmlDecl="",Fe.state=Ae.TEXT):(be(te)&&(Fe.state=Ae.SGML_DECL_QUOTED),Fe.sgmlDecl+=te);continue;case Ae.SGML_DECL_QUOTED:te===Fe.q&&(Fe.state=Ae.SGML_DECL,Fe.q=""),Fe.sgmlDecl+=te;continue;case Ae.DOCTYPE:te===">"?(Fe.state=Ae.TEXT,Ke(Fe,"ondoctype",Fe.doctype),Fe.doctype=!0):(Fe.doctype+=te,te==="["?Fe.state=Ae.DOCTYPE_DTD:be(te)&&(Fe.state=Ae.DOCTYPE_QUOTED,Fe.q=te));continue;case Ae.DOCTYPE_QUOTED:Fe.doctype+=te,te===Fe.q&&(Fe.q="",Fe.state=Ae.DOCTYPE);continue;case Ae.DOCTYPE_DTD:Fe.doctype+=te,te==="]"?Fe.state=Ae.DOCTYPE:be(te)&&(Fe.state=Ae.DOCTYPE_DTD_QUOTED,Fe.q=te);continue;case Ae.DOCTYPE_DTD_QUOTED:Fe.doctype+=te,te===Fe.q&&(Fe.state=Ae.DOCTYPE_DTD,Fe.q="");continue;case Ae.COMMENT:te==="-"?Fe.state=Ae.COMMENT_ENDING:Fe.comment+=te;continue;case Ae.COMMENT_ENDING:te==="-"?(Fe.state=Ae.COMMENT_ENDED,Fe.comment=nt(Fe.opt,Fe.comment),Fe.comment&&Ke(Fe,"oncomment",Fe.comment),Fe.comment=""):(Fe.comment+="-"+te,Fe.state=Ae.COMMENT);continue;case Ae.COMMENT_ENDED:te!==">"?($e(Fe,"Malformed comment"),Fe.comment+="--"+te,Fe.state=Ae.COMMENT):Fe.state=Ae.TEXT;continue;case Ae.CDATA:te==="]"?Fe.state=Ae.CDATA_ENDING:Fe.cdata+=te;continue;case Ae.CDATA_ENDING:te==="]"?Fe.state=Ae.CDATA_ENDING_2:(Fe.cdata+="]"+te,Fe.state=Ae.CDATA);continue;case Ae.CDATA_ENDING_2:te===">"?(Fe.cdata&&Ke(Fe,"oncdata",Fe.cdata),Ke(Fe,"onclosecdata"),Fe.cdata="",Fe.state=Ae.TEXT):te==="]"?Fe.cdata+="]":(Fe.cdata+="]]"+te,Fe.state=Ae.CDATA);continue;case Ae.PROC_INST:te==="?"?Fe.state=Ae.PROC_INST_ENDING:ye(te)?Fe.state=Ae.PROC_INST_BODY:Fe.procInstName+=te;continue;case Ae.PROC_INST_BODY:if(!Fe.procInstBody&&ye(te))continue;te==="?"?Fe.state=Ae.PROC_INST_ENDING:Fe.procInstBody+=te;continue;case Ae.PROC_INST_ENDING:te===">"?(Ke(Fe,"onprocessinginstruction",{name:Fe.procInstName,body:Fe.procInstBody}),Fe.procInstName=Fe.procInstBody="",Fe.state=Ae.TEXT):(Fe.procInstBody+="?"+te,Fe.state=Ae.PROC_INST_BODY);continue;case Ae.OPEN_TAG:Ie(Te,te)?Fe.tagName+=te:(rt(Fe),te===">"?Ye(Fe):te==="/"?Fe.state=Ae.OPEN_TAG_SLASH:(ye(te)||$e(Fe,"Invalid character in tag name"),Fe.state=Ae.ATTRIB));continue;case Ae.OPEN_TAG_SLASH:te===">"?(Ye(Fe,!0),Ge(Fe)):($e(Fe,"Forward-slash in opening tag not followed by >"),Fe.state=Ae.ATTRIB);continue;case Ae.ATTRIB:if(ye(te))continue;te===">"?Ye(Fe):te==="/"?Fe.state=Ae.OPEN_TAG_SLASH:Ie(Ee,te)?(Fe.attribName=te,Fe.attribValue="",Fe.state=Ae.ATTRIB_NAME):$e(Fe,"Invalid attribute name");continue;case Ae.ATTRIB_NAME:te==="="?Fe.state=Ae.ATTRIB_VALUE:te===">"?($e(Fe,"Attribute without value"),Fe.attribValue=Fe.attribName,Xe(Fe),Ye(Fe)):ye(te)?Fe.state=Ae.ATTRIB_NAME_SAW_WHITE:Ie(Te,te)?Fe.attribName+=te:$e(Fe,"Invalid attribute name");continue;case Ae.ATTRIB_NAME_SAW_WHITE:if(te==="=")Fe.state=Ae.ATTRIB_VALUE;else{if(ye(te))continue;$e(Fe,"Attribute without value"),Fe.tag.attributes[Fe.attribName]="",Fe.attribValue="",Ke(Fe,"onattribute",{name:Fe.attribName,value:""}),Fe.attribName="",te===">"?Ye(Fe):Ie(Ee,te)?(Fe.attribName=te,Fe.state=Ae.ATTRIB_NAME):($e(Fe,"Invalid attribute name"),Fe.state=Ae.ATTRIB)}continue;case Ae.ATTRIB_VALUE:if(ye(te))continue;be(te)?(Fe.q=te,Fe.state=Ae.ATTRIB_VALUE_QUOTED):($e(Fe,"Unquoted attribute value"),Fe.state=Ae.ATTRIB_VALUE_UNQUOTED,Fe.attribValue=te);continue;case Ae.ATTRIB_VALUE_QUOTED:if(te!==Fe.q){te==="&"?Fe.state=Ae.ATTRIB_VALUE_ENTITY_Q:Fe.attribValue+=te;continue}Xe(Fe),Fe.q="",Fe.state=Ae.ATTRIB_VALUE_CLOSED;continue;case Ae.ATTRIB_VALUE_CLOSED:ye(te)?Fe.state=Ae.ATTRIB:te===">"?Ye(Fe):te==="/"?Fe.state=Ae.OPEN_TAG_SLASH:Ie(Ee,te)?($e(Fe,"No whitespace between attributes"),Fe.attribName=te,Fe.attribValue="",Fe.state=Ae.ATTRIB_NAME):$e(Fe,"Invalid attribute name");continue;case Ae.ATTRIB_VALUE_UNQUOTED:if(!Se(te)){te==="&"?Fe.state=Ae.ATTRIB_VALUE_ENTITY_U:Fe.attribValue+=te;continue}Xe(Fe),te===">"?Ye(Fe):Fe.state=Ae.ATTRIB;continue;case Ae.CLOSE_TAG:if(Fe.tagName)te===">"?Ge(Fe):Ie(Te,te)?Fe.tagName+=te:Fe.script?(Fe.script+="</"+Fe.tagName,Fe.tagName="",Fe.state=Ae.SCRIPT):(ye(te)||$e(Fe,"Invalid tagname in closing tag"),Fe.state=Ae.CLOSE_TAG_SAW_WHITE);else{if(ye(te))continue;Me(Ee,te)?Fe.script?(Fe.script+="</"+te,Fe.state=Ae.SCRIPT):$e(Fe,"Invalid tagname in closing tag."):Fe.tagName=te}continue;case Ae.CLOSE_TAG_SAW_WHITE:if(ye(te))continue;te===">"?Ge(Fe):$e(Fe,"Invalid characters in closing tag");continue;case Ae.TEXT_ENTITY:case Ae.ATTRIB_VALUE_ENTITY_Q:case Ae.ATTRIB_VALUE_ENTITY_U:var Ue,xe;switch(Fe.state){case Ae.TEXT_ENTITY:Ue=Ae.TEXT,xe="textNode";break;case Ae.ATTRIB_VALUE_ENTITY_Q:Ue=Ae.ATTRIB_VALUE_QUOTED,xe="attribValue";break;case Ae.ATTRIB_VALUE_ENTITY_U:Ue=Ae.ATTRIB_VALUE_UNQUOTED,xe="attribValue";break}te===";"?(Fe[xe]+=at(Fe),Fe.entity="",Fe.state=Ue):Ie(Fe.entity.length?_e:Re,te)?Fe.entity+=te:($e(Fe,"Invalid character in entity name"),Fe[xe]+="&"+Fe.entity+te,Fe.entity="",Fe.state=Ue);continue;default:throw new Error(Fe,"Unknown state: "+Fe.state)}return Fe.position>=Fe.bufferCheckPosition&&ee(Fe),Fe}String.fromCodePoint||function(){var Je=String.fromCharCode,Fe=Math.floor,Pe=function(){var te=16384,fe=[],Oe,Ue,xe=-1,Ce=arguments.length;if(!Ce)return"";for(var je="";++xe<Ce;){var Ze=Number(arguments[xe]);if(!isFinite(Ze)||Ze<0||Ze>1114111||Fe(Ze)!==Ze)throw RangeError("Invalid code point: "+Ze);Ze<=65535?fe.push(Ze):(Ze-=65536,Oe=(Ze>>10)+55296,Ue=Ze%1024+56320,fe.push(Oe,Ue)),(xe+1===Ce||fe.length>te)&&(je+=Je.apply(null,fe),fe.length=0)}return je};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Pe,configurable:!0,writable:!0}):String.fromCodePoint=Pe}()})(typeof we=="undefined"?this.sax={}:we)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,ke,we){ke.exports=ie;var x=y("events").EventEmitter,z=y("inherits");z(ie,x),ie.Readable=y("readable-stream/lib/_stream_readable.js"),ie.Writable=y("readable-stream/lib/_stream_writable.js"),ie.Duplex=y("readable-stream/lib/_stream_duplex.js"),ie.Transform=y("readable-stream/lib/_stream_transform.js"),ie.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),ie.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){x.call(this)}ie.prototype.pipe=function(ae,ee){var de=this;function E(ve){ae.writable&&ae.write(ve)===!1&&de.pause&&de.pause()}de.on("data",E);function ne(){de.readable&&de.resume&&de.resume()}ae.on("drain",ne),!ae._isStdio&&(!ee||ee.end!==!1)&&(de.on("end",oe),de.on("close",le));var re=!1;function oe(){re||(re=!0,ae.end())}function le(){re||(re=!0,typeof ae.destroy=="function"&&ae.destroy())}function he(ve){if(pe(),x.listenerCount(this,"error")===0)throw ve}de.on("error",he),ae.on("error",he);function pe(){de.removeListener("data",E),ae.removeListener("drain",ne),de.removeListener("end",oe),de.removeListener("close",le),de.removeListener("error",he),ae.removeListener("error",he),de.removeListener("end",pe),de.removeListener("close",pe),ae.removeListener("close",pe)}return de.on("end",pe),de.on("close",pe),ae.on("close",pe),ae.emit("pipe",de),ae}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(y,ke,we){"use strict";function x(ne,re){ne.prototype=Object.create(re.prototype),ne.prototype.constructor=ne,ne.__proto__=re}var z={};function ie(ne,re,oe){oe||(oe=Error);function le(pe,ve,ce){return typeof re=="string"?re:re(pe,ve,ce)}var he=function(pe){x(ve,pe);function ve(ce,me,Ee){return pe.call(this,le(ce,me,Ee))||this}return ve}(oe);he.prototype.name=oe.name,he.prototype.code=ne,z[ne]=he}function ae(ne,re){if(Array.isArray(ne)){var oe=ne.length;return ne=ne.map(function(le){return String(le)}),oe>2?"one of ".concat(re," ").concat(ne.slice(0,oe-1).join(", "),", or ")+ne[oe-1]:oe===2?"one of ".concat(re," ").concat(ne[0]," or ").concat(ne[1]):"of ".concat(re," ").concat(ne[0])}else return"of ".concat(re," ").concat(String(ne))}function ee(ne,re,oe){return ne.substr(!oe||oe<0?0:+oe,re.length)===re}function de(ne,re,oe){return(oe===void 0||oe>ne.length)&&(oe=ne.length),ne.substring(oe-re.length,oe)===re}function E(ne,re,oe){return typeof oe!="number"&&(oe=0),oe+re.length>ne.length?!1:ne.indexOf(re,oe)!==-1}ie("ERR_INVALID_OPT_VALUE",function(ne,re){return'The value "'+re+'" is invalid for option "'+ne+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(ne,re,oe){var le;typeof re=="string"&&ee(re,"not ")?(le="must not be",re=re.replace(/^not /,"")):le="must be";var he;if(de(ne," argument"))he="The ".concat(ne," ").concat(le," ").concat(ae(re,"type"));else{var pe=E(ne,".")?"property":"argument";he='The "'.concat(ne,'" ').concat(pe," ").concat(le," ").concat(ae(re,"type"))}return he+=". Received type ".concat(typeof oe),he},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(ne){return"The "+ne+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(ne){return"Cannot call "+ne+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(ne){return"Unknown encoding: "+ne},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ke.exports.codes=z},{}],400:[function(y,ke,we){(function(x){(function(){"use strict";var z=Object.keys||function(le){var he=[];for(var pe in le)he.push(pe);return he};ke.exports=ne;var ie=y("./_stream_readable"),ae=y("./_stream_writable");y("inherits")(ne,ie);for(var ee=z(ae.prototype),de=0;de<ee.length;de++){var E=ee[de];ne.prototype[E]||(ne.prototype[E]=ae.prototype[E])}function ne(le){if(!(this instanceof ne))return new ne(le);ie.call(this,le),ae.call(this,le),this.allowHalfOpen=!0,le&&(le.readable===!1&&(this.readable=!1),le.writable===!1&&(this.writable=!1),le.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||x.nextTick(oe,this)}function oe(le){le.end()}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,ke,we){"use strict";ke.exports=z;var x=y("./_stream_transform");y("inherits")(z,x);function z(ie){if(!(this instanceof z))return new z(ie);x.call(this,ie)}z.prototype._transform=function(ie,ae,ee){ee(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(y,ke,we){(function(x,z){(function(){"use strict";ke.exports=Ke;var ie;Ke.ReadableState=He;var ae=y("events").EventEmitter,ee=function(Ce,je){return Ce.listeners(je).length},de=y("./internal/streams/stream"),E=y("buffer").Buffer,ne=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(xe){return E.from(xe)}function oe(xe){return E.isBuffer(xe)||xe instanceof ne}var le=y("util"),he;le&&le.debuglog?he=le.debuglog("stream"):he=function(){};var pe=y("./internal/streams/buffer_list"),ve=y("./internal/streams/destroy"),ce=y("./internal/streams/state"),me=ce.getHighWaterMark,Ee=y("../errors").codes,Te=Ee.ERR_INVALID_ARG_TYPE,Re=Ee.ERR_STREAM_PUSH_AFTER_EOF,_e=Ee.ERR_METHOD_NOT_IMPLEMENTED,ye=Ee.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,be,Se,Ie;y("inherits")(Ke,de);var Me=ve.errorOrDestroy,Ae=["error","close","destroy","pause","resume"];function De(xe,Ce,je){if(typeof xe.prependListener=="function")return xe.prependListener(Ce,je);!xe._events||!xe._events[Ce]?xe.on(Ce,je):Array.isArray(xe._events[Ce])?xe._events[Ce].unshift(je):xe._events[Ce]=[je,xe._events[Ce]]}function He(xe,Ce,je){ie=ie||y("./_stream_duplex"),xe=xe||{},typeof je!="boolean"&&(je=Ce instanceof ie),this.objectMode=!!xe.objectMode,je&&(this.objectMode=this.objectMode||!!xe.readableObjectMode),this.highWaterMark=me(this,xe,"readableHighWaterMark",je),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=xe.emitClose!==!1,this.autoDestroy=!!xe.autoDestroy,this.destroyed=!1,this.defaultEncoding=xe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xe.encoding&&(be||(be=y("string_decoder/").StringDecoder),this.decoder=new be(xe.encoding),this.encoding=xe.encoding)}function Ke(xe){if(ie=ie||y("./_stream_duplex"),!(this instanceof Ke))return new Ke(xe);var Ce=this instanceof ie;this._readableState=new He(xe,this,Ce),this.readable=!0,xe&&(typeof xe.read=="function"&&(this._read=xe.read),typeof xe.destroy=="function"&&(this._destroy=xe.destroy)),de.call(this)}Object.defineProperty(Ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ce){this._readableState&&(this._readableState.destroyed=Ce)}}),Ke.prototype.destroy=ve.destroy,Ke.prototype._undestroy=ve.undestroy,Ke.prototype._destroy=function(xe,Ce){Ce(xe)},Ke.prototype.push=function(xe,Ce){var je=this._readableState,Ze;return je.objectMode?Ze=!0:typeof xe=="string"&&(Ce=Ce||je.defaultEncoding,Ce!==je.encoding&&(xe=E.from(xe,Ce),Ce=""),Ze=!0),Ve(this,xe,Ce,!1,Ze)},Ke.prototype.unshift=function(xe){return Ve(this,xe,null,!0,!1)};function Ve(xe,Ce,je,Ze,tt){he("readableAddChunk",Ce);var it=xe._readableState;if(Ce===null)it.reading=!1,et(xe,it);else{var ct;if(tt||(ct=Ne(it,Ce)),ct)Me(xe,ct);else if(it.objectMode||Ce&&Ce.length>0)if(typeof Ce!="string"&&!it.objectMode&&Object.getPrototypeOf(Ce)!==E.prototype&&(Ce=re(Ce)),Ze)it.endEmitted?Me(xe,new ye):nt(xe,it,Ce,!0);else if(it.ended)Me(xe,new Re);else{if(it.destroyed)return!1;it.reading=!1,it.decoder&&!je?(Ce=it.decoder.write(Ce),it.objectMode||Ce.length!==0?nt(xe,it,Ce,!1):Ge(xe,it)):nt(xe,it,Ce,!1)}else Ze||(it.reading=!1,Ge(xe,it))}return!it.ended&&(it.length<it.highWaterMark||it.length===0)}function nt(xe,Ce,je,Ze){Ce.flowing&&Ce.length===0&&!Ce.sync?(Ce.awaitDrain=0,xe.emit("data",je)):(Ce.length+=Ce.objectMode?1:je.length,Ze?Ce.buffer.unshift(je):Ce.buffer.push(je),Ce.needReadable&&Xe(xe)),Ge(xe,Ce)}function Ne(xe,Ce){var je;return!oe(Ce)&&typeof Ce!="string"&&Ce!==void 0&&!xe.objectMode&&(je=new Te("chunk",["string","Buffer","Uint8Array"],Ce)),je}Ke.prototype.isPaused=function(){return this._readableState.flowing===!1},Ke.prototype.setEncoding=function(xe){be||(be=y("string_decoder/").StringDecoder);var Ce=new be(xe);this._readableState.decoder=Ce,this._readableState.encoding=this._readableState.decoder.encoding;for(var je=this._readableState.buffer.head,Ze="";je!==null;)Ze+=Ce.write(je.data),je=je.next;return this._readableState.buffer.clear(),Ze!==""&&this._readableState.buffer.push(Ze),this._readableState.length=Ze.length,this};var We=1073741824;function $e(xe){return xe>=We?xe=We:(xe--,xe|=xe>>>1,xe|=xe>>>2,xe|=xe>>>4,xe|=xe>>>8,xe|=xe>>>16,xe++),xe}function rt(xe,Ce){return xe<=0||Ce.length===0&&Ce.ended?0:Ce.objectMode?1:xe!==xe?Ce.flowing&&Ce.length?Ce.buffer.head.data.length:Ce.length:(xe>Ce.highWaterMark&&(Ce.highWaterMark=$e(xe)),xe<=Ce.length?xe:Ce.ended?Ce.length:(Ce.needReadable=!0,0))}Ke.prototype.read=function(xe){he("read",xe),xe=parseInt(xe,10);var Ce=this._readableState,je=xe;if(xe!==0&&(Ce.emittedReadable=!1),xe===0&&Ce.needReadable&&((Ce.highWaterMark!==0?Ce.length>=Ce.highWaterMark:Ce.length>0)||Ce.ended))return he("read: emitReadable",Ce.length,Ce.ended),Ce.length===0&&Ce.ended?fe(this):Xe(this),null;if(xe=rt(xe,Ce),xe===0&&Ce.ended)return Ce.length===0&&fe(this),null;var Ze=Ce.needReadable;he("need readable",Ze),(Ce.length===0||Ce.length-xe<Ce.highWaterMark)&&(Ze=!0,he("length less than watermark",Ze)),Ce.ended||Ce.reading?(Ze=!1,he("reading or ended",Ze)):Ze&&(he("do read"),Ce.reading=!0,Ce.sync=!0,Ce.length===0&&(Ce.needReadable=!0),this._read(Ce.highWaterMark),Ce.sync=!1,Ce.reading||(xe=rt(je,Ce)));var tt;return xe>0?tt=te(xe,Ce):tt=null,tt===null?(Ce.needReadable=Ce.length<=Ce.highWaterMark,xe=0):(Ce.length-=xe,Ce.awaitDrain=0),Ce.length===0&&(Ce.ended||(Ce.needReadable=!0),je!==xe&&Ce.ended&&fe(this)),tt!==null&&this.emit("data",tt),tt};function et(xe,Ce){if(he("onEofChunk"),!Ce.ended){if(Ce.decoder){var je=Ce.decoder.end();je&&je.length&&(Ce.buffer.push(je),Ce.length+=Ce.objectMode?1:je.length)}Ce.ended=!0,Ce.sync?Xe(xe):(Ce.needReadable=!1,Ce.emittedReadable||(Ce.emittedReadable=!0,Ye(xe)))}}function Xe(xe){var Ce=xe._readableState;he("emitReadable",Ce.needReadable,Ce.emittedReadable),Ce.needReadable=!1,Ce.emittedReadable||(he("emitReadable",Ce.flowing),Ce.emittedReadable=!0,x.nextTick(Ye,xe))}function Ye(xe){var Ce=xe._readableState;he("emitReadable_",Ce.destroyed,Ce.length,Ce.ended),!Ce.destroyed&&(Ce.length||Ce.ended)&&(xe.emit("readable"),Ce.emittedReadable=!1),Ce.needReadable=!Ce.flowing&&!Ce.ended&&Ce.length<=Ce.highWaterMark,Pe(xe)}function Ge(xe,Ce){Ce.readingMore||(Ce.readingMore=!0,x.nextTick(at,xe,Ce))}function at(xe,Ce){for(;!Ce.reading&&!Ce.ended&&(Ce.length<Ce.highWaterMark||Ce.flowing&&Ce.length===0);){var je=Ce.length;if(he("maybeReadMore read 0"),xe.read(0),je===Ce.length)break}Ce.readingMore=!1}Ke.prototype._read=function(xe){Me(this,new _e("_read()"))},Ke.prototype.pipe=function(xe,Ce){var je=this,Ze=this._readableState;switch(Ze.pipesCount){case 0:Ze.pipes=xe;break;case 1:Ze.pipes=[Ze.pipes,xe];break;default:Ze.pipes.push(xe);break}Ze.pipesCount+=1,he("pipe count=%d opts=%j",Ze.pipesCount,Ce);var tt=(!Ce||Ce.end!==!1)&&xe!==x.stdout&&xe!==x.stderr,it=tt?ut:dt;Ze.endEmitted?x.nextTick(it):je.once("end",it),xe.on("unpipe",ct);function ct(xt,bt){he("onunpipe"),xt===je&&bt&&bt.hasUnpiped===!1&&(bt.hasUnpiped=!0,wt())}function ut(){he("onend"),xe.end()}var pt=Qe(je);xe.on("drain",pt);var St=!1;function wt(){he("cleanup"),xe.removeListener("close",At),xe.removeListener("finish",gt),xe.removeListener("drain",pt),xe.removeListener("error",vt),xe.removeListener("unpipe",ct),je.removeListener("end",ut),je.removeListener("end",dt),je.removeListener("data",Et),St=!0,Ze.awaitDrain&&(!xe._writableState||xe._writableState.needDrain)&&pt()}je.on("data",Et);function Et(xt){he("ondata");var bt=xe.write(xt);he("dest.write",bt),bt===!1&&((Ze.pipesCount===1&&Ze.pipes===xe||Ze.pipesCount>1&&Ue(Ze.pipes,xe)!==-1)&&!St&&(he("false write response, pause",Ze.awaitDrain),Ze.awaitDrain++),je.pause())}function vt(xt){he("onerror",xt),dt(),xe.removeListener("error",vt),ee(xe,"error")===0&&Me(xe,xt)}De(xe,"error",vt);function At(){xe.removeListener("finish",gt),dt()}xe.once("close",At);function gt(){he("onfinish"),xe.removeListener("close",At),dt()}xe.once("finish",gt);function dt(){he("unpipe"),je.unpipe(xe)}return xe.emit("pipe",je),Ze.flowing||(he("pipe resume"),je.resume()),xe};function Qe(xe){return function(){var je=xe._readableState;he("pipeOnDrain",je.awaitDrain),je.awaitDrain&&je.awaitDrain--,je.awaitDrain===0&&ee(xe,"data")&&(je.flowing=!0,Pe(xe))}}Ke.prototype.unpipe=function(xe){var Ce=this._readableState,je={hasUnpiped:!1};if(Ce.pipesCount===0)return this;if(Ce.pipesCount===1)return xe&&xe!==Ce.pipes?this:(xe||(xe=Ce.pipes),Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1,xe&&xe.emit("unpipe",this,je),this);if(!xe){var Ze=Ce.pipes,tt=Ce.pipesCount;Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1;for(var it=0;it<tt;it++)Ze[it].emit("unpipe",this,{hasUnpiped:!1});return this}var ct=Ue(Ce.pipes,xe);return ct===-1?this:(Ce.pipes.splice(ct,1),Ce.pipesCount-=1,Ce.pipesCount===1&&(Ce.pipes=Ce.pipes[0]),xe.emit("unpipe",this,je),this)},Ke.prototype.on=function(xe,Ce){var je=de.prototype.on.call(this,xe,Ce),Ze=this._readableState;return xe==="data"?(Ze.readableListening=this.listenerCount("readable")>0,Ze.flowing!==!1&&this.resume()):xe==="readable"&&!Ze.endEmitted&&!Ze.readableListening&&(Ze.readableListening=Ze.needReadable=!0,Ze.flowing=!1,Ze.emittedReadable=!1,he("on readable",Ze.length,Ze.reading),Ze.length?Xe(this):Ze.reading||x.nextTick(ot,this)),je},Ke.prototype.addListener=Ke.prototype.on,Ke.prototype.removeListener=function(xe,Ce){var je=de.prototype.removeListener.call(this,xe,Ce);return xe==="readable"&&x.nextTick(ft,this),je},Ke.prototype.removeAllListeners=function(xe){var Ce=de.prototype.removeAllListeners.apply(this,arguments);return(xe==="readable"||xe===void 0)&&x.nextTick(ft,this),Ce};function ft(xe){var Ce=xe._readableState;Ce.readableListening=xe.listenerCount("readable")>0,Ce.resumeScheduled&&!Ce.paused?Ce.flowing=!0:xe.listenerCount("data")>0&&xe.resume()}function ot(xe){he("readable nexttick read 0"),xe.read(0)}Ke.prototype.resume=function(){var xe=this._readableState;return xe.flowing||(he("resume"),xe.flowing=!xe.readableListening,Je(this,xe)),xe.paused=!1,this};function Je(xe,Ce){Ce.resumeScheduled||(Ce.resumeScheduled=!0,x.nextTick(Fe,xe,Ce))}function Fe(xe,Ce){he("resume",Ce.reading),Ce.reading||xe.read(0),Ce.resumeScheduled=!1,xe.emit("resume"),Pe(xe),Ce.flowing&&!Ce.reading&&xe.read(0)}Ke.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Pe(xe){var Ce=xe._readableState;for(he("flow",Ce.flowing);Ce.flowing&&xe.read()!==null;);}Ke.prototype.wrap=function(xe){var Ce=this,je=this._readableState,Ze=!1;xe.on("end",function(){if(he("wrapped end"),je.decoder&&!je.ended){var ct=je.decoder.end();ct&&ct.length&&Ce.push(ct)}Ce.push(null)}),xe.on("data",function(ct){if(he("wrapped data"),je.decoder&&(ct=je.decoder.write(ct)),!(je.objectMode&&ct==null)&&!(!je.objectMode&&(!ct||!ct.length))){var ut=Ce.push(ct);ut||(Ze=!0,xe.pause())}});for(var tt in xe)this[tt]===void 0&&typeof xe[tt]=="function"&&(this[tt]=function(ut){return function(){return xe[ut].apply(xe,arguments)}}(tt));for(var it=0;it<Ae.length;it++)xe.on(Ae[it],this.emit.bind(this,Ae[it]));return this._read=function(ct){he("wrapped _read",ct),Ze&&(Ze=!1,xe.resume())},this},typeof Symbol=="function"&&(Ke.prototype[Symbol.asyncIterator]=function(){return Se===void 0&&(Se=y("./internal/streams/async_iterator")),Se(this)}),Object.defineProperty(Ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ce){this._readableState&&(this._readableState.flowing=Ce)}}),Ke._fromList=te,Object.defineProperty(Ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(xe,Ce){if(Ce.length===0)return null;var je;return Ce.objectMode?je=Ce.buffer.shift():!xe||xe>=Ce.length?(Ce.decoder?je=Ce.buffer.join(""):Ce.buffer.length===1?je=Ce.buffer.first():je=Ce.buffer.concat(Ce.length),Ce.buffer.clear()):je=Ce.buffer.consume(xe,Ce.decoder),je}function fe(xe){var Ce=xe._readableState;he("endReadable",Ce.endEmitted),Ce.endEmitted||(Ce.ended=!0,x.nextTick(Oe,Ce,xe))}function Oe(xe,Ce){if(he("endReadableNT",xe.endEmitted,xe.length),!xe.endEmitted&&xe.length===0&&(xe.endEmitted=!0,Ce.readable=!1,Ce.emit("end"),xe.autoDestroy)){var je=Ce._writableState;(!je||je.autoDestroy&&je.finished)&&Ce.destroy()}}typeof Symbol=="function"&&(Ke.from=function(xe,Ce){return Ie===void 0&&(Ie=y("./internal/streams/from")),Ie(Ke,xe,Ce)});function Ue(xe,Ce){for(var je=0,Ze=xe.length;je<Ze;je++)if(xe[je]===Ce)return je;return-1}}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(y,ke,we){"use strict";ke.exports=ne;var x=y("../errors").codes,z=x.ERR_METHOD_NOT_IMPLEMENTED,ie=x.ERR_MULTIPLE_CALLBACK,ae=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=x.ERR_TRANSFORM_WITH_LENGTH_0,de=y("./_stream_duplex");y("inherits")(ne,de);function E(le,he){var pe=this._transformState;pe.transforming=!1;var ve=pe.writecb;if(ve===null)return this.emit("error",new ie);pe.writechunk=null,pe.writecb=null,he!=null&&this.push(he),ve(le);var ce=this._readableState;ce.reading=!1,(ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}function ne(le){if(!(this instanceof ne))return new ne(le);de.call(this,le),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,le&&(typeof le.transform=="function"&&(this._transform=le.transform),typeof le.flush=="function"&&(this._flush=le.flush)),this.on("prefinish",re)}function re(){var le=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(he,pe){oe(le,he,pe)}):oe(this,null,null)}ne.prototype.push=function(le,he){return this._transformState.needTransform=!1,de.prototype.push.call(this,le,he)},ne.prototype._transform=function(le,he,pe){pe(new z("_transform()"))},ne.prototype._write=function(le,he,pe){var ve=this._transformState;if(ve.writecb=pe,ve.writechunk=le,ve.writeencoding=he,!ve.transforming){var ce=this._readableState;(ve.needTransform||ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}},ne.prototype._read=function(le){var he=this._transformState;he.writechunk!==null&&!he.transforming?(he.transforming=!0,this._transform(he.writechunk,he.writeencoding,he.afterTransform)):he.needTransform=!0},ne.prototype._destroy=function(le,he){de.prototype._destroy.call(this,le,function(pe){he(pe)})};function oe(le,he,pe){if(he)return le.emit("error",he);if(pe!=null&&le.push(pe),le._writableState.length)throw new ee;if(le._transformState.transforming)throw new ae;return le.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,ke,we){(function(x,z){(function(){"use strict";ke.exports=He;function ie(Pe,te,fe){this.chunk=Pe,this.encoding=te,this.callback=fe,this.next=null}function ae(Pe){var te=this;this.next=null,this.entry=null,this.finish=function(){Fe(te,Pe)}}var ee;He.WritableState=Ae;var de={deprecate:y("util-deprecate")},E=y("./internal/streams/stream"),ne=y("buffer").Buffer,re=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function oe(Pe){return ne.from(Pe)}function le(Pe){return ne.isBuffer(Pe)||Pe instanceof re}var he=y("./internal/streams/destroy"),pe=y("./internal/streams/state"),ve=pe.getHighWaterMark,ce=y("../errors").codes,me=ce.ERR_INVALID_ARG_TYPE,Ee=ce.ERR_METHOD_NOT_IMPLEMENTED,Te=ce.ERR_MULTIPLE_CALLBACK,Re=ce.ERR_STREAM_CANNOT_PIPE,_e=ce.ERR_STREAM_DESTROYED,ye=ce.ERR_STREAM_NULL_VALUES,be=ce.ERR_STREAM_WRITE_AFTER_END,Se=ce.ERR_UNKNOWN_ENCODING,Ie=he.errorOrDestroy;y("inherits")(He,E);function Me(){}function Ae(Pe,te,fe){ee=ee||y("./_stream_duplex"),Pe=Pe||{},typeof fe!="boolean"&&(fe=te instanceof ee),this.objectMode=!!Pe.objectMode,fe&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode),this.highWaterMark=ve(this,Pe,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Oe=Pe.decodeStrings===!1;this.decodeStrings=!Oe,this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ue){et(te,Ue)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Pe.emitClose!==!1,this.autoDestroy=!!Pe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ae(this)}Ae.prototype.getBuffer=function(){for(var te=this.bufferedRequest,fe=[];te;)fe.push(te),te=te.next;return fe},function(){try{Object.defineProperty(Ae.prototype,"buffer",{get:de.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}();var De;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(De=Function.prototype[Symbol.hasInstance],Object.defineProperty(He,Symbol.hasInstance,{value:function(te){return De.call(this,te)?!0:this!==He?!1:te&&te._writableState instanceof Ae}})):De=function(te){return te instanceof this};function He(Pe){ee=ee||y("./_stream_duplex");var te=this instanceof ee;if(!te&&!De.call(He,this))return new He(Pe);this._writableState=new Ae(Pe,this,te),this.writable=!0,Pe&&(typeof Pe.write=="function"&&(this._write=Pe.write),typeof Pe.writev=="function"&&(this._writev=Pe.writev),typeof Pe.destroy=="function"&&(this._destroy=Pe.destroy),typeof Pe.final=="function"&&(this._final=Pe.final)),E.call(this)}He.prototype.pipe=function(){Ie(this,new Re)};function Ke(Pe,te){var fe=new be;Ie(Pe,fe),x.nextTick(te,fe)}function Ve(Pe,te,fe,Oe){var Ue;return fe===null?Ue=new ye:typeof fe!="string"&&!te.objectMode&&(Ue=new me("chunk",["string","Buffer"],fe)),Ue?(Ie(Pe,Ue),x.nextTick(Oe,Ue),!1):!0}He.prototype.write=function(Pe,te,fe){var Oe=this._writableState,Ue=!1,xe=!Oe.objectMode&&le(Pe);return xe&&!ne.isBuffer(Pe)&&(Pe=oe(Pe)),typeof te=="function"&&(fe=te,te=null),xe?te="buffer":te||(te=Oe.defaultEncoding),typeof fe!="function"&&(fe=Me),Oe.ending?Ke(this,fe):(xe||Ve(this,Oe,Pe,fe))&&(Oe.pendingcb++,Ue=Ne(this,Oe,xe,Pe,te,fe)),Ue},He.prototype.cork=function(){this._writableState.corked++},He.prototype.uncork=function(){var Pe=this._writableState;Pe.corked&&(Pe.corked--,!Pe.writing&&!Pe.corked&&!Pe.bufferProcessing&&Pe.bufferedRequest&&Ge(this,Pe))},He.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new Se(te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(He.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function nt(Pe,te,fe){return!Pe.objectMode&&Pe.decodeStrings!==!1&&typeof te=="string"&&(te=ne.from(te,fe)),te}Object.defineProperty(He.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ne(Pe,te,fe,Oe,Ue,xe){if(!fe){var Ce=nt(te,Oe,Ue);Oe!==Ce&&(fe=!0,Ue="buffer",Oe=Ce)}var je=te.objectMode?1:Oe.length;te.length+=je;var Ze=te.length<te.highWaterMark;if(Ze||(te.needDrain=!0),te.writing||te.corked){var tt=te.lastBufferedRequest;te.lastBufferedRequest={chunk:Oe,encoding:Ue,isBuf:fe,callback:xe,next:null},tt?tt.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else We(Pe,te,!1,je,Oe,Ue,xe);return Ze}function We(Pe,te,fe,Oe,Ue,xe,Ce){te.writelen=Oe,te.writecb=Ce,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new _e("write")):fe?Pe._writev(Ue,te.onwrite):Pe._write(Ue,xe,te.onwrite),te.sync=!1}function $e(Pe,te,fe,Oe,Ue){--te.pendingcb,fe?(x.nextTick(Ue,Oe),x.nextTick(ot,Pe,te),Pe._writableState.errorEmitted=!0,Ie(Pe,Oe)):(Ue(Oe),Pe._writableState.errorEmitted=!0,Ie(Pe,Oe),ot(Pe,te))}function rt(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}function et(Pe,te){var fe=Pe._writableState,Oe=fe.sync,Ue=fe.writecb;if(typeof Ue!="function")throw new Te;if(rt(fe),te)$e(Pe,fe,Oe,te,Ue);else{var xe=at(fe)||Pe.destroyed;!xe&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&Ge(Pe,fe),Oe?x.nextTick(Xe,Pe,fe,xe,Ue):Xe(Pe,fe,xe,Ue)}}function Xe(Pe,te,fe,Oe){fe||Ye(Pe,te),te.pendingcb--,Oe(),ot(Pe,te)}function Ye(Pe,te){te.length===0&&te.needDrain&&(te.needDrain=!1,Pe.emit("drain"))}function Ge(Pe,te){te.bufferProcessing=!0;var fe=te.bufferedRequest;if(Pe._writev&&fe&&fe.next){var Oe=te.bufferedRequestCount,Ue=new Array(Oe),xe=te.corkedRequestsFree;xe.entry=fe;for(var Ce=0,je=!0;fe;)Ue[Ce]=fe,fe.isBuf||(je=!1),fe=fe.next,Ce+=1;Ue.allBuffers=je,We(Pe,te,!0,te.length,Ue,"",xe.finish),te.pendingcb++,te.lastBufferedRequest=null,xe.next?(te.corkedRequestsFree=xe.next,xe.next=null):te.corkedRequestsFree=new ae(te),te.bufferedRequestCount=0}else{for(;fe;){var Ze=fe.chunk,tt=fe.encoding,it=fe.callback,ct=te.objectMode?1:Ze.length;if(We(Pe,te,!1,ct,Ze,tt,it),fe=fe.next,te.bufferedRequestCount--,te.writing)break}fe===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=fe,te.bufferProcessing=!1}He.prototype._write=function(Pe,te,fe){fe(new Ee("_write()"))},He.prototype._writev=null,He.prototype.end=function(Pe,te,fe){var Oe=this._writableState;return typeof Pe=="function"?(fe=Pe,Pe=null,te=null):typeof te=="function"&&(fe=te,te=null),Pe!=null&&this.write(Pe,te),Oe.corked&&(Oe.corked=1,this.uncork()),Oe.ending||Je(this,Oe,fe),this},Object.defineProperty(He.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function at(Pe){return Pe.ending&&Pe.length===0&&Pe.bufferedRequest===null&&!Pe.finished&&!Pe.writing}function Qe(Pe,te){Pe._final(function(fe){te.pendingcb--,fe&&Ie(Pe,fe),te.prefinished=!0,Pe.emit("prefinish"),ot(Pe,te)})}function ft(Pe,te){!te.prefinished&&!te.finalCalled&&(typeof Pe._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,x.nextTick(Qe,Pe,te)):(te.prefinished=!0,Pe.emit("prefinish")))}function ot(Pe,te){var fe=at(te);if(fe&&(ft(Pe,te),te.pendingcb===0&&(te.finished=!0,Pe.emit("finish"),te.autoDestroy))){var Oe=Pe._readableState;(!Oe||Oe.autoDestroy&&Oe.endEmitted)&&Pe.destroy()}return fe}function Je(Pe,te,fe){te.ending=!0,ot(Pe,te),fe&&(te.finished?x.nextTick(fe):Pe.once("finish",fe)),te.ended=!0,Pe.writable=!1}function Fe(Pe,te,fe){var Oe=Pe.entry;for(Pe.entry=null;Oe;){var Ue=Oe.callback;te.pendingcb--,Ue(fe),Oe=Oe.next}te.corkedRequestsFree.next=Pe}Object.defineProperty(He.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),He.prototype.destroy=he.destroy,He.prototype._undestroy=he.undestroy,He.prototype._destroy=function(Pe,te){te(Pe)}}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(y,ke,we){(function(x){(function(){"use strict";var z;function ie(ye,be,Se){return be=ae(be),be in ye?Object.defineProperty(ye,be,{value:Se,enumerable:!0,configurable:!0,writable:!0}):ye[be]=Se,ye}function ae(ye){var be=ee(ye,"string");return typeof be=="symbol"?be:String(be)}function ee(ye,be){if(typeof ye!="object"||ye===null)return ye;var Se=ye[Symbol.toPrimitive];if(Se!==void 0){var Ie=Se.call(ye,be||"default");if(typeof Ie!="object")return Ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(ye)}var de=y("./end-of-stream"),E=Symbol("lastResolve"),ne=Symbol("lastReject"),re=Symbol("error"),oe=Symbol("ended"),le=Symbol("lastPromise"),he=Symbol("handlePromise"),pe=Symbol("stream");function ve(ye,be){return{value:ye,done:be}}function ce(ye){var be=ye[E];if(be!==null){var Se=ye[pe].read();Se!==null&&(ye[le]=null,ye[E]=null,ye[ne]=null,be(ve(Se,!1)))}}function me(ye){x.nextTick(ce,ye)}function Ee(ye,be){return function(Se,Ie){ye.then(function(){if(be[oe]){Se(ve(void 0,!0));return}be[he](Se,Ie)},Ie)}}var Te=Object.getPrototypeOf(function(){}),Re=Object.setPrototypeOf((z={get stream(){return this[pe]},next:function(){var be=this,Se=this[re];if(Se!==null)return Promise.reject(Se);if(this[oe])return Promise.resolve(ve(void 0,!0));if(this[pe].destroyed)return new Promise(function(De,He){x.nextTick(function(){be[re]?He(be[re]):De(ve(void 0,!0))})});var Ie=this[le],Me;if(Ie)Me=new Promise(Ee(Ie,this));else{var Ae=this[pe].read();if(Ae!==null)return Promise.resolve(ve(Ae,!1));Me=new Promise(this[he])}return this[le]=Me,Me}},ie(z,Symbol.asyncIterator,function(){return this}),ie(z,"return",function(){var be=this;return new Promise(function(Se,Ie){be[pe].destroy(null,function(Me){if(Me){Ie(Me);return}Se(ve(void 0,!0))})})}),z),Te),_e=function(be){var Se,Ie=Object.create(Re,(Se={},ie(Se,pe,{value:be,writable:!0}),ie(Se,E,{value:null,writable:!0}),ie(Se,ne,{value:null,writable:!0}),ie(Se,re,{value:null,writable:!0}),ie(Se,oe,{value:be._readableState.endEmitted,writable:!0}),ie(Se,he,{value:function(Ae,De){var He=Ie[pe].read();He?(Ie[le]=null,Ie[E]=null,Ie[ne]=null,Ae(ve(He,!1))):(Ie[E]=Ae,Ie[ne]=De)},writable:!0}),Se));return Ie[le]=null,de(be,function(Me){if(Me&&Me.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ae=Ie[ne];Ae!==null&&(Ie[le]=null,Ie[E]=null,Ie[ne]=null,Ae(Me)),Ie[re]=Me;return}var De=Ie[E];De!==null&&(Ie[le]=null,Ie[E]=null,Ie[ne]=null,De(ve(void 0,!0))),Ie[oe]=!0}),be.on("readable",me.bind(null,Ie)),Ie};ke.exports=_e}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,ke,we){"use strict";function x(ce,me){var Ee=Object.keys(ce);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(ce);me&&(Te=Te.filter(function(Re){return Object.getOwnPropertyDescriptor(ce,Re).enumerable})),Ee.push.apply(Ee,Te)}return Ee}function z(ce){for(var me=1;me<arguments.length;me++){var Ee=arguments[me]!=null?arguments[me]:{};me%2?x(Object(Ee),!0).forEach(function(Te){ie(ce,Te,Ee[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(Ee)):x(Object(Ee)).forEach(function(Te){Object.defineProperty(ce,Te,Object.getOwnPropertyDescriptor(Ee,Te))})}return ce}function ie(ce,me,Ee){return me=E(me),me in ce?Object.defineProperty(ce,me,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ce[me]=Ee,ce}function ae(ce,me){if(!(ce instanceof me))throw new TypeError("Cannot call a class as a function")}function ee(ce,me){for(var Ee=0;Ee<me.length;Ee++){var Te=me[Ee];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(ce,E(Te.key),Te)}}function de(ce,me,Ee){return me&&ee(ce.prototype,me),Ee&&ee(ce,Ee),Object.defineProperty(ce,"prototype",{writable:!1}),ce}function E(ce){var me=ne(ce,"string");return typeof me=="symbol"?me:String(me)}function ne(ce,me){if(typeof ce!="object"||ce===null)return ce;var Ee=ce[Symbol.toPrimitive];if(Ee!==void 0){var Te=Ee.call(ce,me||"default");if(typeof Te!="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(me==="string"?String:Number)(ce)}var re=y("buffer"),oe=re.Buffer,le=y("util"),he=le.inspect,pe=he&&he.custom||"inspect";function ve(ce,me,Ee){oe.prototype.copy.call(ce,me,Ee)}ke.exports=function(){function ce(){ae(this,ce),this.head=null,this.tail=null,this.length=0}return de(ce,[{key:"push",value:function(Ee){var Te={data:Ee,next:null};this.length>0?this.tail.next=Te:this.head=Te,this.tail=Te,++this.length}},{key:"unshift",value:function(Ee){var Te={data:Ee,next:this.head};this.length===0&&(this.tail=Te),this.head=Te,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ee=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ee){if(this.length===0)return"";for(var Te=this.head,Re=""+Te.data;Te=Te.next;)Re+=Ee+Te.data;return Re}},{key:"concat",value:function(Ee){if(this.length===0)return oe.alloc(0);for(var Te=oe.allocUnsafe(Ee>>>0),Re=this.head,_e=0;Re;)ve(Re.data,Te,_e),_e+=Re.data.length,Re=Re.next;return Te}},{key:"consume",value:function(Ee,Te){var Re;return Ee<this.head.data.length?(Re=this.head.data.slice(0,Ee),this.head.data=this.head.data.slice(Ee)):Ee===this.head.data.length?Re=this.shift():Re=Te?this._getString(Ee):this._getBuffer(Ee),Re}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ee){var Te=this.head,Re=1,_e=Te.data;for(Ee-=_e.length;Te=Te.next;){var ye=Te.data,be=Ee>ye.length?ye.length:Ee;if(be===ye.length?_e+=ye:_e+=ye.slice(0,Ee),Ee-=be,Ee===0){be===ye.length?(++Re,Te.next?this.head=Te.next:this.head=this.tail=null):(this.head=Te,Te.data=ye.slice(be));break}++Re}return this.length-=Re,_e}},{key:"_getBuffer",value:function(Ee){var Te=oe.allocUnsafe(Ee),Re=this.head,_e=1;for(Re.data.copy(Te),Ee-=Re.data.length;Re=Re.next;){var ye=Re.data,be=Ee>ye.length?ye.length:Ee;if(ye.copy(Te,Te.length-Ee,0,be),Ee-=be,Ee===0){be===ye.length?(++_e,Re.next?this.head=Re.next:this.head=this.tail=null):(this.head=Re,Re.data=ye.slice(be));break}++_e}return this.length-=_e,Te}},{key:pe,value:function(Ee,Te){return he(this,z(z({},Te),{},{depth:0,customInspect:!1}))}}]),ce}()},{buffer:90,util:89}],407:[function(y,ke,we){(function(x){(function(){"use strict";function z(ne,re){var oe=this,le=this._readableState&&this._readableState.destroyed,he=this._writableState&&this._writableState.destroyed;return le||he?(re?re(ne):ne&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(de,this,ne)):x.nextTick(de,this,ne)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ne||null,function(pe){!re&&pe?oe._writableState?oe._writableState.errorEmitted?x.nextTick(ae,oe):(oe._writableState.errorEmitted=!0,x.nextTick(ie,oe,pe)):x.nextTick(ie,oe,pe):re?(x.nextTick(ae,oe),re(pe)):x.nextTick(ae,oe)}),this)}function ie(ne,re){de(ne,re),ae(ne)}function ae(ne){ne._writableState&&!ne._writableState.emitClose||ne._readableState&&!ne._readableState.emitClose||ne.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function de(ne,re){ne.emit("error",re)}function E(ne,re){var oe=ne._readableState,le=ne._writableState;oe&&oe.autoDestroy||le&&le.autoDestroy?ne.destroy(re):ne.emit("error",re)}ke.exports={destroy:z,undestroy:ee,errorOrDestroy:E}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,ke,we){"use strict";var x=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(de){var E=!1;return function(){if(!E){E=!0;for(var ne=arguments.length,re=new Array(ne),oe=0;oe<ne;oe++)re[oe]=arguments[oe];de.apply(this,re)}}}function ie(){}function ae(de){return de.setHeader&&typeof de.abort=="function"}function ee(de,E,ne){if(typeof E=="function")return ee(de,null,E);E||(E={}),ne=z(ne||ie);var re=E.readable||E.readable!==!1&&de.readable,oe=E.writable||E.writable!==!1&&de.writable,le=function(){de.writable||pe()},he=de._writableState&&de._writableState.finished,pe=function(){oe=!1,he=!0,re||ne.call(de)},ve=de._readableState&&de._readableState.endEmitted,ce=function(){re=!1,ve=!0,oe||ne.call(de)},me=function(_e){ne.call(de,_e)},Ee=function(){var _e;if(re&&!ve)return(!de._readableState||!de._readableState.ended)&&(_e=new x),ne.call(de,_e);if(oe&&!he)return(!de._writableState||!de._writableState.ended)&&(_e=new x),ne.call(de,_e)},Te=function(){de.req.on("finish",pe)};return ae(de)?(de.on("complete",pe),de.on("abort",Ee),de.req?Te():de.on("request",Te)):oe&&!de._writableState&&(de.on("end",le),de.on("close",le)),de.on("end",ce),de.on("finish",pe),E.error!==!1&&de.on("error",me),de.on("close",Ee),function(){de.removeListener("complete",pe),de.removeListener("abort",Ee),de.removeListener("request",Te),de.req&&de.req.removeListener("finish",pe),de.removeListener("end",le),de.removeListener("close",le),de.removeListener("finish",pe),de.removeListener("end",ce),de.removeListener("error",me),de.removeListener("close",Ee)}}ke.exports=ee},{"../../../errors":399}],409:[function(y,ke,we){ke.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,ke,we){"use strict";var x;function z(pe){var ve=!1;return function(){ve||(ve=!0,pe.apply(void 0,arguments))}}var ie=y("../../../errors").codes,ae=ie.ERR_MISSING_ARGS,ee=ie.ERR_STREAM_DESTROYED;function de(pe){if(pe)throw pe}function E(pe){return pe.setHeader&&typeof pe.abort=="function"}function ne(pe,ve,ce,me){me=z(me);var Ee=!1;pe.on("close",function(){Ee=!0}),x===void 0&&(x=y("./end-of-stream")),x(pe,{readable:ve,writable:ce},function(Re){if(Re)return me(Re);Ee=!0,me()});var Te=!1;return function(Re){if(!Ee&&!Te){if(Te=!0,E(pe))return pe.abort();if(typeof pe.destroy=="function")return pe.destroy();me(Re||new ee("pipe"))}}}function re(pe){pe()}function oe(pe,ve){return pe.pipe(ve)}function le(pe){return!pe.length||typeof pe[pe.length-1]!="function"?de:pe.pop()}function he(){for(var pe=arguments.length,ve=new Array(pe),ce=0;ce<pe;ce++)ve[ce]=arguments[ce];var me=le(ve);if(Array.isArray(ve[0])&&(ve=ve[0]),ve.length<2)throw new ae("streams");var Ee,Te=ve.map(function(Re,_e){var ye=_e<ve.length-1,be=_e>0;return ne(Re,ye,be,function(Se){Ee||(Ee=Se),Se&&Te.forEach(re),!ye&&(Te.forEach(re),me(Ee))})});return ve.reduce(oe)}ke.exports=he},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,ke,we){"use strict";var x=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(ae,ee,de){return ae.highWaterMark!=null?ae.highWaterMark:ee?ae[de]:null}function ie(ae,ee,de,E){var ne=z(ee,E,de);if(ne!=null){if(!(isFinite(ne)&&Math.floor(ne)===ne)||ne<0){var re=E?de:"highWaterMark";throw new x(re,ne)}return Math.floor(ne)}return ae.objectMode?16:16*1024}ke.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(y,ke,we){arguments[4][393][0].apply(we,arguments)},{dup:393,events:344}],413:[function(y,ke,we){"use strict";var x=y("safe-buffer").Buffer,z=x.isEncoding||function(Te){switch(Te=""+Te,Te&&Te.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(Te){if(!Te)return"utf8";for(var Re;;)switch(Te){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Te;default:if(Re)return;Te=(""+Te).toLowerCase(),Re=!0}}function ae(Te){var Re=ie(Te);if(typeof Re!="string"&&(x.isEncoding===z||!z(Te)))throw new Error("Unknown encoding: "+Te);return Re||Te}we.StringDecoder=ee;function ee(Te){this.encoding=ae(Te);var Re;switch(this.encoding){case"utf16le":this.text=he,this.end=pe,Re=4;break;case"utf8":this.fillLast=re,Re=4;break;case"base64":this.text=ve,this.end=ce,Re=3;break;default:this.write=me,this.end=Ee;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(Re)}ee.prototype.write=function(Te){if(Te.length===0)return"";var Re,_e;if(this.lastNeed){if(Re=this.fillLast(Te),Re===void 0)return"";_e=this.lastNeed,this.lastNeed=0}else _e=0;return _e<Te.length?Re?Re+this.text(Te,_e):this.text(Te,_e):Re||""},ee.prototype.end=le,ee.prototype.text=oe,ee.prototype.fillLast=function(Te){if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Te.length),this.lastNeed-=Te.length};function de(Te){return Te<=127?0:Te>>5===6?2:Te>>4===14?3:Te>>3===30?4:Te>>6===2?-1:-2}function E(Te,Re,_e){var ye=Re.length-1;if(ye<_e)return 0;var be=de(Re[ye]);return be>=0?(be>0&&(Te.lastNeed=be-1),be):--ye<_e||be===-2?0:(be=de(Re[ye]),be>=0?(be>0&&(Te.lastNeed=be-2),be):--ye<_e||be===-2?0:(be=de(Re[ye]),be>=0?(be>0&&(be===2?be=0:Te.lastNeed=be-3),be):0))}function ne(Te,Re,_e){if((Re[0]&192)!==128)return Te.lastNeed=0,"\uFFFD";if(Te.lastNeed>1&&Re.length>1){if((Re[1]&192)!==128)return Te.lastNeed=1,"\uFFFD";if(Te.lastNeed>2&&Re.length>2&&(Re[2]&192)!==128)return Te.lastNeed=2,"\uFFFD"}}function re(Te){var Re=this.lastTotal-this.lastNeed,_e=ne(this,Te,Re);if(_e!==void 0)return _e;if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,Re,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,Re,0,Te.length),this.lastNeed-=Te.length}function oe(Te,Re){var _e=E(this,Te,Re);if(!this.lastNeed)return Te.toString("utf8",Re);this.lastTotal=_e;var ye=Te.length-(_e-this.lastNeed);return Te.copy(this.lastChar,0,ye),Te.toString("utf8",Re,ye)}function le(Te){var Re=Te&&Te.length?this.write(Te):"";return this.lastNeed?Re+"\uFFFD":Re}function he(Te,Re){if((Te.length-Re)%2===0){var _e=Te.toString("utf16le",Re);if(_e){var ye=_e.charCodeAt(_e.length-1);if(ye>=55296&&ye<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1],_e.slice(0,-1)}return _e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Te[Te.length-1],Te.toString("utf16le",Re,Te.length-1)}function pe(Te){var Re=Te&&Te.length?this.write(Te):"";if(this.lastNeed){var _e=this.lastTotal-this.lastNeed;return Re+this.lastChar.toString("utf16le",0,_e)}return Re}function ve(Te,Re){var _e=(Te.length-Re)%3;return _e===0?Te.toString("base64",Re):(this.lastNeed=3-_e,this.lastTotal=3,_e===1?this.lastChar[0]=Te[Te.length-1]:(this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1]),Te.toString("base64",Re,Te.length-_e))}function ce(Te){var Re=Te&&Te.length?this.write(Te):"";return this.lastNeed?Re+this.lastChar.toString("base64",0,3-this.lastNeed):Re}function me(Te){return Te.toString(this.encoding)}function Ee(Te){return Te&&Te.length?this.write(Te):""}},{"safe-buffer":396}],414:[function(y,ke,we){(function(x,z){(function(){var ie=y("process/browser.js").nextTick,ae=Function.prototype.apply,ee=Array.prototype.slice,de={},E=0;we.setTimeout=function(){return new ne(ae.call(setTimeout,window,arguments),clearTimeout)},we.setInterval=function(){return new ne(ae.call(setInterval,window,arguments),clearInterval)},we.clearTimeout=we.clearInterval=function(re){re.close()};function ne(re,oe){this._id=re,this._clearFn=oe}ne.prototype.unref=ne.prototype.ref=function(){},ne.prototype.close=function(){this._clearFn.call(window,this._id)},we.enroll=function(re,oe){clearTimeout(re._idleTimeoutId),re._idleTimeout=oe},we.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},we._unrefActive=we.active=function(re){clearTimeout(re._idleTimeoutId);var oe=re._idleTimeout;oe>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},oe))},we.setImmediate=typeof x=="function"?x:function(re){var oe=E++,le=arguments.length<2?!1:ee.call(arguments,1);return de[oe]=!0,ie(function(){de[oe]&&(le?re.apply(null,le):re.call(null),we.clearImmediate(oe))}),oe},we.clearImmediate=typeof z=="function"?z:function(re){delete de[re]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,ke,we){var x=y("buffer").Buffer;ke.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(x.isBuffer(z)){for(var ie=new Uint8Array(z.length),ae=z.length,ee=0;ee<ae;ee++)ie[ee]=z[ee];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,ke,we){(function(x){(function(){ke.exports=z;function z(ae,ee){if(ie("noDeprecation"))return ae;var de=!1;function E(){if(!de){if(ie("throwDeprecation"))throw new Error(ee);ie("traceDeprecation")?console.trace(ee):console.warn(ee),de=!0}return ae.apply(this,arguments)}return E}function ie(ae){try{if(!x.localStorage)return!1}catch(de){return!1}var ee=x.localStorage[ae];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,ke,we){arguments[4][84][0].apply(we,arguments)},{dup:84}],418:[function(y,ke,we){"use strict";var x=y("is-arguments"),z=y("is-generator-function"),ie=y("which-typed-array"),ae=y("is-typed-array");function ee(tt){return tt.call.bind(tt)}var de=typeof BigInt!="undefined",E=typeof Symbol!="undefined",ne=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),oe=ee(String.prototype.valueOf),le=ee(Boolean.prototype.valueOf);if(de)var he=ee(BigInt.prototype.valueOf);if(E)var pe=ee(Symbol.prototype.valueOf);function ve(tt,it){if(typeof tt!="object")return!1;try{return it(tt),!0}catch(ct){return!1}}we.isArgumentsObject=x,we.isGeneratorFunction=z,we.isTypedArray=ae;function ce(tt){return typeof Promise!="undefined"&&tt instanceof Promise||tt!==null&&typeof tt=="object"&&typeof tt.then=="function"&&typeof tt.catch=="function"}we.isPromise=ce;function me(tt){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(tt):ae(tt)||Ge(tt)}we.isArrayBufferView=me;function Ee(tt){return ie(tt)==="Uint8Array"}we.isUint8Array=Ee;function Te(tt){return ie(tt)==="Uint8ClampedArray"}we.isUint8ClampedArray=Te;function Re(tt){return ie(tt)==="Uint16Array"}we.isUint16Array=Re;function _e(tt){return ie(tt)==="Uint32Array"}we.isUint32Array=_e;function ye(tt){return ie(tt)==="Int8Array"}we.isInt8Array=ye;function be(tt){return ie(tt)==="Int16Array"}we.isInt16Array=be;function Se(tt){return ie(tt)==="Int32Array"}we.isInt32Array=Se;function Ie(tt){return ie(tt)==="Float32Array"}we.isFloat32Array=Ie;function Me(tt){return ie(tt)==="Float64Array"}we.isFloat64Array=Me;function Ae(tt){return ie(tt)==="BigInt64Array"}we.isBigInt64Array=Ae;function De(tt){return ie(tt)==="BigUint64Array"}we.isBigUint64Array=De;function He(tt){return ne(tt)==="[object Map]"}He.working=typeof Map!="undefined"&&He(new Map);function Ke(tt){return typeof Map=="undefined"?!1:He.working?He(tt):tt instanceof Map}we.isMap=Ke;function Ve(tt){return ne(tt)==="[object Set]"}Ve.working=typeof Set!="undefined"&&Ve(new Set);function nt(tt){return typeof Set=="undefined"?!1:Ve.working?Ve(tt):tt instanceof Set}we.isSet=nt;function Ne(tt){return ne(tt)==="[object WeakMap]"}Ne.working=typeof WeakMap!="undefined"&&Ne(new WeakMap);function We(tt){return typeof WeakMap=="undefined"?!1:Ne.working?Ne(tt):tt instanceof WeakMap}we.isWeakMap=We;function $e(tt){return ne(tt)==="[object WeakSet]"}$e.working=typeof WeakSet!="undefined"&&$e(new WeakSet);function rt(tt){return $e(tt)}we.isWeakSet=rt;function et(tt){return ne(tt)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function Xe(tt){return typeof ArrayBuffer=="undefined"?!1:et.working?et(tt):tt instanceof ArrayBuffer}we.isArrayBuffer=Xe;function Ye(tt){return ne(tt)==="[object DataView]"}Ye.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ye(new DataView(new ArrayBuffer(1),0,1));function Ge(tt){return typeof DataView=="undefined"?!1:Ye.working?Ye(tt):tt instanceof DataView}we.isDataView=Ge;var at=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(tt){return ne(tt)==="[object SharedArrayBuffer]"}function ft(tt){return typeof at=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new at)),Qe.working?Qe(tt):tt instanceof at)}we.isSharedArrayBuffer=ft;function ot(tt){return ne(tt)==="[object AsyncFunction]"}we.isAsyncFunction=ot;function Je(tt){return ne(tt)==="[object Map Iterator]"}we.isMapIterator=Je;function Fe(tt){return ne(tt)==="[object Set Iterator]"}we.isSetIterator=Fe;function Pe(tt){return ne(tt)==="[object Generator]"}we.isGeneratorObject=Pe;function te(tt){return ne(tt)==="[object WebAssembly.Module]"}we.isWebAssemblyCompiledModule=te;function fe(tt){return ve(tt,re)}we.isNumberObject=fe;function Oe(tt){return ve(tt,oe)}we.isStringObject=Oe;function Ue(tt){return ve(tt,le)}we.isBooleanObject=Ue;function xe(tt){return de&&ve(tt,he)}we.isBigIntObject=xe;function Ce(tt){return E&&ve(tt,pe)}we.isSymbolObject=Ce;function je(tt){return fe(tt)||Oe(tt)||Ue(tt)||xe(tt)||Ce(tt)}we.isBoxedPrimitive=je;function Ze(tt){return typeof Uint8Array!="undefined"&&(Xe(tt)||ft(tt))}we.isAnyArrayBuffer=Ze,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(tt){Object.defineProperty(we,tt,{enumerable:!1,value:function(){throw new Error(tt+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,ke,we){(function(x){(function(){var z=Object.getOwnPropertyDescriptors||function(at){for(var Qe=Object.keys(at),ft={},ot=0;ot<Qe.length;ot++)ft[Qe[ot]]=Object.getOwnPropertyDescriptor(at,Qe[ot]);return ft},ie=/%[sdj%]/g;we.format=function(Ge){if(!be(Ge)){for(var at=[],Qe=0;Qe<arguments.length;Qe++)at.push(E(arguments[Qe]));return at.join(" ")}for(var Qe=1,ft=arguments,ot=ft.length,Je=String(Ge).replace(ie,function(Pe){if(Pe==="%%")return"%";if(Qe>=ot)return Pe;switch(Pe){case"%s":return String(ft[Qe++]);case"%d":return Number(ft[Qe++]);case"%j":try{return JSON.stringify(ft[Qe++])}catch(te){return"[Circular]"}default:return Pe}}),Fe=ft[Qe];Qe<ot;Fe=ft[++Qe])Re(Fe)||!Ae(Fe)?Je+=" "+Fe:Je+=" "+E(Fe);return Je},we.deprecate=function(Ge,at){if(typeof x!="undefined"&&x.noDeprecation===!0)return Ge;if(typeof x=="undefined")return function(){return we.deprecate(Ge,at).apply(this,arguments)};var Qe=!1;function ft(){if(!Qe){if(x.throwDeprecation)throw new Error(at);x.traceDeprecation?console.trace(at):console.error(at),Qe=!0}return Ge.apply(this,arguments)}return ft};var ae={},ee=/^$/;if(x.env.NODE_DEBUG){var de=x.env.NODE_DEBUG;de=de.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+de+"$","i")}we.debuglog=function(Ge){if(Ge=Ge.toUpperCase(),!ae[Ge])if(ee.test(Ge)){var at=x.pid;ae[Ge]=function(){var Qe=we.format.apply(we,arguments);console.error("%s %d: %s",Ge,at,Qe)}}else ae[Ge]=function(){};return ae[Ge]};function E(Ge,at){var Qe={seen:[],stylize:re};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),Te(at)?Qe.showHidden=at:at&&we._extend(Qe,at),Ie(Qe.showHidden)&&(Qe.showHidden=!1),Ie(Qe.depth)&&(Qe.depth=2),Ie(Qe.colors)&&(Qe.colors=!1),Ie(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=ne),le(Qe,Ge,Qe.depth)}we.inspect=E,E.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},E.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ne(Ge,at){var Qe=E.styles[at];return Qe?"\x1B["+E.colors[Qe][0]+"m"+Ge+"\x1B["+E.colors[Qe][1]+"m":Ge}function re(Ge,at){return Ge}function oe(Ge){var at={};return Ge.forEach(function(Qe,ft){at[Qe]=!0}),at}function le(Ge,at,Qe){if(Ge.customInspect&&at&&Ke(at.inspect)&&at.inspect!==we.inspect&&!(at.constructor&&at.constructor.prototype===at)){var ft=at.inspect(Qe,Ge);return be(ft)||(ft=le(Ge,ft,Qe)),ft}var ot=he(Ge,at);if(ot)return ot;var Je=Object.keys(at),Fe=oe(Je);if(Ge.showHidden&&(Je=Object.getOwnPropertyNames(at)),He(at)&&(Je.indexOf("message")>=0||Je.indexOf("description")>=0))return pe(at);if(Je.length===0){if(Ke(at)){var Pe=at.name?": "+at.name:"";return Ge.stylize("[Function"+Pe+"]","special")}if(Me(at))return Ge.stylize(RegExp.prototype.toString.call(at),"regexp");if(De(at))return Ge.stylize(Date.prototype.toString.call(at),"date");if(He(at))return pe(at)}var te="",fe=!1,Oe=["{","}"];if(Ee(at)&&(fe=!0,Oe=["[","]"]),Ke(at)){var Ue=at.name?": "+at.name:"";te=" [Function"+Ue+"]"}if(Me(at)&&(te=" "+RegExp.prototype.toString.call(at)),De(at)&&(te=" "+Date.prototype.toUTCString.call(at)),He(at)&&(te=" "+pe(at)),Je.length===0&&(!fe||at.length==0))return Oe[0]+te+Oe[1];if(Qe<0)return Me(at)?Ge.stylize(RegExp.prototype.toString.call(at),"regexp"):Ge.stylize("[Object]","special");Ge.seen.push(at);var xe;return fe?xe=ve(Ge,at,Qe,Fe,Je):xe=Je.map(function(Ce){return ce(Ge,at,Qe,Fe,Ce,fe)}),Ge.seen.pop(),me(xe,te,Oe)}function he(Ge,at){if(Ie(at))return Ge.stylize("undefined","undefined");if(be(at)){var Qe="'"+JSON.stringify(at).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ge.stylize(Qe,"string")}if(ye(at))return Ge.stylize(""+at,"number");if(Te(at))return Ge.stylize(""+at,"boolean");if(Re(at))return Ge.stylize("null","null")}function pe(Ge){return"["+Error.prototype.toString.call(Ge)+"]"}function ve(Ge,at,Qe,ft,ot){for(var Je=[],Fe=0,Pe=at.length;Fe<Pe;++Fe)rt(at,String(Fe))?Je.push(ce(Ge,at,Qe,ft,String(Fe),!0)):Je.push("");return ot.forEach(function(te){te.match(/^\d+$/)||Je.push(ce(Ge,at,Qe,ft,te,!0))}),Je}function ce(Ge,at,Qe,ft,ot,Je){var Fe,Pe,te;if(te=Object.getOwnPropertyDescriptor(at,ot)||{value:at[ot]},te.get?te.set?Pe=Ge.stylize("[Getter/Setter]","special"):Pe=Ge.stylize("[Getter]","special"):te.set&&(Pe=Ge.stylize("[Setter]","special")),rt(ft,ot)||(Fe="["+ot+"]"),Pe||(Ge.seen.indexOf(te.value)<0?(Re(Qe)?Pe=le(Ge,te.value,null):Pe=le(Ge,te.value,Qe-1),Pe.indexOf(`
`)>-1&&(Je?Pe=Pe.split(`
`).map(function(fe){return" "+fe}).join(`
`).slice(2):Pe=`
`+Pe.split(`
`).map(function(fe){return" "+fe}).join(`
`))):Pe=Ge.stylize("[Circular]","special")),Ie(Fe)){if(Je&&ot.match(/^\d+$/))return Pe;Fe=JSON.stringify(""+ot),Fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Fe=Fe.slice(1,-1),Fe=Ge.stylize(Fe,"name")):(Fe=Fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Fe=Ge.stylize(Fe,"string"))}return Fe+": "+Pe}function me(Ge,at,Qe){var ft=0,ot=Ge.reduce(function(Je,Fe){return ft++,Fe.indexOf(`
`)>=0&&ft++,Je+Fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ot>60?Qe[0]+(at===""?"":at+`
`)+" "+Ge.join(`,
`)+" "+Qe[1]:Qe[0]+at+" "+Ge.join(", ")+" "+Qe[1]}we.types=y("./support/types");function Ee(Ge){return Array.isArray(Ge)}we.isArray=Ee;function Te(Ge){return typeof Ge=="boolean"}we.isBoolean=Te;function Re(Ge){return Ge===null}we.isNull=Re;function _e(Ge){return Ge==null}we.isNullOrUndefined=_e;function ye(Ge){return typeof Ge=="number"}we.isNumber=ye;function be(Ge){return typeof Ge=="string"}we.isString=be;function Se(Ge){return typeof Ge=="symbol"}we.isSymbol=Se;function Ie(Ge){return Ge===void 0}we.isUndefined=Ie;function Me(Ge){return Ae(Ge)&&nt(Ge)==="[object RegExp]"}we.isRegExp=Me,we.types.isRegExp=Me;function Ae(Ge){return typeof Ge=="object"&&Ge!==null}we.isObject=Ae;function De(Ge){return Ae(Ge)&&nt(Ge)==="[object Date]"}we.isDate=De,we.types.isDate=De;function He(Ge){return Ae(Ge)&&(nt(Ge)==="[object Error]"||Ge instanceof Error)}we.isError=He,we.types.isNativeError=He;function Ke(Ge){return typeof Ge=="function"}we.isFunction=Ke;function Ve(Ge){return Ge===null||typeof Ge=="boolean"||typeof Ge=="number"||typeof Ge=="string"||typeof Ge=="symbol"||typeof Ge=="undefined"}we.isPrimitive=Ve,we.isBuffer=y("./support/isBuffer");function nt(Ge){return Object.prototype.toString.call(Ge)}function Ne(Ge){return Ge<10?"0"+Ge.toString(10):Ge.toString(10)}var We=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $e(){var Ge=new Date,at=[Ne(Ge.getHours()),Ne(Ge.getMinutes()),Ne(Ge.getSeconds())].join(":");return[Ge.getDate(),We[Ge.getMonth()],at].join(" ")}we.log=function(){console.log("%s - %s",$e(),we.format.apply(we,arguments))},we.inherits=y("inherits"),we._extend=function(Ge,at){if(!at||!Ae(at))return Ge;for(var Qe=Object.keys(at),ft=Qe.length;ft--;)Ge[Qe[ft]]=at[Qe[ft]];return Ge};function rt(Ge,at){return Object.prototype.hasOwnProperty.call(Ge,at)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;we.promisify=function(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&at[et]){var Qe=at[et];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ft,ot,Je=new Promise(function(te,fe){ft=te,ot=fe}),Fe=[],Pe=0;Pe<arguments.length;Pe++)Fe.push(arguments[Pe]);Fe.push(function(te,fe){te?ot(te):ft(fe)});try{at.apply(this,Fe)}catch(te){ot(te)}return Je}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(at)),et&&Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,z(at))},we.promisify.custom=et;function Xe(Ge,at){if(!Ge){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=Ge,Ge=Qe}return at(Ge)}function Ye(Ge){if(typeof Ge!="function")throw new TypeError('The "original" argument must be of type Function');function at(){for(var Qe=[],ft=0;ft<arguments.length;ft++)Qe.push(arguments[ft]);var ot=Qe.pop();if(typeof ot!="function")throw new TypeError("The last argument must be of type Function");var Je=this,Fe=function(){return ot.apply(Je,arguments)};Ge.apply(this,Qe).then(function(Pe){x.nextTick(Fe.bind(null,null,Pe))},function(Pe){x.nextTick(Xe.bind(null,Pe,Fe))})}return Object.setPrototypeOf(at,Object.getPrototypeOf(Ge)),Object.defineProperties(at,z(Ge)),at}we.callbackify=Ye}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("for-each"),ie=y("available-typed-arrays"),ae=y("call-bind"),ee=y("call-bind/callBound"),de=y("gopd"),E=ee("Object.prototype.toString"),ne=y("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?x:globalThis,oe=ie(),le=ee("String.prototype.slice"),he=Object.getPrototypeOf,pe=ee("Array.prototype.indexOf",!0)||function(Te,Re){for(var _e=0;_e<Te.length;_e+=1)if(Te[_e]===Re)return _e;return-1},ve={__proto__:null};ne&&de&&he?z(oe,function(Ee){var Te=new re[Ee];if(Symbol.toStringTag in Te){var Re=he(Te),_e=de(Re,Symbol.toStringTag);if(!_e){var ye=he(Re);_e=de(ye,Symbol.toStringTag)}ve["$"+Ee]=ae(_e.get)}}):z(oe,function(Ee){var Te=new re[Ee];ve["$"+Ee]=ae(Te.slice)});var ce=function(Te){var Re=!1;return z(ve,function(_e,ye){if(!Re)try{"$"+_e(Te)===ye&&(Re=le(ye,1))}catch(be){}}),Re},me=function(Te){var Re=!1;return z(ve,function(_e,ye){if(!Re)try{_e(Te),Re=le(ye,1)}catch(be){}}),Re};ke.exports=function(Te){if(!Te||typeof Te!="object")return!1;if(!ne){var Re=le(E(Te),8,-1);return pe(oe,Re)>-1?Re:Re!=="Object"?!1:me(Te)}return de?ce(Te):null}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(y,ke,we){(function(){"use strict";we.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},{}],422:[function(y,ke,we){(function(){"use strict";var x,z,ie,ae,ee,de={}.hasOwnProperty;x=y("xmlbuilder"),z=y("./defaults").defaults,ae=function(E){return typeof E=="string"&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},ee=function(E){return"<![CDATA["+ie(E)+"]]>"},ie=function(E){return E.replace("]]>","]]]]><![CDATA[>")},we.Builder=function(){function E(ne){var re,oe,le;this.options={},oe=z["0.2"];for(re in oe)de.call(oe,re)&&(le=oe[re],this.options[re]=le);for(re in ne)de.call(ne,re)&&(le=ne[re],this.options[re]=le)}return E.prototype.buildObject=function(ne){var re,oe,le,he,pe;return re=this.options.attrkey,oe=this.options.charkey,Object.keys(ne).length===1&&this.options.rootName===z["0.2"].rootName?(pe=Object.keys(ne)[0],ne=ne[pe]):pe=this.options.rootName,le=function(ve){return function(ce,me){var Ee,Te,Re,_e,ye,be;if(typeof me!="object")ve.options.cdata&&ae(me)?ce.raw(ee(me)):ce.txt(me);else if(Array.isArray(me)){for(_e in me)if(de.call(me,_e)){Te=me[_e];for(ye in Te)Re=Te[ye],ce=le(ce.ele(ye),Re).up()}}else for(ye in me)if(de.call(me,ye))if(Te=me[ye],ye===re){if(typeof Te=="object")for(Ee in Te)be=Te[Ee],ce=ce.att(Ee,be)}else if(ye===oe)ve.options.cdata&&ae(Te)?ce=ce.raw(ee(Te)):ce=ce.txt(Te);else if(Array.isArray(Te))for(_e in Te)de.call(Te,_e)&&(Re=Te[_e],typeof Re=="string"?ve.options.cdata&&ae(Re)?ce=ce.ele(ye).raw(ee(Re)).up():ce=ce.ele(ye,Re).up():ce=le(ce.ele(ye),Re).up());else typeof Te=="object"?ce=le(ce.ele(ye),Te).up():typeof Te=="string"&&ve.options.cdata&&ae(Te)?ce=ce.ele(ye).raw(ee(Te)).up():(Te==null&&(Te=""),ce=ce.ele(ye,Te.toString()).up());return ce}}(this),he=x.create(pe,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),le(he,ne).end(this.options.renderOpts)},E}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,ke,we){(function(){we.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(y,ke,we){(function(){"use strict";var x,z,ie,ae,ee,de,E,ne,re,oe=function(pe,ve){return function(){return pe.apply(ve,arguments)}},le=function(pe,ve){for(var ce in ve)he.call(ve,ce)&&(pe[ce]=ve[ce]);function me(){this.constructor=pe}return me.prototype=ve.prototype,pe.prototype=new me,pe.__super__=ve.prototype,pe},he={}.hasOwnProperty;ne=y("sax"),ae=y("events"),x=y("./bom"),E=y("./processors"),re=y("timers").setImmediate,z=y("./defaults").defaults,ee=function(pe){return typeof pe=="object"&&pe!=null&&Object.keys(pe).length===0},de=function(pe,ve,ce){var me,Ee,Te;for(me=0,Ee=pe.length;me<Ee;me++)Te=pe[me],ve=Te(ve,ce);return ve},ie=function(pe,ve,ce){var me;return me=Object.create(null),me.value=ce,me.writable=!0,me.enumerable=!0,me.configurable=!0,Object.defineProperty(pe,ve,me)},we.Parser=function(pe){le(ve,pe);function ve(ce){this.parseStringPromise=oe(this.parseStringPromise,this),this.parseString=oe(this.parseString,this),this.reset=oe(this.reset,this),this.assignOrPush=oe(this.assignOrPush,this),this.processAsync=oe(this.processAsync,this);var me,Ee,Te;if(!(this instanceof we.Parser))return new we.Parser(ce);this.options={},Ee=z["0.2"];for(me in Ee)he.call(Ee,me)&&(Te=Ee[me],this.options[me]=Te);for(me in ce)he.call(ce,me)&&(Te=ce[me],this.options[me]=Te);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(E.normalize)),this.reset()}return ve.prototype.processAsync=function(){var ce,me;try{return this.remaining.length<=this.options.chunkSize?(ce=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ce),this.saxParser.close()):(ce=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ce),re(this.processAsync))}catch(Ee){if(me=Ee,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(me)}},ve.prototype.assignOrPush=function(ce,me,Ee){return me in ce?(ce[me]instanceof Array||ie(ce,me,[ce[me]]),ce[me].push(Ee)):this.options.explicitArray?ie(ce,me,[Ee]):ie(ce,me,Ee)},ve.prototype.reset=function(){var ce,me,Ee,Te;return this.removeAllListeners(),this.saxParser=ne.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Re){return function(_e){if(Re.saxParser.resume(),!Re.saxParser.errThrown)return Re.saxParser.errThrown=!0,Re.emit("error",_e)}}(this),this.saxParser.onend=function(Re){return function(){if(!Re.saxParser.ended)return Re.saxParser.ended=!0,Re.emit("end",Re.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Te=[],ce=this.options.attrkey,me=this.options.charkey,this.saxParser.onopentag=function(Re){return function(_e){var ye,be,Se,Ie,Me;if(Se={},Se[me]="",!Re.options.ignoreAttrs){Me=_e.attributes;for(ye in Me)he.call(Me,ye)&&(!(ce in Se)&&!Re.options.mergeAttrs&&(Se[ce]={}),be=Re.options.attrValueProcessors?de(Re.options.attrValueProcessors,_e.attributes[ye],ye):_e.attributes[ye],Ie=Re.options.attrNameProcessors?de(Re.options.attrNameProcessors,ye):ye,Re.options.mergeAttrs?Re.assignOrPush(Se,Ie,be):ie(Se[ce],Ie,be))}return Se["#name"]=Re.options.tagNameProcessors?de(Re.options.tagNameProcessors,_e.name):_e.name,Re.options.xmlns&&(Se[Re.options.xmlnskey]={uri:_e.uri,local:_e.local}),Te.push(Se)}}(this),this.saxParser.onclosetag=function(Re){return function(){var _e,ye,be,Se,Ie,Me,Ae,De,He,Ke;if(Me=Te.pop(),Ie=Me["#name"],(!Re.options.explicitChildren||!Re.options.preserveChildrenOrder)&&delete Me["#name"],Me.cdata===!0&&(_e=Me.cdata,delete Me.cdata),He=Te[Te.length-1],Me[me].match(/^\s*$/)&&!_e?(ye=Me[me],delete Me[me]):(Re.options.trim&&(Me[me]=Me[me].trim()),Re.options.normalize&&(Me[me]=Me[me].replace(/\s{2,}/g," ").trim()),Me[me]=Re.options.valueProcessors?de(Re.options.valueProcessors,Me[me],Ie):Me[me],Object.keys(Me).length===1&&me in Me&&!Re.EXPLICIT_CHARKEY&&(Me=Me[me])),ee(Me)&&(typeof Re.options.emptyTag=="function"?Me=Re.options.emptyTag():Me=Re.options.emptyTag!==""?Re.options.emptyTag:ye),Re.options.validator!=null&&(Ke="/"+function(){var Ve,nt,Ne;for(Ne=[],Ve=0,nt=Te.length;Ve<nt;Ve++)Se=Te[Ve],Ne.push(Se["#name"]);return Ne}().concat(Ie).join("/"),function(){var Ve;try{return Me=Re.options.validator(Ke,He&&He[Ie],Me)}catch(nt){return Ve=nt,Re.emit("error",Ve)}}()),Re.options.explicitChildren&&!Re.options.mergeAttrs&&typeof Me=="object"){if(!Re.options.preserveChildrenOrder)Se={},Re.options.attrkey in Me&&(Se[Re.options.attrkey]=Me[Re.options.attrkey],delete Me[Re.options.attrkey]),!Re.options.charsAsChildren&&Re.options.charkey in Me&&(Se[Re.options.charkey]=Me[Re.options.charkey],delete Me[Re.options.charkey]),Object.getOwnPropertyNames(Me).length>0&&(Se[Re.options.childkey]=Me),Me=Se;else if(He){He[Re.options.childkey]=He[Re.options.childkey]||[],Ae={};for(be in Me)he.call(Me,be)&&ie(Ae,be,Me[be]);He[Re.options.childkey].push(Ae),delete Me["#name"],Object.keys(Me).length===1&&me in Me&&!Re.EXPLICIT_CHARKEY&&(Me=Me[me])}}return Te.length>0?Re.assignOrPush(He,Ie,Me):(Re.options.explicitRoot&&(De=Me,Me={},ie(Me,Ie,De)),Re.resultObject=Me,Re.saxParser.ended=!0,Re.emit("end",Re.resultObject))}}(this),Ee=function(Re){return function(_e){var ye,be;if(be=Te[Te.length-1],be)return be[me]+=_e,Re.options.explicitChildren&&Re.options.preserveChildrenOrder&&Re.options.charsAsChildren&&(Re.options.includeWhiteChars||_e.replace(/\\n/g,"").trim()!=="")&&(be[Re.options.childkey]=be[Re.options.childkey]||[],ye={"#name":"__text__"},ye[me]=_e,Re.options.normalize&&(ye[me]=ye[me].replace(/\s{2,}/g," ").trim()),be[Re.options.childkey].push(ye)),be}}(this),this.saxParser.ontext=Ee,this.saxParser.oncdata=function(Re){return function(_e){var ye;if(ye=Ee(_e),ye)return ye.cdata=!0}}(this)},ve.prototype.parseString=function(ce,me){var Ee;me!=null&&typeof me=="function"&&(this.on("end",function(Te){return this.reset(),me(null,Te)}),this.on("error",function(Te){return this.reset(),me(Te)}));try{return ce=ce.toString(),ce.trim()===""?(this.emit("end",null),!0):(ce=x.stripBOM(ce),this.options.async?(this.remaining=ce,re(this.processAsync),this.saxParser):this.saxParser.write(ce).close())}catch(Te){if(Ee=Te,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ee}else return this.emit("error",Ee),this.saxParser.errThrown=!0}},ve.prototype.parseStringPromise=function(ce){return new Promise(function(me){return function(Ee,Te){return me.parseString(ce,function(Re,_e){return Re?Te(Re):Ee(_e)})}}(this))},ve}(ae),we.parseString=function(pe,ve,ce){var me,Ee,Te;return ce!=null?(typeof ce=="function"&&(me=ce),typeof ve=="object"&&(Ee=ve)):(typeof ve=="function"&&(me=ve),Ee={}),Te=new we.Parser(Ee),Te.parseString(pe,me)},we.parseStringPromise=function(pe,ve){var ce,me;return typeof ve=="object"&&(ce=ve),me=new we.Parser(ce),me.parseStringPromise(pe)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,ke,we){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),we.normalize=function(z){return z.toLowerCase()},we.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},we.stripPrefix=function(z){return z.replace(x,"")},we.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},we.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(y,ke,we){(function(){"use strict";var x,z,ie,ae,ee=function(E,ne){for(var re in ne)de.call(ne,re)&&(E[re]=ne[re]);function oe(){this.constructor=E}return oe.prototype=ne.prototype,E.prototype=new oe,E.__super__=ne.prototype,E},de={}.hasOwnProperty;z=y("./defaults"),x=y("./builder"),ie=y("./parser"),ae=y("./processors"),we.defaults=z.defaults,we.processors=ae,we.ValidationError=function(E){ee(ne,E);function ne(re){this.message=re}return ne}(Error),we.Builder=x.Builder,we.Parser=ie.Parser,we.parseString=ie.parseString,we.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,ke,we){(function(){ke.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,ke,we){(function(){ke.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne=[].slice,re={}.hasOwnProperty;x=function(){var oe,le,he,pe,ve,ce;if(ce=arguments[0],ve=2<=arguments.length?ne.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(oe=0,he=ve.length;oe<he;oe++)if(pe=ve[oe],pe!=null)for(le in pe)re.call(pe,le)&&(ce[le]=pe[le]);return ce},ee=function(oe){return!!oe&&Object.prototype.toString.call(oe)==="[object Function]"},de=function(oe){var le;return!!oe&&((le=typeof oe)=="function"||le==="object")},ie=function(oe){return ee(Array.isArray)?Array.isArray(oe):Object.prototype.toString.call(oe)==="[object Array]"},ae=function(oe){var le;if(ie(oe))return!oe.length;for(le in oe)if(re.call(oe,le))return!1;return!0},E=function(oe){var le,he;return de(oe)&&(he=Object.getPrototypeOf(oe))&&(le=he.constructor)&&typeof le=="function"&&le instanceof le&&Function.prototype.toString.call(le)===Function.prototype.toString.call(Object)},z=function(oe){return ee(oe.valueOf)?oe.valueOf():oe},ke.exports.assign=x,ke.exports.isFunction=ee,ke.exports.isObject=de,ke.exports.isArray=ie,ke.exports.isEmpty=ae,ke.exports.isPlainObject=E,ke.exports.getValue=z}).call(this)},{}],430:[function(y,ke,we){(function(){ke.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,ke,we){(function(){var x,z,ie;x=y("./NodeType"),ie=y("./XMLNode"),ke.exports=z=function(){function ae(ee,de,E){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),de==null)throw new Error("Missing attribute name. "+this.debugInfo(de));this.name=this.stringify.name(de),this.value=this.stringify.attValue(E),this.type=x.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ae.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ae.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ae.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(ae.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ae.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ae.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ae.prototype,"specified",{get:function(){return!0}}),ae.prototype.clone=function(){return Object.create(this)},ae.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},ae.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},ae.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},ae}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;x=y("./NodeType"),ie=y("./XMLCharacterData"),ke.exports=z=function(de){ae(E,de);function E(ne,re){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=x.CData,this.value=this.stringify.cdata(re)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.cdata(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,ke,we){(function(){var x,z,ie=function(ee,de){for(var E in de)ae.call(de,E)&&(ee[E]=de[E]);function ne(){this.constructor=ee}return ne.prototype=de.prototype,ee.prototype=new ne,ee.__super__=de.prototype,ee},ae={}.hasOwnProperty;z=y("./XMLNode"),ke.exports=x=function(ee){ie(de,ee);function de(E){de.__super__.constructor.call(this,E),this.value=""}return Object.defineProperty(de.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(de.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(de.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),de.prototype.clone=function(){return Object.create(this)},de.prototype.substringData=function(E,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.insertData=function(E,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.deleteData=function(E,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.replaceData=function(E,ne,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isEqualNode=function(E){return!(!de.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},de}(z)}).call(this)},{"./XMLNode":450}],434:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),ke.exports=ie=function(de){ae(E,de);function E(ne,re){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=x.Comment,this.value=this.stringify.comment(re)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.comment(this,this.options.writer.filterOptions(ne))},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,ke,we){(function(){var x,z,ie;z=y("./XMLDOMErrorHandler"),ie=y("./XMLDOMStringList"),ke.exports=x=function(){function ae(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(ae.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),ae.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},ae.prototype.canSetParameter=function(ee,de){return!0},ae.prototype.setParameter=function(ee,de){return de!=null?this.params[ee]=de:delete this.params[ee]},ae}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,ke,we){(function(){var x;ke.exports=x=function(){function z(){}return z.prototype.handleError=function(ie){throw new Error(ie)},z}()}).call(this)},{}],437:[function(y,ke,we){(function(){var x;ke.exports=x=function(){function z(){}return z.prototype.hasFeature=function(ie,ae){return!0},z.prototype.createDocumentType=function(ie,ae,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(ie,ae,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(ie,ae){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(y,ke,we){(function(){var x;ke.exports=x=function(){function z(ie){this.arr=ie||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(ie){return this.arr[ie]||null},z.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},z}()}).call(this)},{}],439:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),ke.exports=z=function(de){ae(E,de);function E(ne,re,oe,le,he,pe){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(oe==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!le)throw new Error("Missing DTD attribute type. "+this.debugInfo(re));if(!he)throw new Error("Missing DTD attribute default. "+this.debugInfo(re));if(he.indexOf("#")!==0&&(he="#"+he),!he.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(re));if(pe&&!he.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(re));this.elementName=this.stringify.name(re),this.type=x.AttributeDeclaration,this.attributeName=this.stringify.name(oe),this.attributeType=this.stringify.dtdAttType(le),pe&&(this.defaultValue=this.stringify.dtdAttDefault(pe)),this.defaultValueType=he}return E.prototype.toString=function(ne){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),ke.exports=z=function(de){ae(E,de);function E(ne,re,oe){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());oe||(oe="(#PCDATA)"),Array.isArray(oe)&&(oe="("+oe.join(",")+")"),this.name=this.stringify.name(re),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(oe)}return E.prototype.toString=function(ne){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,ke,we){(function(){var x,z,ie,ae,ee=function(E,ne){for(var re in ne)de.call(ne,re)&&(E[re]=ne[re]);function oe(){this.constructor=E}return oe.prototype=ne.prototype,E.prototype=new oe,E.__super__=ne.prototype,E},de={}.hasOwnProperty;ae=y("./Utility").isObject,ie=y("./XMLNode"),x=y("./NodeType"),ke.exports=z=function(E){ee(ne,E);function ne(re,oe,le,he){if(ne.__super__.constructor.call(this,re),le==null)throw new Error("Missing DTD entity name. "+this.debugInfo(le));if(he==null)throw new Error("Missing DTD entity value. "+this.debugInfo(le));if(this.pe=!!oe,this.name=this.stringify.name(le),this.type=x.EntityDeclaration,!ae(he))this.value=this.stringify.dtdEntityValue(he),this.internal=!0;else{if(!he.pubID&&!he.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(le));if(he.pubID&&!he.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(le));if(this.internal=!1,he.pubID!=null&&(this.pubID=this.stringify.dtdPubID(he.pubID)),he.sysID!=null&&(this.sysID=this.stringify.dtdSysID(he.sysID)),he.nData!=null&&(this.nData=this.stringify.dtdNData(he.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(le))}}return Object.defineProperty(ne.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ne.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ne.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ne.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlVersion",{get:function(){return null}}),ne.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},ne}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),ke.exports=z=function(de){ae(E,de);function E(ne,re,oe){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!oe.pubID&&!oe.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(re));this.name=this.stringify.name(re),this.type=x.NotationDeclaration,oe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(oe.pubID)),oe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(oe.sysID))}return Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),E.prototype.toString=function(ne){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,ke,we){(function(){var x,z,ie,ae,ee=function(E,ne){for(var re in ne)de.call(ne,re)&&(E[re]=ne[re]);function oe(){this.constructor=E}return oe.prototype=ne.prototype,E.prototype=new oe,E.__super__=ne.prototype,E},de={}.hasOwnProperty;ae=y("./Utility").isObject,ie=y("./XMLNode"),x=y("./NodeType"),ke.exports=z=function(E){ee(ne,E);function ne(re,oe,le,he){var pe;ne.__super__.constructor.call(this,re),ae(oe)&&(pe=oe,oe=pe.version,le=pe.encoding,he=pe.standalone),oe||(oe="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(oe),le!=null&&(this.encoding=this.stringify.xmlEncoding(le)),he!=null&&(this.standalone=this.stringify.xmlStandalone(he))}return ne.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},ne}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re,oe=function(he,pe){for(var ve in pe)le.call(pe,ve)&&(he[ve]=pe[ve]);function ce(){this.constructor=he}return ce.prototype=pe.prototype,he.prototype=new ce,he.__super__=pe.prototype,he},le={}.hasOwnProperty;re=y("./Utility").isObject,ne=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLDTDAttList"),ae=y("./XMLDTDEntity"),ie=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),E=y("./XMLNamedNodeMap"),ke.exports=de=function(he){oe(pe,he);function pe(ve,ce,me){var Ee,Te,Re,_e,ye,be;if(pe.__super__.constructor.call(this,ve),this.type=x.DocType,ve.children){for(_e=ve.children,Te=0,Re=_e.length;Te<Re;Te++)if(Ee=_e[Te],Ee.type===x.Element){this.name=Ee.name;break}}this.documentObject=ve,re(ce)&&(ye=ce,ce=ye.pubID,me=ye.sysID),me==null&&(be=[ce,me],me=be[0],ce=be[1]),ce!=null&&(this.pubID=this.stringify.dtdPubID(ce)),me!=null&&(this.sysID=this.stringify.dtdSysID(me))}return Object.defineProperty(pe.prototype,"entities",{get:function(){var ve,ce,me,Ee,Te;for(Ee={},Te=this.children,ce=0,me=Te.length;ce<me;ce++)ve=Te[ce],ve.type===x.EntityDeclaration&&!ve.pe&&(Ee[ve.name]=ve);return new E(Ee)}}),Object.defineProperty(pe.prototype,"notations",{get:function(){var ve,ce,me,Ee,Te;for(Ee={},Te=this.children,ce=0,me=Te.length;ce<me;ce++)ve=Te[ce],ve.type===x.NotationDeclaration&&(Ee[ve.name]=ve);return new E(Ee)}}),Object.defineProperty(pe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(pe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(pe.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),pe.prototype.element=function(ve,ce){var me;return me=new ie(this,ve,ce),this.children.push(me),this},pe.prototype.attList=function(ve,ce,me,Ee,Te){var Re;return Re=new z(this,ve,ce,me,Ee,Te),this.children.push(Re),this},pe.prototype.entity=function(ve,ce){var me;return me=new ae(this,!1,ve,ce),this.children.push(me),this},pe.prototype.pEntity=function(ve,ce){var me;return me=new ae(this,!0,ve,ce),this.children.push(me),this},pe.prototype.notation=function(ve,ce){var me;return me=new ee(this,ve,ce),this.children.push(me),this},pe.prototype.toString=function(ve){return this.options.writer.docType(this,this.options.writer.filterOptions(ve))},pe.prototype.ele=function(ve,ce){return this.element(ve,ce)},pe.prototype.att=function(ve,ce,me,Ee,Te){return this.attList(ve,ce,me,Ee,Te)},pe.prototype.ent=function(ve,ce){return this.entity(ve,ce)},pe.prototype.pent=function(ve,ce){return this.pEntity(ve,ce)},pe.prototype.not=function(ve,ce){return this.notation(ve,ce)},pe.prototype.up=function(){return this.root()||this.documentObject},pe.prototype.isEqualNode=function(ve){return!(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.name!==this.name||ve.publicId!==this.publicId||ve.systemId!==this.systemId)},pe}(ne)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re=function(le,he){for(var pe in he)oe.call(he,pe)&&(le[pe]=he[pe]);function ve(){this.constructor=le}return ve.prototype=he.prototype,le.prototype=new ve,le.__super__=he.prototype,le},oe={}.hasOwnProperty;ne=y("./Utility").isPlainObject,ie=y("./XMLDOMImplementation"),z=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),x=y("./NodeType"),E=y("./XMLStringifier"),de=y("./XMLStringWriter"),ke.exports=ae=function(le){re(he,le);function he(pe){he.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new z,pe||(pe={}),pe.writer||(pe.writer=new de),this.options=pe,this.stringify=new E(pe)}return Object.defineProperty(he.prototype,"implementation",{value:new ie}),Object.defineProperty(he.prototype,"doctype",{get:function(){var pe,ve,ce,me;for(me=this.children,ve=0,ce=me.length;ve<ce;ve++)if(pe=me[ve],pe.type===x.DocType)return pe;return null}}),Object.defineProperty(he.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(he.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(he.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(he.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].encoding:null}}),Object.defineProperty(he.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(he.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(he.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(he.prototype,"origin",{get:function(){return null}}),Object.defineProperty(he.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(he.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(he.prototype,"contentType",{get:function(){return null}}),he.prototype.end=function(pe){var ve;return ve={},pe?ne(pe)&&(ve=pe,pe=this.options.writer):pe=this.options.writer,pe.document(this,pe.filterOptions(ve))},he.prototype.toString=function(pe){return this.options.writer.document(this,this.options.writer.filterOptions(pe))},he.prototype.createElement=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTextNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createComment=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createCDATASection=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createProcessingInstruction=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttribute=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEntityReference=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.importNode=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createElementNS=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttributeNS=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementById=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.adoptNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.renameNode=function(pe,ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEvent=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createNodeIterator=function(pe,ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTreeWalker=function(pe,ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re,oe,le,he,pe,ve,ce,me,Ee,Te,Re,_e,ye,be,Se,Ie,Me={}.hasOwnProperty;Ie=y("./Utility"),be=Ie.isObject,ye=Ie.isFunction,Se=Ie.isPlainObject,_e=Ie.getValue,x=y("./NodeType"),he=y("./XMLDocument"),ve=y("./XMLElement"),ae=y("./XMLCData"),ee=y("./XMLComment"),me=y("./XMLRaw"),Re=y("./XMLText"),ce=y("./XMLProcessingInstruction"),oe=y("./XMLDeclaration"),le=y("./XMLDocType"),de=y("./XMLDTDAttList"),ne=y("./XMLDTDEntity"),E=y("./XMLDTDElement"),re=y("./XMLDTDNotation"),ie=y("./XMLAttribute"),Te=y("./XMLStringifier"),Ee=y("./XMLStringWriter"),z=y("./WriterState"),ke.exports=pe=function(){function Ae(De,He,Ke){var Ve;this.name="?xml",this.type=x.Document,De||(De={}),Ve={},De.writer?Se(De.writer)&&(Ve=De.writer,De.writer=new Ee):De.writer=new Ee,this.options=De,this.writer=De.writer,this.writerOptions=this.writer.filterOptions(Ve),this.stringify=new Te(De),this.onDataCallback=He||function(){},this.onEndCallback=Ke||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ae.prototype.createChildNode=function(De){var He,Ke,Ve,nt,Ne,We,$e,rt;switch(De.type){case x.CData:this.cdata(De.value);break;case x.Comment:this.comment(De.value);break;case x.Element:Ve={},$e=De.attribs;for(Ke in $e)Me.call($e,Ke)&&(He=$e[Ke],Ve[Ke]=He.value);this.node(De.name,Ve);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(De.value);break;case x.Text:this.text(De.value);break;case x.ProcessingInstruction:this.instruction(De.target,De.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+De.constructor.name)}for(rt=De.children,Ne=0,We=rt.length;Ne<We;Ne++)nt=rt[Ne],this.createChildNode(nt),nt.type===x.Element&&this.up();return this},Ae.prototype.dummy=function(){return this},Ae.prototype.node=function(De,He,Ke){var Ve;if(De==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(De));return this.openCurrent(),De=_e(De),He==null&&(He={}),He=_e(He),be(He)||(Ve=[He,Ke],Ke=Ve[0],He=Ve[1]),this.currentNode=new ve(this,De,He),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ke!=null&&this.text(Ke),this},Ae.prototype.element=function(De,He,Ke){var Ve,nt,Ne,We,$e,rt;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(De)||be(De)||ye(De))for(We=this.options.noValidation,this.options.noValidation=!0,rt=new he(this.options).element("TEMP_ROOT"),rt.element(De),this.options.noValidation=We,$e=rt.children,nt=0,Ne=$e.length;nt<Ne;nt++)Ve=$e[nt],this.createChildNode(Ve),Ve.type===x.Element&&this.up();else this.node(De,He,Ke);return this},Ae.prototype.attribute=function(De,He){var Ke,Ve;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(De));if(De!=null&&(De=_e(De)),be(De))for(Ke in De)Me.call(De,Ke)&&(Ve=De[Ke],this.attribute(Ke,Ve));else ye(He)&&(He=He.apply()),this.options.keepNullAttributes&&He==null?this.currentNode.attribs[De]=new ie(this,De,""):He!=null&&(this.currentNode.attribs[De]=new ie(this,De,He));return this},Ae.prototype.text=function(De){var He;return this.openCurrent(),He=new Re(this,De),this.onData(this.writer.text(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.cdata=function(De){var He;return this.openCurrent(),He=new ae(this,De),this.onData(this.writer.cdata(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.comment=function(De){var He;return this.openCurrent(),He=new ee(this,De),this.onData(this.writer.comment(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.raw=function(De){var He;return this.openCurrent(),He=new me(this,De),this.onData(this.writer.raw(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.instruction=function(De,He){var Ke,Ve,nt,Ne,We;if(this.openCurrent(),De!=null&&(De=_e(De)),He!=null&&(He=_e(He)),Array.isArray(De))for(Ke=0,Ne=De.length;Ke<Ne;Ke++)Ve=De[Ke],this.instruction(Ve);else if(be(De))for(Ve in De)Me.call(De,Ve)&&(nt=De[Ve],this.instruction(Ve,nt));else ye(He)&&(He=He.apply()),We=new ce(this,De,He),this.onData(this.writer.processingInstruction(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ae.prototype.declaration=function(De,He,Ke){var Ve;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Ve=new oe(this,De,He,Ke),this.onData(this.writer.declaration(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.doctype=function(De,He,Ke){if(this.openCurrent(),De==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new le(this,He,Ke),this.currentNode.rootNodeName=De,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ae.prototype.dtdElement=function(De,He){var Ke;return this.openCurrent(),Ke=new E(this,De,He),this.onData(this.writer.dtdElement(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.attList=function(De,He,Ke,Ve,nt){var Ne;return this.openCurrent(),Ne=new de(this,De,He,Ke,Ve,nt),this.onData(this.writer.dtdAttList(Ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.entity=function(De,He){var Ke;return this.openCurrent(),Ke=new ne(this,!1,De,He),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.pEntity=function(De,He){var Ke;return this.openCurrent(),Ke=new ne(this,!0,De,He),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.notation=function(De,He){var Ke;return this.openCurrent(),Ke=new re(this,De,He),this.onData(this.writer.dtdNotation(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ae.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ae.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ae.prototype.openNode=function(De){var He,Ke,Ve,nt;if(!De.isOpen){if(!this.root&&this.currentLevel===0&&De.type===x.Element&&(this.root=De),Ke="",De.type===x.Element){this.writerOptions.state=z.OpenTag,Ke=this.writer.indent(De,this.writerOptions,this.currentLevel)+"<"+De.name,nt=De.attribs;for(Ve in nt)Me.call(nt,Ve)&&(He=nt[Ve],Ke+=this.writer.attribute(He,this.writerOptions,this.currentLevel));Ke+=(De.children?">":"/>")+this.writer.endline(De,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,Ke=this.writer.indent(De,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+De.rootNodeName,De.pubID&&De.sysID?Ke+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(Ke+=' SYSTEM "'+De.sysID+'"'),De.children?(Ke+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,Ke+=">"),Ke+=this.writer.endline(De,this.writerOptions,this.currentLevel);return this.onData(Ke,this.currentLevel),De.isOpen=!0}},Ae.prototype.closeNode=function(De){var He;if(!De.isClosed)return He="",this.writerOptions.state=z.CloseTag,De.type===x.Element?He=this.writer.indent(De,this.writerOptions,this.currentLevel)+"</"+De.name+">"+this.writer.endline(De,this.writerOptions,this.currentLevel):He=this.writer.indent(De,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(De,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(He,this.currentLevel),De.isClosed=!0},Ae.prototype.onData=function(De,He){return this.documentStarted=!0,this.onDataCallback(De,He+1)},Ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ae.prototype.debugInfo=function(De){return De==null?"":"node: <"+De+">"},Ae.prototype.ele=function(){return this.element.apply(this,arguments)},Ae.prototype.nod=function(De,He,Ke){return this.node(De,He,Ke)},Ae.prototype.txt=function(De){return this.text(De)},Ae.prototype.dat=function(De){return this.cdata(De)},Ae.prototype.com=function(De){return this.comment(De)},Ae.prototype.ins=function(De,He){return this.instruction(De,He)},Ae.prototype.dec=function(De,He,Ke){return this.declaration(De,He,Ke)},Ae.prototype.dtd=function(De,He,Ke){return this.doctype(De,He,Ke)},Ae.prototype.e=function(De,He,Ke){return this.element(De,He,Ke)},Ae.prototype.n=function(De,He,Ke){return this.node(De,He,Ke)},Ae.prototype.t=function(De){return this.text(De)},Ae.prototype.d=function(De){return this.cdata(De)},Ae.prototype.c=function(De){return this.comment(De)},Ae.prototype.r=function(De){return this.raw(De)},Ae.prototype.i=function(De,He){return this.instruction(De,He)},Ae.prototype.att=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.a=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.ent=function(De,He){return this.entity(De,He)},Ae.prototype.pent=function(De,He){return this.pEntity(De,He)},Ae.prototype.not=function(De,He){return this.notation(De,He)},Ae}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),ke.exports=z=function(de){ae(E,de);function E(ne){E.__super__.constructor.call(this,ne),this.type=x.Dummy}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return""},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re,oe=function(he,pe){for(var ve in pe)le.call(pe,ve)&&(he[ve]=pe[ve]);function ce(){this.constructor=he}return ce.prototype=pe.prototype,he.prototype=new ce,he.__super__=pe.prototype,he},le={}.hasOwnProperty;re=y("./Utility"),ne=re.isObject,E=re.isFunction,de=re.getValue,ee=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLAttribute"),ae=y("./XMLNamedNodeMap"),ke.exports=ie=function(he){oe(pe,he);function pe(ve,ce,me){var Ee,Te,Re,_e;if(pe.__super__.constructor.call(this,ve),ce==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ce),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,me!=null&&this.attribute(me),ve.type===x.Document&&(this.isRoot=!0,this.documentObject=ve,ve.rootObject=this,ve.children)){for(_e=ve.children,Te=0,Re=_e.length;Te<Re;Te++)if(Ee=_e[Te],Ee.type===x.DocType){Ee.name=this.name;break}}}return Object.defineProperty(pe.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(pe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(pe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ae(this.attribs)),this.attributeMap}}),pe.prototype.clone=function(){var ve,ce,me,Ee;me=Object.create(this),me.isRoot&&(me.documentObject=null),me.attribs={},Ee=this.attribs;for(ce in Ee)le.call(Ee,ce)&&(ve=Ee[ce],me.attribs[ce]=ve.clone());return me.children=[],this.children.forEach(function(Te){var Re;return Re=Te.clone(),Re.parent=me,me.children.push(Re)}),me},pe.prototype.attribute=function(ve,ce){var me,Ee;if(ve!=null&&(ve=de(ve)),ne(ve))for(me in ve)le.call(ve,me)&&(Ee=ve[me],this.attribute(me,Ee));else E(ce)&&(ce=ce.apply()),this.options.keepNullAttributes&&ce==null?this.attribs[ve]=new z(this,ve,""):ce!=null&&(this.attribs[ve]=new z(this,ve,ce));return this},pe.prototype.removeAttribute=function(ve){var ce,me,Ee;if(ve==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ve=de(ve),Array.isArray(ve))for(me=0,Ee=ve.length;me<Ee;me++)ce=ve[me],delete this.attribs[ce];else delete this.attribs[ve];return this},pe.prototype.toString=function(ve){return this.options.writer.element(this,this.options.writer.filterOptions(ve))},pe.prototype.att=function(ve,ce){return this.attribute(ve,ce)},pe.prototype.a=function(ve,ce){return this.attribute(ve,ce)},pe.prototype.getAttribute=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].value:null},pe.prototype.setAttribute=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNode=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve]:null},pe.prototype.setAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNS=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNS=function(ve,ce,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNS=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNodeNS=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNodeNS=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.hasAttribute=function(ve){return this.attribs.hasOwnProperty(ve)},pe.prototype.hasAttributeNS=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttribute=function(ve,ce){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].isId:ce},pe.prototype.setIdAttributeNS=function(ve,ce,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttributeNode=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(ve,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByClassName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.isEqualNode=function(ve){var ce,me,Ee;if(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.namespaceURI!==this.namespaceURI||ve.prefix!==this.prefix||ve.localName!==this.localName||ve.attribs.length!==this.attribs.length)return!1;for(ce=me=0,Ee=this.attribs.length-1;0<=Ee?me<=Ee:me>=Ee;ce=0<=Ee?++me:--me)if(!this.attribs[ce].isEqualNode(ve.attribs[ce]))return!1;return!0},pe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,ke,we){(function(){var x;ke.exports=x=function(){function z(ie){this.nodes=ie}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(ie){return this.nodes[ie]},z.prototype.setNamedItem=function(ie){var ae;return ae=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,ae||null},z.prototype.removeNamedItem=function(ie){var ae;return ae=this.nodes[ie],delete this.nodes[ie],ae||null},z.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},z.prototype.getNamedItemNS=function(ie,ae){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(ie,ae){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re,oe,le,he,pe,ve,ce,me,Ee,Te,Re,_e={}.hasOwnProperty;Re=y("./Utility"),Te=Re.isObject,Ee=Re.isFunction,me=Re.isEmpty,ce=Re.getValue,ne=null,ie=null,ae=null,ee=null,de=null,pe=null,ve=null,he=null,E=null,z=null,le=null,re=null,x=null,ke.exports=oe=function(){function ye(be){this.parent=be,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ne||(ne=y("./XMLElement"),ie=y("./XMLCData"),ae=y("./XMLComment"),ee=y("./XMLDeclaration"),de=y("./XMLDocType"),pe=y("./XMLRaw"),ve=y("./XMLText"),he=y("./XMLProcessingInstruction"),E=y("./XMLDummy"),z=y("./NodeType"),le=y("./XMLNodeList"),re=y("./XMLNamedNodeMap"),x=y("./DocumentPosition"))}return Object.defineProperty(ye.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(ye.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ye.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(ye.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(ye.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new le(this.children)),this.childNodeList}}),Object.defineProperty(ye.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(ye.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(ye.prototype,"previousSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be-1]||null}}),Object.defineProperty(ye.prototype,"nextSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be+1]||null}}),Object.defineProperty(ye.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ye.prototype,"textContent",{get:function(){var be,Se,Ie,Me,Ae;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Ae="",Me=this.children,Se=0,Ie=Me.length;Se<Ie;Se++)be=Me[Se],be.textContent&&(Ae+=be.textContent);return Ae}else return null},set:function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ye.prototype.setParent=function(be){var Se,Ie,Me,Ae,De;for(this.parent=be,be&&(this.options=be.options,this.stringify=be.stringify),Ae=this.children,De=[],Ie=0,Me=Ae.length;Ie<Me;Ie++)Se=Ae[Ie],De.push(Se.setParent(this));return De},ye.prototype.element=function(be,Se,Ie){var Me,Ae,De,He,Ke,Ve,nt,Ne,We,$e,rt;if(Ve=null,Se===null&&Ie==null&&(We=[{},null],Se=We[0],Ie=We[1]),Se==null&&(Se={}),Se=ce(Se),Te(Se)||($e=[Se,Ie],Ie=$e[0],Se=$e[1]),be!=null&&(be=ce(be)),Array.isArray(be))for(De=0,nt=be.length;De<nt;De++)Ae=be[De],Ve=this.element(Ae);else if(Ee(be))Ve=this.element(be.apply());else if(Te(be)){for(Ke in be)if(_e.call(be,Ke))if(rt=be[Ke],Ee(rt)&&(rt=rt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ke.indexOf(this.stringify.convertAttKey)===0)Ve=this.attribute(Ke.substr(this.stringify.convertAttKey.length),rt);else if(!this.options.separateArrayItems&&Array.isArray(rt)&&me(rt))Ve=this.dummy();else if(Te(rt)&&me(rt))Ve=this.element(Ke);else if(!this.options.keepNullNodes&&rt==null)Ve=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(rt))for(He=0,Ne=rt.length;He<Ne;He++)Ae=rt[He],Me={},Me[Ke]=Ae,Ve=this.element(Me);else Te(rt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ke.indexOf(this.stringify.convertTextKey)===0?Ve=this.element(rt):(Ve=this.element(Ke),Ve.element(rt)):Ve=this.element(Ke,rt)}else!this.options.keepNullNodes&&Ie===null?Ve=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&be.indexOf(this.stringify.convertTextKey)===0?Ve=this.text(Ie):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&be.indexOf(this.stringify.convertCDataKey)===0?Ve=this.cdata(Ie):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&be.indexOf(this.stringify.convertCommentKey)===0?Ve=this.comment(Ie):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&be.indexOf(this.stringify.convertRawKey)===0?Ve=this.raw(Ie):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&be.indexOf(this.stringify.convertPIKey)===0?Ve=this.instruction(be.substr(this.stringify.convertPIKey.length),Ie):Ve=this.node(be,Se,Ie);if(Ve==null)throw new Error("Could not create any elements with: "+be+". "+this.debugInfo());return Ve},ye.prototype.insertBefore=function(be,Se,Ie){var Me,Ae,De,He,Ke;if(be!=null&&be.type)return De=be,He=Se,De.setParent(this),He?(Ae=children.indexOf(He),Ke=children.splice(Ae),children.push(De),Array.prototype.push.apply(children,Ke)):children.push(De),De;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(be));return Ae=this.parent.children.indexOf(this),Ke=this.parent.children.splice(Ae),Me=this.parent.element(be,Se,Ie),Array.prototype.push.apply(this.parent.children,Ke),Me},ye.prototype.insertAfter=function(be,Se,Ie){var Me,Ae,De;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(be));return Ae=this.parent.children.indexOf(this),De=this.parent.children.splice(Ae+1),Me=this.parent.element(be,Se,Ie),Array.prototype.push.apply(this.parent.children,De),Me},ye.prototype.remove=function(){var be,Se;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return be=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[be,be-be+1].concat(Se=[])),this.parent},ye.prototype.node=function(be,Se,Ie){var Me,Ae;return be!=null&&(be=ce(be)),Se||(Se={}),Se=ce(Se),Te(Se)||(Ae=[Se,Ie],Ie=Ae[0],Se=Ae[1]),Me=new ne(this,be,Se),Ie!=null&&Me.text(Ie),this.children.push(Me),Me},ye.prototype.text=function(be){var Se;return Te(be)&&this.element(be),Se=new ve(this,be),this.children.push(Se),this},ye.prototype.cdata=function(be){var Se;return Se=new ie(this,be),this.children.push(Se),this},ye.prototype.comment=function(be){var Se;return Se=new ae(this,be),this.children.push(Se),this},ye.prototype.commentBefore=function(be){var Se,Ie,Me;return Ie=this.parent.children.indexOf(this),Me=this.parent.children.splice(Ie),Se=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Me),this},ye.prototype.commentAfter=function(be){var Se,Ie,Me;return Ie=this.parent.children.indexOf(this),Me=this.parent.children.splice(Ie+1),Se=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Me),this},ye.prototype.raw=function(be){var Se;return Se=new pe(this,be),this.children.push(Se),this},ye.prototype.dummy=function(){var be;return be=new E(this),be},ye.prototype.instruction=function(be,Se){var Ie,Me,Ae,De,He;if(be!=null&&(be=ce(be)),Se!=null&&(Se=ce(Se)),Array.isArray(be))for(De=0,He=be.length;De<He;De++)Ie=be[De],this.instruction(Ie);else if(Te(be))for(Ie in be)_e.call(be,Ie)&&(Me=be[Ie],this.instruction(Ie,Me));else Ee(Se)&&(Se=Se.apply()),Ae=new he(this,be,Se),this.children.push(Ae);return this},ye.prototype.instructionBefore=function(be,Se){var Ie,Me,Ae;return Me=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Me),Ie=this.parent.instruction(be,Se),Array.prototype.push.apply(this.parent.children,Ae),this},ye.prototype.instructionAfter=function(be,Se){var Ie,Me,Ae;return Me=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Me+1),Ie=this.parent.instruction(be,Se),Array.prototype.push.apply(this.parent.children,Ae),this},ye.prototype.declaration=function(be,Se,Ie){var Me,Ae;return Me=this.document(),Ae=new ee(Me,be,Se,Ie),Me.children.length===0?Me.children.unshift(Ae):Me.children[0].type===z.Declaration?Me.children[0]=Ae:Me.children.unshift(Ae),Me.root()||Me},ye.prototype.dtd=function(be,Se){var Ie,Me,Ae,De,He,Ke,Ve,nt,Ne,We;for(Me=this.document(),Ae=new de(Me,be,Se),Ne=Me.children,De=He=0,Ve=Ne.length;He<Ve;De=++He)if(Ie=Ne[De],Ie.type===z.DocType)return Me.children[De]=Ae,Ae;for(We=Me.children,De=Ke=0,nt=We.length;Ke<nt;De=++Ke)if(Ie=We[De],Ie.isRoot)return Me.children.splice(De,0,Ae),Ae;return Me.children.push(Ae),Ae},ye.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},ye.prototype.root=function(){var be;for(be=this;be;){if(be.type===z.Document)return be.rootObject;if(be.isRoot)return be;be=be.parent}},ye.prototype.document=function(){var be;for(be=this;be;){if(be.type===z.Document)return be;be=be.parent}},ye.prototype.end=function(be){return this.document().end(be)},ye.prototype.prev=function(){var be;if(be=this.parent.children.indexOf(this),be<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[be-1]},ye.prototype.next=function(){var be;if(be=this.parent.children.indexOf(this),be===-1||be===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[be+1]},ye.prototype.importDocument=function(be){var Se;return Se=be.root().clone(),Se.parent=this,Se.isRoot=!1,this.children.push(Se),this},ye.prototype.debugInfo=function(be){var Se,Ie;return be=be||this.name,be==null&&!((Se=this.parent)!=null&&Se.name)?"":be==null?"parent: <"+this.parent.name+">":(Ie=this.parent)!=null&&Ie.name?"node: <"+be+">, parent: <"+this.parent.name+">":"node: <"+be+">"},ye.prototype.ele=function(be,Se,Ie){return this.element(be,Se,Ie)},ye.prototype.nod=function(be,Se,Ie){return this.node(be,Se,Ie)},ye.prototype.txt=function(be){return this.text(be)},ye.prototype.dat=function(be){return this.cdata(be)},ye.prototype.com=function(be){return this.comment(be)},ye.prototype.ins=function(be,Se){return this.instruction(be,Se)},ye.prototype.doc=function(){return this.document()},ye.prototype.dec=function(be,Se,Ie){return this.declaration(be,Se,Ie)},ye.prototype.e=function(be,Se,Ie){return this.element(be,Se,Ie)},ye.prototype.n=function(be,Se,Ie){return this.node(be,Se,Ie)},ye.prototype.t=function(be){return this.text(be)},ye.prototype.d=function(be){return this.cdata(be)},ye.prototype.c=function(be){return this.comment(be)},ye.prototype.r=function(be){return this.raw(be)},ye.prototype.i=function(be,Se){return this.instruction(be,Se)},ye.prototype.u=function(){return this.up()},ye.prototype.importXMLBuilder=function(be){return this.importDocument(be)},ye.prototype.replaceChild=function(be,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.removeChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.appendChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.hasChildNodes=function(){return this.children.length!==0},ye.prototype.cloneNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.isSupported=function(be,Se){return!0},ye.prototype.hasAttributes=function(){return this.attribs.length!==0},ye.prototype.compareDocumentPosition=function(be){var Se,Ie;return Se=this,Se===be?0:this.document()!==be.document()?(Ie=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?Ie|=x.Preceding:Ie|=x.Following,Ie):Se.isAncestor(be)?x.Contains|x.Preceding:Se.isDescendant(be)?x.Contains|x.Following:Se.isPreceding(be)?x.Preceding:x.Following},ye.prototype.isSameNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.lookupPrefix=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.isDefaultNamespace=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.lookupNamespaceURI=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.isEqualNode=function(be){var Se,Ie,Me;if(be.nodeType!==this.nodeType||be.children.length!==this.children.length)return!1;for(Se=Ie=0,Me=this.children.length-1;0<=Me?Ie<=Me:Ie>=Me;Se=0<=Me?++Ie:--Ie)if(!this.children[Se].isEqualNode(be.children[Se]))return!1;return!0},ye.prototype.getFeature=function(be,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.setUserData=function(be,Se,Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.getUserData=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ye.prototype.contains=function(be){return be?be===this||this.isDescendant(be):!1},ye.prototype.isDescendant=function(be){var Se,Ie,Me,Ae,De;for(De=this.children,Me=0,Ae=De.length;Me<Ae;Me++)if(Se=De[Me],be===Se||(Ie=Se.isDescendant(be),Ie))return!0;return!1},ye.prototype.isAncestor=function(be){return be.isDescendant(this)},ye.prototype.isPreceding=function(be){var Se,Ie;return Se=this.treePosition(be),Ie=this.treePosition(this),Se===-1||Ie===-1?!1:Se<Ie},ye.prototype.isFollowing=function(be){var Se,Ie;return Se=this.treePosition(be),Ie=this.treePosition(this),Se===-1||Ie===-1?!1:Se>Ie},ye.prototype.treePosition=function(be){var Se,Ie;return Ie=0,Se=!1,this.foreachTreeNode(this.document(),function(Me){if(Ie++,!Se&&Me===be)return Se=!0}),Se?Ie:-1},ye.prototype.foreachTreeNode=function(be,Se){var Ie,Me,Ae,De,He;for(be||(be=this.document()),De=be.children,Me=0,Ae=De.length;Me<Ae;Me++){if(Ie=De[Me],He=Se(Ie))return He;if(He=this.foreachTreeNode(Ie,Se),He)return He}},ye}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(y,ke,we){(function(){var x;ke.exports=x=function(){function z(ie){this.nodes=ie}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(ie){return this.nodes[ie]||null},z}()}).call(this)},{}],452:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),ke.exports=ie=function(de){ae(E,de);function E(ne,re,oe){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,oe&&(this.value=this.stringify.insValue(oe))}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ne))},E.prototype.isEqualNode=function(ne){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(ne)||ne.target!==this.target)},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLNode"),ke.exports=ie=function(de){ae(E,de);function E(ne,re){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=x.Raw,this.value=this.stringify.raw(re)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.raw(this,this.options.writer.filterOptions(ne))},E}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,ke,we){(function(){var x,z,ie,ae,ee=function(E,ne){for(var re in ne)de.call(ne,re)&&(E[re]=ne[re]);function oe(){this.constructor=E}return oe.prototype=ne.prototype,E.prototype=new oe,E.__super__=ne.prototype,E},de={}.hasOwnProperty;x=y("./NodeType"),ae=y("./XMLWriterBase"),z=y("./WriterState"),ke.exports=ie=function(E){ee(ne,E);function ne(re,oe){this.stream=re,ne.__super__.constructor.call(this,oe)}return ne.prototype.endline=function(re,oe,le){return re.isLastRootNode&&oe.state===z.CloseTag?"":ne.__super__.endline.call(this,re,oe,le)},ne.prototype.document=function(re,oe){var le,he,pe,ve,ce,me,Ee,Te,Re;for(Ee=re.children,he=pe=0,ce=Ee.length;pe<ce;he=++pe)le=Ee[he],le.isLastRootNode=he===re.children.length-1;for(oe=this.filterOptions(oe),Te=re.children,Re=[],ve=0,me=Te.length;ve<me;ve++)le=Te[ve],Re.push(this.writeChildNode(le,oe,0));return Re},ne.prototype.attribute=function(re,oe,le){return this.stream.write(ne.__super__.attribute.call(this,re,oe,le))},ne.prototype.cdata=function(re,oe,le){return this.stream.write(ne.__super__.cdata.call(this,re,oe,le))},ne.prototype.comment=function(re,oe,le){return this.stream.write(ne.__super__.comment.call(this,re,oe,le))},ne.prototype.declaration=function(re,oe,le){return this.stream.write(ne.__super__.declaration.call(this,re,oe,le))},ne.prototype.docType=function(re,oe,le){var he,pe,ve,ce;if(le||(le=0),this.openNode(re,oe,le),oe.state=z.OpenTag,this.stream.write(this.indent(re,oe,le)),this.stream.write("<!DOCTYPE "+re.root().name),re.pubID&&re.sysID?this.stream.write(' PUBLIC "'+re.pubID+'" "'+re.sysID+'"'):re.sysID&&this.stream.write(' SYSTEM "'+re.sysID+'"'),re.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(re,oe,le)),oe.state=z.InsideTag,ce=re.children,pe=0,ve=ce.length;pe<ve;pe++)he=ce[pe],this.writeChildNode(he,oe,le+1);oe.state=z.CloseTag,this.stream.write("]")}return oe.state=z.CloseTag,this.stream.write(oe.spaceBeforeSlash+">"),this.stream.write(this.endline(re,oe,le)),oe.state=z.None,this.closeNode(re,oe,le)},ne.prototype.element=function(re,oe,le){var he,pe,ve,ce,me,Ee,Te,Re,_e,ye;le||(le=0),this.openNode(re,oe,le),oe.state=z.OpenTag,this.stream.write(this.indent(re,oe,le)+"<"+re.name),_e=re.attribs;for(Te in _e)de.call(_e,Te)&&(he=_e[Te],this.attribute(he,oe,le));if(ve=re.children.length,ce=ve===0?null:re.children[0],ve===0||re.children.every(function(be){return(be.type===x.Text||be.type===x.Raw)&&be.value===""}))oe.allowEmpty?(this.stream.write(">"),oe.state=z.CloseTag,this.stream.write("</"+re.name+">")):(oe.state=z.CloseTag,this.stream.write(oe.spaceBeforeSlash+"/>"));else if(oe.pretty&&ve===1&&(ce.type===x.Text||ce.type===x.Raw)&&ce.value!=null)this.stream.write(">"),oe.state=z.InsideTag,oe.suppressPrettyCount++,Re=!0,this.writeChildNode(ce,oe,le+1),oe.suppressPrettyCount--,Re=!1,oe.state=z.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,oe,le)),oe.state=z.InsideTag,ye=re.children,me=0,Ee=ye.length;me<Ee;me++)pe=ye[me],this.writeChildNode(pe,oe,le+1);oe.state=z.CloseTag,this.stream.write(this.indent(re,oe,le)+"</"+re.name+">")}return this.stream.write(this.endline(re,oe,le)),oe.state=z.None,this.closeNode(re,oe,le)},ne.prototype.processingInstruction=function(re,oe,le){return this.stream.write(ne.__super__.processingInstruction.call(this,re,oe,le))},ne.prototype.raw=function(re,oe,le){return this.stream.write(ne.__super__.raw.call(this,re,oe,le))},ne.prototype.text=function(re,oe,le){return this.stream.write(ne.__super__.text.call(this,re,oe,le))},ne.prototype.dtdAttList=function(re,oe,le){return this.stream.write(ne.__super__.dtdAttList.call(this,re,oe,le))},ne.prototype.dtdElement=function(re,oe,le){return this.stream.write(ne.__super__.dtdElement.call(this,re,oe,le))},ne.prototype.dtdEntity=function(re,oe,le){return this.stream.write(ne.__super__.dtdEntity.call(this,re,oe,le))},ne.prototype.dtdNotation=function(re,oe,le){return this.stream.write(ne.__super__.dtdNotation.call(this,re,oe,le))},ne}(ae)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,ke,we){(function(){var x,z,ie=function(ee,de){for(var E in de)ae.call(de,E)&&(ee[E]=de[E]);function ne(){this.constructor=ee}return ne.prototype=de.prototype,ee.prototype=new ne,ee.__super__=de.prototype,ee},ae={}.hasOwnProperty;z=y("./XMLWriterBase"),ke.exports=x=function(ee){ie(de,ee);function de(E){de.__super__.constructor.call(this,E)}return de.prototype.document=function(E,ne){var re,oe,le,he,pe;for(ne=this.filterOptions(ne),he="",pe=E.children,oe=0,le=pe.length;oe<le;oe++)re=pe[oe],he+=this.writeChildNode(re,ne,0);return ne.pretty&&he.slice(-ne.newline.length)===ne.newline&&(he=he.slice(0,-ne.newline.length)),he},de}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,ke,we){(function(){var x,z=function(ae,ee){return function(){return ae.apply(ee,arguments)}},ie={}.hasOwnProperty;ke.exports=x=function(){function ae(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var de,E,ne;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),E=ee.stringify||{};for(de in E)ie.call(E,de)&&(ne=E[de],this[de]=ne)}return ae.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},ae.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},ae.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},ae.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},ae.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},ae.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},ae.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},ae.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},ae.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},ae.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},ae.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.convertAttKey="@",ae.prototype.convertPIKey="?",ae.prototype.convertTextKey="#text",ae.prototype.convertCDataKey="#cdata",ae.prototype.convertCommentKey="#comment",ae.prototype.convertRawKey="#raw",ae.prototype.assertLegalChar=function(ee){var de,E;if(this.options.noValidation)return ee;if(de="",this.options.version==="1.0"){if(de=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(de))throw new Error("Invalid character in string: "+ee+" at index "+E.index)}else if(this.options.version==="1.1"&&(de=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(de)))throw new Error("Invalid character in string: "+ee+" at index "+E.index);return ee},ae.prototype.assertLegalName=function(ee){var de;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),de=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ee.match(de))throw new Error("Invalid character in name");return ee},ae.prototype.textEscape=function(ee){var de;return this.options.noValidation?ee:(de=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(de,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},ae.prototype.attEscape=function(ee){var de;return this.options.noValidation?ee:(de=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(de,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},ae}()}).call(this)},{}],457:[function(y,ke,we){(function(){var x,z,ie,ae=function(de,E){for(var ne in E)ee.call(E,ne)&&(de[ne]=E[ne]);function re(){this.constructor=de}return re.prototype=E.prototype,de.prototype=new re,de.__super__=E.prototype,de},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),ke.exports=ie=function(de){ae(E,de);function E(ne,re){if(E.__super__.constructor.call(this,ne),re==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=x.Text,this.value=this.stringify.text(re)}return Object.defineProperty(E.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"wholeText",{get:function(){var ne,re,oe;for(oe="",re=this.previousSibling;re;)oe=re.data+oe,re=re.previousSibling;for(oe+=this.data,ne=this.nextSibling;ne;)oe=oe+ne.data,ne=ne.nextSibling;return oe}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.text(this,this.options.writer.filterOptions(ne))},E.prototype.splitText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re,oe,le,he,pe,ve,ce,me,Ee,Te={}.hasOwnProperty;Ee=y("./Utility").assign,x=y("./NodeType"),re=y("./XMLDeclaration"),oe=y("./XMLDocType"),ie=y("./XMLCData"),ae=y("./XMLComment"),he=y("./XMLElement"),ve=y("./XMLRaw"),ce=y("./XMLText"),pe=y("./XMLProcessingInstruction"),le=y("./XMLDummy"),ee=y("./XMLDTDAttList"),de=y("./XMLDTDElement"),E=y("./XMLDTDEntity"),ne=y("./XMLDTDNotation"),z=y("./WriterState"),ke.exports=me=function(){function Re(_e){var ye,be,Se;_e||(_e={}),this.options=_e,be=_e.writer||{};for(ye in be)Te.call(be,ye)&&(Se=be[ye],this["_"+ye]=this[ye],this[ye]=Se)}return Re.prototype.filterOptions=function(_e){var ye,be,Se,Ie,Me,Ae,De,He;return _e||(_e={}),_e=Ee({},this.options,_e),ye={writer:this},ye.pretty=_e.pretty||!1,ye.allowEmpty=_e.allowEmpty||!1,ye.indent=(be=_e.indent)!=null?be:" ",ye.newline=(Se=_e.newline)!=null?Se:`
`,ye.offset=(Ie=_e.offset)!=null?Ie:0,ye.dontPrettyTextNodes=(Me=(Ae=_e.dontPrettyTextNodes)!=null?Ae:_e.dontprettytextnodes)!=null?Me:0,ye.spaceBeforeSlash=(De=(He=_e.spaceBeforeSlash)!=null?He:_e.spacebeforeslash)!=null?De:"",ye.spaceBeforeSlash===!0&&(ye.spaceBeforeSlash=" "),ye.suppressPrettyCount=0,ye.user={},ye.state=z.None,ye},Re.prototype.indent=function(_e,ye,be){var Se;return!ye.pretty||ye.suppressPrettyCount?"":ye.pretty&&(Se=(be||0)+ye.offset+1,Se>0)?new Array(Se).join(ye.indent):""},Re.prototype.endline=function(_e,ye,be){return!ye.pretty||ye.suppressPrettyCount?"":ye.newline},Re.prototype.attribute=function(_e,ye,be){var Se;return this.openAttribute(_e,ye,be),Se=" "+_e.name+'="'+_e.value+'"',this.closeAttribute(_e,ye,be),Se},Re.prototype.cdata=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<![CDATA[",ye.state=z.InsideTag,Se+=_e.value,ye.state=z.CloseTag,Se+="]]>"+this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.comment=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<!-- ",ye.state=z.InsideTag,Se+=_e.value,ye.state=z.CloseTag,Se+=" -->"+this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.declaration=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<?xml",ye.state=z.InsideTag,Se+=' version="'+_e.version+'"',_e.encoding!=null&&(Se+=' encoding="'+_e.encoding+'"'),_e.standalone!=null&&(Se+=' standalone="'+_e.standalone+'"'),ye.state=z.CloseTag,Se+=ye.spaceBeforeSlash+"?>",Se+=this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.docType=function(_e,ye,be){var Se,Ie,Me,Ae,De;if(be||(be=0),this.openNode(_e,ye,be),ye.state=z.OpenTag,Ae=this.indent(_e,ye,be),Ae+="<!DOCTYPE "+_e.root().name,_e.pubID&&_e.sysID?Ae+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.sysID&&(Ae+=' SYSTEM "'+_e.sysID+'"'),_e.children.length>0){for(Ae+=" [",Ae+=this.endline(_e,ye,be),ye.state=z.InsideTag,De=_e.children,Ie=0,Me=De.length;Ie<Me;Ie++)Se=De[Ie],Ae+=this.writeChildNode(Se,ye,be+1);ye.state=z.CloseTag,Ae+="]"}return ye.state=z.CloseTag,Ae+=ye.spaceBeforeSlash+">",Ae+=this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Ae},Re.prototype.element=function(_e,ye,be){var Se,Ie,Me,Ae,De,He,Ke,Ve,nt,Ne,We,$e,rt,et;be||(be=0),Ne=!1,We="",this.openNode(_e,ye,be),ye.state=z.OpenTag,We+=this.indent(_e,ye,be)+"<"+_e.name,$e=_e.attribs;for(nt in $e)Te.call($e,nt)&&(Se=$e[nt],We+=this.attribute(Se,ye,be));if(Me=_e.children.length,Ae=Me===0?null:_e.children[0],Me===0||_e.children.every(function(Xe){return(Xe.type===x.Text||Xe.type===x.Raw)&&Xe.value===""}))ye.allowEmpty?(We+=">",ye.state=z.CloseTag,We+="</"+_e.name+">"+this.endline(_e,ye,be)):(ye.state=z.CloseTag,We+=ye.spaceBeforeSlash+"/>"+this.endline(_e,ye,be));else if(ye.pretty&&Me===1&&(Ae.type===x.Text||Ae.type===x.Raw)&&Ae.value!=null)We+=">",ye.state=z.InsideTag,ye.suppressPrettyCount++,Ne=!0,We+=this.writeChildNode(Ae,ye,be+1),ye.suppressPrettyCount--,Ne=!1,ye.state=z.CloseTag,We+="</"+_e.name+">"+this.endline(_e,ye,be);else{if(ye.dontPrettyTextNodes){for(rt=_e.children,De=0,Ke=rt.length;De<Ke;De++)if(Ie=rt[De],(Ie.type===x.Text||Ie.type===x.Raw)&&Ie.value!=null){ye.suppressPrettyCount++,Ne=!0;break}}for(We+=">"+this.endline(_e,ye,be),ye.state=z.InsideTag,et=_e.children,He=0,Ve=et.length;He<Ve;He++)Ie=et[He],We+=this.writeChildNode(Ie,ye,be+1);ye.state=z.CloseTag,We+=this.indent(_e,ye,be)+"</"+_e.name+">",Ne&&ye.suppressPrettyCount--,We+=this.endline(_e,ye,be),ye.state=z.None}return this.closeNode(_e,ye,be),We},Re.prototype.writeChildNode=function(_e,ye,be){switch(_e.type){case x.CData:return this.cdata(_e,ye,be);case x.Comment:return this.comment(_e,ye,be);case x.Element:return this.element(_e,ye,be);case x.Raw:return this.raw(_e,ye,be);case x.Text:return this.text(_e,ye,be);case x.ProcessingInstruction:return this.processingInstruction(_e,ye,be);case x.Dummy:return"";case x.Declaration:return this.declaration(_e,ye,be);case x.DocType:return this.docType(_e,ye,be);case x.AttributeDeclaration:return this.dtdAttList(_e,ye,be);case x.ElementDeclaration:return this.dtdElement(_e,ye,be);case x.EntityDeclaration:return this.dtdEntity(_e,ye,be);case x.NotationDeclaration:return this.dtdNotation(_e,ye,be);default:throw new Error("Unknown XML node type: "+_e.constructor.name)}},Re.prototype.processingInstruction=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<?",ye.state=z.InsideTag,Se+=_e.target,_e.value&&(Se+=" "+_e.value),ye.state=z.CloseTag,Se+=ye.spaceBeforeSlash+"?>",Se+=this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.raw=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be),ye.state=z.InsideTag,Se+=_e.value,ye.state=z.CloseTag,Se+=this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.text=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be),ye.state=z.InsideTag,Se+=_e.value,ye.state=z.CloseTag,Se+=this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.dtdAttList=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<!ATTLIST",ye.state=z.InsideTag,Se+=" "+_e.elementName+" "+_e.attributeName+" "+_e.attributeType,_e.defaultValueType!=="#DEFAULT"&&(Se+=" "+_e.defaultValueType),_e.defaultValue&&(Se+=' "'+_e.defaultValue+'"'),ye.state=z.CloseTag,Se+=ye.spaceBeforeSlash+">"+this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.dtdElement=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<!ELEMENT",ye.state=z.InsideTag,Se+=" "+_e.name+" "+_e.value,ye.state=z.CloseTag,Se+=ye.spaceBeforeSlash+">"+this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.dtdEntity=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<!ENTITY",ye.state=z.InsideTag,_e.pe&&(Se+=" %"),Se+=" "+_e.name,_e.value?Se+=' "'+_e.value+'"':(_e.pubID&&_e.sysID?Se+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.sysID&&(Se+=' SYSTEM "'+_e.sysID+'"'),_e.nData&&(Se+=" NDATA "+_e.nData)),ye.state=z.CloseTag,Se+=ye.spaceBeforeSlash+">"+this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.dtdNotation=function(_e,ye,be){var Se;return this.openNode(_e,ye,be),ye.state=z.OpenTag,Se=this.indent(_e,ye,be)+"<!NOTATION",ye.state=z.InsideTag,Se+=" "+_e.name,_e.pubID&&_e.sysID?Se+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.pubID?Se+=' PUBLIC "'+_e.pubID+'"':_e.sysID&&(Se+=' SYSTEM "'+_e.sysID+'"'),ye.state=z.CloseTag,Se+=ye.spaceBeforeSlash+">"+this.endline(_e,ye,be),ye.state=z.None,this.closeNode(_e,ye,be),Se},Re.prototype.openNode=function(_e,ye,be){},Re.prototype.closeNode=function(_e,ye,be){},Re.prototype.openAttribute=function(_e,ye,be){},Re.prototype.closeAttribute=function(_e,ye,be){},Re}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(y,ke,we){(function(){var x,z,ie,ae,ee,de,E,ne,re,oe;oe=y("./Utility"),ne=oe.assign,re=oe.isFunction,ie=y("./XMLDOMImplementation"),ae=y("./XMLDocument"),ee=y("./XMLDocumentCB"),E=y("./XMLStringWriter"),de=y("./XMLStreamWriter"),x=y("./NodeType"),z=y("./WriterState"),ke.exports.create=function(le,he,pe,ve){var ce,me;if(le==null)throw new Error("Root element needs a name.");return ve=ne({},he,pe,ve),ce=new ae(ve),me=ce.element(le),ve.headless||(ce.declaration(ve),(ve.pubID!=null||ve.sysID!=null)&&ce.dtd(ve)),me},ke.exports.begin=function(le,he,pe){var ve;return re(le)&&(ve=[le,he],he=ve[0],pe=ve[1],le={}),he?new ee(le,he,pe):new ae(le)},ke.exports.stringWriter=function(le){return new E(le)},ke.exports.streamWriter=function(le,he){return new de(le,he)},ke.exports.implementation=new ie,ke.exports.nodeType=x,ke.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,ke,we){ke.exports=z;var x=Object.prototype.hasOwnProperty;function z(){for(var ie={},ae=0;ae<arguments.length;ae++){var ee=arguments[ae];for(var de in ee)x.call(ee,de)&&(ie[de]=ee[de])}return ie}},{}],461:[function(y,ke,we){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.slice.js");var x=y("buffer").Buffer,z=y("./sha"),ie=y("./md5"),ae={sha1:z,md5:ie},ee=64,de=x.alloc(ee);de.fill(0);function E(oe,le,he){x.isBuffer(le)||(le=x.from(le)),x.isBuffer(he)||(he=x.from(he)),le.length>ee?le=oe(le):le.length<ee&&(le=x.concat([le,de],ee));for(var pe=x.alloc(ee),ve=x.alloc(ee),ce=0;ce<ee;ce++)pe[ce]=le[ce]^54,ve[ce]=le[ce]^92;var me=oe(x.concat([pe,he]));return oe(x.concat([ve,me]))}function ne(oe,le){oe=oe||"sha1";var he=ae[oe],pe=[],ve=0;return he||re("algorithm:",oe,"is not yet supported"),{update:function(me){return x.isBuffer(me)||(me=x.from(me)),pe.push(me),ve+=me.length,this},digest:function(me){var Ee=x.concat(pe),Te=le?E(he,le,Ee):he(Ee);return pe=null,me?Te.toString(me):Te}}}function re(){var oe=[].slice.call(arguments).join(" ");throw new Error([oe,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}we.createHash=function(oe){return ne(oe)},we.createHmac=function(oe,le){return ne(oe,le)},we.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},we.createCipher=function(){re("sorry,createCipher is not implemented yet")},we.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},we.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},we.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},we.createSign=function(){re("sorry,createSign is not implemented yet")},we.createVerify=function(){re("sorry,createVerify is not implemented yet")},we.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},we.pbkdf2=function(){re("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(y,ke,we){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js");var x=y("buffer").Buffer,z=4,ie=x.alloc(z);ie.fill(0);var ae=8;function ee(ne,re){if(ne.length%z!==0){var oe=ne.length+(z-ne.length%z);ne=x.concat([ne,ie],oe)}for(var le=[],he=re?ne.readInt32BE:ne.readInt32LE,pe=0;pe<ne.length;pe+=z)le.push(he.call(ne,pe));return le}function de(ne,re,oe){for(var le=x.alloc(re),he=oe?le.writeInt32BE:le.writeInt32LE,pe=0;pe<ne.length;pe++)he.call(le,ne[pe],pe*4,!0);return le}function E(ne,re,oe,le){x.isBuffer(ne)||(ne=x.from(ne));var he=re(ee(ne,le),ne.length*ae);return de(he,oe,le)}ke.exports={hash:E}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,ke,we){"use strict";var x=y("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(le,he){le[he>>5]|=128<<he%32,le[(he+64>>>9<<4)+14]=he;for(var pe=1732584193,ve=-271733879,ce=-1732584194,me=271733878,Ee=0;Ee<le.length;Ee+=16){var Te=pe,Re=ve,_e=ce,ye=me;pe=ee(pe,ve,ce,me,le[Ee+0],7,-680876936),me=ee(me,pe,ve,ce,le[Ee+1],12,-389564586),ce=ee(ce,me,pe,ve,le[Ee+2],17,606105819),ve=ee(ve,ce,me,pe,le[Ee+3],22,-1044525330),pe=ee(pe,ve,ce,me,le[Ee+4],7,-176418897),me=ee(me,pe,ve,ce,le[Ee+5],12,1200080426),ce=ee(ce,me,pe,ve,le[Ee+6],17,-1473231341),ve=ee(ve,ce,me,pe,le[Ee+7],22,-45705983),pe=ee(pe,ve,ce,me,le[Ee+8],7,1770035416),me=ee(me,pe,ve,ce,le[Ee+9],12,-1958414417),ce=ee(ce,me,pe,ve,le[Ee+10],17,-42063),ve=ee(ve,ce,me,pe,le[Ee+11],22,-1990404162),pe=ee(pe,ve,ce,me,le[Ee+12],7,1804603682),me=ee(me,pe,ve,ce,le[Ee+13],12,-40341101),ce=ee(ce,me,pe,ve,le[Ee+14],17,-1502002290),ve=ee(ve,ce,me,pe,le[Ee+15],22,1236535329),pe=de(pe,ve,ce,me,le[Ee+1],5,-165796510),me=de(me,pe,ve,ce,le[Ee+6],9,-1069501632),ce=de(ce,me,pe,ve,le[Ee+11],14,643717713),ve=de(ve,ce,me,pe,le[Ee+0],20,-373897302),pe=de(pe,ve,ce,me,le[Ee+5],5,-701558691),me=de(me,pe,ve,ce,le[Ee+10],9,38016083),ce=de(ce,me,pe,ve,le[Ee+15],14,-660478335),ve=de(ve,ce,me,pe,le[Ee+4],20,-405537848),pe=de(pe,ve,ce,me,le[Ee+9],5,568446438),me=de(me,pe,ve,ce,le[Ee+14],9,-1019803690),ce=de(ce,me,pe,ve,le[Ee+3],14,-187363961),ve=de(ve,ce,me,pe,le[Ee+8],20,1163531501),pe=de(pe,ve,ce,me,le[Ee+13],5,-1444681467),me=de(me,pe,ve,ce,le[Ee+2],9,-51403784),ce=de(ce,me,pe,ve,le[Ee+7],14,1735328473),ve=de(ve,ce,me,pe,le[Ee+12],20,-1926607734),pe=E(pe,ve,ce,me,le[Ee+5],4,-378558),me=E(me,pe,ve,ce,le[Ee+8],11,-2022574463),ce=E(ce,me,pe,ve,le[Ee+11],16,1839030562),ve=E(ve,ce,me,pe,le[Ee+14],23,-35309556),pe=E(pe,ve,ce,me,le[Ee+1],4,-1530992060),me=E(me,pe,ve,ce,le[Ee+4],11,1272893353),ce=E(ce,me,pe,ve,le[Ee+7],16,-155497632),ve=E(ve,ce,me,pe,le[Ee+10],23,-1094730640),pe=E(pe,ve,ce,me,le[Ee+13],4,681279174),me=E(me,pe,ve,ce,le[Ee+0],11,-358537222),ce=E(ce,me,pe,ve,le[Ee+3],16,-722521979),ve=E(ve,ce,me,pe,le[Ee+6],23,76029189),pe=E(pe,ve,ce,me,le[Ee+9],4,-640364487),me=E(me,pe,ve,ce,le[Ee+12],11,-421815835),ce=E(ce,me,pe,ve,le[Ee+15],16,530742520),ve=E(ve,ce,me,pe,le[Ee+2],23,-995338651),pe=ne(pe,ve,ce,me,le[Ee+0],6,-198630844),me=ne(me,pe,ve,ce,le[Ee+7],10,1126891415),ce=ne(ce,me,pe,ve,le[Ee+14],15,-1416354905),ve=ne(ve,ce,me,pe,le[Ee+5],21,-57434055),pe=ne(pe,ve,ce,me,le[Ee+12],6,1700485571),me=ne(me,pe,ve,ce,le[Ee+3],10,-1894986606),ce=ne(ce,me,pe,ve,le[Ee+10],15,-1051523),ve=ne(ve,ce,me,pe,le[Ee+1],21,-2054922799),pe=ne(pe,ve,ce,me,le[Ee+8],6,1873313359),me=ne(me,pe,ve,ce,le[Ee+15],10,-30611744),ce=ne(ce,me,pe,ve,le[Ee+6],15,-1560198380),ve=ne(ve,ce,me,pe,le[Ee+13],21,1309151649),pe=ne(pe,ve,ce,me,le[Ee+4],6,-145523070),me=ne(me,pe,ve,ce,le[Ee+11],10,-1120210379),ce=ne(ce,me,pe,ve,le[Ee+2],15,718787259),ve=ne(ve,ce,me,pe,le[Ee+9],21,-343485551),pe=re(pe,Te),ve=re(ve,Re),ce=re(ce,_e),me=re(me,ye)}return Array(pe,ve,ce,me)}function ae(le,he,pe,ve,ce,me){return re(oe(re(re(he,le),re(ve,me)),ce),pe)}function ee(le,he,pe,ve,ce,me,Ee){return ae(he&pe|~he&ve,le,he,ce,me,Ee)}function de(le,he,pe,ve,ce,me,Ee){return ae(he&ve|pe&~ve,le,he,ce,me,Ee)}function E(le,he,pe,ve,ce,me,Ee){return ae(he^pe^ve,le,he,ce,me,Ee)}function ne(le,he,pe,ve,ce,me,Ee){return ae(pe^(he|~ve),le,he,ce,me,Ee)}function re(le,he){var pe=(le&65535)+(he&65535),ve=(le>>16)+(he>>16)+(pe>>16);return ve<<16|pe&65535}function oe(le,he){return le<<he|le>>>32-he}ke.exports=function(he){return x.hash(he,ie,16)}},{"./helpers":462}],464:[function(y,ke,we){"use strict";var x=y("./helpers");function z(E,ne){E[ne>>5]|=128<<24-ne%32,E[(ne+64>>9<<4)+15]=ne;for(var re=Array(80),oe=1732584193,le=-271733879,he=-1732584194,pe=271733878,ve=-1009589776,ce=0;ce<E.length;ce+=16){for(var me=oe,Ee=le,Te=he,Re=pe,_e=ve,ye=0;ye<80;ye++){ye<16?re[ye]=E[ce+ye]:re[ye]=de(re[ye-3]^re[ye-8]^re[ye-14]^re[ye-16],1);var be=ee(ee(de(oe,5),ie(ye,le,he,pe)),ee(ee(ve,re[ye]),ae(ye)));ve=pe,pe=he,he=de(le,30),le=oe,oe=be}oe=ee(oe,me),le=ee(le,Ee),he=ee(he,Te),pe=ee(pe,Re),ve=ee(ve,_e)}return Array(oe,le,he,pe,ve)}function ie(E,ne,re,oe){return E<20?ne&re|~ne&oe:E<40?ne^re^oe:E<60?ne&re|ne&oe|re&oe:ne^re^oe}function ae(E){return E<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514}function ee(E,ne){var re=(E&65535)+(ne&65535),oe=(E>>16)+(ne>>16)+(re>>16);return oe<<16|re&65535}function de(E,ne){return E<<ne|E>>>32-ne}ke.exports=function(ne){return x.hash(ne,z,20,!0)}},{"./helpers":462}],465:[function(y,ke,we){"use strict";ke.exports=function(){return function(){}}},{}],466:[function(y,ke,we){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=z(y("@babel/runtime/helpers/typeof")),ae=y("stream"),ee=ae.Stream,de=y("../lib/common/utils/isArray"),E=de.isArray;ke.exports.string=function(oe){return typeof oe=="string"},ke.exports.array=E,ke.exports.buffer=x.isBuffer;function ne(re){return re instanceof ee}ke.exports.writableStream=function(oe){return ne(oe)&&typeof oe._write=="function"&&(0,ie.default)(oe._writableState)==="object"}}).call(this)}).call(this,{isBuffer:y("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(y,ke,we){"use strict";var x=y("immediate"),z=ke.exports={};z.nextTick=x,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function ie(){}z.on=ie,z.addListener=ie,z.once=ie,z.off=ie,z.removeListener=ie,z.removeAllListeners=ie,z.emit=ie,z.prependListener=ie,z.prependOnceListener=ie,z.listeners=function(ae){return[]},z.binding=function(ae){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(ae){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js");var z=y("./lib/request"),ie=y("./lib/response"),ae=y("xtend"),ee=y("builtin-status-codes"),de=y("url"),E=we;E.request=function(ne,re){typeof ne=="string"?ne=de.parse(ne):ne=ae(ne);var oe=x.location.protocol.search(/^https?:$/)===-1?"http:":"",le=ne.protocol||oe,he=ne.hostname||ne.host,pe=ne.port,ve=ne.path||"/";he&&he.indexOf(":")!==-1&&(he="["+he+"]"),ne.url=(he?le+"//"+he:"")+(pe?":"+pe:"")+ve,ne.method=(ne.method||"GET").toUpperCase(),ne.headers=ne.headers||{};var ce=new z(ne);return re&&ce.on("response",re),ce},E.get=function(re,oe){var le=E.request(re,oe);return le.end(),le},E.ClientRequest=z,E.IncomingMessage=ie.IncomingMessage,E.Agent=function(){},E.Agent.defaultMaxSockets=4,E.globalAgent=new E.Agent,E.STATUS_CODES=ee,E.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(y,ke,we){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array-buffer.constructor.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.array.slice.js"),we.fetch=E(x.fetch)&&E(x.ReadableStream),we.writableStream=E(x.WritableStream),we.abortController=E(x.AbortController),we.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),we.blobConstructor=!0}catch(ne){}var z;function ie(){if(z!==void 0)return z;if(x.XMLHttpRequest){z=new x.XMLHttpRequest;try{z.open("GET",x.XDomainRequest?"/":"https://example.com")}catch(ne){z=null}}else z=null;return z}function ae(ne){var re=ie();if(!re)return!1;try{return re.responseType=ne,re.responseType===ne}catch(oe){}return!1}var ee=typeof x.ArrayBuffer!="undefined",de=ee&&E(x.ArrayBuffer.prototype.slice);we.arraybuffer=we.fetch||ee&&ae("arraybuffer"),we.msstream=!we.fetch&&de&&ae("ms-stream"),we.mozchunkedarraybuffer=!we.fetch&&ee&&ae("moz-chunked-arraybuffer"),we.overrideMimeType=we.fetch||(ie()?E(ie().overrideMimeType):!1),we.vbArray=E(x.VBArray);function E(ne){return typeof ne=="function"}z=null}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(y,ke,we){(function(x,z,ie){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js");var ae=y("./capability"),ee=y("inherits"),de=y("./response"),E=y("readable-stream"),ne=y("to-arraybuffer"),re=de.IncomingMessage,oe=de.readyStates;function le(ce,me){return ae.fetch&&me?"fetch":ae.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ae.msstream?"ms-stream":ae.arraybuffer&&ce?"arraybuffer":ae.vbArray&&ce?"text:vbarray":"text"}var he=ke.exports=function(ce){var me=this;E.Writable.call(me),me._opts=ce,me._body=[],me._headers={},ce.auth&&me.setHeader("Authorization","Basic "+new ie(ce.auth).toString("base64")),Object.keys(ce.headers).forEach(function(Re){me.setHeader(Re,ce.headers[Re])});var Ee,Te=!0;if(ce.mode==="disable-fetch"||"requestTimeout"in ce&&!ae.abortController)Te=!1,Ee=!0;else if(ce.mode==="prefer-streaming")Ee=!1;else if(ce.mode==="allow-wrong-content-type")Ee=!ae.overrideMimeType;else if(!ce.mode||ce.mode==="default"||ce.mode==="prefer-fast")Ee=!0;else throw new Error("Invalid value for opts.mode");me._mode=le(Ee,Te),me._fetchTimer=null,me.on("finish",function(){me._onFinish()})};ee(he,E.Writable),he.prototype.setHeader=function(ce,me){var Ee=this,Te=ce.toLowerCase();ve.indexOf(Te)===-1&&(Ee._headers[Te]={name:ce,value:me})},he.prototype.getHeader=function(ce){var me=this._headers[ce.toLowerCase()];return me?me.value:null},he.prototype.removeHeader=function(ce){var me=this;delete me._headers[ce.toLowerCase()]},he.prototype._onFinish=function(){var ce=this;if(!ce._destroyed){var me=ce._opts,Ee=ce._headers,Te=null;me.method!=="GET"&&me.method!=="HEAD"&&(ae.arraybuffer?Te=ne(ie.concat(ce._body)):ae.blobConstructor?Te=new z.Blob(ce._body.map(function(Ie){return ne(Ie)}),{type:(Ee["content-type"]||{}).value||""}):Te=ie.concat(ce._body).toString());var Re=[];if(Object.keys(Ee).forEach(function(Ie){var Me=Ee[Ie].name,Ae=Ee[Ie].value;Array.isArray(Ae)?Ae.forEach(function(De){Re.push([Me,De])}):Re.push([Me,Ae])}),ce._mode==="fetch"){var _e=null,ye=null;if(ae.abortController){var be=new AbortController;_e=be.signal,ce._fetchAbortController=be,"requestTimeout"in me&&me.requestTimeout!==0&&(ce._fetchTimer=z.setTimeout(function(){ce.emit("requestTimeout"),ce._fetchAbortController&&ce._fetchAbortController.abort()},me.requestTimeout))}z.fetch(ce._opts.url,{method:ce._opts.method,headers:Re,body:Te||void 0,mode:"cors",credentials:me.withCredentials?"include":"same-origin",signal:_e}).then(function(Ie){ce._fetchResponse=Ie,ce._connect()},function(Ie){z.clearTimeout(ce._fetchTimer),ce._destroyed||ce.emit("error",Ie)})}else{var Se=ce._xhr=new z.XMLHttpRequest;try{Se.open(ce._opts.method,ce._opts.url,!0)}catch(Ie){x.nextTick(function(){ce.emit("error",Ie)});return}"responseType"in Se&&(Se.responseType=ce._mode.split(":")[0]),"withCredentials"in Se&&(Se.withCredentials=!!me.withCredentials),ce._mode==="text"&&"overrideMimeType"in Se&&Se.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in me&&(Se.timeout=me.requestTimeout,Se.ontimeout=function(){ce.emit("requestTimeout")}),Re.forEach(function(Ie){Se.setRequestHeader(Ie[0],Ie[1])}),ce._response=null,Se.onreadystatechange=function(){switch(Se.readyState){case oe.LOADING:case oe.DONE:ce._onXHRProgress();break}},ce._mode==="moz-chunked-arraybuffer"&&(Se.onprogress=function(){ce._onXHRProgress()}),Se.onerror=function(){ce._destroyed||ce.emit("error",new Error("XHR error"))};try{Se.send(Te)}catch(Ie){x.nextTick(function(){ce.emit("error",Ie)});return}}}};function pe(ce){try{var me=ce.status;return me!==null&&me!==0}catch(Ee){return!1}}he.prototype._onXHRProgress=function(){var ce=this;!pe(ce._xhr)||ce._destroyed||(ce._response||ce._connect(),ce._response._onXHRProgress())},he.prototype._connect=function(){var ce=this;ce._destroyed||(ce._response=new re(ce._xhr,ce._fetchResponse,ce._mode,ce._fetchTimer),ce._response.on("error",function(me){ce.emit("error",me)}),ce.emit("response",ce._response))},he.prototype._write=function(ce,me,Ee){var Te=this;Te._body.push(ce),Ee()},he.prototype.abort=he.prototype.destroy=function(){var ce=this;ce._destroyed=!0,z.clearTimeout(ce._fetchTimer),ce._response&&(ce._response._destroyed=!0),ce._xhr?ce._xhr.abort():ce._fetchAbortController&&ce._fetchAbortController.abort()},he.prototype.end=function(ce,me,Ee){var Te=this;typeof ce=="function"&&(Ee=ce,ce=void 0),E.Writable.prototype.end.call(Te,ce,me,Ee)},he.prototype.flushHeaders=function(){},he.prototype.setTimeout=function(){},he.prototype.setNoDelay=function(){},he.prototype.setSocketKeepAlive=function(){};var ve=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(y,ke,we){(function(x,z,ie){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js"),y("core-js/modules/es.array.slice.js");var ae=y("./capability"),ee=y("inherits"),de=y("readable-stream"),E=we.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ne=we.IncomingMessage=function(re,oe,le,he){var pe=this;if(de.Readable.call(pe),pe._mode=le,pe.headers={},pe.rawHeaders=[],pe.trailers={},pe.rawTrailers=[],pe.on("end",function(){x.nextTick(function(){pe.emit("close")})}),le==="fetch"){var ve=function _e(){me.read().then(function(ye){if(!pe._destroyed){if(ye.done){z.clearTimeout(he),pe.push(null);return}pe.push(new ie(ye.value)),_e()}}).catch(function(ye){z.clearTimeout(he),pe._destroyed||pe.emit("error",ye)})};if(pe._fetchResponse=oe,pe.url=oe.url,pe.statusCode=oe.status,pe.statusMessage=oe.statusText,oe.headers.forEach(function(_e,ye){pe.headers[ye.toLowerCase()]=_e,pe.rawHeaders.push(ye,_e)}),ae.writableStream){var ce=new WritableStream({write:function(ye){return new Promise(function(be,Se){pe._destroyed?Se():pe.push(new ie(ye))?be():pe._resumeFetch=be})},close:function(){z.clearTimeout(he),pe._destroyed||pe.push(null)},abort:function(ye){pe._destroyed||pe.emit("error",ye)}});try{oe.body.pipeTo(ce).catch(function(_e){z.clearTimeout(he),pe._destroyed||pe.emit("error",_e)});return}catch(_e){}}var me=oe.body.getReader();ve()}else{pe._xhr=re,pe._pos=0,pe.url=re.responseURL,pe.statusCode=re.status,pe.statusMessage=re.statusText;var Ee=re.getAllResponseHeaders().split(/\r?\n/);if(Ee.forEach(function(_e){var ye=_e.match(/^([^:]+):\s*(.*)/);if(ye){var be=ye[1].toLowerCase();be==="set-cookie"?(pe.headers[be]===void 0&&(pe.headers[be]=[]),pe.headers[be].push(ye[2])):pe.headers[be]!==void 0?pe.headers[be]+=", "+ye[2]:pe.headers[be]=ye[2],pe.rawHeaders.push(ye[1],ye[2])}}),pe._charset="x-user-defined",!ae.overrideMimeType){var Te=pe.rawHeaders["mime-type"];if(Te){var Re=Te.match(/;\s*charset=([^;])(;|$)/);Re&&(pe._charset=Re[1].toLowerCase())}pe._charset||(pe._charset="utf-8")}}};ee(ne,de.Readable),ne.prototype._read=function(){var re=this,oe=re._resumeFetch;oe&&(re._resumeFetch=null,oe())},ne.prototype._onXHRProgress=function(){var re=this,oe=re._xhr,le=null;switch(re._mode){case"text:vbarray":if(oe.readyState!==E.DONE)break;try{le=new z.VBArray(oe.responseBody).toArray()}catch(me){}if(le!==null){re.push(new ie(le));break}case"text":try{le=oe.responseText}catch(me){re._mode="text:vbarray";break}if(le.length>re._pos){var he=le.substr(re._pos);if(re._charset==="x-user-defined"){for(var pe=new ie(he.length),ve=0;ve<he.length;ve++)pe[ve]=he.charCodeAt(ve)&255;re.push(pe)}else re.push(he,re._charset);re._pos=le.length}break;case"arraybuffer":if(oe.readyState!==E.DONE||!oe.response)break;le=oe.response,re.push(new ie(new Uint8Array(le)));break;case"moz-chunked-arraybuffer":if(le=oe.response,oe.readyState!==E.LOADING||!le)break;re.push(new ie(new Uint8Array(le)));break;case"ms-stream":if(le=oe.response,oe.readyState!==E.LOADING)break;var ce=new z.MSStreamReader;ce.onprogress=function(){ce.result.byteLength>re._pos&&(re.push(new ie(new Uint8Array(ce.result.slice(re._pos)))),re._pos=ce.result.byteLength)},ce.onload=function(){re.push(null)},ce.readAsArrayBuffer(le);break}re._xhr.readyState===E.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,y("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.splice.js");var ie=y("punycode"),ae=y("./util");we.parse=ye,we.resolve=Se,we.resolveObject=Ie,we.format=be,we.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var de=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,ne=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
`," "],oe=["{","}","|","\\","^","`"].concat(re),le=["'"].concat(oe),he=["%","/","?",";","#"].concat(le),pe=["/","?","#"],ve=255,ce=/^[+a-z0-9A-Z_-]{0,63}$/,me=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ee={javascript:!0,"javascript:":!0},Te={javascript:!0,"javascript:":!0},Re={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_e=y("querystring");function ye(Me,Ae,De){if(Me&&ae.isObject(Me)&&Me instanceof ee)return Me;var He=new ee;return He.parse(Me,Ae,De),He}ee.prototype.parse=function(Me,Ae,De){if(!ae.isString(Me))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Me));var He=Me.indexOf("?"),Ke=He!==-1&&He<Me.indexOf("#")?"?":"#",Ve=Me.split(Ke),nt=/\\/g;Ve[0]=Ve[0].replace(nt,"/"),Me=Ve.join(Ke);var Ne=Me;if(Ne=Ne.trim(),!De&&Me.split("#").length===1){var We=ne.exec(Ne);if(We)return this.path=Ne,this.href=Ne,this.pathname=We[1],We[2]?(this.search=We[2],Ae?this.query=_e.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ae&&(this.search="",this.query={}),this}var $e=de.exec(Ne);if($e){$e=$e[0];var rt=$e.toLowerCase();this.protocol=rt,Ne=Ne.substr($e.length)}if(De||$e||Ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=Ne.substr(0,2)==="//";et&&!($e&&Te[$e])&&(Ne=Ne.substr(2),this.slashes=!0)}if(!Te[$e]&&(et||$e&&!Re[$e])){for(var Xe=-1,Ye=0;Ye<pe.length;Ye++){var Ge=Ne.indexOf(pe[Ye]);Ge!==-1&&(Xe===-1||Ge<Xe)&&(Xe=Ge)}var at,Qe;Xe===-1?Qe=Ne.lastIndexOf("@"):Qe=Ne.lastIndexOf("@",Xe),Qe!==-1&&(at=Ne.slice(0,Qe),Ne=Ne.slice(Qe+1),this.auth=decodeURIComponent(at)),Xe=-1;for(var Ye=0;Ye<he.length;Ye++){var Ge=Ne.indexOf(he[Ye]);Ge!==-1&&(Xe===-1||Ge<Xe)&&(Xe=Ge)}Xe===-1&&(Xe=Ne.length),this.host=Ne.slice(0,Xe),Ne=Ne.slice(Xe),this.parseHost(),this.hostname=this.hostname||"";var ft=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ft)for(var ot=this.hostname.split("."),Ye=0,Je=ot.length;Ye<Je;Ye++){var Fe=ot[Ye];if(Fe&&!Fe.match(ce)){for(var Pe="",te=0,fe=Fe.length;te<fe;te++)Fe.charCodeAt(te)>127?Pe+="x":Pe+=Fe[te];if(!Pe.match(ce)){var Oe=ot.slice(0,Ye),Ue=ot.slice(Ye+1),xe=Fe.match(me);xe&&(Oe.push(xe[1]),Ue.unshift(xe[2])),Ue.length&&(Ne="/"+Ue.join(".")+Ne),this.hostname=Oe.join(".");break}}}this.hostname.length>ve?this.hostname="":this.hostname=this.hostname.toLowerCase(),ft||(this.hostname=ie.toASCII(this.hostname));var Ce=this.port?":"+this.port:"",je=this.hostname||"";this.host=je+Ce,this.href+=this.host,ft&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ne[0]!=="/"&&(Ne="/"+Ne))}if(!Ee[rt])for(var Ye=0,Je=le.length;Ye<Je;Ye++){var Ze=le[Ye];if(Ne.indexOf(Ze)!==-1){var tt=encodeURIComponent(Ze);tt===Ze&&(tt=escape(Ze)),Ne=Ne.split(Ze).join(tt)}}var it=Ne.indexOf("#");it!==-1&&(this.hash=Ne.substr(it),Ne=Ne.slice(0,it));var ct=Ne.indexOf("?");if(ct!==-1?(this.search=Ne.substr(ct),this.query=Ne.substr(ct+1),Ae&&(this.query=_e.parse(this.query)),Ne=Ne.slice(0,ct)):Ae&&(this.search="",this.query={}),Ne&&(this.pathname=Ne),Re[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ce=this.pathname||"",ut=this.search||"";this.path=Ce+ut}return this.href=this.format(),this};function be(Me){return ae.isString(Me)&&(Me=ye(Me)),Me instanceof ee?Me.format():ee.prototype.format.call(Me)}ee.prototype.format=function(){var Me=this.auth||"";Me&&(Me=encodeURIComponent(Me),Me=Me.replace(/%3A/i,":"),Me+="@");var Ae=this.protocol||"",De=this.pathname||"",He=this.hash||"",Ke=!1,Ve="";this.host?Ke=Me+this.host:this.hostname&&(Ke=Me+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ke+=":"+this.port)),this.query&&ae.isObject(this.query)&&Object.keys(this.query).length&&(Ve=_e.stringify(this.query));var nt=this.search||Ve&&"?"+Ve||"";return Ae&&Ae.substr(-1)!==":"&&(Ae+=":"),this.slashes||(!Ae||Re[Ae])&&Ke!==!1?(Ke="//"+(Ke||""),De&&De.charAt(0)!=="/"&&(De="/"+De)):Ke||(Ke=""),He&&He.charAt(0)!=="#"&&(He="#"+He),nt&&nt.charAt(0)!=="?"&&(nt="?"+nt),De=De.replace(/[?#]/g,function(Ne){return encodeURIComponent(Ne)}),nt=nt.replace("#","%23"),Ae+Ke+De+nt+He};function Se(Me,Ae){return ye(Me,!1,!0).resolve(Ae)}ee.prototype.resolve=function(Me){return this.resolveObject(ye(Me,!1,!0)).format()};function Ie(Me,Ae){return Me?ye(Me,!1,!0).resolveObject(Ae):Ae}ee.prototype.resolveObject=function(Me){if(ae.isString(Me)){var Ae=new ee;Ae.parse(Me,!1,!0),Me=Ae}for(var De=new ee,He=Object.keys(this),Ke=0;Ke<He.length;Ke++){var Ve=He[Ke];De[Ve]=this[Ve]}if(De.hash=Me.hash,Me.href==="")return De.href=De.format(),De;if(Me.slashes&&!Me.protocol){for(var nt=Object.keys(Me),Ne=0;Ne<nt.length;Ne++){var We=nt[Ne];We!=="protocol"&&(De[We]=Me[We])}return Re[De.protocol]&&De.hostname&&!De.pathname&&(De.path=De.pathname="/"),De.href=De.format(),De}if(Me.protocol&&Me.protocol!==De.protocol){if(!Re[Me.protocol]){for(var $e=Object.keys(Me),rt=0;rt<$e.length;rt++){var et=$e[rt];De[et]=Me[et]}return De.href=De.format(),De}if(De.protocol=Me.protocol,!Me.host&&!Te[Me.protocol]){for(var Je=(Me.pathname||"").split("/");Je.length&&!(Me.host=Je.shift()););Me.host||(Me.host=""),Me.hostname||(Me.hostname=""),Je[0]!==""&&Je.unshift(""),Je.length<2&&Je.unshift(""),De.pathname=Je.join("/")}else De.pathname=Me.pathname;if(De.search=Me.search,De.query=Me.query,De.host=Me.host||"",De.auth=Me.auth,De.hostname=Me.hostname||Me.host,De.port=Me.port,De.pathname||De.search){var Xe=De.pathname||"",Ye=De.search||"";De.path=Xe+Ye}return De.slashes=De.slashes||Me.slashes,De.href=De.format(),De}var Ge=De.pathname&&De.pathname.charAt(0)==="/",at=Me.host||Me.pathname&&Me.pathname.charAt(0)==="/",Qe=at||Ge||De.host&&Me.pathname,ft=Qe,ot=De.pathname&&De.pathname.split("/")||[],Je=Me.pathname&&Me.pathname.split("/")||[],Fe=De.protocol&&!Re[De.protocol];if(Fe&&(De.hostname="",De.port=null,De.host&&(ot[0]===""?ot[0]=De.host:ot.unshift(De.host)),De.host="",Me.protocol&&(Me.hostname=null,Me.port=null,Me.host&&(Je[0]===""?Je[0]=Me.host:Je.unshift(Me.host)),Me.host=null),Qe=Qe&&(Je[0]===""||ot[0]==="")),at)De.host=Me.host||Me.host===""?Me.host:De.host,De.hostname=Me.hostname||Me.hostname===""?Me.hostname:De.hostname,De.search=Me.search,De.query=Me.query,ot=Je;else if(Je.length)ot||(ot=[]),ot.pop(),ot=ot.concat(Je),De.search=Me.search,De.query=Me.query;else if(!ae.isNullOrUndefined(Me.search)){if(Fe){De.hostname=De.host=ot.shift();var Pe=De.host&&De.host.indexOf("@")>0?De.host.split("@"):!1;Pe&&(De.auth=Pe.shift(),De.host=De.hostname=Pe.shift())}return De.search=Me.search,De.query=Me.query,(!ae.isNull(De.pathname)||!ae.isNull(De.search))&&(De.path=(De.pathname?De.pathname:"")+(De.search?De.search:"")),De.href=De.format(),De}if(!ot.length)return De.pathname=null,De.search?De.path="/"+De.search:De.path=null,De.href=De.format(),De;for(var te=ot.slice(-1)[0],fe=(De.host||Me.host||ot.length>1)&&(te==="."||te==="..")||te==="",Oe=0,Ue=ot.length;Ue>=0;Ue--)te=ot[Ue],te==="."?ot.splice(Ue,1):te===".."?(ot.splice(Ue,1),Oe++):Oe&&(ot.splice(Ue,1),Oe--);if(!Qe&&!ft)for(;Oe--;Oe)ot.unshift("..");Qe&&ot[0]!==""&&(!ot[0]||ot[0].charAt(0)!=="/")&&ot.unshift(""),fe&&ot.join("/").substr(-1)!=="/"&&ot.push("");var xe=ot[0]===""||ot[0]&&ot[0].charAt(0)==="/";if(Fe){De.hostname=De.host=xe?"":ot.length?ot.shift():"";var Pe=De.host&&De.host.indexOf("@")>0?De.host.split("@"):!1;Pe&&(De.auth=Pe.shift(),De.host=De.hostname=Pe.shift())}return Qe=Qe||De.host&&ot.length,Qe&&!xe&&ot.unshift(""),ot.length?De.pathname=ot.join("/"):(De.pathname=null,De.path=null),(!ae.isNull(De.pathname)||!ae.isNull(De.search))&&(De.path=(De.pathname?De.pathname:"")+(De.search?De.search:"")),De.auth=Me.auth||De.auth,De.slashes=De.slashes||Me.slashes,De.href=De.format(),De},ee.prototype.parseHost=function(){var Me=this.host,Ae=E.exec(Me);Ae&&(Ae=Ae[0],Ae!==":"&&(this.port=Ae.substr(1)),Me=Me.substr(0,Me.length-Ae.length)),Me&&(this.hostname=Me)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(y,ke,we){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));ke.exports={isString:function(ae){return typeof ae=="string"},isObject:function(ae){return(0,z.default)(ae)==="object"&&ae!==null},isNull:function(ae){return ae===null},isNullOrUndefined:function(ae){return ae==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,ke,we){"use strict";y("core-js/modules/es.number.constructor.js"),we.encodeURIComponent=function(x){try{return encodeURIComponent(x)}catch(z){return x}},we.escape=y("escape-html"),we.timestamp=function(z){if(z){var ie=z;return typeof ie=="string"&&(ie=Number(ie)),String(z).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,ke,we){(function(x,z){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),ae=ie(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.concat.js");var ee=y("util"),de=y("url"),E=y("http"),ne=y("https"),re=y("debug")("urllib"),oe=y("humanize-ms"),le=0,he=Math.pow(2,31)-10,pe=/^https?:\/\//i;function ve(Te,Re){return Te===void 0?Re:Te}function ce(Te){return Te?Te.split(";")[0].trim().toLowerCase():""}function me(Te,Re){return function(_e,ye,be){if(_e)return Re(_e);Te({data:ye,status:be.statusCode,headers:be.headers,res:be})}}we.TIMEOUTS=[oe("300s"),oe("300s")];var Ee=["json","text"];we.request=function(Re,_e,ye){return arguments.length===2&&typeof _e=="function"&&(ye=_e,_e=null),typeof ye=="function"?we.requestWithCallback(Re,_e,ye):new Promise(function(be,Se){we.requestWithCallback(Re,_e,me(be,Se))})},we.requestWithCallback=function(Re,_e,ye){if(!Re||typeof Re!="string"&&(0,ae.default)(Re)!=="object"){var be=ee.format("expect request url to be a string or a http request options, but got %j",Re);throw new Error(be)}arguments.length===2&&typeof _e=="function"&&(ye=_e,_e=null),_e=_e||{},le>=he&&(le=0);var Se=++le;_e.requestUrls=_e.requestUrls||[];var Ie={requestId:Se,url:Re,args:_e,ctx:_e.ctx};_e.emitter&&_e.emitter.emit("request",Ie),_e.timeout=_e.timeout||we.TIMEOUTS,_e.maxRedirects=_e.maxRedirects||10,_e.streaming=_e.streaming||_e.customResponse;var Me=Date.now(),Ae;typeof Re=="string"?(pe.test(Re)||(Re="https://"+Re),Ae=de.parse(Re)):Ae=Re;var De=(_e.type||_e.method||Ae.method||"GET").toUpperCase(),He=Ae.port||80,Ke=E,Ve=ve(_e.agent,we.agent),nt=_e.fixJSONCtlChars;Ae.protocol==="https:"&&(Ke=ne,Ve=ve(_e.httpsAgent,we.httpsAgent),Ae.port||(He=443));var Ne={host:Ae.hostname||Ae.host||"localhost",path:Ae.path||"/",method:De,port:He,agent:Ve,headers:_e.headers||{},lookup:_e.lookup};Array.isArray(_e.timeout)?Ne.requestTimeout=_e.timeout[_e.timeout.length-1]:typeof _e.timeout!="undefined"&&(Ne.requestTimeout=_e.timeout);var We=_e.auth||Ae.auth;We&&(Ne.auth=We);var $e=_e.content||_e.data,rt=De==="GET"||De==="HEAD"||_e.dataAsQueryString;if(!_e.content&&$e&&!(typeof $e=="string"||z.isBuffer($e)))if(rt)$e=_e.nestedQuerystring?qs.stringify($e):querystring.stringify($e);else{var et=Ne.headers["Content-Type"]||Ne.headers["content-type"];et||(_e.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",Ne.headers["Content-Type"]=et),ce(et)==="application/json"?$e=JSON.stringify($e):$e=_e.nestedQuerystring?qs.stringify($e):querystring.stringify($e)}rt&&$e&&(Ne.path+=(Ae.query?"&":"?")+$e,$e=null);var Xe=0;if($e){var Ye=$e.length;z.isBuffer($e)||(Ye=z.byteLength($e)),Xe=Ne.headers["Content-Length"]=Ye}_e.dataType==="json"&&(Ne.headers.Accept="application/json"),typeof _e.beforeRequest=="function"&&_e.beforeRequest(Ne);var Ge=null,at=null,Qe=null,ft=!1,ot=!1,Je=0,Fe=-1,Pe=!1,te="",fe="",Oe=null;_e.timing&&(Oe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ue(){Ge&&(clearTimeout(Ge),Ge=null)}function xe(){at&&(clearTimeout(at),at=null)}function Ce(vt,At,gt){if(xe(),!ye){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Se,x.pid,Ne.method,Re),vt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Se,x.pid,vt.name,vt.message,vt.stack);return}var dt=ye;ye=null;var xt={};gt&&(Fe=gt.statusCode,xt=gt.headers);var bt=Date.now()-Me;Oe&&(Oe.contentDownload=bt),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",bt,Je,Fe,Ne.method,Ne.host,Ne.path,ot,Oe);var Pt={status:Fe,statusCode:Fe,headers:xt,size:Je,aborted:Pe,rt:bt,keepAliveSocket:ot,data:At,requestUrls:_e.requestUrls,timing:Oe,remoteAddress:te,remotePort:fe};if(vt){var Zt="";Ve&&typeof Ve.getCurrentStatus=="function"&&(Zt=", agent status: "+JSON.stringify(Ve.getCurrentStatus())),vt.message+=", "+Ne.method+" "+Re+" "+Fe+" (connected: "+ft+", keepalive socket: "+ot+Zt+`)
headers: `+JSON.stringify(xt),vt.data=At,vt.path=Ne.path,vt.status=Fe,vt.headers=xt,vt.res=Pt}dt(vt,At,_e.streaming?gt:Pt),_e.emitter&&(Ie.url=Re,Ie.socket=wt&&wt.connection,Ie.options=Ne,Ie.size=Xe,_e.emitter.emit("response",{requestId:Se,error:vt,ctx:_e.ctx,req:Ie,res:Pt}))}function je(vt){var At=null;if(_e.followRedirect&&statuses.redirect[vt.statusCode]){_e._followRedirectCount=(_e._followRedirectCount||0)+1;var gt=vt.headers.location;if(!gt)At=new Error("Got statusCode "+vt.statusCode+" but cannot resolve next location from headers"),At.name="FollowRedirectError";else if(_e._followRedirectCount>_e.maxRedirects)At=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Re),At.name="MaxRedirectError";else{var dt=_e.formatRedirectUrl?_e.formatRedirectUrl(Re,gt):de.resolve(Re,gt);re("Request#%d %s: `redirected` from %s to %s",Se,Ne.path,Re,dt),xe(),_e.headers&&_e.headers.Host&&pe.test(gt)&&(_e.headers.Host=null);var xt=ye;return ye=null,we.requestWithCallback(dt,_e,xt),{redirect:!0,error:null}}}return{redirect:!1,error:At}}_e.gzip&&!Ne.headers["Accept-Encoding"]&&!Ne.headers["accept-encoding"]&&(Ne.headers["Accept-Encoding"]="gzip");function Ze(vt,At,gt){var dt=vt.headers["content-encoding"];return gt(null,At,dt)}var tt=_e.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",Se,De,Re,Ne.headers,Ne.path),_e.requestUrls.push(Re);function it(vt){if(Oe&&(Oe.waiting=Date.now()-Me),re("Request#%d %s `req response` event emit: status %d, headers: %j",Se,Re,vt.statusCode,vt.headers),_e.streaming){var At=je(vt);if(At.redirect){vt.resume();return}return At.error?(vt.resume(),Ce(At.error,null,vt)):Ce(null,null,vt)}if(vt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",Se,Re,Je)}),vt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",Se,Re,Je)}),vt.on("aborted",function(){Pe=!0,re("Request#%d %s: `res aborted` event emit, total size %d",Se,Re,Je)}),tt){var gt=je(vt);if(gt.redirect){vt.resume();return}return gt.error?(vt.resume(),tt.end(),Ce(gt.error,null,vt)):(_e.consumeWriteStream===!1?vt.on("end",Ce.bind(null,null,null,vt)):tt.on("close",function(){re("Request#%d %s: writeStream close event emitted",Se,Re),Ce(Qe||null,null,vt)}),vt.pipe(tt))}var dt=[];vt.on("data",function(xt){re("Request#%d %s: `res data` event emit, size %d",Se,Re,xt.length),Je+=xt.length,dt.push(xt)}),vt.on("end",function(){var xt=z.concat(dt,Je);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Se,Re,Je,vt._dumped),Qe)return Ce(Qe,xt,vt);var bt=je(vt);if(bt.error)return Ce(bt.error,xt,vt);bt.redirect||Ze(vt,xt,function(Pt,Zt,cr){if(Pt)return Ce(Pt,xt,vt);if(!cr&&Ee.indexOf(_e.dataType)>=0){try{Zt=decodeBodyByCharset(Zt,vt)}catch(vr){return re("decodeBodyByCharset error: %s",vr),Ce(null,Zt,vt)}if(_e.dataType==="json")if(Je===0)Zt=null;else{var Ht=parseJSON(Zt,nt);Ht.error?Pt=Ht.error:Zt=Ht.data}}Pe&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",Se,Re),Ce(Pt,Zt,vt)})})}var ct,ut;Array.isArray(_e.timeout)?(ct=oe(_e.timeout[0]),ut=oe(_e.timeout[1])):ct=ut=oe(_e.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",ct,ut);function pt(){re("Connect timer ticking, timeout: %d",ct),Ge=setTimeout(function(){Ge=null,Fe===-1&&(Fe=-2);var vt="Connect timeout for "+ct+"ms",At="ConnectionTimeoutError";wt.socket||(At="SocketAssignTimeoutError",vt+=", working sockets is full"),Qe=new Error(vt),Qe.name=At,Qe.requestId=Se,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Se,Re,Qe.name,vt,ft),Et()},ct)}function St(){re("Response timer ticking, timeout: %d",ut),at=setTimeout(function(){at=null;var vt="Response timeout for "+ut+"ms",At="ResponseTimeoutError";Qe=new Error(vt),Qe.name=At,Qe.requestId=Se,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Se,Re,Qe.name,vt,ft),Et()},ut)}var wt;Ne.mode=_e.mode?_e.mode:"";try{wt=Ke.request(Ne,it)}catch(vt){return Ce(vt)}typeof window=="undefined"?pt():wt.on("requestTimeout",function(){Fe===-1&&(Fe=-2);var vt="Connect timeout for "+ct+"ms",At="ConnectionTimeoutError";Qe=new Error(vt),Qe.name=At,Qe.requestId=Se,Et()});function Et(){re("Request#%d %s abort, connected: %s",Se,Re,ft),wt.socket||(Qe.noSocket=!0,Ce(Qe)),wt.abort()}return Oe&&wt.on("finish",function(){Oe.requestSent=Date.now()-Me}),wt.once("socket",function(vt){Oe&&(Oe.queuing=Date.now()-Me);var At=vt.readyState;if(At==="opening"){vt.once("lookup",function(gt,dt,xt){re("Request#%d %s lookup: %s, %s, %s",Se,Re,gt,dt,xt),Oe&&(Oe.dnslookup=Date.now()-Me),dt&&(te=dt)}),vt.once("connect",function(){Oe&&(Oe.connected=Date.now()-Me),Ue(),St(),re("Request#%d %s new socket connected",Se,Re),ft=!0,te||(te=vt.remoteAddress),fe=vt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",Se,Re,At),ft=!0,ot=!0,te||(te=vt.remoteAddress),fe=vt.remotePort,Ue(),St()}),wt.on("error",function(vt){(vt.name==="Error"||vt.name==="TypeError")&&(vt.name=ft?"ResponseError":"RequestError"),vt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",Se,Re,vt.name,vt.message),Ce(Qe||vt)}),tt&&tt.once("error",function(vt){vt.message+=' (writeStream "error")',Qe=vt,re("Request#%d %s `writeStream error` event emit, %s: %s",Se,Re,vt.name,vt.message),Et()}),_e.stream?(_e.stream.pipe(wt),_e.stream.once("error",function(vt){vt.message+=' (stream "error")',Qe=vt,re("Request#%d %s `readStream error` event emit, %s: %s",Se,Re,vt.name,vt.message),Et()})):wt.end($e),wt.requestId=Se,wt}}).call(this)}).call(this,y("_process"),y("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},99498:function(Nt,Dt,ze){(function(Be){Be(ze(89780))})(function(Be){Be.defineOption("placeholder","",function(ie,ae,ee){var de=ee&&ee!=Be.Init;if(ae&&!de)ie.on("blur",we),ie.on("change",x),ie.on("swapDoc",x),Be.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){ke(ie)}),x(ie);else if(!ae&&de){ie.off("blur",we),ie.off("change",x),ie.off("swapDoc",x),Be.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),mt(ie);var E=ie.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}ae&&!ie.hasFocus()&&we(ie)});function mt(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function y(ie){mt(ie);var ae=ie.state.placeholder=document.createElement("pre");ae.style.cssText="height: 0; overflow: visible",ae.style.direction=ie.getOption("direction"),ae.className="CodeMirror-placeholder CodeMirror-line-like";var ee=ie.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),ae.appendChild(ee),ie.display.lineSpace.insertBefore(ae,ie.display.lineSpace.firstChild)}function ke(ie){setTimeout(function(){var ae=!1,ee=ie.getInputField();ee.nodeName=="TEXTAREA"?ae=!ee.value:ie.lineCount()==1&&(ae=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),ae?y(ie):mt(ie)},20)}function we(ie){z(ie)&&y(ie)}function x(ie){var ae=ie.getWrapperElement(),ee=z(ie);ae.className=ae.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(ie):mt(ie)}function z(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(Nt,Dt,ze){(function(Be){Be(ze(89780))})(function(Be){var mt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=Be.Pos;Be.defineOption("autoCloseBrackets",!1,function(oe,le,he){he&&he!=Be.Init&&(oe.removeKeyMap(we),oe.state.closeBrackets=null),le&&(x(ke(le,"pairs")),oe.state.closeBrackets=le,oe.addKeyMap(we))});function ke(oe,le){return le=="pairs"&&typeof oe=="string"?oe:typeof oe=="object"&&oe[le]!=null?oe[le]:mt[le]}var we={Backspace:ae,Enter:ee};function x(oe){for(var le=0;le<oe.length;le++){var he=oe.charAt(le),pe="'"+he+"'";we[pe]||(we[pe]=z(he))}}x(mt.pairs+"`");function z(oe){return function(le){return E(le,oe)}}function ie(oe){var le=oe.state.closeBrackets;if(!le||le.override)return le;var he=oe.getModeAt(oe.getCursor());return he.closeBrackets||le}function ae(oe){var le=ie(oe);if(!le||oe.getOption("disableInput"))return Be.Pass;for(var he=ke(le,"pairs"),pe=oe.listSelections(),ve=0;ve<pe.length;ve++){if(!pe[ve].empty())return Be.Pass;var ce=ne(oe,pe[ve].head);if(!ce||he.indexOf(ce)%2!=0)return Be.Pass}for(var ve=pe.length-1;ve>=0;ve--){var me=pe[ve].head;oe.replaceRange("",y(me.line,me.ch-1),y(me.line,me.ch+1),"+delete")}}function ee(oe){var le=ie(oe),he=le&&ke(le,"explode");if(!he||oe.getOption("disableInput"))return Be.Pass;for(var pe=oe.listSelections(),ve=0;ve<pe.length;ve++){if(!pe[ve].empty())return Be.Pass;var ce=ne(oe,pe[ve].head);if(!ce||he.indexOf(ce)%2!=0)return Be.Pass}oe.operation(function(){var me=oe.lineSeparator()||`
`;oe.replaceSelection(me+me,null),oe.execCommand("goCharLeft"),pe=oe.listSelections();for(var Ee=0;Ee<pe.length;Ee++){var Te=pe[Ee].head.line;oe.indentLine(Te,null,!0),oe.indentLine(Te+1,null,!0)}})}function de(oe){var le=Be.cmpPos(oe.anchor,oe.head)>0;return{anchor:new y(oe.anchor.line,oe.anchor.ch+(le?-1:1)),head:new y(oe.head.line,oe.head.ch+(le?1:-1))}}function E(oe,le){var he=ie(oe);if(!he||oe.getOption("disableInput"))return Be.Pass;var pe=ke(he,"pairs"),ve=pe.indexOf(le);if(ve==-1)return Be.Pass;for(var ce=ke(he,"closeBefore"),me=ke(he,"triples"),Ee=pe.charAt(ve+1)==le,Te=oe.listSelections(),Re=ve%2==0,_e,ye=0;ye<Te.length;ye++){var be=Te[ye],Se=be.head,Ie,Me=oe.getRange(Se,y(Se.line,Se.ch+1));if(Re&&!be.empty())Ie="surround";else if((Ee||!Re)&&Me==le)Ee&&re(oe,Se)?Ie="both":me.indexOf(le)>=0&&oe.getRange(Se,y(Se.line,Se.ch+3))==le+le+le?Ie="skipThree":Ie="skip";else if(Ee&&Se.ch>1&&me.indexOf(le)>=0&&oe.getRange(y(Se.line,Se.ch-2),Se)==le+le){if(Se.ch>2&&/\bstring/.test(oe.getTokenTypeAt(y(Se.line,Se.ch-2))))return Be.Pass;Ie="addFour"}else if(Ee){var Ae=Se.ch==0?" ":oe.getRange(y(Se.line,Se.ch-1),Se);if(!Be.isWordChar(Me)&&Ae!=le&&!Be.isWordChar(Ae))Ie="both";else return Be.Pass}else if(Re&&(Me.length===0||/\s/.test(Me)||ce.indexOf(Me)>-1))Ie="both";else return Be.Pass;if(!_e)_e=Ie;else if(_e!=Ie)return Be.Pass}var De=ve%2?pe.charAt(ve-1):le,He=ve%2?le:pe.charAt(ve+1);oe.operation(function(){if(_e=="skip")oe.execCommand("goCharRight");else if(_e=="skipThree")for(var Ke=0;Ke<3;Ke++)oe.execCommand("goCharRight");else if(_e=="surround"){for(var Ve=oe.getSelections(),Ke=0;Ke<Ve.length;Ke++)Ve[Ke]=De+Ve[Ke]+He;oe.replaceSelections(Ve,"around"),Ve=oe.listSelections().slice();for(var Ke=0;Ke<Ve.length;Ke++)Ve[Ke]=de(Ve[Ke]);oe.setSelections(Ve)}else _e=="both"?(oe.replaceSelection(De+He,null),oe.triggerElectric(De+He),oe.execCommand("goCharLeft")):_e=="addFour"&&(oe.replaceSelection(De+De+De+De,"before"),oe.execCommand("goCharRight"))})}function ne(oe,le){var he=oe.getRange(y(le.line,le.ch-1),y(le.line,le.ch+1));return he.length==2?he:null}function re(oe,le){var he=oe.getTokenAt(y(le.line,le.ch+1));return/\bstring/.test(he.type)&&he.start==le.ch&&(le.ch==0||!/\bstring/.test(oe.getTokenTypeAt(le)))}})},6313:function(Nt,Dt,ze){(function(Be){Be(ze(89780),ze(52730))})(function(Be){Be.defineOption("autoCloseTags",!1,function(ae,ee,de){if(de!=Be.Init&&de&&ae.removeKeyMap("autoCloseTags"),!!ee){var E={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(E["'/'"]=function(ne){return x(ne)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(E["'>'"]=function(ne){return ke(ne)}),ae.addKeyMap(E)}});var mt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=["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 ke(ae){if(ae.getOption("disableInput"))return Be.Pass;for(var ee=ae.listSelections(),de=[],E=ae.getOption("autoCloseTags"),ne=0;ne<ee.length;ne++){if(!ee[ne].empty())return Be.Pass;var re=ee[ne].head,oe=ae.getTokenAt(re),le=Be.innerMode(ae.getMode(),oe.state),he=le.state,pe=le.mode.xmlCurrentTag&&le.mode.xmlCurrentTag(he),ve=pe&&pe.name;if(!ve)return Be.Pass;var ce=le.mode.configuration=="html",me=typeof E=="object"&&E.dontCloseTags||ce&&mt,Ee=typeof E=="object"&&E.indentTags||ce&&y;oe.end>re.ch&&(ve=ve.slice(0,ve.length-oe.end+re.ch));var Te=ve.toLowerCase();if(!ve||oe.type=="string"&&(oe.end!=re.ch||!/[\"\']/.test(oe.string.charAt(oe.string.length-1))||oe.string.length==1)||oe.type=="tag"&&pe.close||oe.string.indexOf("/")==re.ch-oe.start-1||me&&z(me,Te)>-1||ie(ae,le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(he)||[],ve,re,!0))return Be.Pass;var Re=typeof E=="object"&&E.emptyTags;if(Re&&z(Re,ve)>-1){de[ne]={text:"/>",newPos:Be.Pos(re.line,re.ch+2)};continue}var _e=Ee&&z(Ee,Te)>-1;de[ne]={indent:_e,text:">"+(_e?`
`:"")+"</"+ve+">",newPos:_e?Be.Pos(re.line+1,0):Be.Pos(re.line,re.ch+1)}}for(var ye=typeof E=="object"&&E.dontIndentOnAutoClose,ne=ee.length-1;ne>=0;ne--){var be=de[ne];ae.replaceRange(be.text,ee[ne].head,ee[ne].anchor,"+insert");var Se=ae.listSelections().slice(0);Se[ne]={head:be.newPos,anchor:be.newPos},ae.setSelections(Se),!ye&&be.indent&&(ae.indentLine(be.newPos.line,null,!0),ae.indentLine(be.newPos.line+1,null,!0))}}function we(ae,ee){for(var de=ae.listSelections(),E=[],ne=ee?"/":"</",re=ae.getOption("autoCloseTags"),oe=typeof re=="object"&&re.dontIndentOnSlash,le=0;le<de.length;le++){if(!de[le].empty())return Be.Pass;var he=de[le].head,pe=ae.getTokenAt(he),ve=Be.innerMode(ae.getMode(),pe.state),ce=ve.state;if(ee&&(pe.type=="string"||pe.string.charAt(0)!="<"||pe.start!=he.ch-1))return Be.Pass;var me,Ee=ve.mode.name!="xml"&&ae.getMode().name=="htmlmixed";if(Ee&&ve.mode.name=="javascript")me=ne+"script";else if(Ee&&ve.mode.name=="css")me=ne+"style";else{var Te=ve.mode.xmlCurrentContext&&ve.mode.xmlCurrentContext(ce);if(!Te||Te.length&&ie(ae,Te,Te[Te.length-1],he))return Be.Pass;me=ne+Te[Te.length-1]}ae.getLine(he.line).charAt(pe.end)!=">"&&(me+=">"),E[le]=me}if(ae.replaceSelections(E),de=ae.listSelections(),!oe)for(var le=0;le<de.length;le++)(le==de.length-1||de[le].head.line<de[le+1].head.line)&&ae.indentLine(de[le].head.line)}function x(ae){return ae.getOption("disableInput")?Be.Pass:we(ae,!0)}Be.commands.closeTag=function(ae){return we(ae)};function z(ae,ee){if(ae.indexOf)return ae.indexOf(ee);for(var de=0,E=ae.length;de<E;++de)if(ae[de]==ee)return de;return-1}function ie(ae,ee,de,E,ne){if(!Be.scanForClosingTag)return!1;var re=Math.min(ae.lastLine()+1,E.line+500),oe=Be.scanForClosingTag(ae,E,null,re);if(!oe||oe.tag!=de)return!1;for(var le=ne?1:0,he=ee.length-1;he>=0&&ee[he]==de;he--)++le;E=oe.to;for(var he=1;he<le;he++){var pe=Be.scanForClosingTag(ae,E,null,re);if(!pe||pe.tag!=de)return!1;E=pe.to}return!0}})},52730:function(Nt,Dt,ze){(function(Be){Be(ze(89780))})(function(Be){"use strict";var mt=Be.Pos;function y(he,pe){return he.line-pe.line||he.ch-pe.ch}var ke="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",we=ke+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+ke+"]["+we+"]*)","g");function z(he,pe,ve,ce){this.line=pe,this.ch=ve,this.cm=he,this.text=he.getLine(pe),this.min=ce?Math.max(ce.from,he.firstLine()):he.firstLine(),this.max=ce?Math.min(ce.to-1,he.lastLine()):he.lastLine()}function ie(he,pe){var ve=he.cm.getTokenTypeAt(mt(he.line,pe));return ve&&/\btag\b/.test(ve)}function ae(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function ee(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function de(he){for(;;){var pe=he.text.indexOf(">",he.ch);if(pe==-1){if(ae(he))continue;return}if(!ie(he,pe+1)){he.ch=pe+1;continue}var ve=he.text.lastIndexOf("/",pe),ce=ve>-1&&!/\S/.test(he.text.slice(ve+1,pe));return he.ch=pe+1,ce?"selfClose":"regular"}}function E(he){for(;;){var pe=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(pe==-1){if(ee(he))continue;return}if(!ie(he,pe+1)){he.ch=pe;continue}x.lastIndex=pe,he.ch=pe;var ve=x.exec(he.text);if(ve&&ve.index==pe)return ve}}function ne(he){for(;;){x.lastIndex=he.ch;var pe=x.exec(he.text);if(!pe){if(ae(he))continue;return}if(!ie(he,pe.index+1)){he.ch=pe.index+1;continue}return he.ch=pe.index+pe[0].length,pe}}function re(he){for(;;){var pe=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(pe==-1){if(ee(he))continue;return}if(!ie(he,pe+1)){he.ch=pe;continue}var ve=he.text.lastIndexOf("/",pe),ce=ve>-1&&!/\S/.test(he.text.slice(ve+1,pe));return he.ch=pe+1,ce?"selfClose":"regular"}}function oe(he,pe){for(var ve=[];;){var ce=ne(he),me,Ee=he.line,Te=he.ch-(ce?ce[0].length:0);if(!ce||!(me=de(he)))return;if(me!="selfClose")if(ce[1]){for(var Re=ve.length-1;Re>=0;--Re)if(ve[Re]==ce[2]){ve.length=Re;break}if(Re<0&&(!pe||pe==ce[2]))return{tag:ce[2],from:mt(Ee,Te),to:mt(he.line,he.ch)}}else ve.push(ce[2])}}function le(he,pe){for(var ve=[];;){var ce=re(he);if(!ce)return;if(ce=="selfClose"){E(he);continue}var me=he.line,Ee=he.ch,Te=E(he);if(!Te)return;if(Te[1])ve.push(Te[2]);else{for(var Re=ve.length-1;Re>=0;--Re)if(ve[Re]==Te[2]){ve.length=Re;break}if(Re<0&&(!pe||pe==Te[2]))return{tag:Te[2],from:mt(he.line,he.ch),to:mt(me,Ee)}}}}Be.registerHelper("fold","xml",function(he,pe){for(var ve=new z(he,pe.line,0);;){var ce=ne(ve);if(!ce||ve.line!=pe.line)return;var me=de(ve);if(!me)return;if(!ce[1]&&me!="selfClose"){var Ee=mt(ve.line,ve.ch),Te=oe(ve,ce[2]);return Te&&y(Te.from,Ee)>0?{from:Ee,to:Te.from}:null}}}),Be.findMatchingTag=function(he,pe,ve){var ce=new z(he,pe.line,pe.ch,ve);if(!(ce.text.indexOf(">")==-1&&ce.text.indexOf("<")==-1)){var me=de(ce),Ee=me&&mt(ce.line,ce.ch),Te=me&&E(ce);if(!(!me||!Te||y(ce,pe)>0)){var Re={from:mt(ce.line,ce.ch),to:Ee,tag:Te[2]};return me=="selfClose"?{open:Re,close:null,at:"open"}:Te[1]?{open:le(ce,Te[2]),close:Re,at:"close"}:(ce=new z(he,Ee.line,Ee.ch,ve),{open:Re,close:oe(ce,Te[2]),at:"open"})}}},Be.findEnclosingTag=function(he,pe,ve,ce){for(var me=new z(he,pe.line,pe.ch,ve);;){var Ee=le(me,ce);if(!Ee)break;var Te=new z(he,pe.line,pe.ch,ve),Re=oe(Te,Ee.tag);if(Re)return{open:Ee,close:Re}}},Be.scanForClosingTag=function(he,pe,ve,ce){var me=new z(he,pe.line,pe.ch,ce?{from:0,to:ce}:null);return oe(me,ve)}})},89780:function(Nt){(function(Dt,ze){Nt.exports=ze()})(this,function(){"use strict";var Dt=navigator.userAgent,ze=navigator.platform,Be=/gecko\/\d/i.test(Dt),mt=/MSIE \d/.test(Dt),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Dt),ke=/Edge\/(\d+)/.exec(Dt),we=mt||y||ke,x=we&&(mt?document.documentMode||6:+(ke||y)[1]),z=!ke&&/WebKit\//.test(Dt),ie=z&&/Qt\/\d+\.\d+/.test(Dt),ae=!ke&&/Chrome\//.test(Dt),ee=/Opera\//.test(Dt),de=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Dt),ne=/PhantomJS/.test(Dt),re=!ke&&/AppleWebKit/.test(Dt)&&/Mobile\/\w+/.test(Dt),oe=/Android/.test(Dt),le=re||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Dt),he=re||/Mac/.test(ze),pe=/\bCrOS\b/.test(Dt),ve=/win/i.test(ze),ce=ee&&Dt.match(/Version\/(\d*\.\d*)/);ce&&(ce=Number(ce[1])),ce&&ce>=15&&(ee=!1,z=!0);var me=he&&(ie||ee&&(ce==null||ce<12.11)),Ee=Be||we&&x>=9;function Te(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Re=function(a,b){var ue=a.className,se=Te(b).exec(ue);if(se){var ge=ue.slice(se.index+se[0].length);a.className=ue.slice(0,se.index)+(ge?se[1]+ge:"")}};function _e(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ye(a,b){return _e(a).appendChild(b)}function be(a,b,ue,se){var ge=document.createElement(a);if(ue&&(ge.className=ue),se&&(ge.style.cssText=se),typeof b=="string")ge.appendChild(document.createTextNode(b));else if(b)for(var Le=0;Le<b.length;++Le)ge.appendChild(b[Le]);return ge}function Se(a,b,ue,se){var ge=be(a,b,ue,se);return ge.setAttribute("role","presentation"),ge}var Ie;document.createRange?Ie=function(a,b,ue,se){var ge=document.createRange();return ge.setEnd(se||a,ue),ge.setStart(a,b),ge}:Ie=function(a,b,ue){var se=document.body.createTextRange();try{se.moveToElementText(a.parentNode)}catch(ge){return se}return se.collapse(!0),se.moveEnd("character",ue),se.moveStart("character",b),se};function Me(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function Ae(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function De(a,b){var ue=a.className;Te(b).test(ue)||(a.className+=(ue?" ":"")+b)}function He(a,b){for(var ue=a.split(" "),se=0;se<ue.length;se++)ue[se]&&!Te(ue[se]).test(b)&&(b+=" "+ue[se]);return b}var Ke=function(a){a.select()};re?Ke=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:we&&(Ke=function(a){try{a.select()}catch(b){}});function Ve(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function nt(a,b,ue){b||(b={});for(var se in a)a.hasOwnProperty(se)&&(ue!==!1||!b.hasOwnProperty(se))&&(b[se]=a[se]);return b}function Ne(a,b,ue,se,ge){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Le=se||0,qe=ge||0;;){var st=a.indexOf(" ",Le);if(st<0||st>=b)return qe+(b-Le);qe+=st-Le,qe+=ue-qe%ue,Le=st+1}}var We=function(){this.id=null,this.f=null,this.time=0,this.handler=Ve(this.onTimeout,this)};We.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},We.prototype.set=function(a,b){this.f=b;var ue=+new Date+a;(!this.id||ue<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ue)};function $e(a,b){for(var ue=0;ue<a.length;++ue)if(a[ue]==b)return ue;return-1}var rt=50,et={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},Ye={origin:"*mouse"},Ge={origin:"+move"};function at(a,b,ue){for(var se=0,ge=0;;){var Le=a.indexOf(" ",se);Le==-1&&(Le=a.length);var qe=Le-se;if(Le==a.length||ge+qe>=b)return se+Math.min(qe,b-ge);if(ge+=Le-se,ge+=ue-ge%ue,se=Le+1,ge>=b)return se}}var Qe=[""];function ft(a){for(;Qe.length<=a;)Qe.push(ot(Qe)+" ");return Qe[a]}function ot(a){return a[a.length-1]}function Je(a,b){for(var ue=[],se=0;se<a.length;se++)ue[se]=b(a[se],se);return ue}function Fe(a,b,ue){for(var se=0,ge=ue(b);se<a.length&&ue(a[se])<=ge;)se++;a.splice(se,0,b)}function Pe(){}function te(a,b){var ue;return Object.create?ue=Object.create(a):(Pe.prototype=a,ue=new Pe),b&&nt(b,ue),ue}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||fe.test(a))}function Ue(a,b){return b?b.source.indexOf("\\w")>-1&&Oe(a)?!0:b.test(a):Oe(a)}function xe(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Ce=/[\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 je(a){return a.charCodeAt(0)>=768&&Ce.test(a)}function Ze(a,b,ue){for(;(ue<0?b>0:b<a.length)&&je(a.charAt(b));)b+=ue;return b}function tt(a,b,ue){for(var se=b>ue?-1:1;;){if(b==ue)return b;var ge=(b+ue)/2,Le=se<0?Math.ceil(ge):Math.floor(ge);if(Le==b)return a(Le)?b:ue;a(Le)?ue=Le:b=Le+se}}function it(a,b,ue,se){if(!a)return se(b,ue,"ltr",0);for(var ge=!1,Le=0;Le<a.length;++Le){var qe=a[Le];(qe.from<ue&&qe.to>b||b==ue&&qe.to==b)&&(se(Math.max(qe.from,b),Math.min(qe.to,ue),qe.level==1?"rtl":"ltr",Le),ge=!0)}ge||se(b,ue,"ltr")}var ct=null;function ut(a,b,ue){var se;ct=null;for(var ge=0;ge<a.length;++ge){var Le=a[ge];if(Le.from<b&&Le.to>b)return ge;Le.to==b&&(Le.from!=Le.to&&ue=="before"?se=ge:ct=ge),Le.from==b&&(Le.from!=Le.to&&ue!="before"?se=ge:ct=ge)}return se!=null?se:ct}var pt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ue(ht){return ht<=247?a.charAt(ht):1424<=ht&&ht<=1524?"R":1536<=ht&&ht<=1785?b.charAt(ht-1536):1774<=ht&&ht<=2220?"r":8192<=ht&&ht<=8203?"w":ht==8204?"b":"L"}var se=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,Le=/[LRr]/,qe=/[Lb1n]/,st=/[1n]/;function lt(ht,Ct,_t){this.level=ht,this.from=Ct,this.to=_t}return function(ht,Ct){var _t=Ct=="ltr"?"L":"R";if(ht.length==0||Ct=="ltr"&&!se.test(ht))return!1;for(var Ut=ht.length,Ft=[],or=0;or<Ut;++or)Ft.push(ue(ht.charCodeAt(or)));for(var xr=0,Ir=_t;xr<Ut;++xr){var zr=Ft[xr];zr=="m"?Ft[xr]=Ir:Ir=zr}for(var nn=0,Gr=_t;nn<Ut;++nn){var mn=Ft[nn];mn=="1"&&Gr=="r"?Ft[nn]="n":Le.test(mn)&&(Gr=mn,mn=="r"&&(Ft[nn]="R"))}for(var In=1,kn=Ft[0];In<Ut-1;++In){var Yn=Ft[In];Yn=="+"&&kn=="1"&&Ft[In+1]=="1"?Ft[In]="1":Yn==","&&kn==Ft[In+1]&&(kn=="1"||kn=="n")&&(Ft[In]=kn),kn=Yn}for(var ci=0;ci<Ut;++ci){var Bi=Ft[ci];if(Bi==",")Ft[ci]="N";else if(Bi=="%"){var xi=void 0;for(xi=ci+1;xi<Ut&&Ft[xi]=="%";++xi);for(var oa=ci&&Ft[ci-1]=="!"||xi<Ut&&Ft[xi]=="1"?"1":"N",ea=ci;ea<xi;++ea)Ft[ea]=oa;ci=xi-1}}for(var Di=0,ta=_t;Di<Ut;++Di){var Ui=Ft[Di];ta=="L"&&Ui=="1"?Ft[Di]="L":Le.test(Ui)&&(ta=Ui)}for(var Ri=0;Ri<Ut;++Ri)if(ge.test(Ft[Ri])){var ji=void 0;for(ji=Ri+1;ji<Ut&&ge.test(Ft[ji]);++ji);for(var Si=(Ri?Ft[Ri-1]:_t)=="L",ra=(ji<Ut?Ft[ji]:_t)=="L",xo=Si==ra?Si?"L":"R":_t,Xa=Ri;Xa<ji;++Xa)Ft[Xa]=xo;Ri=ji-1}for(var zi=[],Ea,Fi=0;Fi<Ut;)if(qe.test(Ft[Fi])){var Fs=Fi;for(++Fi;Fi<Ut&&qe.test(Ft[Fi]);++Fi);zi.push(new lt(0,Fs,Fi))}else{var Na=Fi,eo=zi.length,to=Ct=="rtl"?1:0;for(++Fi;Fi<Ut&&Ft[Fi]!="L";++Fi);for(var Yi=Na;Yi<Fi;)if(st.test(Ft[Yi])){Na<Yi&&(zi.splice(eo,0,new lt(1,Na,Yi)),eo+=to);var Eo=Yi;for(++Yi;Yi<Fi&&st.test(Ft[Yi]);++Yi);zi.splice(eo,0,new lt(2,Eo,Yi)),eo+=to,Na=Yi}else++Yi;Na<Fi&&zi.splice(eo,0,new lt(1,Na,Fi))}return Ct=="ltr"&&(zi[0].level==1&&(Ea=ht.match(/^\s+/))&&(zi[0].from=Ea[0].length,zi.unshift(new lt(0,0,Ea[0].length))),ot(zi).level==1&&(Ea=ht.match(/\s+$/))&&(ot(zi).to-=Ea[0].length,zi.push(new lt(0,Ut-Ea[0].length,Ut)))),Ct=="rtl"?zi.reverse():zi}}();function St(a,b){var ue=a.order;return ue==null&&(ue=a.order=pt(a.text,b)),ue}var wt=[],Et=function(a,b,ue){if(a.addEventListener)a.addEventListener(b,ue,!1);else if(a.attachEvent)a.attachEvent("on"+b,ue);else{var se=a._handlers||(a._handlers={});se[b]=(se[b]||wt).concat(ue)}};function vt(a,b){return a._handlers&&a._handlers[b]||wt}function At(a,b,ue){if(a.removeEventListener)a.removeEventListener(b,ue,!1);else if(a.detachEvent)a.detachEvent("on"+b,ue);else{var se=a._handlers,ge=se&&se[b];if(ge){var Le=$e(ge,ue);Le>-1&&(se[b]=ge.slice(0,Le).concat(ge.slice(Le+1)))}}}function gt(a,b){var ue=vt(a,b);if(ue.length)for(var se=Array.prototype.slice.call(arguments,2),ge=0;ge<ue.length;++ge)ue[ge].apply(null,se)}function dt(a,b,ue){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),gt(a,ue||b.type,a,b),Ht(b)||b.codemirrorIgnore}function xt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ue=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),se=0;se<b.length;++se)$e(ue,b[se])==-1&&ue.push(b[se])}function bt(a,b){return vt(a,b).length>0}function Pt(a){a.prototype.on=function(b,ue){Et(this,b,ue)},a.prototype.off=function(b,ue){At(this,b,ue)}}function Zt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function cr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Ht(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function vr(a){Zt(a),cr(a)}function Kr(a){return a.target||a.srcElement}function Xr(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),he&&a.ctrlKey&&b==1&&(b=3),b}var Nr=function(){if(we&&x<9)return!1;var a=be("div");return"draggable"in a||"dragDrop"in a}(),fn;function Lr(a){if(fn==null){var b=be("span","\u200B");ye(a,be("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(fn=b.offsetWidth<=1&&b.offsetHeight>2&&!(we&&x<8))}var ue=fn?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ue.setAttribute("cm-text",""),ue}var ln;function Tr(a){if(ln!=null)return ln;var b=ye(a,document.createTextNode("A\u062EA")),ue=Ie(b,0,1).getBoundingClientRect(),se=Ie(b,1,2).getBoundingClientRect();return _e(a),!ue||ue.left==ue.right?!1:ln=se.right-ue.right<3}var vn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ue=[],se=a.length;b<=se;){var ge=a.indexOf(`
`,b);ge==-1&&(ge=a.length);var Le=a.slice(b,a.charAt(ge-1)=="\r"?ge-1:ge),qe=Le.indexOf("\r");qe!=-1?(ue.push(Le.slice(0,qe)),b+=qe+1):(ue.push(Le),b=ge+1)}return ue}:function(a){return a.split(/\r\n?|\n/)},on=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(ue){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},br=function(){var a=be("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),wr=null;function er(a){if(wr!=null)return wr;var b=ye(a,be("span","x")),ue=b.getBoundingClientRect(),se=Ie(b,0,1).getBoundingClientRect();return wr=Math.abs(ue.left-se.left)>1}var dr={},Xt={};function qt(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),dr[a]=b}function yr(a,b){Xt[a]=b}function _r(a){if(typeof a=="string"&&Xt.hasOwnProperty(a))a=Xt[a];else if(a&&typeof a.name=="string"&&Xt.hasOwnProperty(a.name)){var b=Xt[a.name];typeof b=="string"&&(b={name:b}),a=te(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return _r("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return _r("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function jr(a,b){b=_r(b);var ue=dr[b.name];if(!ue)return jr(a,"text/plain");var se=ue(a,b);if(Yr.hasOwnProperty(b.name)){var ge=Yr[b.name];for(var Le in ge)ge.hasOwnProperty(Le)&&(se.hasOwnProperty(Le)&&(se["_"+Le]=se[Le]),se[Le]=ge[Le])}if(se.name=b.name,b.helperType&&(se.helperType=b.helperType),b.modeProps)for(var qe in b.modeProps)se[qe]=b.modeProps[qe];return se}var Yr={};function dn(a,b){var ue=Yr.hasOwnProperty(a)?Yr[a]:Yr[a]={};nt(b,ue)}function sn(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ue={};for(var se in b){var ge=b[se];ge instanceof Array&&(ge=ge.concat([])),ue[se]=ge}return ue}function Hr(a,b){for(var ue;a.innerMode&&(ue=a.innerMode(b),!(!ue||ue.mode==a));)b=ue.state,a=ue.mode;return ue||{mode:a,state:b}}function Qr(a,b,ue){return a.startState?a.startState(b,ue):!0}var sr=function(a,b,ue){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ue};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.prototype.eat=function(a){var b=this.string.charAt(this.pos),ue;if(typeof a=="string"?ue=b==a:ue=b&&(a.test?a.test(b):a(b)),ue)return++this.pos,b},sr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},sr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},sr.prototype.backUp=function(a){this.pos-=a},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Ne(this.string,null,this.tabSize)-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(a,b,ue){if(typeof a=="string"){var se=function(qe){return ue?qe.toLowerCase():qe},ge=this.string.substr(this.pos,a.length);if(se(ge)==se(a))return b!==!1&&(this.pos+=a.length),!0}else{var Le=this.string.slice(this.pos).match(a);return Le&&Le.index>0?null:(Le&&b!==!1&&(this.pos+=Le[0].length),Le)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},sr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},sr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Wt(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var ue=a;!ue.lines;)for(var se=0;;++se){var ge=ue.children[se],Le=ge.chunkSize();if(b<Le){ue=ge;break}b-=Le}return ue.lines[b]}function mr(a,b,ue){var se=[],ge=b.line;return a.iter(b.line,ue.line+1,function(Le){var qe=Le.text;ge==ue.line&&(qe=qe.slice(0,ue.ch)),ge==b.line&&(qe=qe.slice(b.ch)),se.push(qe),++ge}),se}function Ur(a,b,ue){var se=[];return a.iter(b,ue,function(ge){se.push(ge.text)}),se}function un(a,b){var ue=b-a.height;if(ue)for(var se=a;se;se=se.parent)se.height+=ue}function kt(a){if(a.parent==null)return null;for(var b=a.parent,ue=$e(b.lines,a),se=b.parent;se;b=se,se=se.parent)for(var ge=0;se.children[ge]!=b;++ge)ue+=se.children[ge].chunkSize();return ue+b.first}function Tt(a,b){var ue=a.first;e:do{for(var se=0;se<a.children.length;++se){var ge=a.children[se],Le=ge.height;if(b<Le){a=ge;continue e}b-=Le,ue+=ge.chunkSize()}return ue}while(!a.lines);for(var qe=0;qe<a.lines.length;++qe){var st=a.lines[qe],lt=st.height;if(b<lt)break;b-=lt}return ue+qe}function lr(a,b){return b>=a.first&&b<a.first+a.size}function $t(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Ot(a,b,ue){if(ue===void 0&&(ue=null),!(this instanceof Ot))return new Ot(a,b,ue);this.line=a,this.ch=b,this.sticky=ue}function nr(a,b){return a.line-b.line||a.ch-b.ch}function pr(a,b){return a.sticky==b.sticky&&nr(a,b)==0}function gr(a){return Ot(a.line,a.ch)}function Dr(a,b){return nr(a,b)<0?b:a}function hr(a,b){return nr(a,b)<0?a:b}function Ar(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function jt(a,b){if(b.line<a.first)return Ot(a.first,0);var ue=a.first+a.size-1;return b.line>ue?Ot(ue,Wt(a,ue).text.length):Sr(b,Wt(a,b.line).text.length)}function Sr(a,b){var ue=a.ch;return ue==null||ue>b?Ot(a.line,b):ue<0?Ot(a.line,0):a}function ur(a,b){for(var ue=[],se=0;se<b.length;se++)ue[se]=jt(a,b[se]);return ue}var Or=function(a,b){this.state=a,this.lookAhead=b},Wr=function(a,b,ue,se){this.state=b,this.doc=a,this.line=ue,this.maxLookAhead=se||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Wr.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(a,b,ue){return b instanceof Or?new Wr(a,sn(a.mode,b.state),ue,b.lookAhead):new Wr(a,sn(a.mode,b),ue)},Wr.prototype.save=function(a){var b=a!==!1?sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(b,this.maxLookAhead):b};function tn(a,b,ue,se){var ge=[a.state.modeGen],Le={};Jn(a,b.text,a.doc.mode,ue,function(ht,Ct){return ge.push(ht,Ct)},Le,se);for(var qe=ue.state,st=function(ht){ue.baseTokens=ge;var Ct=a.state.overlays[ht],_t=1,Ut=0;ue.state=!0,Jn(a,b.text,Ct.mode,ue,function(Ft,or){for(var xr=_t;Ut<Ft;){var Ir=ge[_t];Ir>Ft&&ge.splice(_t,1,Ft,ge[_t+1],Ir),_t+=2,Ut=Math.min(Ft,Ir)}if(or)if(Ct.opaque)ge.splice(xr,_t-xr,Ft,"overlay "+or),_t=xr+2;else for(;xr<_t;xr+=2){var zr=ge[xr+1];ge[xr+1]=(zr?zr+" ":"")+"overlay "+or}},Le),ue.state=qe,ue.baseTokens=null,ue.baseTokenPos=1},lt=0;lt<a.state.overlays.length;++lt)st(lt);return{styles:ge,classes:Le.bgClass||Le.textClass?Le:null}}function En(a,b,ue){if(!b.styles||b.styles[0]!=a.state.modeGen){var se=Zn(a,kt(b)),ge=b.text.length>a.options.maxHighlightLength&&sn(a.doc.mode,se.state),Le=tn(a,b,se);ge&&(se.state=ge),b.stateAfter=se.save(!ge),b.styles=Le.styles,Le.classes?b.styleClasses=Le.classes:b.styleClasses&&(b.styleClasses=null),ue===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Zn(a,b,ue){var se=a.doc,ge=a.display;if(!se.mode.startState)return new Wr(se,!0,b);var Le=Er(a,b,ue),qe=Le>se.first&&Wt(se,Le-1).stateAfter,st=qe?Wr.fromSaved(se,qe,Le):new Wr(se,Qr(se.mode),Le);return se.iter(Le,b,function(lt){On(a,lt.text,st);var ht=st.line;lt.stateAfter=ht==b-1||ht%5==0||ht>=ge.viewFrom&&ht<ge.viewTo?st.save():null,st.nextLine()}),ue&&(se.modeFrontier=st.line),st}function On(a,b,ue,se){var ge=a.doc.mode,Le=new sr(b,a.options.tabSize,ue);for(Le.start=Le.pos=se||0,b==""&&An(ge,ue.state);!Le.eol();)Hn(ge,Le,ue.state),Le.start=Le.pos}function An(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ue=Hr(a,b);if(ue.mode.blankLine)return ue.mode.blankLine(ue.state)}}function Hn(a,b,ue,se){for(var ge=0;ge<10;ge++){se&&(se[0]=Hr(a,ue).mode);var Le=a.token(b,ue);if(b.pos>b.start)return Le}throw new Error("Mode "+a.name+" failed to advance stream.")}var Cn=function(a,b,ue){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ue};function Xn(a,b,ue,se){var ge=a.doc,Le=ge.mode,qe;b=jt(ge,b);var st=Wt(ge,b.line),lt=Zn(a,b.line,ue),ht=new sr(st.text,a.options.tabSize,lt),Ct;for(se&&(Ct=[]);(se||ht.pos<b.ch)&&!ht.eol();)ht.start=ht.pos,qe=Hn(Le,ht,lt.state),se&&Ct.push(new Cn(ht,qe,sn(ge.mode,lt.state)));return se?Ct:new Cn(ht,qe,lt.state)}function Qn(a,b){if(a)for(;;){var ue=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ue)break;a=a.slice(0,ue.index)+a.slice(ue.index+ue[0].length);var se=ue[1]?"bgClass":"textClass";b[se]==null?b[se]=ue[2]:new RegExp("(?:^|\\s)"+ue[2]+"(?:$|\\s)").test(b[se])||(b[se]+=" "+ue[2])}return a}function Jn(a,b,ue,se,ge,Le,qe){var st=ue.flattenSpans;st==null&&(st=a.options.flattenSpans);var lt=0,ht=null,Ct=new sr(b,a.options.tabSize,se),_t,Ut=a.options.addModeClass&&[null];for(b==""&&Qn(An(ue,se.state),Le);!Ct.eol();){if(Ct.pos>a.options.maxHighlightLength?(st=!1,qe&&On(a,b,se,Ct.pos),Ct.pos=b.length,_t=null):_t=Qn(Hn(ue,Ct,se.state,Ut),Le),Ut){var Ft=Ut[0].name;Ft&&(_t="m-"+(_t?Ft+" "+_t:Ft))}if(!st||ht!=_t){for(;lt<Ct.start;)lt=Math.min(Ct.start,lt+5e3),ge(lt,ht);ht=_t}Ct.start=Ct.pos}for(;lt<Ct.pos;){var or=Math.min(Ct.pos,lt+5e3);ge(or,ht),lt=or}}function Er(a,b,ue){for(var se,ge,Le=a.doc,qe=ue?-1:b-(a.doc.mode.innerMode?1e3:100),st=b;st>qe;--st){if(st<=Le.first)return Le.first;var lt=Wt(Le,st-1),ht=lt.stateAfter;if(ht&&(!ue||st+(ht instanceof Or?ht.lookAhead:0)<=Le.modeFrontier))return st;var Ct=Ne(lt.text,null,a.options.tabSize);(ge==null||se>Ct)&&(ge=st-1,se=Ct)}return ge}function Fr(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ue=a.first,se=b-1;se>ue;se--){var ge=Wt(a,se).stateAfter;if(ge&&(!(ge instanceof Or)||se+ge.lookAhead<b)){ue=se+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ue)}}var en=!1,$r=!1;function bn(){en=!0}function kr(){$r=!0}function Cr(a,b,ue){this.marker=a,this.from=b,this.to=ue}function Mr(a,b){if(a)for(var ue=0;ue<a.length;++ue){var se=a[ue];if(se.marker==b)return se}}function Zr(a,b){for(var ue,se=0;se<a.length;++se)a[se]!=b&&(ue||(ue=[])).push(a[se]);return ue}function xn(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function rn(a,b,ue){var se;if(a)for(var ge=0;ge<a.length;++ge){var Le=a[ge],qe=Le.marker,st=Le.from==null||(qe.inclusiveLeft?Le.from<=b:Le.from<b);if(st||Le.from==b&&qe.type=="bookmark"&&(!ue||!Le.marker.insertLeft)){var lt=Le.to==null||(qe.inclusiveRight?Le.to>=b:Le.to>b);(se||(se=[])).push(new Cr(qe,Le.from,lt?null:Le.to))}}return se}function an(a,b,ue){var se;if(a)for(var ge=0;ge<a.length;++ge){var Le=a[ge],qe=Le.marker,st=Le.to==null||(qe.inclusiveRight?Le.to>=b:Le.to>b);if(st||Le.from==b&&qe.type=="bookmark"&&(!ue||Le.marker.insertLeft)){var lt=Le.from==null||(qe.inclusiveLeft?Le.from<=b:Le.from<b);(se||(se=[])).push(new Cr(qe,lt?null:Le.from-b,Le.to==null?null:Le.to-b))}}return se}function Un(a,b){if(b.full)return null;var ue=lr(a,b.from.line)&&Wt(a,b.from.line).markedSpans,se=lr(a,b.to.line)&&Wt(a,b.to.line).markedSpans;if(!ue&&!se)return null;var ge=b.from.ch,Le=b.to.ch,qe=nr(b.from,b.to)==0,st=rn(ue,ge,qe),lt=an(se,Le,qe),ht=b.text.length==1,Ct=ot(b.text).length+(ht?ge:0);if(st)for(var _t=0;_t<st.length;++_t){var Ut=st[_t];if(Ut.to==null){var Ft=Mr(lt,Ut.marker);Ft?ht&&(Ut.to=Ft.to==null?null:Ft.to+Ct):Ut.to=ge}}if(lt)for(var or=0;or<lt.length;++or){var xr=lt[or];if(xr.to!=null&&(xr.to+=Ct),xr.from==null){var Ir=Mr(st,xr.marker);Ir||(xr.from=Ct,ht&&(st||(st=[])).push(xr))}else xr.from+=Ct,ht&&(st||(st=[])).push(xr)}st&&(st=yt(st)),lt&&lt!=st&&(lt=yt(lt));var zr=[st];if(!ht){var nn=b.text.length-2,Gr;if(nn>0&&st)for(var mn=0;mn<st.length;++mn)st[mn].to==null&&(Gr||(Gr=[])).push(new Cr(st[mn].marker,null,null));for(var In=0;In<nn;++In)zr.push(Gr);zr.push(lt)}return zr}function yt(a){for(var b=0;b<a.length;++b){var ue=a[b];ue.from!=null&&ue.from==ue.to&&ue.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Mt(a,b,ue){var se=null;if(a.iter(b.line,ue.line+1,function(Ft){if(Ft.markedSpans)for(var or=0;or<Ft.markedSpans.length;++or){var xr=Ft.markedSpans[or].marker;xr.readOnly&&(!se||$e(se,xr)==-1)&&(se||(se=[])).push(xr)}}),!se)return null;for(var ge=[{from:b,to:ue}],Le=0;Le<se.length;++Le)for(var qe=se[Le],st=qe.find(0),lt=0;lt<ge.length;++lt){var ht=ge[lt];if(!(nr(ht.to,st.from)<0||nr(ht.from,st.to)>0)){var Ct=[lt,1],_t=nr(ht.from,st.from),Ut=nr(ht.to,st.to);(_t<0||!qe.inclusiveLeft&&!_t)&&Ct.push({from:ht.from,to:st.from}),(Ut>0||!qe.inclusiveRight&&!Ut)&&Ct.push({from:st.to,to:ht.to}),ge.splice.apply(ge,Ct),lt+=Ct.length-3}}return ge}function Rt(a){var b=a.markedSpans;if(b){for(var ue=0;ue<b.length;++ue)b[ue].marker.detachLine(a);a.markedSpans=null}}function Bt(a,b){if(b){for(var ue=0;ue<b.length;++ue)b[ue].marker.attachLine(a);a.markedSpans=b}}function Lt(a){return a.inclusiveLeft?-1:0}function Jt(a){return a.inclusiveRight?1:0}function fr(a,b){var ue=a.lines.length-b.lines.length;if(ue!=0)return ue;var se=a.find(),ge=b.find(),Le=nr(se.from,ge.from)||Lt(a)-Lt(b);if(Le)return-Le;var qe=nr(se.to,ge.to)||Jt(a)-Jt(b);return qe||b.id-a.id}function ir(a,b){var ue=$r&&a.markedSpans,se;if(ue)for(var ge=void 0,Le=0;Le<ue.length;++Le)ge=ue[Le],ge.marker.collapsed&&(b?ge.from:ge.to)==null&&(!se||fr(se,ge.marker)<0)&&(se=ge.marker);return se}function rr(a){return ir(a,!0)}function It(a){return ir(a,!1)}function Gt(a,b){var ue=$r&&a.markedSpans,se;if(ue)for(var ge=0;ge<ue.length;++ge){var Le=ue[ge];Le.marker.collapsed&&(Le.from==null||Le.from<b)&&(Le.to==null||Le.to>b)&&(!se||fr(se,Le.marker)<0)&&(se=Le.marker)}return se}function Vt(a,b,ue,se,ge){var Le=Wt(a,b),qe=$r&&Le.markedSpans;if(qe)for(var st=0;st<qe.length;++st){var lt=qe[st];if(lt.marker.collapsed){var ht=lt.marker.find(0),Ct=nr(ht.from,ue)||Lt(lt.marker)-Lt(ge),_t=nr(ht.to,se)||Jt(lt.marker)-Jt(ge);if(!(Ct>=0&&_t<=0||Ct<=0&&_t>=0)&&(Ct<=0&&(lt.marker.inclusiveRight&&ge.inclusiveLeft?nr(ht.to,ue)>=0:nr(ht.to,ue)>0)||Ct>=0&&(lt.marker.inclusiveRight&&ge.inclusiveLeft?nr(ht.from,se)<=0:nr(ht.from,se)<0)))return!0}}}function Kt(a){for(var b;b=rr(a);)a=b.find(-1,!0).line;return a}function Qt(a){for(var b;b=It(a);)a=b.find(1,!0).line;return a}function zt(a){for(var b,ue;b=It(a);)a=b.find(1,!0).line,(ue||(ue=[])).push(a);return ue}function Yt(a,b){var ue=Wt(a,b),se=Kt(ue);return ue==se?b:kt(se)}function tr(a,b){if(b>a.lastLine())return b;var ue=Wt(a,b),se;if(!ar(a,ue))return b;for(;se=It(ue);)ue=se.find(1,!0).line;return kt(ue)+1}function ar(a,b){var ue=$r&&b.markedSpans;if(ue){for(var se=void 0,ge=0;ge<ue.length;++ge)if(se=ue[ge],!!se.marker.collapsed){if(se.from==null)return!0;if(!se.marker.widgetNode&&se.from==0&&se.marker.inclusiveLeft&&Rr(a,b,se))return!0}}}function Rr(a,b,ue){if(ue.to==null){var se=ue.marker.find(1,!0);return Rr(a,se.line,Mr(se.line.markedSpans,ue.marker))}if(ue.marker.inclusiveRight&&ue.to==b.text.length)return!0;for(var ge=void 0,Le=0;Le<b.markedSpans.length;++Le)if(ge=b.markedSpans[Le],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ue.to&&(ge.to==null||ge.to!=ue.from)&&(ge.marker.inclusiveLeft||ue.marker.inclusiveRight)&&Rr(a,b,ge))return!0}function Pr(a){a=Kt(a);for(var b=0,ue=a.parent,se=0;se<ue.lines.length;++se){var ge=ue.lines[se];if(ge==a)break;b+=ge.height}for(var Le=ue.parent;Le;ue=Le,Le=ue.parent)for(var qe=0;qe<Le.children.length;++qe){var st=Le.children[qe];if(st==ue)break;b+=st.height}return b}function qr(a){if(a.height==0)return 0;for(var b=a.text.length,ue,se=a;ue=rr(se);){var ge=ue.find(0,!0);se=ge.from.line,b+=ge.from.ch-ge.to.ch}for(se=a;ue=It(se);){var Le=ue.find(0,!0);b-=se.text.length-Le.from.ch,se=Le.to.line,b+=se.text.length-Le.to.ch}return b}function Br(a){var b=a.display,ue=a.doc;b.maxLine=Wt(ue,ue.first),b.maxLineLength=qr(b.maxLine),b.maxLineChanged=!0,ue.iter(function(se){var ge=qr(se);ge>b.maxLineLength&&(b.maxLineLength=ge,b.maxLine=se)})}var hn=function(a,b,ue){this.text=a,Bt(this,b),this.height=ue?ue(this):1};hn.prototype.lineNo=function(){return kt(this)},Pt(hn);function gn(a,b,ue,se){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Rt(a),Bt(a,ue);var ge=se?se(a):1;ge!=a.height&&un(a,ge)}function Tn(a){a.parent=null,Rt(a)}var yn={},Sn={};function Fn(a,b){if(!a||/^\s*$/.test(a))return null;var ue=b.addModeClass?Sn:yn;return ue[a]||(ue[a]=a.replace(/\S+/g,"cm-$&"))}function Pn(a,b){var ue=Se("span",null,null,z?"padding-right: .1px":null),se={pre:Se("pre",[ue],"CodeMirror-line"),content:ue,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ge=0;ge<=(b.rest?b.rest.length:0);ge++){var Le=ge?b.rest[ge-1]:b.line,qe=void 0;se.pos=0,se.addToken=wn,Tr(a.display.measure)&&(qe=St(Le,a.doc.direction))&&(se.addToken=pn(se.addToken,qe)),se.map=[];var st=b!=a.display.externalMeasured&&kt(Le);Mn(Le,se,En(a,Le,st)),Le.styleClasses&&(Le.styleClasses.bgClass&&(se.bgClass=He(Le.styleClasses.bgClass,se.bgClass||"")),Le.styleClasses.textClass&&(se.textClass=He(Le.styleClasses.textClass,se.textClass||""))),se.map.length==0&&se.map.push(0,0,se.content.appendChild(Lr(a.display.measure))),ge==0?(b.measure.map=se.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(se.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(z){var lt=se.content.lastChild;(/\bcm-tab\b/.test(lt.className)||lt.querySelector&&lt.querySelector(".cm-tab"))&&(se.content.className="cm-tab-wrap-hack")}return gt(a,"renderLine",a,b.line,se.pre),se.pre.className&&(se.textClass=He(se.pre.className,se.textClass||"")),se}function Nn(a){var b=be("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function wn(a,b,ue,se,ge,Le,qe){if(b){var st=a.splitSpaces?Vr(b,a.trailingSpace):b,lt=a.cm.state.specialChars,ht=!1,Ct;if(!lt.test(b))a.col+=b.length,Ct=document.createTextNode(st),a.map.push(a.pos,a.pos+b.length,Ct),we&&x<9&&(ht=!0),a.pos+=b.length;else{Ct=document.createDocumentFragment();for(var _t=0;;){lt.lastIndex=_t;var Ut=lt.exec(b),Ft=Ut?Ut.index-_t:b.length-_t;if(Ft){var or=document.createTextNode(st.slice(_t,_t+Ft));we&&x<9?Ct.appendChild(be("span",[or])):Ct.appendChild(or),a.map.push(a.pos,a.pos+Ft,or),a.col+=Ft,a.pos+=Ft}if(!Ut)break;_t+=Ft+1;var xr=void 0;if(Ut[0]==" "){var Ir=a.cm.options.tabSize,zr=Ir-a.col%Ir;xr=Ct.appendChild(be("span",ft(zr),"cm-tab")),xr.setAttribute("role","presentation"),xr.setAttribute("cm-text"," "),a.col+=zr}else Ut[0]=="\r"||Ut[0]==`
`?(xr=Ct.appendChild(be("span",Ut[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xr.setAttribute("cm-text",Ut[0]),a.col+=1):(xr=a.cm.options.specialCharPlaceholder(Ut[0]),xr.setAttribute("cm-text",Ut[0]),we&&x<9?Ct.appendChild(be("span",[xr])):Ct.appendChild(xr),a.col+=1);a.map.push(a.pos,a.pos+1,xr),a.pos++}}if(a.trailingSpace=st.charCodeAt(b.length-1)==32,ue||se||ge||ht||Le||qe){var nn=ue||"";se&&(nn+=se),ge&&(nn+=ge);var Gr=be("span",[Ct],nn,Le);if(qe)for(var mn in qe)qe.hasOwnProperty(mn)&&mn!="style"&&mn!="class"&&Gr.setAttribute(mn,qe[mn]);return a.content.appendChild(Gr)}a.content.appendChild(Ct)}}function Vr(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ue=b,se="",ge=0;ge<a.length;ge++){var Le=a.charAt(ge);Le==" "&&ue&&(ge==a.length-1||a.charCodeAt(ge+1)==32)&&(Le="\xA0"),se+=Le,ue=Le==" "}return se}function pn(a,b){return function(ue,se,ge,Le,qe,st,lt){ge=ge?ge+" cm-force-border":"cm-force-border";for(var ht=ue.pos,Ct=ht+se.length;;){for(var _t=void 0,Ut=0;Ut<b.length&&(_t=b[Ut],!(_t.to>ht&&_t.from<=ht));Ut++);if(_t.to>=Ct)return a(ue,se,ge,Le,qe,st,lt);a(ue,se.slice(0,_t.to-ht),ge,Le,null,st,lt),Le=null,se=se.slice(_t.to-ht),ht=_t.to}}}function Jr(a,b,ue,se){var ge=!se&&ue.widgetNode;ge&&a.map.push(a.pos,a.pos+b,ge),!se&&a.cm.display.input.needsContentAttribute&&(ge||(ge=a.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",ue.id)),ge&&(a.cm.display.input.setUneditable(ge),a.content.appendChild(ge)),a.pos+=b,a.trailingSpace=!1}function Mn(a,b,ue){var se=a.markedSpans,ge=a.text,Le=0;if(!se){for(var qe=1;qe<ue.length;qe+=2)b.addToken(b,ge.slice(Le,Le=ue[qe]),Fn(ue[qe+1],b.cm.options));return}for(var st=ge.length,lt=0,ht=1,Ct="",_t,Ut,Ft=0,or,xr,Ir,zr,nn;;){if(Ft==lt){or=xr=Ir=Ut="",nn=null,zr=null,Ft=1/0;for(var Gr=[],mn=void 0,In=0;In<se.length;++In){var kn=se[In],Yn=kn.marker;if(Yn.type=="bookmark"&&kn.from==lt&&Yn.widgetNode)Gr.push(Yn);else if(kn.from<=lt&&(kn.to==null||kn.to>lt||Yn.collapsed&&kn.to==lt&&kn.from==lt)){if(kn.to!=null&&kn.to!=lt&&Ft>kn.to&&(Ft=kn.to,xr=""),Yn.className&&(or+=" "+Yn.className),Yn.css&&(Ut=(Ut?Ut+";":"")+Yn.css),Yn.startStyle&&kn.from==lt&&(Ir+=" "+Yn.startStyle),Yn.endStyle&&kn.to==Ft&&(mn||(mn=[])).push(Yn.endStyle,kn.to),Yn.title&&((nn||(nn={})).title=Yn.title),Yn.attributes)for(var ci in Yn.attributes)(nn||(nn={}))[ci]=Yn.attributes[ci];Yn.collapsed&&(!zr||fr(zr.marker,Yn)<0)&&(zr=kn)}else kn.from>lt&&Ft>kn.from&&(Ft=kn.from)}if(mn)for(var Bi=0;Bi<mn.length;Bi+=2)mn[Bi+1]==Ft&&(xr+=" "+mn[Bi]);if(!zr||zr.from==lt)for(var xi=0;xi<Gr.length;++xi)Jr(b,0,Gr[xi]);if(zr&&(zr.from||0)==lt){if(Jr(b,(zr.to==null?st+1:zr.to)-lt,zr.marker,zr.from==null),zr.to==null)return;zr.to==lt&&(zr=!1)}}if(lt>=st)break;for(var oa=Math.min(st,Ft);;){if(Ct){var ea=lt+Ct.length;if(!zr){var Di=ea>oa?Ct.slice(0,oa-lt):Ct;b.addToken(b,Di,_t?_t+or:or,Ir,lt+Di.length==Ft?xr:"",Ut,nn)}if(ea>=oa){Ct=Ct.slice(oa-lt),lt=oa;break}lt=ea,Ir=""}Ct=ge.slice(Le,Le=ue[ht++]),_t=Fn(ue[ht++],b.cm.options)}}}function Rn(a,b,ue){this.line=b,this.rest=zt(b),this.size=this.rest?kt(ot(this.rest))-ue+1:1,this.node=this.text=null,this.hidden=ar(a,b)}function Bn(a,b,ue){for(var se=[],ge,Le=b;Le<ue;Le=ge){var qe=new Rn(a.doc,Wt(a.doc,Le),Le);ge=Le+qe.size,se.push(qe)}return se}var $n=null;function Ei(a){$n?$n.ops.push(a):a.ownsGroup=$n={ops:[a],delayedCallbacks:[]}}function oi(a){var b=a.delayedCallbacks,ue=0;do{for(;ue<b.length;ue++)b[ue].call(null);for(var se=0;se<a.ops.length;se++){var ge=a.ops[se];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(ue<b.length)}function Gi(a,b){var ue=a.ownsGroup;if(ue)try{oi(ue)}finally{$n=null,b(ue)}}var _i=null;function qn(a,b){var ue=vt(a,b);if(ue.length){var se=Array.prototype.slice.call(arguments,2),ge;$n?ge=$n.delayedCallbacks:_i?ge=_i:(ge=_i=[],setTimeout(ti,0));for(var Le=function(st){ge.push(function(){return ue[st].apply(null,se)})},qe=0;qe<ue.length;++qe)Le(qe)}}function ti(){var a=_i;_i=null;for(var b=0;b<a.length;++b)a[b]()}function ri(a,b,ue,se){for(var ge=0;ge<b.changes.length;ge++){var Le=b.changes[ge];Le=="text"?si(a,b):Le=="gutter"?_n(a,b,ue,se):Le=="class"?cn(a,b):Le=="widget"&&Dn(a,b,se)}b.changes=null}function ki(a){return a.node==a.text&&(a.node=be("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),we&&x<8&&(a.node.style.zIndex=2)),a.node}function ai(a,b){var ue=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ue&&(ue+=" CodeMirror-linebackground"),b.background)ue?b.background.className=ue:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ue){var se=ki(b);b.background=se.insertBefore(be("div",null,ue),se.firstChild),a.display.input.setUneditable(b.background)}}function ui(a,b){var ue=a.display.externalMeasured;return ue&&ue.line==b.line?(a.display.externalMeasured=null,b.measure=ue.measure,ue.built):Pn(a,b)}function si(a,b){var ue=b.text.className,se=ui(a,b);b.text==b.node&&(b.node=se.pre),b.text.parentNode.replaceChild(se.pre,b.text),b.text=se.pre,se.bgClass!=b.bgClass||se.textClass!=b.textClass?(b.bgClass=se.bgClass,b.textClass=se.textClass,cn(a,b)):ue&&(b.text.className=ue)}function cn(a,b){ai(a,b),b.line.wrapClass?ki(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ue=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ue||""}function _n(a,b,ue,se){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ge=ki(b);b.gutterBackground=be("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?se.fixedPos:-se.gutterTotalWidth)+"px; width: "+se.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ge.insertBefore(b.gutterBackground,b.text)}var Le=b.line.gutterMarkers;if(a.options.lineNumbers||Le){var qe=ki(b),st=b.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?se.fixedPos:-se.gutterTotalWidth)+"px");if(a.display.input.setUneditable(st),qe.insertBefore(st,b.text),b.line.gutterClass&&(st.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Le||!Le["CodeMirror-linenumbers"])&&(b.lineNumber=st.appendChild(be("div",$t(a.options,ue),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+se.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Le)for(var lt=0;lt<a.display.gutterSpecs.length;++lt){var ht=a.display.gutterSpecs[lt].className,Ct=Le.hasOwnProperty(ht)&&Le[ht];Ct&&st.appendChild(be("div",[Ct],"CodeMirror-gutter-elt","left: "+se.gutterLeft[ht]+"px; width: "+se.gutterWidth[ht]+"px"))}}}function Dn(a,b,ue){b.alignable&&(b.alignable=null);for(var se=Te("CodeMirror-linewidget"),ge=b.node.firstChild,Le=void 0;ge;ge=Le)Le=ge.nextSibling,se.test(ge.className)&&b.node.removeChild(ge);Vn(a,b,ue)}function jn(a,b,ue,se){var ge=ui(a,b);return b.text=b.node=ge.pre,ge.bgClass&&(b.bgClass=ge.bgClass),ge.textClass&&(b.textClass=ge.textClass),cn(a,b),_n(a,b,ue,se),Vn(a,b,se),b.node}function Vn(a,b,ue){if(ei(a,b.line,b,ue,!0),b.rest)for(var se=0;se<b.rest.length;se++)ei(a,b.rest[se],b,ue,!1)}function ei(a,b,ue,se,ge){if(b.widgets)for(var Le=ki(ue),qe=0,st=b.widgets;qe<st.length;++qe){var lt=st[qe],ht=be("div",[lt.node],"CodeMirror-linewidget"+(lt.className?" "+lt.className:""));lt.handleMouseEvents||ht.setAttribute("cm-ignore-events","true"),Zi(lt,ht,ue,se),a.display.input.setUneditable(ht),ge&&lt.above?Le.insertBefore(ht,ue.gutter||ue.text):Le.appendChild(ht),qn(lt,"redraw")}}function Zi(a,b,ue,se){if(a.noHScroll){(ue.alignable||(ue.alignable=[])).push(b);var ge=se.wrapperWidth;b.style.left=se.fixedPos+"px",a.coverGutter||(ge-=se.gutterTotalWidth,b.style.paddingLeft=se.gutterTotalWidth+"px"),b.style.width=ge+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-se.gutterTotalWidth+"px"))}function di(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Me(document.body,a.node)){var ue="position: relative;";a.coverGutter&&(ue+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ue+="width: "+b.display.wrapper.clientWidth+"px;"),ye(b.display.measure,be("div",[a.node],null,ue))}return a.height=a.node.parentNode.offsetHeight}function fi(a,b){for(var ue=Kr(b);ue!=a.wrapper;ue=ue.parentNode)if(!ue||ue.nodeType==1&&ue.getAttribute("cm-ignore-events")=="true"||ue.parentNode==a.sizer&&ue!=a.mover)return!0}function Ln(a){return a.lineSpace.offsetTop}function bi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ki(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=ye(a.measure,be("pre","x","CodeMirror-line-like")),ue=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,se={left:parseInt(ue.paddingLeft),right:parseInt(ue.paddingRight)};return!isNaN(se.left)&&!isNaN(se.right)&&(a.cachedPaddingH=se),se}function ni(a){return rt-a.display.nativeBarWidth}function sa(a){return a.display.scroller.clientWidth-ni(a)-a.display.barWidth}function Vi(a){return a.display.scroller.clientHeight-ni(a)-a.display.barHeight}function Ji(a,b,ue){var se=a.options.lineWrapping,ge=se&&sa(a);if(!b.measure.heights||se&&b.measure.width!=ge){var Le=b.measure.heights=[];if(se){b.measure.width=ge;for(var qe=b.text.firstChild.getClientRects(),st=0;st<qe.length-1;st++){var lt=qe[st],ht=qe[st+1];Math.abs(lt.bottom-ht.bottom)>2&&Le.push((lt.bottom+ht.top)/2-ue.top)}}Le.push(ue.bottom-ue.top)}}function vi(a,b,ue){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var se=0;se<a.rest.length;se++)if(a.rest[se]==b)return{map:a.measure.maps[se],cache:a.measure.caches[se]};for(var ge=0;ge<a.rest.length;ge++)if(kt(a.rest[ge])>ue)return{map:a.measure.maps[ge],cache:a.measure.caches[ge],before:!0}}function ro(a,b){b=Kt(b);var ue=kt(b),se=a.display.externalMeasured=new Rn(a.doc,b,ue);se.lineN=ue;var ge=se.built=Pn(a,se);return se.text=ge.pre,ye(a.display.lineMeasure,ge.pre),se}function Ya(a,b,ue,se){return na(a,ma(a,b),ue,se)}function pa(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Ta(a,b)];var ue=a.display.externalMeasured;if(ue&&b>=ue.lineN&&b<ue.lineN+ue.size)return ue}function ma(a,b){var ue=kt(b),se=pa(a,ue);se&&!se.text?se=null:se&&se.changes&&(ri(a,se,ue,ua(a)),a.curOp.forceUpdate=!0),se||(se=ro(a,b));var ge=vi(se,b,ue);return{line:b,view:se,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function na(a,b,ue,se,ge){b.before&&(ue=-1);var Le=ue+(se||""),qe;return b.cache.hasOwnProperty(Le)?qe=b.cache[Le]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Ji(a,b.view,b.rect),b.hasHeights=!0),qe=ao(a,b,ue,se),qe.bogus||(b.cache[Le]=qe)),{left:qe.left,right:qe.right,top:ge?qe.rtop:qe.top,bottom:ge?qe.rbottom:qe.bottom}}var Ca={left:0,right:0,top:0,bottom:0};function no(a,b,ue){for(var se,ge,Le,qe,st,lt,ht=0;ht<a.length;ht+=3)if(st=a[ht],lt=a[ht+1],b<st?(ge=0,Le=1,qe="left"):b<lt?(ge=b-st,Le=ge+1):(ht==a.length-3||b==lt&&a[ht+3]>b)&&(Le=lt-st,ge=Le-1,b>=lt&&(qe="right")),ge!=null){if(se=a[ht+2],st==lt&&ue==(se.insertLeft?"left":"right")&&(qe=ue),ue=="left"&&ge==0)for(;ht&&a[ht-2]==a[ht-3]&&a[ht-1].insertLeft;)se=a[(ht-=3)+2],qe="left";if(ue=="right"&&ge==lt-st)for(;ht<a.length-3&&a[ht+3]==a[ht+4]&&!a[ht+5].insertLeft;)se=a[(ht+=3)+2],qe="right";break}return{node:se,start:ge,end:Le,collapse:qe,coverStart:st,coverEnd:lt}}function io(a,b){var ue=Ca;if(b=="left")for(var se=0;se<a.length&&(ue=a[se]).left==ue.right;se++);else for(var ge=a.length-1;ge>=0&&(ue=a[ge]).left==ue.right;ge--);return ue}function ao(a,b,ue,se){var ge=no(b.map,ue,se),Le=ge.node,qe=ge.start,st=ge.end,lt=ge.collapse,ht;if(Le.nodeType==3){for(var Ct=0;Ct<4;Ct++){for(;qe&&je(b.line.text.charAt(ge.coverStart+qe));)--qe;for(;ge.coverStart+st<ge.coverEnd&&je(b.line.text.charAt(ge.coverStart+st));)++st;if(we&&x<9&&qe==0&&st==ge.coverEnd-ge.coverStart?ht=Le.parentNode.getBoundingClientRect():ht=io(Ie(Le,qe,st).getClientRects(),se),ht.left||ht.right||qe==0)break;st=qe,qe=qe-1,lt="right"}we&&x<11&&(ht=Ba(a.display.measure,ht))}else{qe>0&&(lt=se="right");var _t;a.options.lineWrapping&&(_t=Le.getClientRects()).length>1?ht=_t[se=="right"?_t.length-1:0]:ht=Le.getBoundingClientRect()}if(we&&x<9&&!qe&&(!ht||!ht.left&&!ht.right)){var Ut=Le.parentNode.getClientRects()[0];Ut?ht={left:Ut.left,right:Ut.left+Qi(a.display),top:Ut.top,bottom:Ut.bottom}:ht=Ca}for(var Ft=ht.top-b.rect.top,or=ht.bottom-b.rect.top,xr=(Ft+or)/2,Ir=b.view.measure.heights,zr=0;zr<Ir.length-1&&!(xr<Ir[zr]);zr++);var nn=zr?Ir[zr-1]:0,Gr=Ir[zr],mn={left:(lt=="right"?ht.right:ht.left)-b.rect.left,right:(lt=="left"?ht.left:ht.right)-b.rect.left,top:nn,bottom:Gr};return!ht.left&&!ht.right&&(mn.bogus=!0),a.options.singleCursorHeightPerLine||(mn.rtop=Ft,mn.rbottom=or),mn}function Ba(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!er(a))return b;var ue=screen.logicalXDPI/screen.deviceXDPI,se=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ue,right:b.right*ue,top:b.top*se,bottom:b.bottom*se}}function Ja(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Fa(a){a.display.externalMeasure=null,_e(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ja(a.display.view[b])}function Sa(a){Fa(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Qa(){return ae&&oe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function oo(){return ae&&oe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function La(a){var b=0;if(a.widgets)for(var ue=0;ue<a.widgets.length;++ue)a.widgets[ue].above&&(b+=di(a.widgets[ue]));return b}function ka(a,b,ue,se,ge){if(!ge){var Le=La(b);ue.top+=Le,ue.bottom+=Le}if(se=="line")return ue;se||(se="local");var qe=Pr(b);if(se=="local"?qe+=Ln(a.display):qe-=a.display.viewOffset,se=="page"||se=="window"){var st=a.display.lineSpace.getBoundingClientRect();qe+=st.top+(se=="window"?0:oo());var lt=st.left+(se=="window"?0:Qa());ue.left+=lt,ue.right+=lt}return ue.top+=qe,ue.bottom+=qe,ue}function Aa(a,b,ue){if(ue=="div")return b;var se=b.left,ge=b.top;if(ue=="page")se-=Qa(),ge-=oo();else if(ue=="local"||!ue){var Le=a.display.sizer.getBoundingClientRect();se+=Le.left,ge+=Le.top}var qe=a.display.lineSpace.getBoundingClientRect();return{left:se-qe.left,top:ge-qe.top}}function Li(a,b,ue,se,ge){return se||(se=Wt(a.doc,b.line)),ka(a,se,Ya(a,se,b.ch,ge),ue)}function hi(a,b,ue,se,ge,Le){se=se||Wt(a.doc,b.line),ge||(ge=ma(a,se));function qe(or,xr){var Ir=na(a,ge,or,xr?"right":"left",Le);return xr?Ir.left=Ir.right:Ir.right=Ir.left,ka(a,se,Ir,ue)}var st=St(se,a.doc.direction),lt=b.ch,ht=b.sticky;if(lt>=se.text.length?(lt=se.text.length,ht="before"):lt<=0&&(lt=0,ht="after"),!st)return qe(ht=="before"?lt-1:lt,ht=="before");function Ct(or,xr,Ir){var zr=st[xr],nn=zr.level==1;return qe(Ir?or-1:or,nn!=Ir)}var _t=ut(st,lt,ht),Ut=ct,Ft=Ct(lt,_t,ht=="before");return Ut!=null&&(Ft.other=Ct(lt,Ut,ht!="before")),Ft}function Kn(a,b){var ue=0;b=jt(a.doc,b),a.options.lineWrapping||(ue=Qi(a.display)*b.ch);var se=Wt(a.doc,b.line),ge=Pr(se)+Ln(a.display);return{left:ue,right:ue,top:ge,bottom:ge+se.height}}function Wn(a,b,ue,se,ge){var Le=Ot(a,b,ue);return Le.xRel=ge,se&&(Le.outside=se),Le}function gi(a,b,ue){var se=a.doc;if(ue+=a.display.viewOffset,ue<0)return Wn(se.first,0,null,-1,-1);var ge=Tt(se,ue),Le=se.first+se.size-1;if(ge>Le)return Wn(se.first+se.size-1,Wt(se,Le).text.length,null,1,1);b<0&&(b=0);for(var qe=Wt(se,ge);;){var st=la(a,qe,ge,b,ue),lt=Gt(qe,st.ch+(st.xRel>0||st.outside>0?1:0));if(!lt)return st;var ht=lt.find(1);if(ht.line==ge)return ht;qe=Wt(se,ge=ht.line)}}function pi(a,b,ue,se){se-=La(b);var ge=b.text.length,Le=tt(function(qe){return na(a,ue,qe-1).bottom<=se},ge,0);return ge=tt(function(qe){return na(a,ue,qe).top>se},Le,ge),{begin:Le,end:ge}}function wi(a,b,ue,se){ue||(ue=ma(a,b));var ge=ka(a,b,na(a,ue,se),"line").top;return pi(a,b,ue,ge)}function Ai(a,b,ue,se){return a.bottom<=ue?!1:a.top>ue?!0:(se?a.left:a.right)>b}function la(a,b,ue,se,ge){ge-=Pr(b);var Le=ma(a,b),qe=La(b),st=0,lt=b.text.length,ht=!0,Ct=St(b,a.doc.direction);if(Ct){var _t=(a.options.lineWrapping?va:ia)(a,b,ue,Le,Ct,se,ge);ht=_t.level!=1,st=ht?_t.from:_t.to-1,lt=ht?_t.to:_t.from-1}var Ut=null,Ft=null,or=tt(function(In){var kn=na(a,Le,In);return kn.top+=qe,kn.bottom+=qe,Ai(kn,se,ge,!1)?(kn.top<=ge&&kn.left<=se&&(Ut=In,Ft=kn),!0):!1},st,lt),xr,Ir,zr=!1;if(Ft){var nn=se-Ft.left<Ft.right-se,Gr=nn==ht;or=Ut+(Gr?0:1),Ir=Gr?"after":"before",xr=nn?Ft.left:Ft.right}else{!ht&&(or==lt||or==st)&&or++,Ir=or==0?"after":or==b.text.length?"before":na(a,Le,or-(ht?1:0)).bottom+qe<=ge==ht?"after":"before";var mn=hi(a,Ot(ue,or,Ir),"line",b,Le);xr=mn.left,zr=ge<mn.top?-1:ge>=mn.bottom?1:0}return or=Ze(b.text,or,1),Wn(ue,or,Ir,zr,se-xr)}function ia(a,b,ue,se,ge,Le,qe){var st=tt(function(_t){var Ut=ge[_t],Ft=Ut.level!=1;return Ai(hi(a,Ot(ue,Ft?Ut.to:Ut.from,Ft?"before":"after"),"line",b,se),Le,qe,!0)},0,ge.length-1),lt=ge[st];if(st>0){var ht=lt.level!=1,Ct=hi(a,Ot(ue,ht?lt.from:lt.to,ht?"after":"before"),"line",b,se);Ai(Ct,Le,qe,!0)&&Ct.top>qe&&(lt=ge[st-1])}return lt}function va(a,b,ue,se,ge,Le,qe){var st=pi(a,b,se,qe),lt=st.begin,ht=st.end;/\s/.test(b.text.charAt(ht-1))&&ht--;for(var Ct=null,_t=null,Ut=0;Ut<ge.length;Ut++){var Ft=ge[Ut];if(!(Ft.from>=ht||Ft.to<=lt)){var or=Ft.level!=1,xr=na(a,se,or?Math.min(ht,Ft.to)-1:Math.max(lt,Ft.from)).right,Ir=xr<Le?Le-xr+1e9:xr-Le;(!Ct||_t>Ir)&&(Ct=Ft,_t=Ir)}}return Ct||(Ct=ge[ge.length-1]),Ct.from<lt&&(Ct={from:lt,to:Ct.to,level:Ct.level}),Ct.to>ht&&(Ct={from:Ct.from,to:ht,level:Ct.level}),Ct}var mi;function Oi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(mi==null){mi=be("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)mi.appendChild(document.createTextNode("x")),mi.appendChild(be("br"));mi.appendChild(document.createTextNode("x"))}ye(a.measure,mi);var ue=mi.offsetHeight/50;return ue>3&&(a.cachedTextHeight=ue),_e(a.measure),ue||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=be("span","xxxxxxxxxx"),ue=be("pre",[b],"CodeMirror-line-like");ye(a.measure,ue);var se=b.getBoundingClientRect(),ge=(se.right-se.left)/10;return ge>2&&(a.cachedCharWidth=ge),ge||10}function ua(a){for(var b=a.display,ue={},se={},ge=b.gutters.clientLeft,Le=b.gutters.firstChild,qe=0;Le;Le=Le.nextSibling,++qe){var st=a.display.gutterSpecs[qe].className;ue[st]=Le.offsetLeft+Le.clientLeft+ge,se[st]=Le.clientWidth}return{fixedPos:$a(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ue,gutterWidth:se,wrapperWidth:b.wrapper.clientWidth}}function $a(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Co(a){var b=Oi(a.display),ue=a.options.lineWrapping,se=ue&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(ge){if(ar(a.doc,ge))return 0;var Le=0;if(ge.widgets)for(var qe=0;qe<ge.widgets.length;qe++)ge.widgets[qe].height&&(Le+=ge.widgets[qe].height);return ue?Le+(Math.ceil(ge.text.length/se)||1)*b:Le+b}}function So(a){var b=a.doc,ue=Co(a);b.iter(function(se){var ge=ue(se);ge!=se.height&&un(se,ge)})}function wa(a,b,ue,se){var ge=a.display;if(!ue&&Kr(b).getAttribute("cm-not-content")=="true")return null;var Le,qe,st=ge.lineSpace.getBoundingClientRect();try{Le=b.clientX-st.left,qe=b.clientY-st.top}catch(_t){return null}var lt=gi(a,Le,qe),ht;if(se&&lt.xRel>0&&(ht=Wt(a.doc,lt.line).text).length==lt.ch){var Ct=Ne(ht,ht.length,a.options.tabSize)-ht.length;lt=Ot(lt.line,Math.max(0,Math.round((Le-Ki(a.display).left)/Qi(a.display))-Ct))}return lt}function Ta(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ue=a.display.view,se=0;se<ue.length;se++)if(b-=ue[se].size,b<0)return se}function Wi(a,b,ue,se){b==null&&(b=a.doc.first),ue==null&&(ue=a.doc.first+a.doc.size),se||(se=0);var ge=a.display;if(se&&ue<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>b)&&(ge.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ge.viewTo)$r&&Yt(a.doc,b)<ge.viewTo&&$i(a);else if(ue<=ge.viewFrom)$r&&tr(a.doc,ue+se)>ge.viewFrom?$i(a):(ge.viewFrom+=se,ge.viewTo+=se);else if(b<=ge.viewFrom&&ue>=ge.viewTo)$i(a);else if(b<=ge.viewFrom){var Le=so(a,ue,ue+se,1);Le?(ge.view=ge.view.slice(Le.index),ge.viewFrom=Le.lineN,ge.viewTo+=se):$i(a)}else if(ue>=ge.viewTo){var qe=so(a,b,b,-1);qe?(ge.view=ge.view.slice(0,qe.index),ge.viewTo=qe.lineN):$i(a)}else{var st=so(a,b,b,-1),lt=so(a,ue,ue+se,1);st&&lt?(ge.view=ge.view.slice(0,st.index).concat(Bn(a,st.lineN,lt.lineN)).concat(ge.view.slice(lt.index)),ge.viewTo+=se):$i(a)}var ht=ge.externalMeasured;ht&&(ue<ht.lineN?ht.lineN+=se:b<ht.lineN+ht.size&&(ge.externalMeasured=null))}function ca(a,b,ue){a.curOp.viewChanged=!0;var se=a.display,ge=a.display.externalMeasured;if(ge&&b>=ge.lineN&&b<ge.lineN+ge.size&&(se.externalMeasured=null),!(b<se.viewFrom||b>=se.viewTo)){var Le=se.view[Ta(a,b)];if(Le.node!=null){var qe=Le.changes||(Le.changes=[]);$e(qe,ue)==-1&&qe.push(ue)}}}function $i(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function so(a,b,ue,se){var ge=Ta(a,b),Le,qe=a.display.view;if(!$r||ue==a.doc.first+a.doc.size)return{index:ge,lineN:ue};for(var st=a.display.viewFrom,lt=0;lt<ge;lt++)st+=qe[lt].size;if(st!=b){if(se>0){if(ge==qe.length-1)return null;Le=st+qe[ge].size-b,ge++}else Le=st-b;b+=Le,ue+=Le}for(;Yt(a.doc,ue)!=ue;){if(ge==(se<0?0:qe.length-1))return null;ue+=se*qe[ge-(se<0?1:0)].size,ge+=se}return{index:ge,lineN:ue}}function Qo(a,b,ue){var se=a.display,ge=se.view;ge.length==0||b>=se.viewTo||ue<=se.viewFrom?(se.view=Bn(a,b,ue),se.viewFrom=b):(se.viewFrom>b?se.view=Bn(a,b,se.viewFrom).concat(se.view):se.viewFrom<b&&(se.view=se.view.slice(Ta(a,b))),se.viewFrom=b,se.viewTo<ue?se.view=se.view.concat(Bn(a,se.viewTo,ue)):se.viewTo>ue&&(se.view=se.view.slice(0,Ta(a,ue)))),se.viewTo=ue}function $o(a){for(var b=a.display.view,ue=0,se=0;se<b.length;se++){var ge=b[se];!ge.hidden&&(!ge.node||ge.changes)&&++ue}return ue}function Wa(a){a.display.input.showSelection(a.display.input.prepareSelection())}function qo(a,b){b===void 0&&(b=!0);for(var ue=a.doc,se={},ge=se.cursors=document.createDocumentFragment(),Le=se.selection=document.createDocumentFragment(),qe=0;qe<ue.sel.ranges.length;qe++)if(!(!b&&qe==ue.sel.primIndex)){var st=ue.sel.ranges[qe];if(!(st.from().line>=a.display.viewTo||st.to().line<a.display.viewFrom)){var lt=st.empty();(lt||a.options.showCursorWhenSelecting)&&ko(a,st.head,ge),lt||es(a,st,Le)}}return se}function ko(a,b,ue){var se=hi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ge=ue.appendChild(be("div","\xA0","CodeMirror-cursor"));if(ge.style.left=se.left+"px",ge.style.top=se.top+"px",ge.style.height=Math.max(0,se.bottom-se.top)*a.options.cursorHeight+"px",se.other){var Le=ue.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Le.style.display="",Le.style.left=se.other.left+"px",Le.style.top=se.other.top+"px",Le.style.height=(se.other.bottom-se.other.top)*.85+"px"}}function _a(a,b){return a.top-b.top||a.left-b.left}function es(a,b,ue){var se=a.display,ge=a.doc,Le=document.createDocumentFragment(),qe=Ki(a.display),st=qe.left,lt=Math.max(se.sizerWidth,sa(a)-se.sizer.offsetLeft)-qe.right,ht=ge.direction=="ltr";function Ct(Gr,mn,In,kn){mn<0&&(mn=0),mn=Math.round(mn),kn=Math.round(kn),Le.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+Gr+`px;
top: `+mn+"px; width: "+(In==null?lt-Gr:In)+`px;
height: `+(kn-mn)+"px"))}function _t(Gr,mn,In){var kn=Wt(ge,Gr),Yn=kn.text.length,ci,Bi;function xi(Di,ta){return Li(a,Ot(Gr,Di),"div",kn,ta)}function oa(Di,ta,Ui){var Ri=wi(a,kn,null,Di),ji=ta=="ltr"==(Ui=="after")?"left":"right",Si=Ui=="after"?Ri.begin:Ri.end-(/\s/.test(kn.text.charAt(Ri.end-1))?2:1);return xi(Si,ji)[ji]}var ea=St(kn,ge.direction);return it(ea,mn||0,In==null?Yn:In,function(Di,ta,Ui,Ri){var ji=Ui=="ltr",Si=xi(Di,ji?"left":"right"),ra=xi(ta-1,ji?"right":"left"),xo=mn==null&&Di==0,Xa=In==null&&ta==Yn,zi=Ri==0,Ea=!ea||Ri==ea.length-1;if(ra.top-Si.top<=3){var Fi=(ht?xo:Xa)&&zi,Fs=(ht?Xa:xo)&&Ea,Na=Fi?st:(ji?Si:ra).left,eo=Fs?lt:(ji?ra:Si).right;Ct(Na,Si.top,eo-Na,Si.bottom)}else{var to,Yi,Eo,Ls;ji?(to=ht&&xo&&zi?st:Si.left,Yi=ht?lt:oa(Di,Ui,"before"),Eo=ht?st:oa(ta,Ui,"after"),Ls=ht&&Xa&&Ea?lt:ra.right):(to=ht?oa(Di,Ui,"before"):st,Yi=!ht&&xo&&zi?lt:Si.right,Eo=!ht&&Xa&&Ea?st:ra.left,Ls=ht?oa(ta,Ui,"after"):lt),Ct(to,Si.top,Yi-to,Si.bottom),Si.bottom<ra.top&&Ct(st,Si.bottom,null,ra.top),Ct(Eo,ra.top,Ls-Eo,ra.bottom)}(!ci||_a(Si,ci)<0)&&(ci=Si),_a(ra,ci)<0&&(ci=ra),(!Bi||_a(Si,Bi)<0)&&(Bi=Si),_a(ra,Bi)<0&&(Bi=ra)}),{start:ci,end:Bi}}var Ut=b.from(),Ft=b.to();if(Ut.line==Ft.line)_t(Ut.line,Ut.ch,Ft.ch);else{var or=Wt(ge,Ut.line),xr=Wt(ge,Ft.line),Ir=Kt(or)==Kt(xr),zr=_t(Ut.line,Ut.ch,Ir?or.text.length+1:null).end,nn=_t(Ft.line,Ir?0:null,Ft.ch).start;Ir&&(zr.top<nn.top-2?(Ct(zr.right,zr.top,null,zr.bottom),Ct(st,nn.top,nn.left,nn.bottom)):Ct(zr.right,zr.top,nn.left-zr.right,zr.bottom)),zr.bottom<nn.top&&Ct(st,zr.bottom,null,nn.top)}ue.appendChild(Le)}function Ao(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ue=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Ua(a),b.cursorDiv.style.visibility=(ue=!ue)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function To(a){a.state.focused||(a.display.input.focus(),Do(a))}function _o(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ua(a))},100)}function Do(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(gt(a,"focus",a,b),a.state.focused=!0,De(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),z&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ao(a))}function Ua(a,b){a.state.delayingBlurEvent||(a.state.focused&&(gt(a,"blur",a,b),a.state.focused=!1,Re(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function lo(a){for(var b=a.display,ue=b.lineDiv.offsetTop,se=0;se<b.view.length;se++){var ge=b.view[se],Le=a.options.lineWrapping,qe=void 0,st=0;if(!ge.hidden){if(we&&x<8){var lt=ge.node.offsetTop+ge.node.offsetHeight;qe=lt-ue,ue=lt}else{var ht=ge.node.getBoundingClientRect();qe=ht.bottom-ht.top,!Le&&ge.text.firstChild&&(st=ge.text.firstChild.getBoundingClientRect().right-ht.left-1)}var Ct=ge.line.height-qe;if((Ct>.005||Ct<-.005)&&(un(ge.line,qe),jo(ge.line),ge.rest))for(var _t=0;_t<ge.rest.length;_t++)jo(ge.rest[_t]);if(st>a.display.sizerWidth){var Ut=Math.ceil(st/Qi(a.display));Ut>a.display.maxLineLength&&(a.display.maxLineLength=Ut,a.display.maxLine=ge.line,a.display.maxLineChanged=!0)}}}}function jo(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ue=a.widgets[b],se=ue.node.parentNode;se&&(ue.height=se.offsetHeight)}}function Da(a,b,ue){var se=ue&&ue.top!=null?Math.max(0,ue.top):a.scroller.scrollTop;se=Math.floor(se-Ln(a));var ge=ue&&ue.bottom!=null?ue.bottom:se+a.wrapper.clientHeight,Le=Tt(b,se),qe=Tt(b,ge);if(ue&&ue.ensure){var st=ue.ensure.from.line,lt=ue.ensure.to.line;st<Le?(Le=st,qe=Tt(b,Pr(Wt(b,st))+a.wrapper.clientHeight)):Math.min(lt,b.lastLine())>=qe&&(Le=Tt(b,Pr(Wt(b,lt))-a.wrapper.clientHeight),qe=lt)}return{from:Le,to:Math.max(qe,Le+1)}}function Oo(a,b){if(!dt(a,"scrollCursorIntoView")){var ue=a.display,se=ue.sizer.getBoundingClientRect(),ge=null;if(b.top+se.top<0?ge=!0:b.bottom+se.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!ne){var Le=be("div","\u200B",null,`position: absolute;
top: `+(b.top-ue.viewOffset-Ln(a.display))+`px;
height: `+(b.bottom-b.top+ni(a)+ue.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Le),Le.scrollIntoView(ge),a.display.lineSpace.removeChild(Le)}}}function Po(a,b,ue,se){se==null&&(se=0);var ge;!a.options.lineWrapping&&b==ue&&(b=b.ch?Ot(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ue=b.sticky=="before"?Ot(b.line,b.ch+1,"before"):b);for(var Le=0;Le<5;Le++){var qe=!1,st=hi(a,b),lt=!ue||ue==b?st:hi(a,ue);ge={left:Math.min(st.left,lt.left),top:Math.min(st.top,lt.top)-se,right:Math.max(st.left,lt.left),bottom:Math.max(st.bottom,lt.bottom)+se};var ht=uo(a,ge),Ct=a.doc.scrollTop,_t=a.doc.scrollLeft;if(ht.scrollTop!=null&&(Oa(a,ht.scrollTop),Math.abs(a.doc.scrollTop-Ct)>1&&(qe=!0)),ht.scrollLeft!=null&&(Pa(a,ht.scrollLeft),Math.abs(a.doc.scrollLeft-_t)>1&&(qe=!0)),!qe)break}return ge}function ts(a,b){var ue=uo(a,b);ue.scrollTop!=null&&Oa(a,ue.scrollTop),ue.scrollLeft!=null&&Pa(a,ue.scrollLeft)}function uo(a,b){var ue=a.display,se=Oi(a.display);b.top<0&&(b.top=0);var ge=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ue.scroller.scrollTop,Le=Vi(a),qe={};b.bottom-b.top>Le&&(b.bottom=b.top+Le);var st=a.doc.height+bi(ue),lt=b.top<se,ht=b.bottom>st-se;if(b.top<ge)qe.scrollTop=lt?0:b.top;else if(b.bottom>ge+Le){var Ct=Math.min(b.top,(ht?st:b.bottom)-Le);Ct!=ge&&(qe.scrollTop=Ct)}var _t=a.options.fixedGutter?0:ue.gutters.offsetWidth,Ut=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ue.scroller.scrollLeft-_t,Ft=sa(a)-ue.gutters.offsetWidth,or=b.right-b.left>Ft;return or&&(b.right=b.left+Ft),b.left<10?qe.scrollLeft=0:b.left<Ut?qe.scrollLeft=Math.max(0,b.left+_t-(or?0:10)):b.right>Ft+Ut-3&&(qe.scrollLeft=b.right+(or?0:10)-Ft),qe}function co(a,b){b!=null&&(Za(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function ja(a){Za(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function qa(a,b,ue){(b!=null||ue!=null)&&Za(a),b!=null&&(a.curOp.scrollLeft=b),ue!=null&&(a.curOp.scrollTop=ue)}function rs(a,b){Za(a),a.curOp.scrollToPos=b}function Za(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var ue=Kn(a,b.from),se=Kn(a,b.to);Ro(a,ue,se,b.margin)}}function Ro(a,b,ue,se){var ge=uo(a,{left:Math.min(b.left,ue.left),top:Math.min(b.top,ue.top)-se,right:Math.max(b.right,ue.right),bottom:Math.max(b.bottom,ue.bottom)+se});qa(a,ge.scrollLeft,ge.scrollTop)}function Oa(a,b){Math.abs(a.doc.scrollTop-b)<2||(Be||bs(a,{top:b}),Io(a,b,!0),Be&&bs(a),Mo(a,100))}function Io(a,b,ue){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ue)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Pa(a,b,ue,se){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ue?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!se)&&(a.doc.scrollLeft=b,Us(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function zn(a){var b=a.display,ue=b.gutters.offsetWidth,se=Math.round(a.doc.height+bi(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?ue:0,docHeight:se,scrollHeight:se+ni(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ue}}var Gn=function(a,b,ue){this.cm=ue;var se=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ge=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");se.tabIndex=ge.tabIndex=-1,a(se),a(ge),Et(se,"scroll",function(){se.clientHeight&&b(se.scrollTop,"vertical")}),Et(ge,"scroll",function(){ge.clientWidth&&b(ge.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,we&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gn.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ue=a.scrollHeight>a.clientHeight+1,se=a.nativeBarWidth;if(ue){this.vert.style.display="block",this.vert.style.bottom=b?se+"px":"0";var ge=a.viewHeight-(b?se:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ue?se+"px":"0",this.horiz.style.left=a.barLeft+"px";var Le=a.viewWidth-a.barLeft-(ue?se:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Le)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(se==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ue?se:0,bottom:b?se:0}},Gn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gn.prototype.zeroWidthHack=function(){var a=he&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new We,this.disableVert=new We},Gn.prototype.enableZeroWidthBar=function(a,b,ue){a.style.pointerEvents="auto";function se(){var ge=a.getBoundingClientRect(),Le=ue=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);Le!=a?a.style.pointerEvents="none":b.set(1e3,se)}b.set(1e3,se)},Gn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ci=function(){};Ci.prototype.update=function(){return{bottom:0,right:0}},Ci.prototype.setScrollLeft=function(){},Ci.prototype.setScrollTop=function(){},Ci.prototype.clear=function(){};function Ii(a,b){b||(b=zn(a));var ue=a.display.barWidth,se=a.display.barHeight;Pi(a,b);for(var ge=0;ge<4&&ue!=a.display.barWidth||se!=a.display.barHeight;ge++)ue!=a.display.barWidth&&a.options.lineWrapping&&lo(a),Pi(a,zn(a)),ue=a.display.barWidth,se=a.display.barHeight}function Pi(a,b){var ue=a.display,se=ue.scrollbars.update(b);ue.sizer.style.paddingRight=(ue.barWidth=se.right)+"px",ue.sizer.style.paddingBottom=(ue.barHeight=se.bottom)+"px",ue.heightForcer.style.borderBottom=se.bottom+"px solid transparent",se.right&&se.bottom?(ue.scrollbarFiller.style.display="block",ue.scrollbarFiller.style.height=se.bottom+"px",ue.scrollbarFiller.style.width=se.right+"px"):ue.scrollbarFiller.style.display="",se.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ue.gutterFiller.style.display="block",ue.gutterFiller.style.height=se.bottom+"px",ue.gutterFiller.style.width=b.gutterWidth+"px"):ue.gutterFiller.style.display=""}var Ra={native:Gn,null:Ci};function xa(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Re(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ra[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Et(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ue){ue=="horizontal"?Pa(a,b):Oa(a,b)},a),a.display.scrollbars.addClass&&De(a.display.wrapper,a.display.scrollbars.addClass)}var Ia=0;function fa(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:++Ia},Ei(a.curOp)}function ga(a){var b=a.curOp;b&&Gi(b,function(ue){for(var se=0;se<ue.ops.length;se++)ue.ops[se].cm.curOp=null;Vl(ue)})}function Vl(a){for(var b=a.ops,ue=0;ue<b.length;ue++)Xl(b[ue]);for(var se=0;se<b.length;se++)Yl(b[se]);for(var ge=0;ge<b.length;ge++)Jl(b[ge]);for(var Le=0;Le<b.length;Le++)Ql(b[Le]);for(var qe=0;qe<b.length;qe++)$l(b[qe])}function Xl(a){var b=a.cm,ue=b.display;eu(b),a.updateMaxLine&&Br(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ue.viewFrom||a.scrollToPos.to.line>=ue.viewTo)||ue.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new ns(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&ys(a.cm,a.update)}function Jl(a){var b=a.cm,ue=b.display;a.updatedDisplay&&lo(b),a.barMeasure=zn(b),ue.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Ya(b,ue.maxLine,ue.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ue.scroller.clientWidth,ue.sizer.offsetLeft+a.adjustWidthTo+ni(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ue.sizer.offsetLeft+a.adjustWidthTo-sa(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ue.input.prepareSelection())}function Ql(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Pa(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ue=a.focus&&a.focus==Ae();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ue),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Ii(b,a.barMeasure),a.updatedDisplay&&xs(b,a.barMeasure),a.selectionChanged&&Ao(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ue&&To(a.cm)}function $l(a){var b=a.cm,ue=b.display,se=b.doc;if(a.updatedDisplay&&Ws(b,a.update),ue.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ue.wheelStartX=ue.wheelStartY=null),a.scrollTop!=null&&Io(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Pa(b,a.scrollLeft,!0,!0),a.scrollToPos){var ge=Po(b,jt(se,a.scrollToPos.from),jt(se,a.scrollToPos.to),a.scrollToPos.margin);Oo(b,ge)}var Le=a.maybeHiddenMarkers,qe=a.maybeUnhiddenMarkers;if(Le)for(var st=0;st<Le.length;++st)Le[st].lines.length||gt(Le[st],"hide");if(qe)for(var lt=0;lt<qe.length;++lt)qe[lt].lines.length&&gt(qe[lt],"unhide");ue.wrapper.offsetHeight&&(se.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&gt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function aa(a,b){if(a.curOp)return b();fa(a);try{return b()}finally{ga(a)}}function Mi(a,b){return function(){if(a.curOp)return b.apply(a,arguments);fa(a);try{return b.apply(a,arguments)}finally{ga(a)}}}function Xi(a){return function(){if(this.curOp)return a.apply(this,arguments);fa(this);try{return a.apply(this,arguments)}finally{ga(this)}}}function Ni(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);fa(b);try{return a.apply(this,arguments)}finally{ga(b)}}}function Mo(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,Ve(ql,a))}function ql(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ue=+new Date+a.options.workTime,se=Zn(a,b.highlightFrontier),ge=[];b.iter(se.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Le){if(se.line>=a.display.viewFrom){var qe=Le.styles,st=Le.text.length>a.options.maxHighlightLength?sn(b.mode,se.state):null,lt=tn(a,Le,se,!0);st&&(se.state=st),Le.styles=lt.styles;var ht=Le.styleClasses,Ct=lt.classes;Ct?Le.styleClasses=Ct:ht&&(Le.styleClasses=null);for(var _t=!qe||qe.length!=Le.styles.length||ht!=Ct&&(!ht||!Ct||ht.bgClass!=Ct.bgClass||ht.textClass!=Ct.textClass),Ut=0;!_t&&Ut<qe.length;++Ut)_t=qe[Ut]!=Le.styles[Ut];_t&&ge.push(se.line),Le.stateAfter=se.save(),se.nextLine()}else Le.text.length<=a.options.maxHighlightLength&&On(a,Le.text,se),Le.stateAfter=se.line%5==0?se.save():null,se.nextLine();if(+new Date>ue)return Mo(a,a.options.workDelay),!0}),b.highlightFrontier=se.line,b.modeFrontier=Math.max(b.modeFrontier,se.line),ge.length&&aa(a,function(){for(var Le=0;Le<ge.length;Le++)ca(a,ge[Le],"text")})}}var ns=function(a,b,ue){var se=a.display;this.viewport=b,this.visible=Da(se,a.doc,b),this.editorIsHidden=!se.wrapper.offsetWidth,this.wrapperHeight=se.wrapper.clientHeight,this.wrapperWidth=se.wrapper.clientWidth,this.oldDisplayWidth=sa(a),this.force=ue,this.dims=ua(a),this.events=[]};ns.prototype.signal=function(a,b){bt(a,b)&&this.events.push(arguments)},ns.prototype.finish=function(){for(var a=0;a<this.events.length;a++)gt.apply(null,this.events[a])};function eu(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=ni(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=ni(a)+"px",b.scrollbarsClipped=!0)}function tu(a){if(a.hasFocus())return null;var b=Ae();if(!b||!Me(a.display.lineDiv,b))return null;var ue={activeElt:b};if(window.getSelection){var se=window.getSelection();se.anchorNode&&se.extend&&Me(a.display.lineDiv,se.anchorNode)&&(ue.anchorNode=se.anchorNode,ue.anchorOffset=se.anchorOffset,ue.focusNode=se.focusNode,ue.focusOffset=se.focusOffset)}return ue}function ru(a){if(!(!a||!a.activeElt||a.activeElt==Ae())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Me(document.body,a.anchorNode)&&Me(document.body,a.focusNode))){var b=window.getSelection(),ue=document.createRange();ue.setEnd(a.anchorNode,a.anchorOffset),ue.collapse(!1),b.removeAllRanges(),b.addRange(ue),b.extend(a.focusNode,a.focusOffset)}}function ys(a,b){var ue=a.display,se=a.doc;if(b.editorIsHidden)return $i(a),!1;if(!b.force&&b.visible.from>=ue.viewFrom&&b.visible.to<=ue.viewTo&&(ue.updateLineNumbers==null||ue.updateLineNumbers>=ue.viewTo)&&ue.renderedView==ue.view&&$o(a)==0)return!1;Zs(a)&&($i(a),b.dims=ua(a));var ge=se.first+se.size,Le=Math.max(b.visible.from-a.options.viewportMargin,se.first),qe=Math.min(ge,b.visible.to+a.options.viewportMargin);ue.viewFrom<Le&&Le-ue.viewFrom<20&&(Le=Math.max(se.first,ue.viewFrom)),ue.viewTo>qe&&ue.viewTo-qe<20&&(qe=Math.min(ge,ue.viewTo)),$r&&(Le=Yt(a.doc,Le),qe=tr(a.doc,qe));var st=Le!=ue.viewFrom||qe!=ue.viewTo||ue.lastWrapHeight!=b.wrapperHeight||ue.lastWrapWidth!=b.wrapperWidth;Qo(a,Le,qe),ue.viewOffset=Pr(Wt(a.doc,ue.viewFrom)),a.display.mover.style.top=ue.viewOffset+"px";var lt=$o(a);if(!st&&lt==0&&!b.force&&ue.renderedView==ue.view&&(ue.updateLineNumbers==null||ue.updateLineNumbers>=ue.viewTo))return!1;var ht=tu(a);return lt>4&&(ue.lineDiv.style.display="none"),nu(a,ue.updateLineNumbers,b.dims),lt>4&&(ue.lineDiv.style.display=""),ue.renderedView=ue.view,ru(ht),_e(ue.cursorDiv),_e(ue.selectionDiv),ue.gutters.style.height=ue.sizer.style.minHeight=0,st&&(ue.lastWrapHeight=b.wrapperHeight,ue.lastWrapWidth=b.wrapperWidth,Mo(a,400)),ue.updateLineNumbers=null,!0}function Ws(a,b){for(var ue=b.viewport,se=!0;;se=!1){if(!se||!a.options.lineWrapping||b.oldDisplayWidth==sa(a)){if(ue&&ue.top!=null&&(ue={top:Math.min(a.doc.height+bi(a.display)-Vi(a),ue.top)}),b.visible=Da(a.display,a.doc,ue),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else se&&(b.visible=Da(a.display,a.doc,ue));if(!ys(a,b))break;lo(a);var ge=zn(a);Wa(a),Ii(a,ge),xs(a,ge),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function bs(a,b){var ue=new ns(a,b);if(ys(a,ue)){lo(a),Ws(a,ue);var se=zn(a);Wa(a),Ii(a,se),xs(a,se),ue.finish()}}function nu(a,b,ue){var se=a.display,ge=a.options.lineNumbers,Le=se.lineDiv,qe=Le.firstChild;function st(or){var xr=or.nextSibling;return z&&he&&a.display.currentWheelTarget==or?or.style.display="none":or.parentNode.removeChild(or),xr}for(var lt=se.view,ht=se.viewFrom,Ct=0;Ct<lt.length;Ct++){var _t=lt[Ct];if(!_t.hidden)if(!_t.node||_t.node.parentNode!=Le){var Ut=jn(a,_t,ht,ue);Le.insertBefore(Ut,qe)}else{for(;qe!=_t.node;)qe=st(qe);var Ft=ge&&b!=null&&b<=ht&&_t.lineNumber;_t.changes&&($e(_t.changes,"gutter")>-1&&(Ft=!1),ri(a,_t,ht,ue)),Ft&&(_e(_t.lineNumber),_t.lineNumber.appendChild(document.createTextNode($t(a.options,ht)))),qe=_t.node.nextSibling}ht+=_t.size}for(;qe;)qe=st(qe)}function ws(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function xs(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+ni(a)+"px"}function Us(a){var b=a.display,ue=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var se=$a(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ge=b.gutters.offsetWidth,Le=se+"px",qe=0;qe<ue.length;qe++)if(!ue[qe].hidden){a.options.fixedGutter&&(ue[qe].gutter&&(ue[qe].gutter.style.left=Le),ue[qe].gutterBackground&&(ue[qe].gutterBackground.style.left=Le));var st=ue[qe].alignable;if(st)for(var lt=0;lt<st.length;lt++)st[lt].style.left=Le}a.options.fixedGutter&&(b.gutters.style.left=se+ge+"px")}}function Zs(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ue=$t(a.options,b.first+b.size-1),se=a.display;if(ue.length!=se.lineNumChars){var ge=se.measure.appendChild(be("div",[be("div",ue)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Le=ge.firstChild.offsetWidth,qe=ge.offsetWidth-Le;return se.lineGutter.style.width="",se.lineNumInnerWidth=Math.max(Le,se.lineGutter.offsetWidth-qe)+1,se.lineNumWidth=se.lineNumInnerWidth+qe,se.lineNumChars=se.lineNumInnerWidth?ue.length:-1,se.lineGutter.style.width=se.lineNumWidth+"px",ws(a.display),!0}return!1}function Es(a,b){for(var ue=[],se=!1,ge=0;ge<a.length;ge++){var Le=a[ge],qe=null;if(typeof Le!="string"&&(qe=Le.style,Le=Le.className),Le=="CodeMirror-linenumbers")if(b)se=!0;else continue;ue.push({className:Le,style:qe})}return b&&!se&&ue.push({className:"CodeMirror-linenumbers",style:null}),ue}function Hs(a){var b=a.gutters,ue=a.gutterSpecs;_e(b),a.lineGutter=null;for(var se=0;se<ue.length;++se){var ge=ue[se],Le=ge.className,qe=ge.style,st=b.appendChild(be("div",null,"CodeMirror-gutter "+Le));qe&&(st.style.cssText=qe),Le=="CodeMirror-linenumbers"&&(a.lineGutter=st,st.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ue.length?"":"none",ws(a)}function No(a){Hs(a.display),Wi(a),Us(a)}function iu(a,b,ue,se){var ge=this;this.input=ue,ge.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=Se("div",null,"CodeMirror-code"),ge.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=be("div",null,"CodeMirror-cursors"),ge.measure=be("div",null,"CodeMirror-measure"),ge.lineMeasure=be("div",null,"CodeMirror-measure"),ge.lineSpace=Se("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var Le=Se("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=be("div",[Le],null,"position: relative"),ge.sizer=be("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=be("div",null,null,"position: absolute; height: "+rt+"px; width: 1px;"),ge.gutters=be("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=be("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=be("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),we&&x<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!z&&!(Be&&le)&&(ge.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ge.wrapper):a(ge.wrapper)),ge.viewFrom=ge.viewTo=b.first,ge.reportedViewFrom=ge.reportedViewTo=b.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=Es(se.gutters,se.lineNumbers),Hs(ge),ue.init(ge)}var is=0,da=null;we?da=-.53:Be?da=15:ae?da=-.7:de&&(da=-1/3);function zs(a){var b=a.wheelDeltaX,ue=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ue==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ue=a.detail:ue==null&&(ue=a.wheelDelta),{x:b,y:ue}}function au(a){var b=zs(a);return b.x*=da,b.y*=da,b}function Gs(a,b){var ue=zs(b),se=ue.x,ge=ue.y,Le=a.display,qe=Le.scroller,st=qe.scrollWidth>qe.clientWidth,lt=qe.scrollHeight>qe.clientHeight;if(se&&st||ge&&lt){if(ge&&he&&z){e:for(var ht=b.target,Ct=Le.view;ht!=qe;ht=ht.parentNode)for(var _t=0;_t<Ct.length;_t++)if(Ct[_t].node==ht){a.display.currentWheelTarget=ht;break e}}if(se&&!Be&&!ee&&da!=null){ge&&lt&&Oa(a,Math.max(0,qe.scrollTop+ge*da)),Pa(a,Math.max(0,qe.scrollLeft+se*da)),(!ge||ge&&lt)&&Zt(b),Le.wheelStartX=null;return}if(ge&&da!=null){var Ut=ge*da,Ft=a.doc.scrollTop,or=Ft+Le.wrapper.clientHeight;Ut<0?Ft=Math.max(0,Ft+Ut-50):or=Math.min(a.doc.height,or+Ut+50),bs(a,{top:Ft,bottom:or})}is<20&&(Le.wheelStartX==null?(Le.wheelStartX=qe.scrollLeft,Le.wheelStartY=qe.scrollTop,Le.wheelDX=se,Le.wheelDY=ge,setTimeout(function(){if(Le.wheelStartX!=null){var xr=qe.scrollLeft-Le.wheelStartX,Ir=qe.scrollTop-Le.wheelStartY,zr=Ir&&Le.wheelDY&&Ir/Le.wheelDY||xr&&Le.wheelDX&&xr/Le.wheelDX;Le.wheelStartX=Le.wheelStartY=null,zr&&(da=(da*is+zr)/(is+1),++is)}},200)):(Le.wheelDX+=se,Le.wheelDY+=ge))}}var ha=function(a,b){this.ranges=a,this.primIndex=b};ha.prototype.primary=function(){return this.ranges[this.primIndex]},ha.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var ue=this.ranges[b],se=a.ranges[b];if(!pr(ue.anchor,se.anchor)||!pr(ue.head,se.head))return!1}return!0},ha.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new ii(gr(this.ranges[b].anchor),gr(this.ranges[b].head));return new ha(a,this.primIndex)},ha.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ha.prototype.contains=function(a,b){b||(b=a);for(var ue=0;ue<this.ranges.length;ue++){var se=this.ranges[ue];if(nr(b,se.from())>=0&&nr(a,se.to())<=0)return ue}return-1};var ii=function(a,b){this.anchor=a,this.head=b};ii.prototype.from=function(){return hr(this.anchor,this.head)},ii.prototype.to=function(){return Dr(this.anchor,this.head)},ii.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ya(a,b,ue){var se=a&&a.options.selectionsMayTouch,ge=b[ue];b.sort(function(Ut,Ft){return nr(Ut.from(),Ft.from())}),ue=$e(b,ge);for(var Le=1;Le<b.length;Le++){var qe=b[Le],st=b[Le-1],lt=nr(st.to(),qe.from());if(se&&!qe.empty()?lt>0:lt>=0){var ht=hr(st.from(),qe.from()),Ct=Dr(st.to(),qe.to()),_t=st.empty()?qe.from()==qe.head:st.from()==st.head;Le<=ue&&--ue,b.splice(--Le,2,new ii(_t?Ct:ht,_t?ht:Ct))}}return new ha(b,ue)}function Ha(a,b){return new ha([new ii(a,b||a)],0)}function za(a){return a.text?Ot(a.from.line+a.text.length-1,ot(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ks(a,b){if(nr(a,b.from)<0)return a;if(nr(a,b.to)<=0)return za(b);var ue=a.line+b.text.length-(b.to.line-b.from.line)-1,se=a.ch;return a.line==b.to.line&&(se+=za(b).ch-b.to.ch),Ot(ue,se)}function Cs(a,b){for(var ue=[],se=0;se<a.sel.ranges.length;se++){var ge=a.sel.ranges[se];ue.push(new ii(Ks(ge.anchor,b),Ks(ge.head,b)))}return ya(a.cm,ue,a.sel.primIndex)}function Vs(a,b,ue){return a.line==b.line?Ot(ue.line,a.ch-b.ch+ue.ch):Ot(ue.line+(a.line-b.line),a.ch)}function ou(a,b,ue){for(var se=[],ge=Ot(a.first,0),Le=ge,qe=0;qe<b.length;qe++){var st=b[qe],lt=Vs(st.from,ge,Le),ht=Vs(za(st),ge,Le);if(ge=st.to,Le=ht,ue=="around"){var Ct=a.sel.ranges[qe],_t=nr(Ct.head,Ct.anchor)<0;se[qe]=new ii(_t?ht:lt,_t?lt:ht)}else se[qe]=new ii(lt,lt)}return new ha(se,a.sel.primIndex)}function Ss(a){a.doc.mode=jr(a.options,a.doc.modeOption),Bo(a)}function Bo(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Mo(a,100),a.state.modeGen++,a.curOp&&Wi(a)}function Xs(a,b){return b.from.ch==0&&b.to.ch==0&&ot(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ks(a,b,ue,se){function ge(nn){return ue?ue[nn]:null}function Le(nn,Gr,mn){gn(nn,Gr,mn,se),qn(nn,"change",nn,b)}function qe(nn,Gr){for(var mn=[],In=nn;In<Gr;++In)mn.push(new hn(ht[In],ge(In),se));return mn}var st=b.from,lt=b.to,ht=b.text,Ct=Wt(a,st.line),_t=Wt(a,lt.line),Ut=ot(ht),Ft=ge(ht.length-1),or=lt.line-st.line;if(b.full)a.insert(0,qe(0,ht.length)),a.remove(ht.length,a.size-ht.length);else if(Xs(a,b)){var xr=qe(0,ht.length-1);Le(_t,_t.text,Ft),or&&a.remove(st.line,or),xr.length&&a.insert(st.line,xr)}else if(Ct==_t)if(ht.length==1)Le(Ct,Ct.text.slice(0,st.ch)+Ut+Ct.text.slice(lt.ch),Ft);else{var Ir=qe(1,ht.length-1);Ir.push(new hn(Ut+Ct.text.slice(lt.ch),Ft,se)),Le(Ct,Ct.text.slice(0,st.ch)+ht[0],ge(0)),a.insert(st.line+1,Ir)}else if(ht.length==1)Le(Ct,Ct.text.slice(0,st.ch)+ht[0]+_t.text.slice(lt.ch),ge(0)),a.remove(st.line+1,or);else{Le(Ct,Ct.text.slice(0,st.ch)+ht[0],ge(0)),Le(_t,Ut+_t.text.slice(lt.ch),Ft);var zr=qe(1,ht.length-1);or>1&&a.remove(st.line+1,or-1),a.insert(st.line+1,zr)}qn(a,"change",a,b)}function Ga(a,b,ue){function se(ge,Le,qe){if(ge.linked)for(var st=0;st<ge.linked.length;++st){var lt=ge.linked[st];if(lt.doc!=Le){var ht=qe&&lt.sharedHist;ue&&!ht||(b(lt.doc,ht),se(lt.doc,ge,ht))}}}se(a,null,!0)}function Ys(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,So(a),Ss(a),Js(a),a.options.lineWrapping||Br(a),a.options.mode=b.modeOption,Wi(a)}function Js(a){(a.doc.direction=="rtl"?De:Re)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){aa(a,function(){Js(a),Wi(a)})}function as(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 As(a,b){var ue={from:gr(b.from),to:za(b),text:mr(a,b.from,b.to)};return el(a,ue,b.from.line,b.to.line+1),Ga(a,function(se){return el(se,ue,b.from.line,b.to.line+1)},!0),ue}function Qs(a){for(;a.length;){var b=ot(a);if(b.ranges)a.pop();else break}}function lu(a,b){if(b)return Qs(a.done),ot(a.done);if(a.done.length&&!ot(a.done).ranges)return ot(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ot(a.done)}function $s(a,b,ue,se){var ge=a.history;ge.undone.length=0;var Le=+new Date,qe,st;if((ge.lastOp==se||ge.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ge.lastModTime>Le-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(qe=lu(ge,ge.lastOp==se)))st=ot(qe.changes),nr(b.from,b.to)==0&&nr(b.from,st.to)==0?st.to=za(b):qe.changes.push(As(a,b));else{var lt=ot(ge.done);for((!lt||!lt.ranges)&&os(a.sel,ge.done),qe={changes:[As(a,b)],generation:ge.generation},ge.done.push(qe);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ue),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=Le,ge.lastOp=ge.lastSelOp=se,ge.lastOrigin=ge.lastSelOrigin=b.origin,st||gt(a,"historyAdded")}function uu(a,b,ue,se){var ge=b.charAt(0);return ge=="*"||ge=="+"&&ue.ranges.length==se.ranges.length&&ue.somethingSelected()==se.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,ue,se){var ge=a.history,Le=se&&se.origin;ue==ge.lastSelOp||Le&&ge.lastSelOrigin==Le&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==Le||uu(a,Le,ot(ge.done),b))?ge.done[ge.done.length-1]=b:os(b,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=Le,ge.lastSelOp=ue,se&&se.clearRedo!==!1&&Qs(ge.undone)}function os(a,b){var ue=ot(b);ue&&ue.ranges&&ue.equals(a)||b.push(a)}function el(a,b,ue,se){var ge=b["spans_"+a.id],Le=0;a.iter(Math.max(a.first,ue),Math.min(a.first+a.size,se),function(qe){qe.markedSpans&&((ge||(ge=b["spans_"+a.id]={}))[Le]=qe.markedSpans),++Le})}function fu(a){if(!a)return null;for(var b,ue=0;ue<a.length;++ue)a[ue].marker.explicitlyCleared?b||(b=a.slice(0,ue)):b&&b.push(a[ue]);return b?b.length?b:null:a}function du(a,b){var ue=b["spans_"+a.id];if(!ue)return null;for(var se=[],ge=0;ge<b.text.length;++ge)se.push(fu(ue[ge]));return se}function tl(a,b){var ue=du(a,b),se=Un(a,b);if(!ue)return se;if(!se)return ue;for(var ge=0;ge<ue.length;++ge){var Le=ue[ge],qe=se[ge];if(Le&&qe)e:for(var st=0;st<qe.length;++st){for(var lt=qe[st],ht=0;ht<Le.length;++ht)if(Le[ht].marker==lt.marker)continue e;Le.push(lt)}else qe&&(ue[ge]=qe)}return ue}function fo(a,b,ue){for(var se=[],ge=0;ge<a.length;++ge){var Le=a[ge];if(Le.ranges){se.push(ue?ha.prototype.deepCopy.call(Le):Le);continue}var qe=Le.changes,st=[];se.push({changes:st});for(var lt=0;lt<qe.length;++lt){var ht=qe[lt],Ct=void 0;if(st.push({from:ht.from,to:ht.to,text:ht.text}),b)for(var _t in ht)(Ct=_t.match(/^spans_(\d+)$/))&&$e(b,Number(Ct[1]))>-1&&(ot(st)[_t]=ht[_t],delete ht[_t])}}return se}function Ts(a,b,ue,se){if(se){var ge=a.anchor;if(ue){var Le=nr(b,ge)<0;Le!=nr(ue,ge)<0?(ge=b,b=ue):Le!=nr(b,ue)<0&&(b=ue)}return new ii(ge,b)}else return new ii(ue||b,b)}function ss(a,b,ue,se,ge){ge==null&&(ge=a.cm&&(a.cm.display.shift||a.extend)),Hi(a,new ha([Ts(a.sel.primary(),b,ue,ge)],0),se)}function rl(a,b,ue){for(var se=[],ge=a.cm&&(a.cm.display.shift||a.extend),Le=0;Le<a.sel.ranges.length;Le++)se[Le]=Ts(a.sel.ranges[Le],b[Le],null,ge);var qe=ya(a.cm,se,a.sel.primIndex);Hi(a,qe,ue)}function _s(a,b,ue,se){var ge=a.sel.ranges.slice(0);ge[b]=ue,Hi(a,ya(a.cm,ge,a.sel.primIndex),se)}function nl(a,b,ue,se){Hi(a,Ha(b,ue),se)}function hu(a,b,ue){var se={ranges:b.ranges,update:function(ge){this.ranges=[];for(var Le=0;Le<ge.length;Le++)this.ranges[Le]=new ii(jt(a,ge[Le].anchor),jt(a,ge[Le].head))},origin:ue&&ue.origin};return gt(a,"beforeSelectionChange",a,se),a.cm&&gt(a.cm,"beforeSelectionChange",a.cm,se),se.ranges!=b.ranges?ya(a.cm,se.ranges,se.ranges.length-1):b}function il(a,b,ue){var se=a.history.done,ge=ot(se);ge&&ge.ranges?(se[se.length-1]=b,ls(a,b,ue)):Hi(a,b,ue)}function Hi(a,b,ue){ls(a,b,ue),cu(a,a.sel,a.cm?a.cm.curOp.id:NaN,ue)}function ls(a,b,ue){(bt(a,"beforeSelectionChange")||a.cm&&bt(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,ue));var se=ue&&ue.bias||(nr(b.primary().head,a.sel.primary().head)<0?-1:1);al(a,sl(a,b,se,!0)),!(ue&&ue.scroll===!1)&&a.cm&&ja(a.cm)}function al(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,xt(a.cm)),qn(a,"cursorActivity",a))}function ol(a){al(a,sl(a,a.sel,null,!1))}function sl(a,b,ue,se){for(var ge,Le=0;Le<b.ranges.length;Le++){var qe=b.ranges[Le],st=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Le],lt=us(a,qe.anchor,st&&st.anchor,ue,se),ht=us(a,qe.head,st&&st.head,ue,se);(ge||lt!=qe.anchor||ht!=qe.head)&&(ge||(ge=b.ranges.slice(0,Le)),ge[Le]=new ii(lt,ht))}return ge?ya(a.cm,ge,b.primIndex):b}function ho(a,b,ue,se,ge){var Le=Wt(a,b.line);if(Le.markedSpans)for(var qe=0;qe<Le.markedSpans.length;++qe){var st=Le.markedSpans[qe],lt=st.marker,ht="selectLeft"in lt?!lt.selectLeft:lt.inclusiveLeft,Ct="selectRight"in lt?!lt.selectRight:lt.inclusiveRight;if((st.from==null||(ht?st.from<=b.ch:st.from<b.ch))&&(st.to==null||(Ct?st.to>=b.ch:st.to>b.ch))){if(ge&&(gt(lt,"beforeCursorEnter"),lt.explicitlyCleared))if(Le.markedSpans){--qe;continue}else break;if(!lt.atomic)continue;if(ue){var _t=lt.find(se<0?1:-1),Ut=void 0;if((se<0?Ct:ht)&&(_t=ll(a,_t,-se,_t&&_t.line==b.line?Le:null)),_t&&_t.line==b.line&&(Ut=nr(_t,ue))&&(se<0?Ut<0:Ut>0))return ho(a,_t,b,se,ge)}var Ft=lt.find(se<0?-1:1);return(se<0?ht:Ct)&&(Ft=ll(a,Ft,se,Ft.line==b.line?Le:null)),Ft?ho(a,Ft,b,se,ge):null}}return b}function us(a,b,ue,se,ge){var Le=se||1,qe=ho(a,b,ue,Le,ge)||!ge&&ho(a,b,ue,Le,!0)||ho(a,b,ue,-Le,ge)||!ge&&ho(a,b,ue,-Le,!0);return qe||(a.cantEdit=!0,Ot(a.first,0))}function ll(a,b,ue,se){return ue<0&&b.ch==0?b.line>a.first?jt(a,Ot(b.line-1)):null:ue>0&&b.ch==(se||Wt(a,b.line)).text.length?b.line<a.first+a.size-1?Ot(b.line+1,0):null:new Ot(b.line,b.ch+ue)}function ul(a){a.setSelection(Ot(a.firstLine(),0),Ot(a.lastLine()),Xe)}function cl(a,b,ue){var se={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return se.canceled=!0}};return ue&&(se.update=function(ge,Le,qe,st){ge&&(se.from=jt(a,ge)),Le&&(se.to=jt(a,Le)),qe&&(se.text=qe),st!==void 0&&(se.origin=st)}),gt(a,"beforeChange",a,se),a.cm&&gt(a.cm,"beforeChange",a.cm,se),se.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:se.from,to:se.to,text:se.text,origin:se.origin}}function po(a,b,ue){if(a.cm){if(!a.cm.curOp)return Mi(a.cm,po)(a,b,ue);if(a.cm.state.suppressEdits)return}if(!((bt(a,"beforeChange")||a.cm&&bt(a.cm,"beforeChange"))&&(b=cl(a,b,!0),!b))){var se=en&&!ue&&Mt(a,b.from,b.to);if(se)for(var ge=se.length-1;ge>=0;--ge)fl(a,{from:se[ge].from,to:se[ge].to,text:ge?[""]:b.text,origin:b.origin});else fl(a,b)}}function fl(a,b){if(!(b.text.length==1&&b.text[0]==""&&nr(b.from,b.to)==0)){var ue=Cs(a,b);$s(a,b,ue,a.cm?a.cm.curOp.id:NaN),Fo(a,b,ue,Un(a,b));var se=[];Ga(a,function(ge,Le){!Le&&$e(se,ge.history)==-1&&(ml(ge.history,b),se.push(ge.history)),Fo(ge,b,null,Un(ge,b))})}}function cs(a,b,ue){var se=a.cm&&a.cm.state.suppressEdits;if(!(se&&!ue)){for(var ge=a.history,Le,qe=a.sel,st=b=="undo"?ge.done:ge.undone,lt=b=="undo"?ge.undone:ge.done,ht=0;ht<st.length&&(Le=st[ht],!(ue?Le.ranges&&!Le.equals(a.sel):!Le.ranges));ht++);if(ht!=st.length){for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(Le=st.pop(),Le.ranges){if(os(Le,lt),ue&&!Le.equals(a.sel)){Hi(a,Le,{clearRedo:!1});return}qe=Le}else if(se){st.push(Le);return}else break;var Ct=[];os(qe,lt),lt.push({changes:Ct,generation:ge.generation}),ge.generation=Le.generation||++ge.maxGeneration;for(var _t=bt(a,"beforeChange")||a.cm&&bt(a.cm,"beforeChange"),Ut=function(xr){var Ir=Le.changes[xr];if(Ir.origin=b,_t&&!cl(a,Ir,!1))return st.length=0,{};Ct.push(As(a,Ir));var zr=xr?Cs(a,Ir):ot(st);Fo(a,Ir,zr,tl(a,Ir)),!xr&&a.cm&&a.cm.scrollIntoView({from:Ir.from,to:za(Ir)});var nn=[];Ga(a,function(Gr,mn){!mn&&$e(nn,Gr.history)==-1&&(ml(Gr.history,Ir),nn.push(Gr.history)),Fo(Gr,Ir,null,tl(Gr,Ir))})},Ft=Le.changes.length-1;Ft>=0;--Ft){var or=Ut(Ft);if(or)return or.v}}}}function dl(a,b){if(b!=0&&(a.first+=b,a.sel=new ha(Je(a.sel.ranges,function(ge){return new ii(Ot(ge.anchor.line+b,ge.anchor.ch),Ot(ge.head.line+b,ge.head.ch))}),a.sel.primIndex),a.cm)){Wi(a.cm,a.first,a.first-b,b);for(var ue=a.cm.display,se=ue.viewFrom;se<ue.viewTo;se++)ca(a.cm,se,"gutter")}}function Fo(a,b,ue,se){if(a.cm&&!a.cm.curOp)return Mi(a.cm,Fo)(a,b,ue,se);if(b.to.line<a.first){dl(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ge=b.text.length-1-(a.first-b.from.line);dl(a,ge),b={from:Ot(a.first,0),to:Ot(b.to.line+ge,b.to.ch),text:[ot(b.text)],origin:b.origin}}var Le=a.lastLine();b.to.line>Le&&(b={from:b.from,to:Ot(Le,Wt(a,Le).text.length),text:[b.text[0]],origin:b.origin}),b.removed=mr(a,b.from,b.to),ue||(ue=Cs(a,b)),a.cm?pu(a.cm,b,se):ks(a,b,se),ls(a,ue,Xe),a.cantEdit&&us(a,Ot(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,ue){var se=a.doc,ge=a.display,Le=b.from,qe=b.to,st=!1,lt=Le.line;a.options.lineWrapping||(lt=kt(Kt(Wt(se,Le.line))),se.iter(lt,qe.line+1,function(Ft){if(Ft==ge.maxLine)return st=!0,!0})),se.sel.contains(b.from,b.to)>-1&&xt(a),ks(se,b,ue,Co(a)),a.options.lineWrapping||(se.iter(lt,Le.line+b.text.length,function(Ft){var or=qr(Ft);or>ge.maxLineLength&&(ge.maxLine=Ft,ge.maxLineLength=or,ge.maxLineChanged=!0,st=!1)}),st&&(a.curOp.updateMaxLine=!0)),Fr(se,Le.line),Mo(a,400);var ht=b.text.length-(qe.line-Le.line)-1;b.full?Wi(a):Le.line==qe.line&&b.text.length==1&&!Xs(a.doc,b)?ca(a,Le.line,"text"):Wi(a,Le.line,qe.line+1,ht);var Ct=bt(a,"changes"),_t=bt(a,"change");if(_t||Ct){var Ut={from:Le,to:qe,text:b.text,removed:b.removed,origin:b.origin};_t&&qn(a,"change",a,Ut),Ct&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ut)}a.display.selForContextMenu=null}function mo(a,b,ue,se,ge){var Le;se||(se=ue),nr(se,ue)<0&&(Le=[se,ue],ue=Le[0],se=Le[1]),typeof b=="string"&&(b=a.splitLines(b)),po(a,{from:ue,to:se,text:b,origin:ge})}function hl(a,b,ue,se){ue<a.line?a.line+=se:b<a.line&&(a.line=b,a.ch=0)}function pl(a,b,ue,se){for(var ge=0;ge<a.length;++ge){var Le=a[ge],qe=!0;if(Le.ranges){Le.copied||(Le=a[ge]=Le.deepCopy(),Le.copied=!0);for(var st=0;st<Le.ranges.length;st++)hl(Le.ranges[st].anchor,b,ue,se),hl(Le.ranges[st].head,b,ue,se);continue}for(var lt=0;lt<Le.changes.length;++lt){var ht=Le.changes[lt];if(ue<ht.from.line)ht.from=Ot(ht.from.line+se,ht.from.ch),ht.to=Ot(ht.to.line+se,ht.to.ch);else if(b<=ht.to.line){qe=!1;break}}qe||(a.splice(0,ge+1),ge=0)}}function ml(a,b){var ue=b.from.line,se=b.to.line,ge=b.text.length-(se-ue)-1;pl(a.done,ue,se,ge),pl(a.undone,ue,se,ge)}function Lo(a,b,ue,se){var ge=b,Le=b;return typeof b=="number"?Le=Wt(a,Ar(a,b)):ge=kt(b),ge==null?null:(se(Le,ge)&&a.cm&&ca(a.cm,ge,ue),Le)}function Wo(a){this.lines=a,this.parent=null;for(var b=0,ue=0;ue<a.length;++ue)a[ue].parent=this,b+=a[ue].height;this.height=b}Wo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ue=a,se=a+b;ue<se;++ue){var ge=this.lines[ue];this.height-=ge.height,Tn(ge),qn(ge,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ue){this.height+=ue,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var se=0;se<b.length;++se)b[se].parent=this},iterN:function(a,b,ue){for(var se=a+b;a<se;++a)if(ue(this.lines[a]))return!0}};function Uo(a){this.children=a;for(var b=0,ue=0,se=0;se<a.length;++se){var ge=a[se];b+=ge.chunkSize(),ue+=ge.height,ge.parent=this}this.size=b,this.height=ue,this.parent=null}Uo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ue=0;ue<this.children.length;++ue){var se=this.children[ue],ge=se.chunkSize();if(a<ge){var Le=Math.min(b,ge-a),qe=se.height;if(se.removeInner(a,Le),this.height-=qe-se.height,ge==Le&&(this.children.splice(ue--,1),se.parent=null),(b-=Le)==0)break;a=0}else a-=ge}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Wo))){var st=[];this.collapse(st),this.children=[new Wo(st)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,ue){this.size+=b.length,this.height+=ue;for(var se=0;se<this.children.length;++se){var ge=this.children[se],Le=ge.chunkSize();if(a<=Le){if(ge.insertInner(a,b,ue),ge.lines&&ge.lines.length>50){for(var qe=ge.lines.length%25+25,st=qe;st<ge.lines.length;){var lt=new Wo(ge.lines.slice(st,st+=25));ge.height-=lt.height,this.children.splice(++se,0,lt),lt.parent=this}ge.lines=ge.lines.slice(0,qe),this.maybeSpill()}break}a-=Le}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ue=new Uo(b);if(a.parent){a.size-=ue.size,a.height-=ue.height;var ge=$e(a.parent.children,a);a.parent.children.splice(ge+1,0,ue)}else{var se=new Uo(a.children);se.parent=a,a.children=[se,ue],a=se}ue.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ue){for(var se=0;se<this.children.length;++se){var ge=this.children[se],Le=ge.chunkSize();if(a<Le){var qe=Math.min(b,Le-a);if(ge.iterN(a,qe,ue))return!0;if((b-=qe)==0)break;a=0}else a-=Le}}};var Zo=function(a,b,ue){if(ue)for(var se in ue)ue.hasOwnProperty(se)&&(this[se]=ue[se]);this.doc=a,this.node=b};Zo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ue=this.line,se=kt(ue);if(!(se==null||!b)){for(var ge=0;ge<b.length;++ge)b[ge]==this&&b.splice(ge--,1);b.length||(ue.widgets=null);var Le=di(this);un(ue,Math.max(0,ue.height-Le)),a&&(aa(a,function(){vl(a,ue,-Le),ca(a,se,"widget")}),qn(a,"lineWidgetCleared",a,this,se))}},Zo.prototype.changed=function(){var a=this,b=this.height,ue=this.doc.cm,se=this.line;this.height=null;var ge=di(this)-b;ge&&(ar(this.doc,se)||un(se,se.height+ge),ue&&aa(ue,function(){ue.curOp.forceUpdate=!0,vl(ue,se,ge),qn(ue,"lineWidgetChanged",ue,a,kt(se))}))},Pt(Zo);function vl(a,b,ue){Pr(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&co(a,ue)}function mu(a,b,ue,se){var ge=new Zo(a,ue,se),Le=a.cm;return Le&&ge.noHScroll&&(Le.display.alignWidgets=!0),Lo(a,b,"widget",function(qe){var st=qe.widgets||(qe.widgets=[]);if(ge.insertAt==null?st.push(ge):st.splice(Math.min(st.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=qe,Le&&!ar(a,qe)){var lt=Pr(qe)<a.scrollTop;un(qe,qe.height+di(ge)),lt&&co(Le,ge.height),Le.curOp.forceUpdate=!0}return!0}),Le&&qn(Le,"lineWidgetAdded",Le,ge,typeof b=="number"?b:kt(b)),ge}var gl=0,Ka=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++gl};Ka.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&fa(a),bt(this,"clear")){var ue=this.find();ue&&qn(this,"clear",ue.from,ue.to)}for(var se=null,ge=null,Le=0;Le<this.lines.length;++Le){var qe=this.lines[Le],st=Mr(qe.markedSpans,this);a&&!this.collapsed?ca(a,kt(qe),"text"):a&&(st.to!=null&&(ge=kt(qe)),st.from!=null&&(se=kt(qe))),qe.markedSpans=Zr(qe.markedSpans,st),st.from==null&&this.collapsed&&!ar(this.doc,qe)&&a&&un(qe,Oi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var lt=0;lt<this.lines.length;++lt){var ht=Kt(this.lines[lt]),Ct=qr(ht);Ct>a.display.maxLineLength&&(a.display.maxLine=ht,a.display.maxLineLength=Ct,a.display.maxLineChanged=!0)}se!=null&&a&&this.collapsed&&Wi(a,se,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ol(a.doc)),a&&qn(a,"markerCleared",a,this,se,ge),b&&ga(a),this.parent&&this.parent.clear()}},Ka.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ue,se,ge=0;ge<this.lines.length;++ge){var Le=this.lines[ge],qe=Mr(Le.markedSpans,this);if(qe.from!=null&&(ue=Ot(b?Le:kt(Le),qe.from),a==-1))return ue;if(qe.to!=null&&(se=Ot(b?Le:kt(Le),qe.to),a==1))return se}return ue&&{from:ue,to:se}},Ka.prototype.changed=function(){var a=this,b=this.find(-1,!0),ue=this,se=this.doc.cm;!b||!se||aa(se,function(){var ge=b.line,Le=kt(b.line),qe=pa(se,Le);if(qe&&(Ja(qe),se.curOp.selectionChanged=se.curOp.forceUpdate=!0),se.curOp.updateMaxLine=!0,!ar(ue.doc,ge)&&ue.height!=null){var st=ue.height;ue.height=null;var lt=di(ue)-st;lt&&un(ge,ge.height+lt)}qn(se,"markerChanged",se,a)})},Ka.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||$e(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Ka.prototype.detachLine=function(a){if(this.lines.splice($e(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Pt(Ka);function vo(a,b,ue,se,ge){if(se&&se.shared)return vu(a,b,ue,se,ge);if(a.cm&&!a.cm.curOp)return Mi(a.cm,vo)(a,b,ue,se,ge);var Le=new Ka(a,ge),qe=nr(b,ue);if(se&&nt(se,Le,!1),qe>0||qe==0&&Le.clearWhenEmpty!==!1)return Le;if(Le.replacedWith&&(Le.collapsed=!0,Le.widgetNode=Se("span",[Le.replacedWith],"CodeMirror-widget"),se.handleMouseEvents||Le.widgetNode.setAttribute("cm-ignore-events","true"),se.insertLeft&&(Le.widgetNode.insertLeft=!0)),Le.collapsed){if(Vt(a,b.line,b,ue,Le)||b.line!=ue.line&&Vt(a,ue.line,b,ue,Le))throw new Error("Inserting collapsed marker partially overlapping an existing one");kr()}Le.addToHistory&&$s(a,{from:b,to:ue,origin:"markText"},a.sel,NaN);var st=b.line,lt=a.cm,ht;if(a.iter(st,ue.line+1,function(_t){lt&&Le.collapsed&&!lt.options.lineWrapping&&Kt(_t)==lt.display.maxLine&&(ht=!0),Le.collapsed&&st!=b.line&&un(_t,0),xn(_t,new Cr(Le,st==b.line?b.ch:null,st==ue.line?ue.ch:null)),++st}),Le.collapsed&&a.iter(b.line,ue.line+1,function(_t){ar(a,_t)&&un(_t,0)}),Le.clearOnEnter&&Et(Le,"beforeCursorEnter",function(){return Le.clear()}),Le.readOnly&&(bn(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Le.collapsed&&(Le.id=++gl,Le.atomic=!0),lt){if(ht&&(lt.curOp.updateMaxLine=!0),Le.collapsed)Wi(lt,b.line,ue.line+1);else if(Le.className||Le.startStyle||Le.endStyle||Le.css||Le.attributes||Le.title)for(var Ct=b.line;Ct<=ue.line;Ct++)ca(lt,Ct,"text");Le.atomic&&ol(lt.doc),qn(lt,"markerAdded",lt,Le)}return Le}var Ho=function(a,b){this.markers=a,this.primary=b;for(var ue=0;ue<a.length;++ue)a[ue].parent=this};Ho.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();qn(this,"clear")}},Ho.prototype.find=function(a,b){return this.primary.find(a,b)},Pt(Ho);function vu(a,b,ue,se,ge){se=nt(se),se.shared=!1;var Le=[vo(a,b,ue,se,ge)],qe=Le[0],st=se.widgetNode;return Ga(a,function(lt){st&&(se.widgetNode=st.cloneNode(!0)),Le.push(vo(lt,jt(lt,b),jt(lt,ue),se,ge));for(var ht=0;ht<lt.linked.length;++ht)if(lt.linked[ht].isParent)return;qe=ot(Le)}),new Ho(Le,qe)}function yl(a){return a.findMarks(Ot(a.first,0),a.clipPos(Ot(a.lastLine())),function(b){return b.parent})}function gu(a,b){for(var ue=0;ue<b.length;ue++){var se=b[ue],ge=se.find(),Le=a.clipPos(ge.from),qe=a.clipPos(ge.to);if(nr(Le,qe)){var st=vo(a,Le,qe,se.primary,se.primary.type);se.markers.push(st),st.parent=se}}}function yu(a){for(var b=function(se){var ge=a[se],Le=[ge.primary.doc];Ga(ge.primary.doc,function(lt){return Le.push(lt)});for(var qe=0;qe<ge.markers.length;qe++){var st=ge.markers[qe];$e(Le,st.doc)==-1&&(st.parent=null,ge.markers.splice(qe--,1))}},ue=0;ue<a.length;ue++)b(ue)}var bu=0,qi=function(a,b,ue,se,ge){if(!(this instanceof qi))return new qi(a,b,ue,se,ge);ue==null&&(ue=0),Uo.call(this,[new Wo([new hn("",null)])]),this.first=ue,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ue;var Le=Ot(ue,0);this.sel=Ha(Le),this.history=new as(null),this.id=++bu,this.modeOption=b,this.lineSep=se,this.direction=ge=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ks(this,{from:Le,to:Le,text:a}),Hi(this,Ha(Le),Xe)};qi.prototype=te(Uo.prototype,{constructor:qi,iter:function(a,b,ue){ue?this.iterN(a-this.first,b-a,ue):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ue=0,se=0;se<b.length;++se)ue+=b[se].height;this.insertInner(a-this.first,b,ue)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Ur(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ni(function(a){var b=Ot(this.first,0),ue=this.first+this.size-1;po(this,{from:b,to:Ot(ue,Wt(this,ue).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),Hi(this,Ha(b),Xe)}),replaceRange:function(a,b,ue,se){b=jt(this,b),ue=ue?jt(this,ue):b,mo(this,a,b,ue,se)},getRange:function(a,b,ue){var se=mr(this,jt(this,a),jt(this,b));return ue===!1?se:se.join(ue||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(lr(this,a))return Wt(this,a)},getLineNumber:function(a){return kt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Wt(this,a)),Kt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return jt(this,a)},getCursor:function(a){var b=this.sel.primary(),ue;return a==null||a=="head"?ue=b.head:a=="anchor"?ue=b.anchor:a=="end"||a=="to"||a===!1?ue=b.to():ue=b.from(),ue},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ni(function(a,b,ue){nl(this,jt(this,typeof a=="number"?Ot(a,b||0):a),null,ue)}),setSelection:Ni(function(a,b,ue){nl(this,jt(this,a),jt(this,b||a),ue)}),extendSelection:Ni(function(a,b,ue){ss(this,jt(this,a),b&&jt(this,b),ue)}),extendSelections:Ni(function(a,b){rl(this,ur(this,a),b)}),extendSelectionsBy:Ni(function(a,b){var ue=Je(this.sel.ranges,a);rl(this,ur(this,ue),b)}),setSelections:Ni(function(a,b,ue){if(a.length){for(var se=[],ge=0;ge<a.length;ge++)se[ge]=new ii(jt(this,a[ge].anchor),jt(this,a[ge].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Hi(this,ya(this.cm,se,b),ue)}}),addSelection:Ni(function(a,b,ue){var se=this.sel.ranges.slice(0);se.push(new ii(jt(this,a),jt(this,b||a))),Hi(this,ya(this.cm,se,se.length-1),ue)}),getSelection:function(a){for(var b=this.sel.ranges,ue,se=0;se<b.length;se++){var ge=mr(this,b[se].from(),b[se].to());ue=ue?ue.concat(ge):ge}return a===!1?ue:ue.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ue=this.sel.ranges,se=0;se<ue.length;se++){var ge=mr(this,ue[se].from(),ue[se].to());a!==!1&&(ge=ge.join(a||this.lineSeparator())),b[se]=ge}return b},replaceSelection:function(a,b,ue){for(var se=[],ge=0;ge<this.sel.ranges.length;ge++)se[ge]=a;this.replaceSelections(se,b,ue||"+input")},replaceSelections:Ni(function(a,b,ue){for(var se=[],ge=this.sel,Le=0;Le<ge.ranges.length;Le++){var qe=ge.ranges[Le];se[Le]={from:qe.from(),to:qe.to(),text:this.splitLines(a[Le]),origin:ue}}for(var st=b&&b!="end"&&ou(this,se,b),lt=se.length-1;lt>=0;lt--)po(this,se[lt]);st?il(this,st):this.cm&&ja(this.cm)}),undo:Ni(function(){cs(this,"undo")}),redo:Ni(function(){cs(this,"redo")}),undoSelection:Ni(function(){cs(this,"undo",!0)}),redoSelection:Ni(function(){cs(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,ue=0,se=0;se<a.done.length;se++)a.done[se].ranges||++b;for(var ge=0;ge<a.undone.length;ge++)a.undone[ge].ranges||++ue;return{undo:b,redo:ue}},clearHistory:function(){var a=this;this.history=new as(this.history.maxGeneration),Ga(this,function(b){return b.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:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(a){var b=this.history=new as(this.history.maxGeneration);b.done=fo(a.done.slice(0),null,!0),b.undone=fo(a.undone.slice(0),null,!0)},setGutterMarker:Ni(function(a,b,ue){return Lo(this,a,"gutter",function(se){var ge=se.gutterMarkers||(se.gutterMarkers={});return ge[b]=ue,!ue&&xe(ge)&&(se.gutterMarkers=null),!0})}),clearGutter:Ni(function(a){var b=this;this.iter(function(ue){ue.gutterMarkers&&ue.gutterMarkers[a]&&Lo(b,ue,"gutter",function(){return ue.gutterMarkers[a]=null,xe(ue.gutterMarkers)&&(ue.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!lr(this,a)||(b=a,a=Wt(this,a),!a))return null}else if(b=kt(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Ni(function(a,b,ue){return Lo(this,a,b=="gutter"?"gutter":"class",function(se){var ge=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!se[ge])se[ge]=ue;else{if(Te(ue).test(se[ge]))return!1;se[ge]+=" "+ue}return!0})}),removeLineClass:Ni(function(a,b,ue){return Lo(this,a,b=="gutter"?"gutter":"class",function(se){var ge=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Le=se[ge];if(Le)if(ue==null)se[ge]=null;else{var qe=Le.match(Te(ue));if(!qe)return!1;var st=qe.index+qe[0].length;se[ge]=Le.slice(0,qe.index)+(!qe.index||st==Le.length?"":" ")+Le.slice(st)||null}else return!1;return!0})}),addLineWidget:Ni(function(a,b,ue){return mu(this,a,b,ue)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ue){return vo(this,jt(this,a),jt(this,b),ue,ue&&ue.type||"range")},setBookmark:function(a,b){var ue={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=jt(this,a),vo(this,a,a,ue,"bookmark")},findMarksAt:function(a){a=jt(this,a);var b=[],ue=Wt(this,a.line).markedSpans;if(ue)for(var se=0;se<ue.length;++se){var ge=ue[se];(ge.from==null||ge.from<=a.ch)&&(ge.to==null||ge.to>=a.ch)&&b.push(ge.marker.parent||ge.marker)}return b},findMarks:function(a,b,ue){a=jt(this,a),b=jt(this,b);var se=[],ge=a.line;return this.iter(a.line,b.line+1,function(Le){var qe=Le.markedSpans;if(qe)for(var st=0;st<qe.length;st++){var lt=qe[st];!(lt.to!=null&&ge==a.line&&a.ch>=lt.to||lt.from==null&&ge!=a.line||lt.from!=null&&ge==b.line&&lt.from>=b.ch)&&(!ue||ue(lt.marker))&&se.push(lt.marker.parent||lt.marker)}++ge}),se},getAllMarks:function(){var a=[];return this.iter(function(b){var ue=b.markedSpans;if(ue)for(var se=0;se<ue.length;++se)ue[se].from!=null&&a.push(ue[se].marker)}),a},posFromIndex:function(a){var b,ue=this.first,se=this.lineSeparator().length;return this.iter(function(ge){var Le=ge.text.length+se;if(Le>a)return b=a,!0;a-=Le,++ue}),jt(this,Ot(ue,b))},indexFromPos:function(a){a=jt(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ue=this.lineSeparator().length;return this.iter(this.first,a.line,function(se){b+=se.text.length+ue}),b},copy:function(a){var b=new qi(Ur(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,ue=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ue&&(ue=a.to);var se=new qi(Ur(this,b,ue),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(se.history=this.history),(this.linked||(this.linked=[])).push({doc:se,sharedHist:a.sharedHist}),se.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(se,yl(this)),se},unlinkDoc:function(a){if(a instanceof yi&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ue=this.linked[b];if(ue.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),yu(yl(this));break}}if(a.history==this.history){var se=[a.id];Ga(a,function(ge){return se.push(ge.id)},!0),a.history=new as(null),a.history.done=fo(this.history.done,se),a.history.undone=fo(this.history.undone,se)}},iterLinkedDocs:function(a){Ga(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):vn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ni(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&su(this.cm))})}),qi.prototype.eachLine=qi.prototype.iter;var bl=0;function wu(a){var b=this;if(wl(b),!(dt(b,a)||fi(b.display,a))){Zt(a),we&&(bl=+new Date);var ue=wa(b,a,!0),se=a.dataTransfer.files;if(!(!ue||b.isReadOnly()))if(se&&se.length&&window.FileReader&&window.File)for(var ge=se.length,Le=Array(ge),qe=0,st=function(){++qe==ge&&Mi(b,function(){ue=jt(b.doc,ue);var Ft={from:ue,to:ue,text:b.doc.splitLines(Le.filter(function(or){return or!=null}).join(b.doc.lineSeparator())),origin:"paste"};po(b.doc,Ft),il(b.doc,Ha(jt(b.doc,ue),jt(b.doc,za(Ft))))})()},lt=function(Ft,or){if(b.options.allowDropFileTypes&&$e(b.options.allowDropFileTypes,Ft.type)==-1){st();return}var xr=new FileReader;xr.onerror=function(){return st()},xr.onload=function(){var Ir=xr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ir)){st();return}Le[or]=Ir,st()},xr.readAsText(Ft)},ht=0;ht<se.length;ht++)lt(se[ht],ht);else{if(b.state.draggingText&&b.doc.sel.contains(ue)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Ct=a.dataTransfer.getData("Text");if(Ct){var _t;if(b.state.draggingText&&!b.state.draggingText.copy&&(_t=b.listSelections()),ls(b.doc,Ha(ue,ue)),_t)for(var Ut=0;Ut<_t.length;++Ut)mo(b.doc,"",_t[Ut].anchor,_t[Ut].head,"drag");b.replaceSelection(Ct,"around","paste"),b.display.input.focus()}}catch(Ft){}}}}function xu(a,b){if(we&&(!a.state.draggingText||+new Date-bl<100)){vr(b);return}if(!(dt(a,b)||fi(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!de)){var ue=be("img",null,null,"position: fixed; left: 0; top: 0;");ue.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(ue.width=ue.height=1,a.display.wrapper.appendChild(ue),ue._top=ue.offsetTop),b.dataTransfer.setDragImage(ue,0,0),ee&&ue.parentNode.removeChild(ue)}}function Eu(a,b){var ue=wa(a,b);if(ue){var se=document.createDocumentFragment();ko(a,ue,se),a.display.dragCursor||(a.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ye(a.display.dragCursor,se)}}function wl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function xl(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),ue=[],se=0;se<b.length;se++){var ge=b[se].CodeMirror;ge&&ue.push(ge)}ue.length&&ue[0].operation(function(){for(var Le=0;Le<ue.length;Le++)a(ue[Le])})}}var El=!1;function Cu(){El||(Su(),El=!0)}function Su(){var a;Et(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,xl(ku)},100))}),Et(window,"blur",function(){return xl(Ua)})}function ku(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var Va={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"},zo=0;zo<10;zo++)Va[zo+48]=Va[zo+96]=String(zo);for(var fs=65;fs<=90;fs++)Va[fs]=String.fromCharCode(fs);for(var Go=1;Go<=12;Go++)Va[Go+111]=Va[Go+63235]="F"+Go;var Ma={};Ma.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"},Ma.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"},Ma.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"},Ma.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"]},Ma.default=he?Ma.macDefault:Ma.pcDefault;function Au(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ue,se,ge,Le,qe=0;qe<b.length-1;qe++){var st=b[qe];if(/^(cmd|meta|m)$/i.test(st))Le=!0;else if(/^a(lt)?$/i.test(st))ue=!0;else if(/^(c|ctrl|control)$/i.test(st))se=!0;else if(/^s(hift)?$/i.test(st))ge=!0;else throw new Error("Unrecognized modifier name: "+st)}return ue&&(a="Alt-"+a),se&&(a="Ctrl-"+a),Le&&(a="Cmd-"+a),ge&&(a="Shift-"+a),a}function Tu(a){var b={};for(var ue in a)if(a.hasOwnProperty(ue)){var se=a[ue];if(/^(name|fallthrough|(de|at)tach)$/.test(ue))continue;if(se=="..."){delete a[ue];continue}for(var ge=Je(ue.split(" "),Au),Le=0;Le<ge.length;Le++){var qe=void 0,st=void 0;Le==ge.length-1?(st=ge.join(" "),qe=se):(st=ge.slice(0,Le+1).join(" "),qe="...");var lt=b[st];if(!lt)b[st]=qe;else if(lt!=qe)throw new Error("Inconsistent bindings for "+st)}delete a[ue]}for(var ht in b)a[ht]=b[ht];return a}function go(a,b,ue,se){b=ds(b);var ge=b.call?b.call(a,se):b[a];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&ue(ge))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return go(a,b.fallthrough,ue,se);for(var Le=0;Le<b.fallthrough.length;Le++){var qe=go(a,b.fallthrough[Le],ue,se);if(qe)return qe}}}function Cl(a){var b=typeof a=="string"?a:Va[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Sl(a,b,ue){var se=a;return b.altKey&&se!="Alt"&&(a="Alt-"+a),(me?b.metaKey:b.ctrlKey)&&se!="Ctrl"&&(a="Ctrl-"+a),(me?b.ctrlKey:b.metaKey)&&se!="Mod"&&(a="Cmd-"+a),!ue&&b.shiftKey&&se!="Shift"&&(a="Shift-"+a),a}function kl(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var ue=Va[a.keyCode];return ue==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ue=a.code),Sl(ue,a,b))}function ds(a){return typeof a=="string"?Ma[a]:a}function yo(a,b){for(var ue=a.doc.sel.ranges,se=[],ge=0;ge<ue.length;ge++){for(var Le=b(ue[ge]);se.length&&nr(Le.from,ot(se).to)<=0;){var qe=se.pop();if(nr(qe.from,Le.from)<0){Le.from=qe.from;break}}se.push(Le)}aa(a,function(){for(var st=se.length-1;st>=0;st--)mo(a.doc,"",se[st].from,se[st].to,"+delete");ja(a)})}function Ds(a,b,ue){var se=Ze(a.text,b+ue,ue);return se<0||se>a.text.length?null:se}function js(a,b,ue){var se=Ds(a,b.ch,ue);return se==null?null:new Ot(b.line,se,ue<0?"after":"before")}function Os(a,b,ue,se,ge){if(a){b.doc.direction=="rtl"&&(ge=-ge);var Le=St(ue,b.doc.direction);if(Le){var qe=ge<0?ot(Le):Le[0],st=ge<0==(qe.level==1),lt=st?"after":"before",ht;if(qe.level>0||b.doc.direction=="rtl"){var Ct=ma(b,ue);ht=ge<0?ue.text.length-1:0;var _t=na(b,Ct,ht).top;ht=tt(function(Ut){return na(b,Ct,Ut).top==_t},ge<0==(qe.level==1)?qe.from:qe.to-1,ht),lt=="before"&&(ht=Ds(ue,ht,1))}else ht=ge<0?qe.to:qe.from;return new Ot(se,ht,lt)}}return new Ot(se,ge<0?ue.text.length:0,ge<0?"before":"after")}function _u(a,b,ue,se){var ge=St(b,a.doc.direction);if(!ge)return js(b,ue,se);ue.ch>=b.text.length?(ue.ch=b.text.length,ue.sticky="before"):ue.ch<=0&&(ue.ch=0,ue.sticky="after");var Le=ut(ge,ue.ch,ue.sticky),qe=ge[Le];if(a.doc.direction=="ltr"&&qe.level%2==0&&(se>0?qe.to>ue.ch:qe.from<ue.ch))return js(b,ue,se);var st=function(zr,nn){return Ds(b,zr instanceof Ot?zr.ch:zr,nn)},lt,ht=function(zr){return a.options.lineWrapping?(lt=lt||ma(a,b),wi(a,b,lt,zr)):{begin:0,end:b.text.length}},Ct=ht(ue.sticky=="before"?st(ue,-1):ue.ch);if(a.doc.direction=="rtl"||qe.level==1){var _t=qe.level==1==se<0,Ut=st(ue,_t?1:-1);if(Ut!=null&&(_t?Ut<=qe.to&&Ut<=Ct.end:Ut>=qe.from&&Ut>=Ct.begin)){var Ft=_t?"before":"after";return new Ot(ue.line,Ut,Ft)}}var or=function(zr,nn,Gr){for(var mn=function(ci,Bi){return Bi?new Ot(ue.line,st(ci,1),"before"):new Ot(ue.line,ci,"after")};zr>=0&&zr<ge.length;zr+=nn){var In=ge[zr],kn=nn>0==(In.level!=1),Yn=kn?Gr.begin:st(Gr.end,-1);if(In.from<=Yn&&Yn<In.to||(Yn=kn?In.from:st(In.to,-1),Gr.begin<=Yn&&Yn<Gr.end))return mn(Yn,kn)}},xr=or(Le+se,se,Ct);if(xr)return xr;var Ir=se>0?Ct.end:st(Ct.begin,-1);return Ir!=null&&!(se>0&&Ir==b.text.length)&&(xr=or(se>0?0:ge.length-1,se,ht(Ir)),xr)?xr:null}var Ko={selectAll:ul,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Xe)},killLine:function(a){return yo(a,function(b){if(b.empty()){var ue=Wt(a.doc,b.head.line).text.length;return b.head.ch==ue&&b.head.line<a.lastLine()?{from:b.head,to:Ot(b.head.line+1,0)}:{from:b.head,to:Ot(b.head.line,ue)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return yo(a,function(b){return{from:Ot(b.from().line,0),to:jt(a.doc,Ot(b.to().line+1,0))}})},delLineLeft:function(a){return yo(a,function(b){return{from:Ot(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return yo(a,function(b){var ue=a.charCoords(b.head,"div").top+5,se=a.coordsChar({left:0,top:ue},"div");return{from:se,to:b.from()}})},delWrappedLineRight:function(a){return yo(a,function(b){var ue=a.charCoords(b.head,"div").top+5,se=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ue},"div");return{from:b.from(),to:se}})},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(Ot(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ot(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Al(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Tl(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return Du(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var ue=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ue},"div")},Ge)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ue=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ue},"div")},Ge)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ue=a.cursorCoords(b.head,"div").top+5,se=a.coordsChar({left:0,top:ue},"div");return se.ch<a.getLine(se.line).search(/\S/)?Tl(a,b.head):se},Ge)},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 b=[],ue=a.listSelections(),se=a.options.tabSize,ge=0;ge<ue.length;ge++){var Le=ue[ge].from(),qe=Ne(a.getLine(Le.line),Le.ch,se);b.push(ft(se-qe%se))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return aa(a,function(){for(var b=a.listSelections(),ue=[],se=0;se<b.length;se++)if(b[se].empty()){var ge=b[se].head,Le=Wt(a.doc,ge.line).text;if(Le){if(ge.ch==Le.length&&(ge=new Ot(ge.line,ge.ch-1)),ge.ch>0)ge=new Ot(ge.line,ge.ch+1),a.replaceRange(Le.charAt(ge.ch-1)+Le.charAt(ge.ch-2),Ot(ge.line,ge.ch-2),ge,"+transpose");else if(ge.line>a.doc.first){var qe=Wt(a.doc,ge.line-1).text;qe&&(ge=new Ot(ge.line,1),a.replaceRange(Le.charAt(0)+a.doc.lineSeparator()+qe.charAt(qe.length-1),Ot(ge.line-1,qe.length-1),ge,"+transpose"))}}ue.push(new ii(ge,ge))}a.setSelections(ue)})},newlineAndIndent:function(a){return aa(a,function(){for(var b=a.listSelections(),ue=b.length-1;ue>=0;ue--)a.replaceRange(a.doc.lineSeparator(),b[ue].anchor,b[ue].head,"+input");b=a.listSelections();for(var se=0;se<b.length;se++)a.indentLine(b[se].from().line,null,!0);ja(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Al(a,b){var ue=Wt(a.doc,b),se=Kt(ue);return se!=ue&&(b=kt(se)),Os(!0,a,se,b,1)}function Du(a,b){var ue=Wt(a.doc,b),se=Qt(ue);return se!=ue&&(b=kt(se)),Os(!0,a,ue,b,-1)}function Tl(a,b){var ue=Al(a,b.line),se=Wt(a.doc,ue.line),ge=St(se,a.doc.direction);if(!ge||ge[0].level==0){var Le=Math.max(ue.ch,se.text.search(/\S/)),qe=b.line==ue.line&&b.ch<=Le&&b.ch;return Ot(ue.line,qe?0:Le,ue.sticky)}return ue}function hs(a,b,ue){if(typeof b=="string"&&(b=Ko[b],!b))return!1;a.display.input.ensurePolled();var se=a.display.shift,ge=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue&&(a.display.shift=!1),ge=b(a)!=et}finally{a.display.shift=se,a.state.suppressEdits=!1}return ge}function ju(a,b,ue){for(var se=0;se<a.state.keyMaps.length;se++){var ge=go(b,a.state.keyMaps[se],ue,a);if(ge)return ge}return a.options.extraKeys&&go(b,a.options.extraKeys,ue,a)||go(b,a.options.keyMap,ue,a)}var Ou=new We;function Vo(a,b,ue,se){var ge=a.state.keySeq;if(ge){if(Cl(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:Ou.set(50,function(){a.state.keySeq==ge&&(a.state.keySeq=null,a.display.input.reset())}),_l(a,ge+" "+b,ue,se))return!0}return _l(a,b,ue,se)}function _l(a,b,ue,se){var ge=ju(a,b,se);return ge=="multi"&&(a.state.keySeq=b),ge=="handled"&&qn(a,"keyHandled",a,b,ue),(ge=="handled"||ge=="multi")&&(Zt(ue),Ao(a)),!!ge}function Dl(a,b){var ue=kl(b,!0);return ue?b.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+ue,b,function(se){return hs(a,se,!0)})||Vo(a,ue,b,function(se){if(typeof se=="string"?/^go[A-Z]/.test(se):se.motion)return hs(a,se)}):Vo(a,ue,b,function(se){return hs(a,se)}):!1}function Pu(a,b,ue){return Vo(a,"'"+ue+"'",b,function(se){return hs(a,se,!0)})}var Ps=null;function jl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ae(),!dt(b,a))){we&&x<11&&a.keyCode==27&&(a.returnValue=!1);var ue=a.keyCode;b.display.shift=ue==16||a.shiftKey;var se=Dl(b,a);ee&&(Ps=se?ue:null,!se&&ue==88&&!br&&(he?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),Be&&!he&&!se&&ue==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ue==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Ru(b)}}function Ru(a){var b=a.display.lineDiv;De(b,"CodeMirror-crosshair");function ue(se){(se.keyCode==18||!se.altKey)&&(Re(b,"CodeMirror-crosshair"),At(document,"keyup",ue),At(document,"mouseover",ue))}Et(document,"keyup",ue),Et(document,"mouseover",ue)}function Ol(a){a.keyCode==16&&(this.doc.sel.shift=!1),dt(this,a)}function Pl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(fi(b.display,a)||dt(b,a)||a.ctrlKey&&!a.altKey||he&&a.metaKey)){var ue=a.keyCode,se=a.charCode;if(ee&&ue==Ps){Ps=null,Zt(a);return}if(!(ee&&(!a.which||a.which<10)&&Dl(b,a))){var ge=String.fromCharCode(se==null?ue:se);ge!="\b"&&(Pu(b,a,ge)||b.display.input.onKeyPress(a))}}}var Iu=400,Rs=function(a,b,ue){this.time=a,this.pos=b,this.button=ue};Rs.prototype.compare=function(a,b,ue){return this.time+Iu>a&&nr(b,this.pos)==0&&ue==this.button};var Xo,Yo;function Mu(a,b){var ue=+new Date;return Yo&&Yo.compare(ue,a,b)?(Xo=Yo=null,"triple"):Xo&&Xo.compare(ue,a,b)?(Yo=new Rs(ue,a,b),Xo=null,"double"):(Xo=new Rs(ue,a,b),Yo=null,"single")}function Rl(a){var b=this,ue=b.display;if(!(dt(b,a)||ue.activeTouch&&ue.input.supportsTouch())){if(ue.input.ensurePolled(),ue.shift=a.shiftKey,fi(ue,a)){z||(ue.scroller.draggable=!1,setTimeout(function(){return ue.scroller.draggable=!0},100));return}if(!Is(b,a)){var se=wa(b,a),ge=Xr(a),Le=se?Mu(se,ge):"single";window.focus(),ge==1&&b.state.selectingText&&b.state.selectingText(a),!(se&&Nu(b,ge,se,Le,a))&&(ge==1?se?Fu(b,se,Le,a):Kr(a)==ue.scroller&&Zt(a):ge==2?(se&&ss(b.doc,se),setTimeout(function(){return ue.input.focus()},20)):ge==3&&(Ee?b.display.input.onContextMenu(a):_o(b)))}}}function Nu(a,b,ue,se,ge){var Le="Click";return se=="double"?Le="Double"+Le:se=="triple"&&(Le="Triple"+Le),Le=(b==1?"Left":b==2?"Middle":"Right")+Le,Vo(a,Sl(Le,ge),ge,function(qe){if(typeof qe=="string"&&(qe=Ko[qe]),!qe)return!1;var st=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),st=qe(a,ue)!=et}finally{a.state.suppressEdits=!1}return st})}function Bu(a,b,ue){var se=a.getOption("configureMouse"),ge=se?se(a,b,ue):{};if(ge.unit==null){var Le=pe?ue.shiftKey&&ue.metaKey:ue.altKey;ge.unit=Le?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ge.extend==null||a.doc.extend)&&(ge.extend=a.doc.extend||ue.shiftKey),ge.addNew==null&&(ge.addNew=he?ue.metaKey:ue.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(he?ue.altKey:ue.ctrlKey)),ge}function Fu(a,b,ue,se){we?setTimeout(Ve(To,a),0):a.curOp.focus=Ae();var ge=Bu(a,ue,se),Le=a.doc.sel,qe;a.options.dragDrop&&Nr&&!a.isReadOnly()&&ue=="single"&&(qe=Le.contains(b))>-1&&(nr((qe=Le.ranges[qe]).from(),b)<0||b.xRel>0)&&(nr(qe.to(),b)>0||b.xRel<0)?Lu(a,se,b,ge):Wu(a,se,b,ge)}function Lu(a,b,ue,se){var ge=a.display,Le=!1,qe=Mi(a,function(ht){z&&(ge.scroller.draggable=!1),a.state.draggingText=!1,At(ge.wrapper.ownerDocument,"mouseup",qe),At(ge.wrapper.ownerDocument,"mousemove",st),At(ge.scroller,"dragstart",lt),At(ge.scroller,"drop",qe),Le||(Zt(ht),se.addNew||ss(a.doc,ue,null,null,se.extend),z&&!de||we&&x==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),st=function(ht){Le=Le||Math.abs(b.clientX-ht.clientX)+Math.abs(b.clientY-ht.clientY)>=10},lt=function(){return Le=!0};z&&(ge.scroller.draggable=!0),a.state.draggingText=qe,qe.copy=!se.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),Et(ge.wrapper.ownerDocument,"mouseup",qe),Et(ge.wrapper.ownerDocument,"mousemove",st),Et(ge.scroller,"dragstart",lt),Et(ge.scroller,"drop",qe),_o(a),setTimeout(function(){return ge.input.focus()},20)}function Il(a,b,ue){if(ue=="char")return new ii(b,b);if(ue=="word")return a.findWordAt(b);if(ue=="line")return new ii(Ot(b.line,0),jt(a.doc,Ot(b.line+1,0)));var se=ue(a,b);return new ii(se.from,se.to)}function Wu(a,b,ue,se){var ge=a.display,Le=a.doc;Zt(b);var qe,st,lt=Le.sel,ht=lt.ranges;if(se.addNew&&!se.extend?(st=Le.sel.contains(ue),st>-1?qe=ht[st]:qe=new ii(ue,ue)):(qe=Le.sel.primary(),st=Le.sel.primIndex),se.unit=="rectangle")se.addNew||(qe=new ii(ue,ue)),ue=wa(a,b,!0,!0),st=-1;else{var Ct=Il(a,ue,se.unit);se.extend?qe=Ts(qe,Ct.anchor,Ct.head,se.extend):qe=Ct}se.addNew?st==-1?(st=ht.length,Hi(Le,ya(a,ht.concat([qe]),st),{scroll:!1,origin:"*mouse"})):ht.length>1&&ht[st].empty()&&se.unit=="char"&&!se.extend?(Hi(Le,ya(a,ht.slice(0,st).concat(ht.slice(st+1)),0),{scroll:!1,origin:"*mouse"}),lt=Le.sel):_s(Le,st,qe,Ye):(st=0,Hi(Le,new ha([qe],0),Ye),lt=Le.sel);var _t=ue;function Ut(Gr){if(nr(_t,Gr)!=0)if(_t=Gr,se.unit=="rectangle"){for(var mn=[],In=a.options.tabSize,kn=Ne(Wt(Le,ue.line).text,ue.ch,In),Yn=Ne(Wt(Le,Gr.line).text,Gr.ch,In),ci=Math.min(kn,Yn),Bi=Math.max(kn,Yn),xi=Math.min(ue.line,Gr.line),oa=Math.min(a.lastLine(),Math.max(ue.line,Gr.line));xi<=oa;xi++){var ea=Wt(Le,xi).text,Di=at(ea,ci,In);ci==Bi?mn.push(new ii(Ot(xi,Di),Ot(xi,Di))):ea.length>Di&&mn.push(new ii(Ot(xi,Di),Ot(xi,at(ea,Bi,In))))}mn.length||mn.push(new ii(ue,ue)),Hi(Le,ya(a,lt.ranges.slice(0,st).concat(mn),st),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Gr)}else{var ta=qe,Ui=Il(a,Gr,se.unit),Ri=ta.anchor,ji;nr(Ui.anchor,Ri)>0?(ji=Ui.head,Ri=hr(ta.from(),Ui.anchor)):(ji=Ui.anchor,Ri=Dr(ta.to(),Ui.head));var Si=lt.ranges.slice(0);Si[st]=Uu(a,new ii(jt(Le,Ri),ji)),Hi(Le,ya(a,Si,st),Ye)}}var Ft=ge.wrapper.getBoundingClientRect(),or=0;function xr(Gr){var mn=++or,In=wa(a,Gr,!0,se.unit=="rectangle");if(In)if(nr(In,_t)!=0){a.curOp.focus=Ae(),Ut(In);var kn=Da(ge,Le);(In.line>=kn.to||In.line<kn.from)&&setTimeout(Mi(a,function(){or==mn&&xr(Gr)}),150)}else{var Yn=Gr.clientY<Ft.top?-20:Gr.clientY>Ft.bottom?20:0;Yn&&setTimeout(Mi(a,function(){or==mn&&(ge.scroller.scrollTop+=Yn,xr(Gr))}),50)}}function Ir(Gr){a.state.selectingText=!1,or=1/0,Gr&&(Zt(Gr),ge.input.focus()),At(ge.wrapper.ownerDocument,"mousemove",zr),At(ge.wrapper.ownerDocument,"mouseup",nn),Le.history.lastSelOrigin=null}var zr=Mi(a,function(Gr){Gr.buttons===0||!Xr(Gr)?Ir(Gr):xr(Gr)}),nn=Mi(a,Ir);a.state.selectingText=nn,Et(ge.wrapper.ownerDocument,"mousemove",zr),Et(ge.wrapper.ownerDocument,"mouseup",nn)}function Uu(a,b){var ue=b.anchor,se=b.head,ge=Wt(a.doc,ue.line);if(nr(ue,se)==0&&ue.sticky==se.sticky)return b;var Le=St(ge);if(!Le)return b;var qe=ut(Le,ue.ch,ue.sticky),st=Le[qe];if(st.from!=ue.ch&&st.to!=ue.ch)return b;var lt=qe+(st.from==ue.ch==(st.level!=1)?0:1);if(lt==0||lt==Le.length)return b;var ht;if(se.line!=ue.line)ht=(se.line-ue.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ct=ut(Le,se.ch,se.sticky),_t=Ct-qe||(se.ch-ue.ch)*(st.level==1?-1:1);Ct==lt-1||Ct==lt?ht=_t<0:ht=_t>0}var Ut=Le[lt+(ht?-1:0)],Ft=ht==(Ut.level==1),or=Ft?Ut.from:Ut.to,xr=Ft?"after":"before";return ue.ch==or&&ue.sticky==xr?b:new ii(new Ot(ue.line,or,xr),se)}function Ml(a,b,ue,se){var ge,Le;if(b.touches)ge=b.touches[0].clientX,Le=b.touches[0].clientY;else try{ge=b.clientX,Le=b.clientY}catch(Ut){return!1}if(ge>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;se&&Zt(b);var qe=a.display,st=qe.lineDiv.getBoundingClientRect();if(Le>st.bottom||!bt(a,ue))return Ht(b);Le-=st.top-qe.viewOffset;for(var lt=0;lt<a.display.gutterSpecs.length;++lt){var ht=qe.gutters.childNodes[lt];if(ht&&ht.getBoundingClientRect().right>=ge){var Ct=Tt(a.doc,Le),_t=a.display.gutterSpecs[lt];return gt(a,ue,a,Ct,_t.className,b),Ht(b)}}}function Is(a,b){return Ml(a,b,"gutterClick",!0)}function Nl(a,b){fi(a.display,b)||Zu(a,b)||dt(a,b,"contextmenu")||Ee||a.display.input.onContextMenu(b)}function Zu(a,b){return bt(a,"gutterContextMenu")?Ml(a,b,"gutterContextMenu",!1):!1}function Bl(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Sa(a)}var bo={toString:function(){return"CodeMirror.Init"}},Fl={},ps={};function Hu(a){var b=a.optionHandlers;function ue(se,ge,Le,qe){a.defaults[se]=ge,Le&&(b[se]=qe?function(st,lt,ht){ht!=bo&&Le(st,lt,ht)}:Le)}a.defineOption=ue,a.Init=bo,ue("value","",function(se,ge){return se.setValue(ge)},!0),ue("mode",null,function(se,ge){se.doc.modeOption=ge,Ss(se)},!0),ue("indentUnit",2,Ss,!0),ue("indentWithTabs",!1),ue("smartIndent",!0),ue("tabSize",4,function(se){Bo(se),Sa(se),Wi(se)},!0),ue("lineSeparator",null,function(se,ge){if(se.doc.lineSep=ge,!!ge){var Le=[],qe=se.doc.first;se.doc.iter(function(lt){for(var ht=0;;){var Ct=lt.text.indexOf(ge,ht);if(Ct==-1)break;ht=Ct+ge.length,Le.push(Ot(qe,Ct))}qe++});for(var st=Le.length-1;st>=0;st--)mo(se.doc,ge,Le[st],Ot(Le[st].line,Le[st].ch+ge.length))}}),ue("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(se,ge,Le){se.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),Le!=bo&&se.refresh()}),ue("specialCharPlaceholder",Nn,function(se){return se.refresh()},!0),ue("electricChars",!0),ue("inputStyle",le?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ue("spellcheck",!1,function(se,ge){return se.getInputField().spellcheck=ge},!0),ue("autocorrect",!1,function(se,ge){return se.getInputField().autocorrect=ge},!0),ue("autocapitalize",!1,function(se,ge){return se.getInputField().autocapitalize=ge},!0),ue("rtlMoveVisually",!ve),ue("wholeLineUpdateBefore",!0),ue("theme","default",function(se){Bl(se),No(se)},!0),ue("keyMap","default",function(se,ge,Le){var qe=ds(ge),st=Le!=bo&&ds(Le);st&&st.detach&&st.detach(se,qe),qe.attach&&qe.attach(se,st||null)}),ue("extraKeys",null),ue("configureMouse",null),ue("lineWrapping",!1,Gu,!0),ue("gutters",[],function(se,ge){se.display.gutterSpecs=Es(ge,se.options.lineNumbers),No(se)},!0),ue("fixedGutter",!0,function(se,ge){se.display.gutters.style.left=ge?$a(se.display)+"px":"0",se.refresh()},!0),ue("coverGutterNextToScrollbar",!1,function(se){return Ii(se)},!0),ue("scrollbarStyle","native",function(se){xa(se),Ii(se),se.display.scrollbars.setScrollTop(se.doc.scrollTop),se.display.scrollbars.setScrollLeft(se.doc.scrollLeft)},!0),ue("lineNumbers",!1,function(se,ge){se.display.gutterSpecs=Es(se.options.gutters,ge),No(se)},!0),ue("firstLineNumber",1,No,!0),ue("lineNumberFormatter",function(se){return se},No,!0),ue("showCursorWhenSelecting",!1,Wa,!0),ue("resetSelectionOnContextMenu",!0),ue("lineWiseCopyCut",!0),ue("pasteLinesPerSelection",!0),ue("selectionsMayTouch",!1),ue("readOnly",!1,function(se,ge){ge=="nocursor"&&(Ua(se),se.display.input.blur()),se.display.input.readOnlyChanged(ge)}),ue("screenReaderLabel",null,function(se,ge){ge=ge===""?null:ge,se.display.input.screenReaderLabelChanged(ge)}),ue("disableInput",!1,function(se,ge){ge||se.display.input.reset()},!0),ue("dragDrop",!0,zu),ue("allowDropFileTypes",null),ue("cursorBlinkRate",530),ue("cursorScrollMargin",0),ue("cursorHeight",1,Wa,!0),ue("singleCursorHeightPerLine",!0,Wa,!0),ue("workTime",100),ue("workDelay",100),ue("flattenSpans",!0,Bo,!0),ue("addModeClass",!1,Bo,!0),ue("pollInterval",100),ue("undoDepth",200,function(se,ge){return se.doc.history.undoDepth=ge}),ue("historyEventDelay",1250),ue("viewportMargin",10,function(se){return se.refresh()},!0),ue("maxHighlightLength",1e4,Bo,!0),ue("moveInputWithCursor",!0,function(se,ge){ge||se.display.input.resetPosition()}),ue("tabindex",null,function(se,ge){return se.display.input.getField().tabIndex=ge||""}),ue("autofocus",null),ue("direction","ltr",function(se,ge){return se.doc.setDirection(ge)},!0),ue("phrases",null)}function zu(a,b,ue){var se=ue&&ue!=bo;if(!b!=!se){var ge=a.display.dragFunctions,Le=b?Et:At;Le(a.display.scroller,"dragstart",ge.start),Le(a.display.scroller,"dragenter",ge.enter),Le(a.display.scroller,"dragover",ge.over),Le(a.display.scroller,"dragleave",ge.leave),Le(a.display.scroller,"drop",ge.drop)}}function Gu(a){a.options.lineWrapping?(De(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Re(a.display.wrapper,"CodeMirror-wrap"),Br(a)),So(a),Wi(a),Sa(a),setTimeout(function(){return Ii(a)},100)}function yi(a,b){var ue=this;if(!(this instanceof yi))return new yi(a,b);this.options=b=b?nt(b):{},nt(Fl,b,!1);var se=b.value;typeof se=="string"?se=new qi(se,b.mode,null,b.lineSeparator,b.direction):b.mode&&(se.modeOption=b.mode),this.doc=se;var ge=new yi.inputStyles[b.inputStyle](this),Le=this.display=new iu(a,se,ge,b);Le.wrapper.CodeMirror=this,Bl(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xa(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 We,keySeq:null,specialChars:null},b.autofocus&&!le&&Le.input.focus(),we&&x<11&&setTimeout(function(){return ue.display.input.reset(!0)},20),Ku(this),Cu(),fa(this),this.curOp.forceUpdate=!0,Ys(this,se),b.autofocus&&!le||this.hasFocus()?setTimeout(function(){ue.hasFocus()&&!ue.state.focused&&Do(ue)},20):Ua(this);for(var qe in ps)ps.hasOwnProperty(qe)&&ps[qe](this,b[qe],bo);Zs(this),b.finishInit&&b.finishInit(this);for(var st=0;st<Ms.length;++st)Ms[st](this);ga(this),z&&b.lineWrapping&&getComputedStyle(Le.lineDiv).textRendering=="optimizelegibility"&&(Le.lineDiv.style.textRendering="auto")}yi.defaults=Fl,yi.optionHandlers=ps;function Ku(a){var b=a.display;Et(b.scroller,"mousedown",Mi(a,Rl)),we&&x<11?Et(b.scroller,"dblclick",Mi(a,function(lt){if(!dt(a,lt)){var ht=wa(a,lt);if(!(!ht||Is(a,lt)||fi(a.display,lt))){Zt(lt);var Ct=a.findWordAt(ht);ss(a.doc,Ct.anchor,Ct.head)}}})):Et(b.scroller,"dblclick",function(lt){return dt(a,lt)||Zt(lt)}),Et(b.scroller,"contextmenu",function(lt){return Nl(a,lt)}),Et(b.input.getField(),"contextmenu",function(lt){b.scroller.contains(lt.target)||Nl(a,lt)});var ue,se={end:0};function ge(){b.activeTouch&&(ue=setTimeout(function(){return b.activeTouch=null},1e3),se=b.activeTouch,se.end=+new Date)}function Le(lt){if(lt.touches.length!=1)return!1;var ht=lt.touches[0];return ht.radiusX<=1&&ht.radiusY<=1}function qe(lt,ht){if(ht.left==null)return!0;var Ct=ht.left-lt.left,_t=ht.top-lt.top;return Ct*Ct+_t*_t>20*20}Et(b.scroller,"touchstart",function(lt){if(!dt(a,lt)&&!Le(lt)&&!Is(a,lt)){b.input.ensurePolled(),clearTimeout(ue);var ht=+new Date;b.activeTouch={start:ht,moved:!1,prev:ht-se.end<=300?se:null},lt.touches.length==1&&(b.activeTouch.left=lt.touches[0].pageX,b.activeTouch.top=lt.touches[0].pageY)}}),Et(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Et(b.scroller,"touchend",function(lt){var ht=b.activeTouch;if(ht&&!fi(b,lt)&&ht.left!=null&&!ht.moved&&new Date-ht.start<300){var Ct=a.coordsChar(b.activeTouch,"page"),_t;!ht.prev||qe(ht,ht.prev)?_t=new ii(Ct,Ct):!ht.prev.prev||qe(ht,ht.prev.prev)?_t=a.findWordAt(Ct):_t=new ii(Ot(Ct.line,0),jt(a.doc,Ot(Ct.line+1,0))),a.setSelection(_t.anchor,_t.head),a.focus(),Zt(lt)}ge()}),Et(b.scroller,"touchcancel",ge),Et(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Oa(a,b.scroller.scrollTop),Pa(a,b.scroller.scrollLeft,!0),gt(a,"scroll",a))}),Et(b.scroller,"mousewheel",function(lt){return Gs(a,lt)}),Et(b.scroller,"DOMMouseScroll",function(lt){return Gs(a,lt)}),Et(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(lt){dt(a,lt)||vr(lt)},over:function(lt){dt(a,lt)||(Eu(a,lt),vr(lt))},start:function(lt){return xu(a,lt)},drop:Mi(a,wu),leave:function(lt){dt(a,lt)||wl(a)}};var st=b.input.getField();Et(st,"keyup",function(lt){return Ol.call(a,lt)}),Et(st,"keydown",Mi(a,jl)),Et(st,"keypress",Mi(a,Pl)),Et(st,"focus",function(lt){return Do(a,lt)}),Et(st,"blur",function(lt){return Ua(a,lt)})}var Ms=[];yi.defineInitHook=function(a){return Ms.push(a)};function Jo(a,b,ue,se){var ge=a.doc,Le;ue==null&&(ue="add"),ue=="smart"&&(ge.mode.indent?Le=Zn(a,b).state:ue="prev");var qe=a.options.tabSize,st=Wt(ge,b),lt=Ne(st.text,null,qe);st.stateAfter&&(st.stateAfter=null);var ht=st.text.match(/^\s*/)[0],Ct;if(!se&&!/\S/.test(st.text))Ct=0,ue="not";else if(ue=="smart"&&(Ct=ge.mode.indent(Le,st.text.slice(ht.length),st.text),Ct==et||Ct>150)){if(!se)return;ue="prev"}ue=="prev"?b>ge.first?Ct=Ne(Wt(ge,b-1).text,null,qe):Ct=0:ue=="add"?Ct=lt+a.options.indentUnit:ue=="subtract"?Ct=lt-a.options.indentUnit:typeof ue=="number"&&(Ct=lt+ue),Ct=Math.max(0,Ct);var _t="",Ut=0;if(a.options.indentWithTabs)for(var Ft=Math.floor(Ct/qe);Ft;--Ft)Ut+=qe,_t+=" ";if(Ut<Ct&&(_t+=ft(Ct-Ut)),_t!=ht)return mo(ge,_t,Ot(b,0),Ot(b,ht.length),"+input"),st.stateAfter=null,!0;for(var or=0;or<ge.sel.ranges.length;or++){var xr=ge.sel.ranges[or];if(xr.head.line==b&&xr.head.ch<ht.length){var Ir=Ot(b,ht.length);_s(ge,or,new ii(Ir,Ir));break}}}var ba=null;function ms(a){ba=a}function Ns(a,b,ue,se,ge){var Le=a.doc;a.display.shift=!1,se||(se=Le.sel);var qe=+new Date-200,st=ge=="paste"||a.state.pasteIncoming>qe,lt=vn(b),ht=null;if(st&&se.ranges.length>1)if(ba&&ba.text.join(`
`)==b){if(se.ranges.length%ba.text.length==0){ht=[];for(var Ct=0;Ct<ba.text.length;Ct++)ht.push(Le.splitLines(ba.text[Ct]))}}else lt.length==se.ranges.length&&a.options.pasteLinesPerSelection&&(ht=Je(lt,function(zr){return[zr]}));for(var _t=a.curOp.updateInput,Ut=se.ranges.length-1;Ut>=0;Ut--){var Ft=se.ranges[Ut],or=Ft.from(),xr=Ft.to();Ft.empty()&&(ue&&ue>0?or=Ot(or.line,or.ch-ue):a.state.overwrite&&!st?xr=Ot(xr.line,Math.min(Wt(Le,xr.line).text.length,xr.ch+ot(lt).length)):st&&ba&&ba.lineWise&&ba.text.join(`
`)==lt.join(`
`)&&(or=xr=Ot(or.line,0)));var Ir={from:or,to:xr,text:ht?ht[Ut%ht.length]:lt,origin:ge||(st?"paste":a.state.cutIncoming>qe?"cut":"+input")};po(a.doc,Ir),qn(a,"inputRead",a,Ir)}b&&!st&&Wl(a,b),ja(a),a.curOp.updateInput<2&&(a.curOp.updateInput=_t),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ll(a,b){var ue=a.clipboardData&&a.clipboardData.getData("Text");if(ue)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&aa(b,function(){return Ns(b,ue,0,null,"paste")}),!0}function Wl(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ue=a.doc.sel,se=ue.ranges.length-1;se>=0;se--){var ge=ue.ranges[se];if(!(ge.head.ch>100||se&&ue.ranges[se-1].head.line==ge.head.line)){var Le=a.getModeAt(ge.head),qe=!1;if(Le.electricChars){for(var st=0;st<Le.electricChars.length;st++)if(b.indexOf(Le.electricChars.charAt(st))>-1){qe=Jo(a,ge.head.line,"smart");break}}else Le.electricInput&&Le.electricInput.test(Wt(a.doc,ge.head.line).text.slice(0,ge.head.ch))&&(qe=Jo(a,ge.head.line,"smart"));qe&&qn(a,"electricInput",a,ge.head.line)}}}function Ul(a){for(var b=[],ue=[],se=0;se<a.doc.sel.ranges.length;se++){var ge=a.doc.sel.ranges[se].head.line,Le={anchor:Ot(ge,0),head:Ot(ge+1,0)};ue.push(Le),b.push(a.getRange(Le.anchor,Le.head))}return{text:b,ranges:ue}}function Zl(a,b,ue,se){a.setAttribute("autocorrect",ue?"":"off"),a.setAttribute("autocapitalize",se?"":"off"),a.setAttribute("spellcheck",!!b)}function Hl(){var a=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=be("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?a.style.width="1000px":a.setAttribute("wrap","off"),re&&(a.style.border="1px solid black"),Zl(a),b}function Vu(a){var b=a.optionHandlers,ue=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(se,ge){var Le=this.options,qe=Le[se];Le[se]==ge&&se!="mode"||(Le[se]=ge,b.hasOwnProperty(se)&&Mi(this,b[se])(this,ge,qe),gt(this,"optionChange",this,se))},getOption:function(se){return this.options[se]},getDoc:function(){return this.doc},addKeyMap:function(se,ge){this.state.keyMaps[ge?"push":"unshift"](ds(se))},removeKeyMap:function(se){for(var ge=this.state.keyMaps,Le=0;Le<ge.length;++Le)if(ge[Le]==se||ge[Le].name==se)return ge.splice(Le,1),!0},addOverlay:Xi(function(se,ge){var Le=se.token?se:a.getMode(this.options,se);if(Le.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:Le,modeSpec:se,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(qe){return qe.priority}),this.state.modeGen++,Wi(this)}),removeOverlay:Xi(function(se){for(var ge=this.state.overlays,Le=0;Le<ge.length;++Le){var qe=ge[Le].modeSpec;if(qe==se||typeof se=="string"&&qe.name==se){ge.splice(Le,1),this.state.modeGen++,Wi(this);return}}}),indentLine:Xi(function(se,ge,Le){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),lr(this.doc,se)&&Jo(this,se,ge,Le)}),indentSelection:Xi(function(se){for(var ge=this.doc.sel.ranges,Le=-1,qe=0;qe<ge.length;qe++){var st=ge[qe];if(st.empty())st.head.line>Le&&(Jo(this,st.head.line,se,!0),Le=st.head.line,qe==this.doc.sel.primIndex&&ja(this));else{var lt=st.from(),ht=st.to(),Ct=Math.max(Le,lt.line);Le=Math.min(this.lastLine(),ht.line-(ht.ch?0:1))+1;for(var _t=Ct;_t<Le;++_t)Jo(this,_t,se);var Ut=this.doc.sel.ranges;lt.ch==0&&ge.length==Ut.length&&Ut[qe].from().ch>0&&_s(this.doc,qe,new ii(lt,Ut[qe].to()),Xe)}}}),getTokenAt:function(se,ge){return Xn(this,se,ge)},getLineTokens:function(se,ge){return Xn(this,Ot(se),ge,!0)},getTokenTypeAt:function(se){se=jt(this.doc,se);var ge=En(this,Wt(this.doc,se.line)),Le=0,qe=(ge.length-1)/2,st=se.ch,lt;if(st==0)lt=ge[2];else for(;;){var ht=Le+qe>>1;if((ht?ge[ht*2-1]:0)>=st)qe=ht;else if(ge[ht*2+1]<st)Le=ht+1;else{lt=ge[ht*2+2];break}}var Ct=lt?lt.indexOf("overlay "):-1;return Ct<0?lt:Ct==0?null:lt.slice(0,Ct-1)},getModeAt:function(se){var ge=this.doc.mode;return ge.innerMode?a.innerMode(ge,this.getTokenAt(se).state).mode:ge},getHelper:function(se,ge){return this.getHelpers(se,ge)[0]},getHelpers:function(se,ge){var Le=[];if(!ue.hasOwnProperty(ge))return Le;var qe=ue[ge],st=this.getModeAt(se);if(typeof st[ge]=="string")qe[st[ge]]&&Le.push(qe[st[ge]]);else if(st[ge])for(var lt=0;lt<st[ge].length;lt++){var ht=qe[st[ge][lt]];ht&&Le.push(ht)}else st.helperType&&qe[st.helperType]?Le.push(qe[st.helperType]):qe[st.name]&&Le.push(qe[st.name]);for(var Ct=0;Ct<qe._global.length;Ct++){var _t=qe._global[Ct];_t.pred(st,this)&&$e(Le,_t.val)==-1&&Le.push(_t.val)}return Le},getStateAfter:function(se,ge){var Le=this.doc;return se=Ar(Le,se==null?Le.first+Le.size-1:se),Zn(this,se+1,ge).state},cursorCoords:function(se,ge){var Le,qe=this.doc.sel.primary();return se==null?Le=qe.head:typeof se=="object"?Le=jt(this.doc,se):Le=se?qe.from():qe.to(),hi(this,Le,ge||"page")},charCoords:function(se,ge){return Li(this,jt(this.doc,se),ge||"page")},coordsChar:function(se,ge){return se=Aa(this,se,ge||"page"),gi(this,se.left,se.top)},lineAtHeight:function(se,ge){return se=Aa(this,{top:se,left:0},ge||"page").top,Tt(this.doc,se+this.display.viewOffset)},heightAtLine:function(se,ge,Le){var qe=!1,st;if(typeof se=="number"){var lt=this.doc.first+this.doc.size-1;se<this.doc.first?se=this.doc.first:se>lt&&(se=lt,qe=!0),st=Wt(this.doc,se)}else st=se;return ka(this,st,{top:0,left:0},ge||"page",Le||qe).top+(qe?this.doc.height-Pr(st):0)},defaultTextHeight:function(){return Oi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(se,ge,Le,qe,st){var lt=this.display;se=hi(this,jt(this.doc,se));var ht=se.bottom,Ct=se.left;if(ge.style.position="absolute",ge.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ge),lt.sizer.appendChild(ge),qe=="over")ht=se.top;else if(qe=="above"||qe=="near"){var _t=Math.max(lt.wrapper.clientHeight,this.doc.height),Ut=Math.max(lt.sizer.clientWidth,lt.lineSpace.clientWidth);(qe=="above"||se.bottom+ge.offsetHeight>_t)&&se.top>ge.offsetHeight?ht=se.top-ge.offsetHeight:se.bottom+ge.offsetHeight<=_t&&(ht=se.bottom),Ct+ge.offsetWidth>Ut&&(Ct=Ut-ge.offsetWidth)}ge.style.top=ht+"px",ge.style.left=ge.style.right="",st=="right"?(Ct=lt.sizer.clientWidth-ge.offsetWidth,ge.style.right="0px"):(st=="left"?Ct=0:st=="middle"&&(Ct=(lt.sizer.clientWidth-ge.offsetWidth)/2),ge.style.left=Ct+"px"),Le&&ts(this,{left:Ct,top:ht,right:Ct+ge.offsetWidth,bottom:ht+ge.offsetHeight})},triggerOnKeyDown:Xi(jl),triggerOnKeyPress:Xi(Pl),triggerOnKeyUp:Ol,triggerOnMouseDown:Xi(Rl),execCommand:function(se){if(Ko.hasOwnProperty(se))return Ko[se].call(null,this)},triggerElectric:Xi(function(se){Wl(this,se)}),findPosH:function(se,ge,Le,qe){var st=1;ge<0&&(st=-1,ge=-ge);for(var lt=jt(this.doc,se),ht=0;ht<ge&&(lt=Bs(this.doc,lt,st,Le,qe),!lt.hitSide);++ht);return lt},moveH:Xi(function(se,ge){var Le=this;this.extendSelectionsBy(function(qe){return Le.display.shift||Le.doc.extend||qe.empty()?Bs(Le.doc,qe.head,se,ge,Le.options.rtlMoveVisually):se<0?qe.from():qe.to()},Ge)}),deleteH:Xi(function(se,ge){var Le=this.doc.sel,qe=this.doc;Le.somethingSelected()?qe.replaceSelection("",null,"+delete"):yo(this,function(st){var lt=Bs(qe,st.head,se,ge,!1);return se<0?{from:lt,to:st.head}:{from:st.head,to:lt}})}),findPosV:function(se,ge,Le,qe){var st=1,lt=qe;ge<0&&(st=-1,ge=-ge);for(var ht=jt(this.doc,se),Ct=0;Ct<ge;++Ct){var _t=hi(this,ht,"div");if(lt==null?lt=_t.left:_t.left=lt,ht=zl(this,_t,st,Le),ht.hitSide)break}return ht},moveV:Xi(function(se,ge){var Le=this,qe=this.doc,st=[],lt=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(Ct){if(lt)return se<0?Ct.from():Ct.to();var _t=hi(Le,Ct.head,"div");Ct.goalColumn!=null&&(_t.left=Ct.goalColumn),st.push(_t.left);var Ut=zl(Le,_t,se,ge);return ge=="page"&&Ct==qe.sel.primary()&&co(Le,Li(Le,Ut,"div").top-_t.top),Ut},Ge),st.length)for(var ht=0;ht<qe.sel.ranges.length;ht++)qe.sel.ranges[ht].goalColumn=st[ht]}),findWordAt:function(se){var ge=this.doc,Le=Wt(ge,se.line).text,qe=se.ch,st=se.ch;if(Le){var lt=this.getHelper(se,"wordChars");(se.sticky=="before"||st==Le.length)&&qe?--qe:++st;for(var ht=Le.charAt(qe),Ct=Ue(ht,lt)?function(_t){return Ue(_t,lt)}:/\s/.test(ht)?function(_t){return/\s/.test(_t)}:function(_t){return!/\s/.test(_t)&&!Ue(_t)};qe>0&&Ct(Le.charAt(qe-1));)--qe;for(;st<Le.length&&Ct(Le.charAt(st));)++st}return new ii(Ot(se.line,qe),Ot(se.line,st))},toggleOverwrite:function(se){se!=null&&se==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?De(this.display.cursorDiv,"CodeMirror-overwrite"):Re(this.display.cursorDiv,"CodeMirror-overwrite"),gt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xi(function(se,ge){qa(this,se,ge)}),getScrollInfo:function(){var se=this.display.scroller;return{left:se.scrollLeft,top:se.scrollTop,height:se.scrollHeight-ni(this)-this.display.barHeight,width:se.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:sa(this)}},scrollIntoView:Xi(function(se,ge){se==null?(se={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof se=="number"?se={from:Ot(se,0),to:null}:se.from==null&&(se={from:se,to:null}),se.to||(se.to=se.from),se.margin=ge||0,se.from.line!=null?rs(this,se):Ro(this,se.from,se.to,se.margin)}),setSize:Xi(function(se,ge){var Le=this,qe=function(lt){return typeof lt=="number"||/^\d+$/.test(String(lt))?lt+"px":lt};se!=null&&(this.display.wrapper.style.width=qe(se)),ge!=null&&(this.display.wrapper.style.height=qe(ge)),this.options.lineWrapping&&Fa(this);var st=this.display.viewFrom;this.doc.iter(st,this.display.viewTo,function(lt){if(lt.widgets){for(var ht=0;ht<lt.widgets.length;ht++)if(lt.widgets[ht].noHScroll){ca(Le,st,"widget");break}}++st}),this.curOp.forceUpdate=!0,gt(this,"refresh",this)}),operation:function(se){return aa(this,se)},startOperation:function(){return fa(this)},endOperation:function(){return ga(this)},refresh:Xi(function(){var se=this.display.cachedTextHeight;Wi(this),this.curOp.forceUpdate=!0,Sa(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(se==null||Math.abs(se-Oi(this.display))>.5||this.options.lineWrapping)&&So(this),gt(this,"refresh",this)}),swapDoc:Xi(function(se){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),Ys(this,se),Sa(this),this.display.input.reset(),qa(this,se.scrollLeft,se.scrollTop),this.curOp.forceScroll=!0,qn(this,"swapDoc",this,ge),ge}),phrase:function(se){var ge=this.options.phrases;return ge&&Object.prototype.hasOwnProperty.call(ge,se)?ge[se]:se},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}},Pt(a),a.registerHelper=function(se,ge,Le){ue.hasOwnProperty(se)||(ue[se]=a[se]={_global:[]}),ue[se][ge]=Le},a.registerGlobalHelper=function(se,ge,Le,qe){a.registerHelper(se,ge,qe),ue[se]._global.push({pred:Le,val:qe})}}function Bs(a,b,ue,se,ge){var Le=b,qe=ue,st=Wt(a,b.line),lt=ge&&a.direction=="rtl"?-ue:ue;function ht(){var nn=b.line+lt;return nn<a.first||nn>=a.first+a.size?!1:(b=new Ot(nn,b.ch,b.sticky),st=Wt(a,nn))}function Ct(nn){var Gr;if(se=="codepoint"){var mn=st.text.charCodeAt(b.ch+(se>0?0:-1));isNaN(mn)?Gr=null:Gr=new Ot(b.line,Math.max(0,Math.min(st.text.length,b.ch+ue*(mn>=55296&&mn<56320?2:1))),-ue)}else ge?Gr=_u(a.cm,st,b,ue):Gr=js(st,b,ue);if(Gr==null)if(!nn&&ht())b=Os(ge,a.cm,st,b.line,lt);else return!1;else b=Gr;return!0}if(se=="char"||se=="codepoint")Ct();else if(se=="column")Ct(!0);else if(se=="word"||se=="group")for(var _t=null,Ut=se=="group",Ft=a.cm&&a.cm.getHelper(b,"wordChars"),or=!0;!(ue<0&&!Ct(!or));or=!1){var xr=st.text.charAt(b.ch)||`
`,Ir=Ue(xr,Ft)?"w":Ut&&xr==`
`?"n":!Ut||/\s/.test(xr)?null:"p";if(Ut&&!or&&!Ir&&(Ir="s"),_t&&_t!=Ir){ue<0&&(ue=1,Ct(),b.sticky="after");break}if(Ir&&(_t=Ir),ue>0&&!Ct(!or))break}var zr=us(a,b,Le,qe,!0);return pr(Le,zr)&&(zr.hitSide=!0),zr}function zl(a,b,ue,se){var ge=a.doc,Le=b.left,qe;if(se=="page"){var st=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),lt=Math.max(st-.5*Oi(a.display),3);qe=(ue>0?b.bottom:b.top)+ue*lt}else se=="line"&&(qe=ue>0?b.bottom+3:b.top-3);for(var ht;ht=gi(a,Le,qe),!!ht.outside;){if(ue<0?qe<=0:qe>=ge.height){ht.hitSide=!0;break}qe+=ue*5}return ht}var li=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new We,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};li.prototype.init=function(a){var b=this,ue=this,se=ue.cm,ge=ue.div=a.lineDiv;Zl(ge,se.options.spellcheck,se.options.autocorrect,se.options.autocapitalize);function Le(st){for(var lt=st.target;lt;lt=lt.parentNode){if(lt==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(lt.className))break}return!1}Et(ge,"paste",function(st){!Le(st)||dt(se,st)||Ll(st,se)||x<=11&&setTimeout(Mi(se,function(){return b.updateFromDOM()}),20)}),Et(ge,"compositionstart",function(st){b.composing={data:st.data,done:!1}}),Et(ge,"compositionupdate",function(st){b.composing||(b.composing={data:st.data,done:!1})}),Et(ge,"compositionend",function(st){b.composing&&(st.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Et(ge,"touchstart",function(){return ue.forceCompositionEnd()}),Et(ge,"input",function(){b.composing||b.readFromDOMSoon()});function qe(st){if(!(!Le(st)||dt(se,st))){if(se.somethingSelected())ms({lineWise:!1,text:se.getSelections()}),st.type=="cut"&&se.replaceSelection("",null,"cut");else if(se.options.lineWiseCopyCut){var lt=Ul(se);ms({lineWise:!0,text:lt.text}),st.type=="cut"&&se.operation(function(){se.setSelections(lt.ranges,0,Xe),se.replaceSelection("",null,"cut")})}else return;if(st.clipboardData){st.clipboardData.clearData();var ht=ba.text.join(`
`);if(st.clipboardData.setData("Text",ht),st.clipboardData.getData("Text")==ht){st.preventDefault();return}}var Ct=Hl(),_t=Ct.firstChild;se.display.lineSpace.insertBefore(Ct,se.display.lineSpace.firstChild),_t.value=ba.text.join(`
`);var Ut=document.activeElement;Ke(_t),setTimeout(function(){se.display.lineSpace.removeChild(Ct),Ut.focus(),Ut==ge&&ue.showPrimarySelection()},50)}}Et(ge,"copy",qe),Et(ge,"cut",qe)},li.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},li.prototype.prepareSelection=function(){var a=qo(this.cm,!1);return a.focus=document.activeElement==this.div,a},li.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},li.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},li.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ue=b.doc.sel.primary(),se=ue.from(),ge=ue.to();if(b.display.viewTo==b.display.viewFrom||se.line>=b.display.viewTo||ge.line<b.display.viewFrom){a.removeAllRanges();return}var Le=vs(b,a.anchorNode,a.anchorOffset),qe=vs(b,a.focusNode,a.focusOffset);if(!(Le&&!Le.bad&&qe&&!qe.bad&&nr(hr(Le,qe),se)==0&&nr(Dr(Le,qe),ge)==0)){var st=b.display.view,lt=se.line>=b.display.viewFrom&&Gl(b,se)||{node:st[0].measure.map[2],offset:0},ht=ge.line<b.display.viewTo&&Gl(b,ge);if(!ht){var Ct=st[st.length-1].measure,_t=Ct.maps?Ct.maps[Ct.maps.length-1]:Ct.map;ht={node:_t[_t.length-1],offset:_t[_t.length-2]-_t[_t.length-3]}}if(!lt||!ht){a.removeAllRanges();return}var Ut=a.rangeCount&&a.getRangeAt(0),Ft;try{Ft=Ie(lt.node,lt.offset,ht.offset,ht.node)}catch(or){}Ft&&(!Be&&b.state.focused?(a.collapse(lt.node,lt.offset),Ft.collapsed||(a.removeAllRanges(),a.addRange(Ft))):(a.removeAllRanges(),a.addRange(Ft)),Ut&&a.anchorNode==null?a.addRange(Ut):Be&&this.startGracePeriod()),this.rememberSelection()}},li.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)},li.prototype.showMultipleSelections=function(a){ye(this.cm.display.cursorDiv,a.cursors),ye(this.cm.display.selectionDiv,a.selection)},li.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},li.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Me(this.div,b)},li.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},li.prototype.blur=function(){this.div.blur()},li.prototype.getField=function(){return this.div},li.prototype.supportsTouch=function(){return!0},li.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():aa(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},li.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},li.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(oe&&ae&&this.cm.display.gutterSpecs.length&&Xu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ue=vs(b,a.anchorNode,a.anchorOffset),se=vs(b,a.focusNode,a.focusOffset);ue&&se&&aa(b,function(){Hi(b.doc,Ha(ue,se),Xe),(ue.bad||se.bad)&&(b.curOp.selectionChanged=!0)})}}},li.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ue=a.doc.sel.primary(),se=ue.from(),ge=ue.to();if(se.ch==0&&se.line>a.firstLine()&&(se=Ot(se.line-1,Wt(a.doc,se.line-1).length)),ge.ch==Wt(a.doc,ge.line).text.length&&ge.line<a.lastLine()&&(ge=Ot(ge.line+1,0)),se.line<b.viewFrom||ge.line>b.viewTo-1)return!1;var Le,qe,st;se.line==b.viewFrom||(Le=Ta(a,se.line))==0?(qe=kt(b.view[0].line),st=b.view[0].node):(qe=kt(b.view[Le].line),st=b.view[Le-1].node.nextSibling);var lt=Ta(a,ge.line),ht,Ct;if(lt==b.view.length-1?(ht=b.viewTo-1,Ct=b.lineDiv.lastChild):(ht=kt(b.view[lt+1].line)-1,Ct=b.view[lt+1].node.previousSibling),!st)return!1;for(var _t=a.doc.splitLines(Yu(a,st,Ct,qe,ht)),Ut=mr(a.doc,Ot(qe,0),Ot(ht,Wt(a.doc,ht).text.length));_t.length>1&&Ut.length>1;)if(ot(_t)==ot(Ut))_t.pop(),Ut.pop(),ht--;else if(_t[0]==Ut[0])_t.shift(),Ut.shift(),qe++;else break;for(var Ft=0,or=0,xr=_t[0],Ir=Ut[0],zr=Math.min(xr.length,Ir.length);Ft<zr&&xr.charCodeAt(Ft)==Ir.charCodeAt(Ft);)++Ft;for(var nn=ot(_t),Gr=ot(Ut),mn=Math.min(nn.length-(_t.length==1?Ft:0),Gr.length-(Ut.length==1?Ft:0));or<mn&&nn.charCodeAt(nn.length-or-1)==Gr.charCodeAt(Gr.length-or-1);)++or;if(_t.length==1&&Ut.length==1&&qe==se.line)for(;Ft&&Ft>se.ch&&nn.charCodeAt(nn.length-or-1)==Gr.charCodeAt(Gr.length-or-1);)Ft--,or++;_t[_t.length-1]=nn.slice(0,nn.length-or).replace(/^\u200b+/,""),_t[0]=_t[0].slice(Ft).replace(/\u200b+$/,"");var In=Ot(qe,Ft),kn=Ot(ht,Ut.length?ot(Ut).length-or:0);if(_t.length>1||_t[0]||nr(In,kn))return mo(a.doc,_t,In,kn,"+input"),!0},li.prototype.ensurePolled=function(){this.forceCompositionEnd()},li.prototype.reset=function(){this.forceCompositionEnd()},li.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},li.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))},li.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&aa(this.cm,function(){return Wi(a.cm)})},li.prototype.setUneditable=function(a){a.contentEditable="false"},li.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,Ns)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},li.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},li.prototype.onContextMenu=function(){},li.prototype.resetPosition=function(){},li.prototype.needsContentAttribute=!0;function Gl(a,b){var ue=pa(a,b.line);if(!ue||ue.hidden)return null;var se=Wt(a.doc,b.line),ge=vi(ue,se,b.line),Le=St(se,a.doc.direction),qe="left";if(Le){var st=ut(Le,b.ch);qe=st%2?"right":"left"}var lt=no(ge.map,b.ch,qe);return lt.offset=lt.collapse=="right"?lt.end:lt.start,lt}function Xu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function wo(a,b){return b&&(a.bad=!0),a}function Yu(a,b,ue,se,ge){var Le="",qe=!1,st=a.doc.lineSeparator(),lt=!1;function ht(Ft){return function(or){return or.id==Ft}}function Ct(){qe&&(Le+=st,lt&&(Le+=st),qe=lt=!1)}function _t(Ft){Ft&&(Ct(),Le+=Ft)}function Ut(Ft){if(Ft.nodeType==1){var or=Ft.getAttribute("cm-text");if(or){_t(or);return}var xr=Ft.getAttribute("cm-marker"),Ir;if(xr){var zr=a.findMarks(Ot(se,0),Ot(ge+1,0),ht(+xr));zr.length&&(Ir=zr[0].find(0))&&_t(mr(a.doc,Ir.from,Ir.to).join(st));return}if(Ft.getAttribute("contenteditable")=="false")return;var nn=/^(pre|div|p|li|table|br)$/i.test(Ft.nodeName);if(!/^br$/i.test(Ft.nodeName)&&Ft.textContent.length==0)return;nn&&Ct();for(var Gr=0;Gr<Ft.childNodes.length;Gr++)Ut(Ft.childNodes[Gr]);/^(pre|p)$/i.test(Ft.nodeName)&&(lt=!0),nn&&(qe=!0)}else Ft.nodeType==3&&_t(Ft.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ut(b),b!=ue;)b=b.nextSibling,lt=!1;return Le}function vs(a,b,ue){var se;if(b==a.display.lineDiv){if(se=a.display.lineDiv.childNodes[ue],!se)return wo(a.clipPos(Ot(a.display.viewTo-1)),!0);b=null,ue=0}else for(se=b;;se=se.parentNode){if(!se||se==a.display.lineDiv)return null;if(se.parentNode&&se.parentNode==a.display.lineDiv)break}for(var ge=0;ge<a.display.view.length;ge++){var Le=a.display.view[ge];if(Le.node==se)return Ju(Le,b,ue)}}function Ju(a,b,ue){var se=a.text.firstChild,ge=!1;if(!b||!Me(se,b))return wo(Ot(kt(a.line),0),!0);if(b==se&&(ge=!0,b=se.childNodes[ue],ue=0,!b)){var Le=a.rest?ot(a.rest):a.line;return wo(Ot(kt(Le),Le.text.length),ge)}var qe=b.nodeType==3?b:null,st=b;for(!qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(qe=b.firstChild,ue&&(ue=qe.nodeValue.length));st.parentNode!=se;)st=st.parentNode;var lt=a.measure,ht=lt.maps;function Ct(Ir,zr,nn){for(var Gr=-1;Gr<(ht?ht.length:0);Gr++)for(var mn=Gr<0?lt.map:ht[Gr],In=0;In<mn.length;In+=3){var kn=mn[In+2];if(kn==Ir||kn==zr){var Yn=kt(Gr<0?a.line:a.rest[Gr]),ci=mn[In]+nn;return(nn<0||kn!=Ir)&&(ci=mn[In+(nn?1:0)]),Ot(Yn,ci)}}}var _t=Ct(qe,st,ue);if(_t)return wo(_t,ge);for(var Ut=st.nextSibling,Ft=qe?qe.nodeValue.length-ue:0;Ut;Ut=Ut.nextSibling){if(_t=Ct(Ut,Ut.firstChild,0),_t)return wo(Ot(_t.line,_t.ch-Ft),ge);Ft+=Ut.textContent.length}for(var or=st.previousSibling,xr=ue;or;or=or.previousSibling){if(_t=Ct(or,or.firstChild,-1),_t)return wo(Ot(_t.line,_t.ch+xr),ge);xr+=or.textContent.length}}var Ti=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new We,this.hasSelection=!1,this.composing=null};Ti.prototype.init=function(a){var b=this,ue=this,se=this.cm;this.createField(a);var ge=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),re&&(ge.style.width="0px"),Et(ge,"input",function(){we&&x>=9&&b.hasSelection&&(b.hasSelection=null),ue.poll()}),Et(ge,"paste",function(qe){dt(se,qe)||Ll(qe,se)||(se.state.pasteIncoming=+new Date,ue.fastPoll())});function Le(qe){if(!dt(se,qe)){if(se.somethingSelected())ms({lineWise:!1,text:se.getSelections()});else if(se.options.lineWiseCopyCut){var st=Ul(se);ms({lineWise:!0,text:st.text}),qe.type=="cut"?se.setSelections(st.ranges,null,Xe):(ue.prevInput="",ge.value=st.text.join(`
`),Ke(ge))}else return;qe.type=="cut"&&(se.state.cutIncoming=+new Date)}}Et(ge,"cut",Le),Et(ge,"copy",Le),Et(a.scroller,"paste",function(qe){if(!(fi(a,qe)||dt(se,qe))){if(!ge.dispatchEvent){se.state.pasteIncoming=+new Date,ue.focus();return}var st=new Event("paste");st.clipboardData=qe.clipboardData,ge.dispatchEvent(st)}}),Et(a.lineSpace,"selectstart",function(qe){fi(a,qe)||Zt(qe)}),Et(ge,"compositionstart",function(){var qe=se.getCursor("from");ue.composing&&ue.composing.range.clear(),ue.composing={start:qe,range:se.markText(qe,se.getCursor("to"),{className:"CodeMirror-composing"})}}),Et(ge,"compositionend",function(){ue.composing&&(ue.poll(),ue.composing.range.clear(),ue.composing=null)})},Ti.prototype.createField=function(a){this.wrapper=Hl(),this.textarea=this.wrapper.firstChild},Ti.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ti.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ue=a.doc,se=qo(a);if(a.options.moveInputWithCursor){var ge=hi(a,ue.sel.primary().head,"div"),Le=b.wrapper.getBoundingClientRect(),qe=b.lineDiv.getBoundingClientRect();se.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ge.top+qe.top-Le.top)),se.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ge.left+qe.left-Le.left))}return se},Ti.prototype.showSelection=function(a){var b=this.cm,ue=b.display;ye(ue.cursorDiv,a.cursors),ye(ue.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ti.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ue=b.getSelection();this.textarea.value=ue,b.state.focused&&Ke(this.textarea),we&&x>=9&&(this.hasSelection=ue)}else a||(this.prevInput=this.textarea.value="",we&&x>=9&&(this.hasSelection=null))}},Ti.prototype.getField=function(){return this.textarea},Ti.prototype.supportsTouch=function(){return!1},Ti.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!le||Ae()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ti.prototype.blur=function(){this.textarea.blur()},Ti.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ti.prototype.receivedFocus=function(){this.slowPoll()},Ti.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ti.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ue(){var se=b.poll();!se&&!a?(a=!0,b.polling.set(60,ue)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ue)},Ti.prototype.poll=function(){var a=this,b=this.cm,ue=this.textarea,se=this.prevInput;if(this.contextMenuPending||!b.state.focused||on(ue)&&!se&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ge=ue.value;if(ge==se&&!b.somethingSelected())return!1;if(we&&x>=9&&this.hasSelection===ge||he&&/[\uf700-\uf7ff]/.test(ge))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Le=ge.charCodeAt(0);if(Le==8203&&!se&&(se="\u200B"),Le==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,st=Math.min(se.length,ge.length);qe<st&&se.charCodeAt(qe)==ge.charCodeAt(qe);)++qe;return aa(b,function(){Ns(b,ge.slice(qe),se.length-qe,null,a.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
`)>-1?ue.value=a.prevInput="":a.prevInput=ge,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ti.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ti.prototype.onKeyPress=function(){we&&x>=9&&(this.hasSelection=null),this.fastPoll()},Ti.prototype.onContextMenu=function(a){var b=this,ue=b.cm,se=ue.display,ge=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Le=wa(ue,a),qe=se.scroller.scrollTop;if(!Le||ee)return;var st=ue.options.resetSelectionOnContextMenu;st&&ue.doc.sel.contains(Le)==-1&&Mi(ue,Hi)(ue.doc,Ha(Le),Xe);var lt=ge.style.cssText,ht=b.wrapper.style.cssText,Ct=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ct.top-5)+"px; left: "+(a.clientX-Ct.left-5)+`px;
z-index: 1000; background: `+(we?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _t;z&&(_t=window.scrollY),se.input.focus(),z&&window.scrollTo(null,_t),se.input.reset(),ue.somethingSelected()||(ge.value=b.prevInput=" "),b.contextMenuPending=Ft,se.selForContextMenu=ue.doc.sel,clearTimeout(se.detectingSelectAll);function Ut(){if(ge.selectionStart!=null){var xr=ue.somethingSelected(),Ir="\u200B"+(xr?ge.value:"");ge.value="\u21DA",ge.value=Ir,b.prevInput=xr?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=Ir.length,se.selForContextMenu=ue.doc.sel}}function Ft(){if(b.contextMenuPending==Ft&&(b.contextMenuPending=!1,b.wrapper.style.cssText=ht,ge.style.cssText=lt,we&&x<9&&se.scrollbars.setScrollTop(se.scroller.scrollTop=qe),ge.selectionStart!=null)){(!we||we&&x<9)&&Ut();var xr=0,Ir=function(){se.selForContextMenu==ue.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&b.prevInput=="\u200B"?Mi(ue,ul)(ue):xr++<10?se.detectingSelectAll=setTimeout(Ir,500):(se.selForContextMenu=null,se.input.reset())};se.detectingSelectAll=setTimeout(Ir,200)}}if(we&&x>=9&&Ut(),Ee){vr(a);var or=function(){At(window,"mouseup",or),setTimeout(Ft,20)};Et(window,"mouseup",or)}else setTimeout(Ft,50)},Ti.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ti.prototype.setUneditable=function(){},Ti.prototype.needsContentAttribute=!1;function Qu(a,b){if(b=b?nt(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var ue=Ae();b.autofocus=ue==a||a.getAttribute("autofocus")!=null&&ue==document.body}function se(){a.value=st.getValue()}var ge;if(a.form&&(Et(a.form,"submit",se),!b.leaveSubmitMethodAlone)){var Le=a.form;ge=Le.submit;try{var qe=Le.submit=function(){se(),Le.submit=ge,Le.submit(),Le.submit=qe}}catch(lt){}}b.finishInit=function(lt){lt.save=se,lt.getTextArea=function(){return a},lt.toTextArea=function(){lt.toTextArea=isNaN,se(),a.parentNode.removeChild(lt.getWrapperElement()),a.style.display="",a.form&&(At(a.form,"submit",se),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ge))}},a.style.display="none";var st=yi(function(lt){return a.parentNode.insertBefore(lt,a.nextSibling)},b);return st}function $u(a){a.off=At,a.on=Et,a.wheelEventPixels=au,a.Doc=qi,a.splitLines=vn,a.countColumn=Ne,a.findColumn=at,a.isWordChar=Oe,a.Pass=et,a.signal=gt,a.Line=hn,a.changeEnd=za,a.scrollbarModel=Ra,a.Pos=Ot,a.cmpPos=nr,a.modes=dr,a.mimeModes=Xt,a.resolveMode=_r,a.getMode=jr,a.modeExtensions=Yr,a.extendMode=dn,a.copyState=sn,a.startState=Qr,a.innerMode=Hr,a.commands=Ko,a.keyMap=Ma,a.keyName=kl,a.isModifierKey=Cl,a.lookupKey=go,a.normalizeKeyMap=Tu,a.StringStream=sr,a.SharedTextMarker=Ho,a.TextMarker=Ka,a.LineWidget=Zo,a.e_preventDefault=Zt,a.e_stopPropagation=cr,a.e_stop=vr,a.addClass=De,a.contains=Me,a.rmClass=Re,a.keyNames=Va}Hu(yi),Vu(yi);var qu="iter insert remove copy getEditor constructor".split(" ");for(var gs in qi.prototype)qi.prototype.hasOwnProperty(gs)&&$e(qu,gs)<0&&(yi.prototype[gs]=function(a){return function(){return a.apply(this.doc,arguments)}}(qi.prototype[gs]));return Pt(qi),yi.inputStyles={textarea:Ti,contenteditable:li},yi.defineMode=function(a){!yi.defaults.mode&&a!="null"&&(yi.defaults.mode=a),qt.apply(this,arguments)},yi.defineMIME=yr,yi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),yi.defineMIME("text/plain","null"),yi.defineExtension=function(a,b){yi.prototype[a]=b},yi.defineDocExtension=function(a,b){qi.prototype[a]=b},yi.fromTextArea=Qu,$u(yi),yi.version="5.58.2",yi})},25419:function(Nt,Dt,ze){(function(Be){Be(ze(89780),ze(15525),ze(98101))})(function(Be){"use strict";Be.defineMode("markdown",function(mt,y){var ke=Be.getMode(mt,"text/html"),we=ke.name=="null";function x(Ne){if(Be.findModeByName){var We=Be.findModeByName(Ne);We&&(Ne=We.mime||We.mimes[0])}var $e=Be.getMode(mt,Ne);return $e.name=="null"?null:$e}y.highlightFormatting===void 0&&(y.highlightFormatting=!1),y.maxBlockquoteDepth===void 0&&(y.maxBlockquoteDepth=0),y.taskLists===void 0&&(y.taskLists=!1),y.strikethrough===void 0&&(y.strikethrough=!1),y.emoji===void 0&&(y.emoji=!1),y.fencedCodeBlockHighlighting===void 0&&(y.fencedCodeBlockHighlighting=!0),y.fencedCodeBlockDefaultMode===void 0&&(y.fencedCodeBlockDefaultMode="text/plain"),y.xml===void 0&&(y.xml=!0),y.tokenTypeOverrides===void 0&&(y.tokenTypeOverrides={});var z={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 ie in z)z.hasOwnProperty(ie)&&y.tokenTypeOverrides[ie]&&(z[ie]=y.tokenTypeOverrides[ie]);var ae=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,de=/^\[(x| )\](?=\s)/i,E=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ne=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,le=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,pe=" ";function ve(Ne,We,$e){return We.f=We.inline=$e,$e(Ne,We)}function ce(Ne,We,$e){return We.f=We.block=$e,$e(Ne,We)}function me(Ne){return!Ne||!/\S/.test(Ne.string)}function Ee(Ne){if(Ne.linkTitle=!1,Ne.linkHref=!1,Ne.linkText=!1,Ne.em=!1,Ne.strong=!1,Ne.strikethrough=!1,Ne.quote=0,Ne.indentedCode=!1,Ne.f==Re){var We=we;if(!We){var $e=Be.innerMode(ke,Ne.htmlState);We=$e.mode.name=="xml"&&$e.state.tagStart===null&&!$e.state.context&&$e.state.tokenize.isInText}We&&(Ne.f=Se,Ne.block=Te,Ne.htmlState=null)}return Ne.trailingSpace=0,Ne.trailingSpaceNewLine=!1,Ne.prevLine=Ne.thisLine,Ne.thisLine={stream:null},null}function Te(Ne,We){var $e=Ne.column()===We.indentation,rt=me(We.prevLine.stream),et=We.indentedCode,Xe=We.prevLine.hr,Ye=We.list!==!1,Ge=(We.listStack[We.listStack.length-1]||0)+3;We.indentedCode=!1;var at=We.indentation;if(We.indentationDiff===null&&(We.indentationDiff=We.indentation,Ye)){for(We.list=null;at<We.listStack[We.listStack.length-1];)We.listStack.pop(),We.listStack.length?We.indentation=We.listStack[We.listStack.length-1]:We.list=!1;We.list!==!1&&(We.indentationDiff=at-We.listStack[We.listStack.length-1])}var Qe=!rt&&!Xe&&!We.prevLine.header&&(!Ye||!et)&&!We.prevLine.fencedCodeEnd,ft=(We.list===!1||Xe||rt)&&We.indentation<=Ge&&Ne.match(ae),ot=null;if(We.indentationDiff>=4&&(et||We.prevLine.fencedCodeEnd||We.prevLine.header||rt))return Ne.skipToEnd(),We.indentedCode=!0,z.code;if(Ne.eatSpace())return null;if($e&&We.indentation<=Ge&&(ot=Ne.match(E))&&ot[1].length<=6)return We.quote=0,We.header=ot[1].length,We.thisLine.header=!0,y.highlightFormatting&&(We.formatting="header"),We.f=We.inline,ye(We);if(We.indentation<=Ge&&Ne.eat(">"))return We.quote=$e?1:We.quote+1,y.highlightFormatting&&(We.formatting="quote"),Ne.eatSpace(),ye(We);if(!ft&&!We.setext&&$e&&We.indentation<=Ge&&(ot=Ne.match(ee))){var Je=ot[1]?"ol":"ul";return We.indentation=at+Ne.current().length,We.list=!0,We.quote=0,We.listStack.push(We.indentation),We.em=!1,We.strong=!1,We.code=!1,We.strikethrough=!1,y.taskLists&&Ne.match(de,!1)&&(We.taskList=!0),We.f=We.inline,y.highlightFormatting&&(We.formatting=["list","list-"+Je]),ye(We)}else{if($e&&We.indentation<=Ge&&(ot=Ne.match(oe,!0)))return We.quote=0,We.fencedEndRE=new RegExp(ot[1]+"+ *$"),We.localMode=y.fencedCodeBlockHighlighting&&x(ot[2]||y.fencedCodeBlockDefaultMode),We.localMode&&(We.localState=Be.startState(We.localMode)),We.f=We.block=_e,y.highlightFormatting&&(We.formatting="code-block"),We.code=-1,ye(We);if(We.setext||(!Qe||!Ye)&&!We.quote&&We.list===!1&&!We.code&&!ft&&!le.test(Ne.string)&&(ot=Ne.lookAhead(1))&&(ot=ot.match(ne)))return We.setext?(We.header=We.setext,We.setext=0,Ne.skipToEnd(),y.highlightFormatting&&(We.formatting="header")):(We.header=ot[0].charAt(0)=="="?1:2,We.setext=We.header),We.thisLine.header=!0,We.f=We.inline,ye(We);if(ft)return Ne.skipToEnd(),We.hr=!0,We.thisLine.hr=!0,z.hr;if(Ne.peek()==="[")return ve(Ne,We,He)}return ve(Ne,We,We.inline)}function Re(Ne,We){var $e=ke.token(Ne,We.htmlState);if(!we){var rt=Be.innerMode(ke,We.htmlState);(rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText||We.md_inside&&Ne.current().indexOf(">")>-1)&&(We.f=Se,We.block=Te,We.htmlState=null)}return $e}function _e(Ne,We){var $e=We.listStack[We.listStack.length-1]||0,rt=We.indentation<$e,et=$e+3;if(We.fencedEndRE&&We.indentation<=et&&(rt||Ne.match(We.fencedEndRE))){y.highlightFormatting&&(We.formatting="code-block");var Xe;return rt||(Xe=ye(We)),We.localMode=We.localState=null,We.block=Te,We.f=Se,We.fencedEndRE=null,We.code=0,We.thisLine.fencedCodeEnd=!0,rt?ce(Ne,We,We.block):Xe}else return We.localMode?We.localMode.token(Ne,We.localState):(Ne.skipToEnd(),z.code)}function ye(Ne){var We=[];if(Ne.formatting){We.push(z.formatting),typeof Ne.formatting=="string"&&(Ne.formatting=[Ne.formatting]);for(var $e=0;$e<Ne.formatting.length;$e++)We.push(z.formatting+"-"+Ne.formatting[$e]),Ne.formatting[$e]==="header"&&We.push(z.formatting+"-"+Ne.formatting[$e]+"-"+Ne.header),Ne.formatting[$e]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ne.quote?We.push(z.formatting+"-"+Ne.formatting[$e]+"-"+Ne.quote):We.push("error"))}if(Ne.taskOpen)return We.push("meta"),We.length?We.join(" "):null;if(Ne.taskClosed)return We.push("property"),We.length?We.join(" "):null;if(Ne.linkHref?We.push(z.linkHref,"url"):(Ne.strong&&We.push(z.strong),Ne.em&&We.push(z.em),Ne.strikethrough&&We.push(z.strikethrough),Ne.emoji&&We.push(z.emoji),Ne.linkText&&We.push(z.linkText),Ne.code&&We.push(z.code),Ne.image&&We.push(z.image),Ne.imageAltText&&We.push(z.imageAltText,"link"),Ne.imageMarker&&We.push(z.imageMarker)),Ne.header&&We.push(z.header,z.header+"-"+Ne.header),Ne.quote&&(We.push(z.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ne.quote?We.push(z.quote+"-"+Ne.quote):We.push(z.quote+"-"+y.maxBlockquoteDepth)),Ne.list!==!1){var rt=(Ne.listStack.length-1)%3;rt?rt===1?We.push(z.list2):We.push(z.list3):We.push(z.list1)}return Ne.trailingSpaceNewLine?We.push("trailing-space-new-line"):Ne.trailingSpace&&We.push("trailing-space-"+(Ne.trailingSpace%2?"a":"b")),We.length?We.join(" "):null}function be(Ne,We){if(Ne.match(re,!0))return ye(We)}function Se(Ne,We){var $e=We.text(Ne,We);if(typeof $e!="undefined")return $e;if(We.list)return We.list=null,ye(We);if(We.taskList){var rt=Ne.match(de,!0)[1]===" ";return rt?We.taskOpen=!0:We.taskClosed=!0,y.highlightFormatting&&(We.formatting="task"),We.taskList=!1,ye(We)}if(We.taskOpen=!1,We.taskClosed=!1,We.header&&Ne.match(/^#+$/,!0))return y.highlightFormatting&&(We.formatting="header"),ye(We);var et=Ne.next();if(We.linkTitle){We.linkTitle=!1;var Xe=et;et==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(Ne.match(new RegExp(Ye),!0))return z.linkHref}if(et==="`"){var Ge=We.formatting;y.highlightFormatting&&(We.formatting="code"),Ne.eatWhile("`");var at=Ne.current().length;if(We.code==0&&(!We.quote||at==1))return We.code=at,ye(We);if(at==We.code){var Qe=ye(We);return We.code=0,Qe}else return We.formatting=Ge,ye(We)}else if(We.code)return ye(We);if(et==="\\"&&(Ne.next(),y.highlightFormatting)){var ft=ye(We),ot=z.formatting+"-escape";return ft?ft+" "+ot:ot}if(et==="!"&&Ne.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return We.imageMarker=!0,We.image=!0,y.highlightFormatting&&(We.formatting="image"),ye(We);if(et==="["&&We.imageMarker&&Ne.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return We.imageMarker=!1,We.imageAltText=!0,y.highlightFormatting&&(We.formatting="image"),ye(We);if(et==="]"&&We.imageAltText){y.highlightFormatting&&(We.formatting="image");var ft=ye(We);return We.imageAltText=!1,We.image=!1,We.inline=We.f=Me,ft}if(et==="["&&!We.image)return We.linkText&&Ne.match(/^.*?\]/)||(We.linkText=!0,y.highlightFormatting&&(We.formatting="link")),ye(We);if(et==="]"&&We.linkText){y.highlightFormatting&&(We.formatting="link");var ft=ye(We);return We.linkText=!1,We.inline=We.f=Ne.match(/\(.*?\)| ?\[.*?\]/,!1)?Me:Se,ft}if(et==="<"&&Ne.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Ie,y.highlightFormatting&&(We.formatting="link");var ft=ye(We);return ft?ft+=" ":ft="",ft+z.linkInline}if(et==="<"&&Ne.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Ie,y.highlightFormatting&&(We.formatting="link");var ft=ye(We);return ft?ft+=" ":ft="",ft+z.linkEmail}if(y.xml&&et==="<"&&Ne.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Je=Ne.string.indexOf(">",Ne.pos);if(Je!=-1){var Fe=Ne.string.substring(Ne.start,Je);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Fe)&&(We.md_inside=!0)}return Ne.backUp(1),We.htmlState=Be.startState(ke),ce(Ne,We,Re)}if(y.xml&&et==="<"&&Ne.match(/^\/\w*?>/))return We.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var Pe=1,te=Ne.pos==1?" ":Ne.string.charAt(Ne.pos-2);Pe<3&&Ne.eat(et);)Pe++;var fe=Ne.peek()||" ",Oe=!/\s/.test(fe)&&(!he.test(fe)||/\s/.test(te)||he.test(te)),Ue=!/\s/.test(te)&&(!he.test(te)||/\s/.test(fe)||he.test(fe)),xe=null,Ce=null;if(Pe%2&&(!We.em&&Oe&&(et==="*"||!Ue||he.test(te))?xe=!0:We.em==et&&Ue&&(et==="*"||!Oe||he.test(fe))&&(xe=!1)),Pe>1&&(!We.strong&&Oe&&(et==="*"||!Ue||he.test(te))?Ce=!0:We.strong==et&&Ue&&(et==="*"||!Oe||he.test(fe))&&(Ce=!1)),Ce!=null||xe!=null){y.highlightFormatting&&(We.formatting=xe==null?"strong":Ce==null?"em":"strong em"),xe===!0&&(We.em=et),Ce===!0&&(We.strong=et);var Qe=ye(We);return xe===!1&&(We.em=!1),Ce===!1&&(We.strong=!1),Qe}}else if(et===" "&&(Ne.eat("*")||Ne.eat("_"))){if(Ne.peek()===" ")return ye(We);Ne.backUp(1)}if(y.strikethrough){if(et==="~"&&Ne.eatWhile(et)){if(We.strikethrough){y.highlightFormatting&&(We.formatting="strikethrough");var Qe=ye(We);return We.strikethrough=!1,Qe}else if(Ne.match(/^[^\s]/,!1))return We.strikethrough=!0,y.highlightFormatting&&(We.formatting="strikethrough"),ye(We)}else if(et===" "&&Ne.match(/^~~/,!0)){if(Ne.peek()===" ")return ye(We);Ne.backUp(2)}}if(y.emoji&&et===":"&&Ne.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){We.emoji=!0,y.highlightFormatting&&(We.formatting="emoji");var je=ye(We);return We.emoji=!1,je}return et===" "&&(Ne.match(/^ +$/,!1)?We.trailingSpace++:We.trailingSpace&&(We.trailingSpaceNewLine=!0)),ye(We)}function Ie(Ne,We){var $e=Ne.next();if($e===">"){We.f=We.inline=Se,y.highlightFormatting&&(We.formatting="link");var rt=ye(We);return rt?rt+=" ":rt="",rt+z.linkInline}return Ne.match(/^[^>]+/,!0),z.linkInline}function Me(Ne,We){if(Ne.eatSpace())return null;var $e=Ne.next();return $e==="("||$e==="["?(We.f=We.inline=De($e==="("?")":"]"),y.highlightFormatting&&(We.formatting="link-string"),We.linkHref=!0,ye(We)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function De(Ne){return function(We,$e){var rt=We.next();if(rt===Ne){$e.f=$e.inline=Se,y.highlightFormatting&&($e.formatting="link-string");var et=ye($e);return $e.linkHref=!1,et}return We.match(Ae[Ne]),$e.linkHref=!0,ye($e)}}function He(Ne,We){return Ne.match(/^([^\]\\]|\\.)*\]:/,!1)?(We.f=Ke,Ne.next(),y.highlightFormatting&&(We.formatting="link"),We.linkText=!0,ye(We)):ve(Ne,We,Se)}function Ke(Ne,We){if(Ne.match(/^\]:/,!0)){We.f=We.inline=Ve,y.highlightFormatting&&(We.formatting="link");var $e=ye(We);return We.linkText=!1,$e}return Ne.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function Ve(Ne,We){return Ne.eatSpace()?null:(Ne.match(/^[^\s]+/,!0),Ne.peek()===void 0?We.linkTitle=!0:Ne.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),We.f=We.inline=Se,z.linkHref+" url")}var nt={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:Se,text:be,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(Ne){return{f:Ne.f,prevLine:Ne.prevLine,thisLine:Ne.thisLine,block:Ne.block,htmlState:Ne.htmlState&&Be.copyState(ke,Ne.htmlState),indentation:Ne.indentation,localMode:Ne.localMode,localState:Ne.localMode?Be.copyState(Ne.localMode,Ne.localState):null,inline:Ne.inline,text:Ne.text,formatting:!1,linkText:Ne.linkText,linkTitle:Ne.linkTitle,linkHref:Ne.linkHref,code:Ne.code,em:Ne.em,strong:Ne.strong,strikethrough:Ne.strikethrough,emoji:Ne.emoji,header:Ne.header,setext:Ne.setext,hr:Ne.hr,taskList:Ne.taskList,list:Ne.list,listStack:Ne.listStack.slice(0),quote:Ne.quote,indentedCode:Ne.indentedCode,trailingSpace:Ne.trailingSpace,trailingSpaceNewLine:Ne.trailingSpaceNewLine,md_inside:Ne.md_inside,fencedEndRE:Ne.fencedEndRE}},token:function(Ne,We){if(We.formatting=!1,Ne!=We.thisLine.stream){if(We.header=0,We.hr=!1,Ne.match(/^\s*$/,!0))return Ee(We),null;if(We.prevLine=We.thisLine,We.thisLine={stream:Ne},We.taskList=!1,We.trailingSpace=0,We.trailingSpaceNewLine=!1,!We.localState&&(We.f=We.block,We.f!=Re)){var $e=Ne.match(/^\s*/,!0)[0].replace(/\t/g,pe).length;if(We.indentation=$e,We.indentationDiff=null,$e>0)return null}}return We.f(Ne,We)},innerMode:function(Ne){return Ne.block==Re?{state:Ne.htmlState,mode:ke}:Ne.localState?{state:Ne.localState,mode:Ne.localMode}:{state:Ne,mode:nt}},indent:function(Ne,We,$e){return Ne.block==Re&&ke.indent?ke.indent(Ne.htmlState,We,$e):Ne.localState&&Ne.localMode.indent?Ne.localMode.indent(Ne.localState,We,$e):Be.Pass},blankLine:Ee,getType:ye,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return nt},"xml"),Be.defineMIME("text/markdown","markdown"),Be.defineMIME("text/x-markdown","markdown")})},98101:function(Nt,Dt,ze){(function(Be){Be(ze(89780))})(function(Be){"use strict";Be.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 mt=0;mt<Be.modeInfo.length;mt++){var y=Be.modeInfo[mt];y.mimes&&(y.mime=y.mimes[0])}Be.findModeByMIME=function(ke){ke=ke.toLowerCase();for(var we=0;we<Be.modeInfo.length;we++){var x=Be.modeInfo[we];if(x.mime==ke)return x;if(x.mimes){for(var z=0;z<x.mimes.length;z++)if(x.mimes[z]==ke)return x}}if(/\+xml$/.test(ke))return Be.findModeByMIME("application/xml");if(/\+json$/.test(ke))return Be.findModeByMIME("application/json")},Be.findModeByExtension=function(ke){ke=ke.toLowerCase();for(var we=0;we<Be.modeInfo.length;we++){var x=Be.modeInfo[we];if(x.ext){for(var z=0;z<x.ext.length;z++)if(x.ext[z]==ke)return x}}},Be.findModeByFileName=function(ke){for(var we=0;we<Be.modeInfo.length;we++){var x=Be.modeInfo[we];if(x.file&&x.file.test(ke))return x}var z=ke.lastIndexOf("."),ie=z>-1&&ke.substring(z+1,ke.length);if(ie)return Be.findModeByExtension(ie)},Be.findModeByName=function(ke){ke=ke.toLowerCase();for(var we=0;we<Be.modeInfo.length;we++){var x=Be.modeInfo[we];if(x.name.toLowerCase()==ke)return x;if(x.alias){for(var z=0;z<x.alias.length;z++)if(x.alias[z].toLowerCase()==ke)return x}}}})},67549:function(Nt,Dt,ze){(function(Be){Be(ze(89780))})(function(Be){"use strict";Be.defineMode("stex",function(mt,y){"use strict";function ke(re,oe){re.cmdState.push(oe)}function we(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function x(re){var oe=re.cmdState.pop();oe&&oe.closeBracket()}function z(re){for(var oe=re.cmdState,le=oe.length-1;le>=0;le--){var he=oe[le];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function ie(re,oe,le){return function(){this.name=re,this.bracketNo=0,this.style=oe,this.styles=le,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ae={};ae.importmodule=ie("importmodule","tag",["string","builtin"]),ae.documentclass=ie("documentclass","tag",["","atom"]),ae.usepackage=ie("usepackage","tag",["atom"]),ae.begin=ie("begin","tag",["atom"]),ae.end=ie("end","tag",["atom"]),ae.label=ie("label","tag",["atom"]),ae.ref=ie("ref","tag",["atom"]),ae.eqref=ie("eqref","tag",["atom"]),ae.cite=ie("cite","tag",["atom"]),ae.bibitem=ie("bibitem","tag",["atom"]),ae.Bibitem=ie("Bibitem","tag",["atom"]),ae.RBibitem=ie("RBibitem","tag",["atom"]),ae.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,oe){re.f=oe}function de(re,oe){var le;if(re.match(/^\\[a-zA-Z@]+/)){var he=re.current().slice(1);return le=ae.hasOwnProperty(he)?ae[he]:ae.DEFAULT,le=new le,ke(oe,le),ee(oe,ne),le.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(oe,function(ve,ce){return E(ve,ce,"\\]")}),"keyword";if(re.match("\\("))return ee(oe,function(ve,ce){return E(ve,ce,"\\)")}),"keyword";if(re.match("$$"))return ee(oe,function(ve,ce){return E(ve,ce,"$$")}),"keyword";if(re.match("$"))return ee(oe,function(ve,ce){return E(ve,ce,"$")}),"keyword";var pe=re.next();if(pe=="%")return re.skipToEnd(),"comment";if(pe=="}"||pe=="]"){if(le=we(oe),le)le.closeBracket(pe),ee(oe,ne);else return"error";return"bracket"}else return pe=="{"||pe=="["?(le=ae.DEFAULT,le=new le,ke(oe,le),"bracket"):/\d/.test(pe)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),le=z(oe),le.name=="begin"&&(le.argument=re.current()),le.styleIdentifier())}function E(re,oe,le){if(re.eatSpace())return null;if(le&&re.match(le))return ee(oe,de),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=re.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(re.skipToEnd(),"comment"):"error"}function ne(re,oe){var le=re.peek(),he;return le=="{"||le=="["?(he=we(oe),he.openBracket(le),re.eat(le),ee(oe,de),"bracket"):/[ \t\r]/.test(le)?(re.eat(le),null):(ee(oe,de),x(oe),de(re,oe))}return{startState:function(){var re=y.inMathMode?function(oe,le){return E(oe,le)}:de;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,oe){return oe.f(re,oe)},blankLine:function(re){re.f=de,re.cmdState.length=0},lineComment:"%"}}),Be.defineMIME("text/x-stex","stex"),Be.defineMIME("text/x-latex","stex")})},15525:function(Nt,Dt,ze){(function(Be){Be(ze(89780))})(function(Be){"use strict";var mt={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},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Be.defineMode("xml",function(ke,we){var x=ke.indentUnit,z={},ie=we.htmlMode?mt:y;for(var ae in ie)z[ae]=ie[ae];for(var ae in we)z[ae]=we[ae];var ee,de;function E(Ie,Me){function Ae(Ke){return Me.tokenize=Ke,Ke(Ie,Me)}var De=Ie.next();if(De=="<")return Ie.eat("!")?Ie.eat("[")?Ie.match("CDATA[")?Ae(oe("atom","]]>")):null:Ie.match("--")?Ae(oe("comment","-->")):Ie.match("DOCTYPE",!0,!0)?(Ie.eatWhile(/[\w\._\-]/),Ae(le(1))):null:Ie.eat("?")?(Ie.eatWhile(/[\w\._\-]/),Me.tokenize=oe("meta","?>"),"meta"):(ee=Ie.eat("/")?"closeTag":"openTag",Me.tokenize=ne,"tag bracket");if(De=="&"){var He;return Ie.eat("#")?Ie.eat("x")?He=Ie.eatWhile(/[a-fA-F\d]/)&&Ie.eat(";"):He=Ie.eatWhile(/[\d]/)&&Ie.eat(";"):He=Ie.eatWhile(/[\w\.\-:]/)&&Ie.eat(";"),He?"atom":"error"}else return Ie.eatWhile(/[^&<]/),null}E.isInText=!0;function ne(Ie,Me){var Ae=Ie.next();if(Ae==">"||Ae=="/"&&Ie.eat(">"))return Me.tokenize=E,ee=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return ee="equals",null;if(Ae=="<"){Me.tokenize=E,Me.state=ce,Me.tagName=Me.tagStart=null;var De=Me.tokenize(Ie,Me);return De?De+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Me.tokenize=re(Ae),Me.stringStartCol=Ie.column(),Me.tokenize(Ie,Me)):(Ie.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(Ie){var Me=function(Ae,De){for(;!Ae.eol();)if(Ae.next()==Ie){De.tokenize=ne;break}return"string"};return Me.isInAttribute=!0,Me}function oe(Ie,Me){return function(Ae,De){for(;!Ae.eol();){if(Ae.match(Me)){De.tokenize=E;break}Ae.next()}return Ie}}function le(Ie){return function(Me,Ae){for(var De;(De=Me.next())!=null;){if(De=="<")return Ae.tokenize=le(Ie+1),Ae.tokenize(Me,Ae);if(De==">")if(Ie==1){Ae.tokenize=E;break}else return Ae.tokenize=le(Ie-1),Ae.tokenize(Me,Ae)}return"meta"}}function he(Ie,Me,Ae){this.prev=Ie.context,this.tagName=Me,this.indent=Ie.indented,this.startOfLine=Ae,(z.doNotIndent.hasOwnProperty(Me)||Ie.context&&Ie.context.noIndent)&&(this.noIndent=!0)}function pe(Ie){Ie.context&&(Ie.context=Ie.context.prev)}function ve(Ie,Me){for(var Ae;;){if(!Ie.context||(Ae=Ie.context.tagName,!z.contextGrabbers.hasOwnProperty(Ae)||!z.contextGrabbers[Ae].hasOwnProperty(Me)))return;pe(Ie)}}function ce(Ie,Me,Ae){return Ie=="openTag"?(Ae.tagStart=Me.column(),me):Ie=="closeTag"?Ee:ce}function me(Ie,Me,Ae){return Ie=="word"?(Ae.tagName=Me.current(),de="tag",_e):z.allowMissingTagName&&Ie=="endTag"?(de="tag bracket",_e(Ie,Me,Ae)):(de="error",me)}function Ee(Ie,Me,Ae){if(Ie=="word"){var De=Me.current();return Ae.context&&Ae.context.tagName!=De&&z.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&pe(Ae),Ae.context&&Ae.context.tagName==De||z.matchClosing===!1?(de="tag",Te):(de="tag error",Re)}else return z.allowMissingTagName&&Ie=="endTag"?(de="tag bracket",Te(Ie,Me,Ae)):(de="error",Re)}function Te(Ie,Me,Ae){return Ie!="endTag"?(de="error",Te):(pe(Ae),ce)}function Re(Ie,Me,Ae){return de="error",Te(Ie,Me,Ae)}function _e(Ie,Me,Ae){if(Ie=="word")return de="attribute",ye;if(Ie=="endTag"||Ie=="selfcloseTag"){var De=Ae.tagName,He=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Ie=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(De)?ve(Ae,De):(ve(Ae,De),Ae.context=new he(Ae,De,He==Ae.indented)),ce}return de="error",_e}function ye(Ie,Me,Ae){return Ie=="equals"?be:(z.allowMissing||(de="error"),_e(Ie,Me,Ae))}function be(Ie,Me,Ae){return Ie=="string"?Se:Ie=="word"&&z.allowUnquoted?(de="string",_e):(de="error",_e(Ie,Me,Ae))}function Se(Ie,Me,Ae){return Ie=="string"?Se:_e(Ie,Me,Ae)}return{startState:function(Ie){var Me={tokenize:E,state:ce,indented:Ie||0,tagName:null,tagStart:null,context:null};return Ie!=null&&(Me.baseIndent=Ie),Me},token:function(Ie,Me){if(!Me.tagName&&Ie.sol()&&(Me.indented=Ie.indentation()),Ie.eatSpace())return null;ee=null;var Ae=Me.tokenize(Ie,Me);return(Ae||ee)&&Ae!="comment"&&(de=null,Me.state=Me.state(ee||Ae,Ie,Me),de&&(Ae=de=="error"?Ae+" error":de)),Ae},indent:function(Ie,Me,Ae){var De=Ie.context;if(Ie.tokenize.isInAttribute)return Ie.tagStart==Ie.indented?Ie.stringStartCol+1:Ie.indented+x;if(De&&De.noIndent)return Be.Pass;if(Ie.tokenize!=ne&&Ie.tokenize!=E)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Ie.tagName)return z.multilineTagIndentPastTag!==!1?Ie.tagStart+Ie.tagName.length+2:Ie.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(Me))return 0;var He=Me&&/^<(\/)?([\w_:\.-]*)/.exec(Me);if(He&&He[1])for(;De;)if(De.tagName==He[2]){De=De.prev;break}else if(z.implicitlyClosed.hasOwnProperty(De.tagName))De=De.prev;else break;else if(He)for(;De;){var Ke=z.contextGrabbers[De.tagName];if(Ke&&Ke.hasOwnProperty(He[2]))De=De.prev;else break}for(;De&&De.prev&&!De.startOfLine;)De=De.prev;return De?De.indent+x:Ie.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Ie){Ie.state==be&&(Ie.state=_e)},xmlCurrentTag:function(Ie){return Ie.tagName?{name:Ie.tagName,close:Ie.type=="closeTag"}:null},xmlCurrentContext:function(Ie){for(var Me=[],Ae=Ie.context;Ae;Ae=Ae.prev)Ae.tagName&&Me.push(Ae.tagName);return Me.reverse()}}}),Be.defineMIME("text/xml","xml"),Be.defineMIME("application/xml","xml"),Be.mimeModes.hasOwnProperty("text/html")||Be.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Nt,Dt,ze){var Be,mt;(function(y,ke){Nt.exports=ke(y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ze.g!="undefined"?ze.g:this,function(y){"use strict";y=y||{};var ke=y.Base64,we="2.6.4",x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Ae){for(var De={},He=0,Ke=Ae.length;He<Ke;He++)De[Ae.charAt(He)]=He;return De}(x),ie=String.fromCharCode,ae=function(Ae){if(Ae.length<2){var De=Ae.charCodeAt(0);return De<128?Ae:De<2048?ie(192|De>>>6)+ie(128|De&63):ie(224|De>>>12&15)+ie(128|De>>>6&63)+ie(128|De&63)}else{var De=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return ie(240|De>>>18&7)+ie(128|De>>>12&63)+ie(128|De>>>6&63)+ie(128|De&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,de=function(Ae){return Ae.replace(ee,ae)},E=function(Ae){var De=[0,2,1][Ae.length%3],He=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),Ke=[x.charAt(He>>>18),x.charAt(He>>>12&63),De>=2?"=":x.charAt(He>>>6&63),De>=1?"=":x.charAt(He&63)];return Ke.join("")},ne=y.btoa&&typeof y.btoa=="function"?function(Ae){return y.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,E)},re=function(Ae){return ne(de(String(Ae)))},oe=function(Ae){return Ae.replace(/[+\/]/g,function(De){return De=="+"?"-":"_"}).replace(/=/g,"")},le=function(Ae,De){return De?oe(re(Ae)):re(Ae)},he=function(Ae){return le(Ae,!0)},pe;y.Uint8Array&&(pe=function(Ae,De){for(var He="",Ke=0,Ve=Ae.length;Ke<Ve;Ke+=3){var nt=Ae[Ke],Ne=Ae[Ke+1],We=Ae[Ke+2],$e=nt<<16|Ne<<8|We;He+=x.charAt($e>>>18)+x.charAt($e>>>12&63)+(typeof Ne!="undefined"?x.charAt($e>>>6&63):"=")+(typeof We!="undefined"?x.charAt($e&63):"=")}return De?oe(He):He});var ve=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ce=function(Ae){switch(Ae.length){case 4:var De=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),He=De-65536;return ie((He>>>10)+55296)+ie((He&1023)+56320);case 3:return ie((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return ie((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},me=function(Ae){return Ae.replace(ve,ce)},Ee=function(Ae){var De=Ae.length,He=De%4,Ke=(De>0?z[Ae.charAt(0)]<<18:0)|(De>1?z[Ae.charAt(1)]<<12:0)|(De>2?z[Ae.charAt(2)]<<6:0)|(De>3?z[Ae.charAt(3)]:0),Ve=[ie(Ke>>>16),ie(Ke>>>8&255),ie(Ke&255)];return Ve.length-=[0,0,2,1][He],Ve.join("")},Te=y.atob&&typeof y.atob=="function"?function(Ae){return y.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,Ee)},Re=function(Ae){return Te(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(Ae){return me(Te(Ae))},ye=function(Ae){return String(Ae).replace(/[-_]/g,function(De){return De=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},be=function(Ae){return _e(ye(Ae))},Se;y.Uint8Array&&(Se=function(Ae){return Uint8Array.from(Re(ye(Ae)),function(De){return De.charCodeAt(0)})});var Ie=function(){var Ae=y.Base64;return y.Base64=ke,Ae};if(y.Base64={VERSION:we,atob:Re,btoa:ne,fromBase64:be,toBase64:le,utob:de,encode:le,encodeURI:he,btou:me,decode:be,noConflict:Ie,fromUint8Array:pe,toUint8Array:Se},typeof Object.defineProperty=="function"){var Me=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Me(function(){return be(this)})),Object.defineProperty(String.prototype,"toBase64",Me(function(Ae){return le(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Me(function(){return le(this,!0)}))}}return y.Meteor&&(Base64=y.Base64),Nt.exports?Nt.exports.Base64=y.Base64:(Be=[],mt=function(){return y.Base64}.apply(Dt,Be),mt!==void 0&&(Nt.exports=mt)),{Base64:y.Base64}})},2859:function(Nt,Dt,ze){"use strict";ze.d(Dt,{hP:function(){return Fe}});var Be=function(Pe,te){return(Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Oe){fe.__proto__=Oe}||function(fe,Oe){for(var Ue in Oe)Object.prototype.hasOwnProperty.call(Oe,Ue)&&(fe[Ue]=Oe[Ue])})(Pe,te)};function mt(Pe,te){function fe(){this.constructor=Pe}Be(Pe,te),Pe.prototype=te===null?Object.create(te):(fe.prototype=te.prototype,new fe)}function y(Pe,te,fe,Oe){return new(fe||(fe=Promise))(function(Ue,xe){function Ce(tt){try{Ze(Oe.next(tt))}catch(it){xe(it)}}function je(tt){try{Ze(Oe.throw(tt))}catch(it){xe(it)}}function Ze(tt){var it;tt.done?Ue(tt.value):(it=tt.value,it instanceof fe?it:new fe(function(ct){ct(it)})).then(Ce,je)}Ze((Oe=Oe.apply(Pe,te||[])).next())})}function ke(Pe,te){var fe,Oe,Ue,xe,Ce={label:0,sent:function(){if(1&Ue[0])throw Ue[1];return Ue[1]},trys:[],ops:[]};return xe={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(xe[Symbol.iterator]=function(){return this}),xe;function je(Ze){return function(tt){return function(it){if(fe)throw new TypeError("Generator is already executing.");for(;Ce;)try{if(fe=1,Oe&&(Ue=2&it[0]?Oe.return:it[0]?Oe.throw||((Ue=Oe.return)&&Ue.call(Oe),0):Oe.next)&&!(Ue=Ue.call(Oe,it[1])).done)return Ue;switch(Oe=0,Ue&&(it=[2&it[0],Ue.value]),it[0]){case 0:case 1:Ue=it;break;case 4:return Ce.label++,{value:it[1],done:!1};case 5:Ce.label++,Oe=it[1],it=[0];continue;case 7:it=Ce.ops.pop(),Ce.trys.pop();continue;default:if(Ue=Ce.trys,!((Ue=Ue.length>0&&Ue[Ue.length-1])||it[0]!==6&&it[0]!==2)){Ce=0;continue}if(it[0]===3&&(!Ue||it[1]>Ue[0]&&it[1]<Ue[3])){Ce.label=it[1];break}if(it[0]===6&&Ce.label<Ue[1]){Ce.label=Ue[1],Ue=it;break}if(Ue&&Ce.label<Ue[2]){Ce.label=Ue[2],Ce.ops.push(it);break}Ue[2]&&Ce.ops.pop(),Ce.trys.pop();continue}it=te.call(Pe,Ce)}catch(ct){it=[6,ct],Oe=0}finally{fe=Ue=0}if(5&it[0])throw it[1];return{value:it[0]?it[1]:void 0,done:!0}}([Ze,tt])}}}function we(){for(var Pe=0,te=0,fe=arguments.length;te<fe;te++)Pe+=arguments[te].length;var Oe=Array(Pe),Ue=0;for(te=0;te<fe;te++)for(var xe=arguments[te],Ce=0,je=xe.length;Ce<je;Ce++,Ue++)Oe[Ue]=xe[Ce];return Oe}var x=function(){function Pe(){}return Pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Pe.setAttributes=function(te,fe){for(var Oe=0,Ue=fe;Oe<Ue.length;Oe++){var xe=Ue[Oe],Ce=xe[0],je=xe[1];te.setAttribute(Ce,je)}},Pe.createRect=function(te,fe,Oe){var Ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ue.setAttribute("width",te.toString()),Ue.setAttribute("height",fe.toString()),Oe&&Pe.setAttributes(Ue,Oe),Ue},Pe.createLine=function(te,fe,Oe,Ue,xe){var Ce=document.createElementNS("http://www.w3.org/2000/svg","line");return Ce.setAttribute("x1",te.toString()),Ce.setAttribute("y1",fe.toString()),Ce.setAttribute("x2",Oe.toString()),Ce.setAttribute("y2",Ue.toString()),xe&&Pe.setAttributes(Ce,xe),Ce},Pe.createPolygon=function(te,fe){var Oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Oe.setAttribute("points",te),fe&&Pe.setAttributes(Oe,fe),Oe},Pe.createCircle=function(te,fe){var Oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Oe.setAttribute("cx",(te/2).toString()),Oe.setAttribute("cy",(te/2).toString()),Oe.setAttribute("r",te.toString()),fe&&Pe.setAttributes(Oe,fe),Oe},Pe.createEllipse=function(te,fe,Oe){var Ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ue.setAttribute("cx",(te/2).toString()),Ue.setAttribute("cy",(fe/2).toString()),Ue.setAttribute("rx",(te/2).toString()),Ue.setAttribute("ry",(fe/2).toString()),Oe&&Pe.setAttributes(Ue,Oe),Ue},Pe.createGroup=function(te){var fe=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&Pe.setAttributes(fe,te),fe},Pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Pe.createMarker=function(te,fe,Oe,Ue,xe,Ce,je){var Ze=document.createElementNS("http://www.w3.org/2000/svg","marker");return Pe.setAttributes(Ze,[["id",te],["orient",fe],["markerWidth",Oe.toString()],["markerHeight",Ue.toString()],["refX",xe.toString()],["refY",Ce.toString()]]),Ze.appendChild(je),Ze},Pe.createText=function(te){var fe=document.createElementNS("http://www.w3.org/2000/svg","text");return fe.setAttribute("x","0"),fe.setAttribute("y","0"),te&&Pe.setAttributes(fe,te),fe},Pe.createTSpan=function(te,fe){var Oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Oe.textContent=te,fe&&Pe.setAttributes(Oe,fe),Oe},Pe.createImage=function(te){var fe=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&Pe.setAttributes(fe,te),fe},Pe.createPoint=function(te,fe){var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Oe.x=te,Oe.y=fe,Oe},Pe.createPath=function(te,fe){var Oe=document.createElementNS("http://www.w3.org/2000/svg","path");return Oe.setAttribute("d",te),fe&&Pe.setAttributes(Oe,fe),Oe},Pe}(),z=function(){function Pe(){}return Pe.addKey=function(te){Pe.key=te},Object.defineProperty(Pe,"isLicensed",{get:function(){return!!Pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Pe.key)},enumerable:!1,configurable:!0}),Pe}(),ie=function(){function Pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Pe.prototype.rasterize=function(te,fe,Oe){var Ue=this;return new Promise(function(xe){var Ce=Oe!==void 0?Oe:document.createElement("canvas");te===null&&(Ue.markersOnly=!0,Ue.naturalSize=!1);var je=document.createElementNS("http://www.w3.org/2000/svg","svg");je.setAttribute("xmlns","http://www.w3.org/2000/svg"),je.setAttribute("width",fe.width.baseVal.valueAsString),je.setAttribute("height",fe.height.baseVal.valueAsString),je.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),je.innerHTML=fe.innerHTML,Ue.naturalSize===!0?(je.width.baseVal.value=te.naturalWidth,je.height.baseVal.value=te.naturalHeight):Ue.width!==void 0&&Ue.height!==void 0&&(je.width.baseVal.value=Ue.width,je.height.baseVal.value=Ue.height),Ce.width=je.width.baseVal.value,Ce.height=je.height.baseVal.value;var Ze=je.outerHTML,tt=Ce.getContext("2d");Ue.markersOnly!==!0&&tt.drawImage(te,0,0,Ce.width,Ce.height);var it=window.URL,ct=new Image(Ce.width,Ce.height);ct.setAttribute("crossOrigin","anonymous");var ut=new Blob([Ze],{type:"image/svg+xml"}),pt=it.createObjectURL(ut);ct.onload=function(){tt.drawImage(ct,0,0),it.revokeObjectURL(pt);var St=Ce.toDataURL(Ue.imageType,Ue.imageQuality);xe(St)},ct.src=pt})},Pe}(),ae=function(){},ee=function(){function Pe(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(Pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Pe.prototype.addClass=function(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},Pe.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)},Pe.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 de("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new de("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new de("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new E("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new E("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Pe.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Pe}(),de=function(Pe,te){this.selector=Pe,this.style=te},E=function(Pe,te){this.localName=Pe,this.style=te},ne=function(){function Pe(te,fe,Oe,Ue,xe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=fe,this.markerItems=Oe,this.uiStyleSettings=Ue,this.styles=xe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Pe.prototype.show=function(te){var fe=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 Oe=document.createElement("div");Oe.className=this.toolbarBlockStyleClass.name,Oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Oe),this.addActionButton(Oe,'<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(Oe,'<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(Oe,'<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(Oe,'<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(Oe,'<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(Oe,'<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(Oe,'<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(Oe,'<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(xe){var Ce=document.createElement("div");Ce.className=""+fe.toolbarButtonStyleClass.name,Ce.setAttribute("data-type-name",xe.typeName),Ce.innerHTML=xe.icon,Ce.addEventListener("click",function(){fe.markerToolbarButtonClicked(Ce,xe)}),fe.buttons.push(Ce),fe.markerButtons.push(Ce)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ue=document.createElement("div");Ue.className=this.toolbarBlockStyleClass.name,Ue.style.whiteSpace="nowrap",Ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ue),this.addActionButton(Ue,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ue,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Pe.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},Pe.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},Pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Pe.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 fe=0;fe<this.markerButtons.length;fe++)fe<te||fe===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[fe]):(fe===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[fe]))}},Pe.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Pe.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(fe){fe.className=fe.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),fe.className=fe.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},Pe.prototype.addActionButton=function(te,fe,Oe){var Ue=this,xe=document.createElement("div");switch(xe.className=""+this.toolbarButtonStyleClass.name,xe.innerHTML=fe,xe.setAttribute("data-action",Oe),xe.addEventListener("click",function(){Ue.actionToolbarButtonClicked(xe,Oe)}),Oe){case"select":xe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":xe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":xe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":xe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":xe.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(xe),this.buttons.push(xe)},Pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new E("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 E("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new E("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new E("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 E("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new E("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 E("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new E("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new de("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new de("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Pe.prototype.markerToolbarButtonClicked=function(te,fe){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Oe){return Oe("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},Pe.prototype.actionToolbarButtonClicked=function(te,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Oe){return Oe("action",fe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Pe.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)},Pe.prototype.setActiveMarkerButton=function(te){var fe=this.markerButtons.find(function(Oe){return Oe.getAttribute("data-type-name")===te});fe&&this.setActiveButton(fe)},Pe.prototype.setCurrentMarker=function(te){var fe=this;this.currentMarker=te,this.buttons.filter(function(Oe){return/delete|notes/.test(Oe.getAttribute("data-action"))}).forEach(function(Oe){fe.currentMarker===void 0?(Oe.style.fillOpacity="0.4",Oe.style.pointerEvents="none"):(Oe.style.fillOpacity="1",Oe.style.pointerEvents="all")})},Pe}(),re=function(){function Pe(te,fe,Oe,Ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=fe,this.uiStyleSettings=Oe,this.styles=Ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Pe.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new E("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 E("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new E("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new E("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new E("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 E("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new E("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
padding: `+fe+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new E("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new E("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new de("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new de("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Pe.prototype.show=function(te){var fe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Pe.prototype.setPanelButtons=function(te){var fe,Oe,Ue=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Oe!==void 0?Oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(xe){var Ce;xe.uiStyleSettings=Ue.uiStyleSettings;var je=document.createElement("div");je.className=Ue.toolboxButtonStyleClass.name+" "+((Ce=Ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ce!==void 0?Ce:Ue.toolboxButtonStyleColorsClass.name),je.innerHTML=xe.icon,je.title=xe.title,je.addEventListener("click",function(){Ue.panelButtonClick(xe)}),Ue.panelButtons.push(je),Ue.buttonRow.appendChild(je)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Pe.prototype.panelButtonClick=function(te){var fe=this,Oe=-1;if(te!==this.activePanel){Oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var Ue=te.getUi();Ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){fe.displayMode==="inline"?fe.panelRow.style.display="none":fe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(xe,Ce){var je,Ze;xe.className=fe.toolboxButtonStyleClass.name+" "+(Ce===Oe?""+((je=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&je!==void 0?je:fe.toolboxActiveButtonStyleColorsClass.name):""+((Ze=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ze!==void 0?Ze:fe.toolboxButtonStyleColorsClass.name))})},Pe}(),oe=function(Pe,te){this.title=Pe,this.icon=te},le=function(Pe){function te(fe,Oe,Ue,xe){var Ce=Pe.call(this,fe,xe||'<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 Ce.colors=[],Ce.addTransparent=!1,Ce.colorBoxes=[],Ce.colors=Oe,Ce.currentColor=Ue,Ce.setCurrentColor=Ce.setCurrentColor.bind(Ce),Ce.getColorBox=Ce.getColorBox.bind(Ce),Ce}return mt(te,Pe),te.prototype.getUi=function(){var fe=this,Oe=document.createElement("div");return Oe.style.overflow="hidden",Oe.style.whiteSpace="nowrap",this.colors.forEach(function(Ue){var xe=fe.getColorBox(Ue);Oe.appendChild(xe),fe.colorBoxes.push(xe)}),Oe},te.prototype.getColorBox=function(fe){var Oe=this,Ue=this.uiStyleSettings.toolbarHeight/4,xe=this.uiStyleSettings.toolbarHeight-Ue,Ce=document.createElement("div");Ce.style.display="inline-block",Ce.style.boxSizing="content-box",Ce.style.width=xe-2+"px",Ce.style.height=xe-2+"px",Ce.style.padding="1px",Ce.style.marginRight="2px",Ce.style.marginBottom="2px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.borderRadius=(xe+2)/2+"px",Ce.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){Oe.setCurrentColor(fe,Ce)});var je=document.createElement("div");return je.style.display="inline-block",je.style.width=xe-2+"px",je.style.height=xe-2+"px",je.style.backgroundColor=fe,je.style.borderRadius=xe/2+"px",fe==="transparent"&&(je.style.fill=this.uiStyleSettings.toolboxAccentColor,je.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>`),Ce.appendChild(je),Ce},te.prototype.setCurrentColor=function(fe,Oe){var Ue=this;this.currentColor=fe,this.colorBoxes.forEach(function(xe){xe.style.borderColor=xe===Oe?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},te}(oe),he=function(){function Pe(te,fe,Oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=fe,this.globalSettings=Oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(te){return!1},Object.defineProperty(Pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Pe.prototype.pointerDown=function(te,fe){},Pe.prototype.dblClick=function(te,fe){},Pe.prototype.manipulate=function(te){},Pe.prototype.pointerUp=function(te){this.stateChanged()},Pe.prototype.dispose=function(){},Pe.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},Pe.prototype.getState=function(){return{typeName:Pe.typeName,state:this.state,notes:this.notes}},Pe.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},Pe.prototype.scale=function(te,fe){},Pe.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},Pe.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},Pe.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)}},Pe.typeName="MarkerBase",Pe}(),pe=function(){function Pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Pe.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},Pe}(),ve=function(){function Pe(){this.GRIP_SIZE=10,this.visual=x.createGroup(),this.visual.appendChild(x.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(x.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Pe.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},Pe}(),ce=function(){function Pe(){}return Pe.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},Pe.toSVGMatrix=function(te,fe){return te.a=fe.a,te.b=fe.b,te.c=fe.c,te.d=fe.d,te.e=fe.e,te.f=fe.f,te},Pe}(),me=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.left=0,xe.top=0,xe.width=0,xe.height=0,xe.defaultSize={x:50,y:20},xe.offsetX=0,xe.offsetY=0,xe.rotationAngle=0,xe.CB_DISTANCE=10,xe._suppressMarkerCreateEvent=!1,xe.container.transform.baseVal.appendItem(x.createTransform()),xe.setupControlBox(),xe}return mt(te,Pe),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(fe){this._visual=fe;var Oe=x.createTransform();this._visual.transform.baseVal.appendItem(Oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(fe){return!!Pe.prototype.ownsTarget.call(this,fe)||!!(this.controlGrips.findGripByVisual(fe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe))},te.prototype.pointerDown=function(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.state==="new"&&(this.left=fe.x,this.top=fe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ue=this.unrotatePoint(fe);if(this.manipulationStartX=Ue.x,this.manipulationStartY=Ue.y,this.offsetX=Ue.x-this.left,this.offsetY=Ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Oe)){this.activeGrip=this.rotatorGrip;var xe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=xe.x-this.width/2,this.top=xe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ce=this.container.transform.baseVal.getItem(0);Ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ce,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(fe){var Oe=this.state;Pe.prototype.pointerUp.call(this,fe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(fe),this._state="select",Oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(fe){this.visual.style.transform="translate("+fe.x+"px, "+fe.y+"px)"},te.prototype.manipulate=function(fe){var Oe=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(Oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Oe):this.state==="rotate"&&this.rotate(fe)},te.prototype.resize=function(fe){var Oe=this.manipulationStartLeft,Ue=this.manipulationStartWidth,xe=this.manipulationStartTop,Ce=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Oe=this.manipulationStartLeft+fe.x-this.manipulationStartX,Ue=this.manipulationStartWidth+this.manipulationStartLeft-Oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ue=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:xe=this.manipulationStartTop+fe.y-this.manipulationStartY,Ce=this.manipulationStartHeight+this.manipulationStartTop-xe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ce=this.manipulationStartHeight+fe.y-this.manipulationStartY}Ue>=0?(this.left=Oe,this.width=Ue):(this.left=Oe+Ue,this.width=-Ue),Ce>=0?(this.top=xe,this.height=Ce):(this.top=xe+Ce,this.height=-Ce),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(fe){if(Math.abs(fe.x-this.centerX)>.1){var Oe=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*Oe,this.applyRotation()}},te.prototype.applyRotation=function(){var fe=this.container.transform.baseVal.getItem(0);fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(fe,0)},te.prototype.rotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Oe=this.container.getCTM(),Ue=x.createPoint(fe.x,fe.y);return{x:(Ue=Ue.matrixTransform(Oe)).x,y:Ue.y}},te.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Oe=this.container.getCTM();Oe=Oe.inverse();var Ue=x.createPoint(fe.x,fe.y);return{x:(Ue=Ue.matrixTransform(Oe)).x,y:Ue.y}},te.prototype.select=function(){Pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){Pe.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=x.createGroup();var fe=x.createTransform();fe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(fe),this.container.appendChild(this.controlBox),this.controlRect=x.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=x.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 pe,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var fe=this.controlBox.transform.baseVal.getItem(0);fe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(fe,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},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 fe=new ve;return fe.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(fe.visual),fe},te.prototype.positionGrips=function(){var fe=this.controlGrips.topLeft.GRIP_SIZE,Oe=-fe/2,Ue=Oe,xe=(this.width+this.CB_DISTANCE)/2-fe/2,Ce=(this.height+this.CB_DISTANCE)/2-fe/2,je=this.height+this.CB_DISTANCE-fe/2,Ze=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,Oe,Ue),this.positionGrip(this.controlGrips.topCenter.visual,xe,Ue),this.positionGrip(this.controlGrips.topRight.visual,Ze,Ue),this.positionGrip(this.controlGrips.centerLeft.visual,Oe,Ce),this.positionGrip(this.controlGrips.centerRight.visual,Ze,Ce),this.positionGrip(this.controlGrips.bottomLeft.visual,Oe,je),this.positionGrip(this.controlGrips.bottomCenter.visual,xe,je),this.positionGrip(this.controlGrips.bottomRight.visual,Ze,je),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,xe,Ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(fe,Oe,Ue){var xe=fe.transform.baseVal.getItem(0);xe.setTranslate(Oe,Ue),fe.transform.baseVal.replaceItem(xe,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:ce.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ce.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Pe.prototype.getState.call(this))},te.prototype.restoreState=function(fe){Pe.prototype.restoreState.call(this,fe);var Oe=fe;this.left=Oe.left,this.top=Oe.top,this.width=Oe.width,this.height=Oe.height,this.rotationAngle=Oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ce.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ce.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Oe.containerTransformMatrix))},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe);var Ue=this.rotatePoint({x:this.left,y:this.top}),xe=this.unrotatePoint({x:Ue.x*fe,y:Ue.y*Oe});this.left=xe.x,this.top=xe.y,this.width=this.width*fe,this.height=this.height*Oe,this.adjustControlBox()},te}(he),Ee=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},te.prototype.createVisual=function(){this.visual=x.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(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},te.prototype.manipulate=function(fe){Pe.prototype.manipulate.call(this,fe)},te.prototype.resize=function(fe){Pe.prototype.resize.call(this,fe),this.setSize()},te.prototype.setSize=function(){Pe.prototype.setSize.call(this),x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(fe){Pe.prototype.pointerUp.call(this,fe),this.setSize()},te.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},te.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&x.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},Pe.prototype.getState.call(this))},te.prototype.restoreState=function(fe){var Oe=fe;this.fillColor=Oe.fillColor,this.strokeColor=Oe.strokeColor,this.strokeWidth=Oe.strokeWidth,this.strokeDasharray=Oe.strokeDasharray,this.opacity=Oe.opacity,this.createVisual(),Pe.prototype.restoreState.call(this,fe),this.setSize()},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),this.setSize()},te.title="Rectangle marker",te}(me),Te=function(Pe){function te(fe,Oe,Ue,xe){var Ce=Pe.call(this,fe,xe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ce.widths=[],Ce.widthBoxes=[],Ce.widths=Oe,Ce.currentWidth=Ue,Ce.setCurrentWidth=Ce.setCurrentWidth.bind(Ce),Ce}return mt(te,Pe),te.prototype.getUi=function(){var fe=this,Oe=document.createElement("div");return Oe.style.display="flex",Oe.style.overflow="hidden",Oe.style.flexGrow="2",this.widths.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="flex",xe.style.flexGrow="2",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=Ue===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){fe.setCurrentWidth(Ue,xe)}),Oe.appendChild(xe);var Ce=document.createElement("div");Ce.innerText=Ue.toString(),Ce.style.marginRight="5px",xe.appendChild(Ce);var je=document.createElement("div");je.style.minHeight="20px",je.style.flexGrow="2",je.style.display="flex",je.style.alignItems="center";var Ze=document.createElement("hr");Ze.style.minWidth="20px",Ze.style.border="0px",Ze.style.borderTop=Ue+"px solid "+fe.uiStyleSettings.toolboxColor,Ze.style.flexGrow="2",je.appendChild(Ze),xe.appendChild(je),fe.widthBoxes.push(xe)}),Oe},te.prototype.setCurrentWidth=function(fe,Oe){var Ue=this;this.currentWidth=fe,this.widthBoxes.forEach(function(xe){xe.style.borderColor=xe===Oe?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(oe),Re=function(Pe){function te(fe,Oe,Ue,xe){var Ce=Pe.call(this,fe,xe||'<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 Ce.styles=[],Ce.styleBoxes=[],Ce.styles=Oe,Ce.currentStyle=Ue,Ce.setCurrentStyle=Ce.setCurrentStyle.bind(Ce),Ce}return mt(te,Pe),te.prototype.getUi=function(){var fe=this,Oe=document.createElement("div");return Oe.style.display="flex",Oe.style.overflow="hidden",Oe.style.flexGrow="2",this.styles.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/fe.styles.length-5+"%",xe.style.borderColor=Ue===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){fe.setCurrentStyle(Ue,xe)}),Oe.appendChild(xe);var Ce=document.createElement("div");Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.overflow="hidden";var je=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+fe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ue!==""?'stroke-dasharray="'+Ue+'"':"")+` />
</svg>`;Ce.innerHTML=je,xe.appendChild(Ce),fe.styleBoxes.push(xe)}),Oe},te.prototype.setCurrentStyle=function(fe,Oe){var Ue=this;this.currentStyle=fe,this.styleBoxes.forEach(function(xe){xe.style.borderColor=xe===Oe?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(oe),_e=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.strokePanel=new le("Line color",Ue.defaultColorSet,Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Te("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Re("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return mt(te,Pe),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var fe=Pe.prototype.getState.call(this);return fe.typeName=te.typeName,fe},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(Ee),ye=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"},be=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.x1=0,xe.y1=0,xe.x2=0,xe.y2=0,xe.defaultLength=50,xe.manipulationStartX=0,xe.manipulationStartY=0,xe.manipulationStartX1=0,xe.manipulationStartY1=0,xe.manipulationStartX2=0,xe.manipulationStartY2=0,xe.setupControlBox(),xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!!Pe.prototype.ownsTarget.call(this,fe)||!(!this.grip1.ownsTarget(fe)&&!this.grip2.ownsTarget(fe))},te.prototype.pointerDown=function(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.state==="new"&&(this.x1=fe.x,this.y1=fe.y,this.x2=fe.x,this.y2=fe.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(fe){var Oe=this.state;Pe.prototype.pointerUp.call(this,fe),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(fe),this._state="select",Oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(fe){this.state==="creating"?this.resize(fe):this.state==="move"?(this.x1=this.manipulationStartX1+fe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+fe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+fe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+fe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(fe)},te.prototype.resize=function(fe){switch(this.activeGrip){case this.grip1:this.x1=fe.x,this.y1=fe.y;break;case this.grip2:case void 0:this.x2=fe.x,this.y2=fe.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){Pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){Pe.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=x.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 fe=new ve;return fe.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(fe.visual),fe},te.prototype.positionGrips=function(){var fe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-fe/2,this.y1-fe/2),this.positionGrip(this.grip2.visual,this.x2-fe/2,this.y2-fe/2)},te.prototype.positionGrip=function(fe,Oe,Ue){var xe=fe.transform.baseVal.getItem(0);xe.setTranslate(Oe,Ue),fe.transform.baseVal.replaceItem(xe,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Pe.prototype.getState.call(this))},te.prototype.restoreState=function(fe){Pe.prototype.restoreState.call(this,fe);var Oe=fe;this.x1=Oe.x1,this.y1=Oe.y1,this.x2=Oe.x2,this.y2=Oe.y2},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),this.x1=this.x1*fe,this.y1=this.y1*Oe,this.x2=this.x2*fe,this.y2=this.y2*Oe,this.adjustVisual(),this.adjustControlBox()},te}(he),Se=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.strokePanel=new le("Line color",Ue.defaultColorSet,Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Te("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Re("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorLine&&fe!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.selectorLine=x.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=x.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(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),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()),x.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),x.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),x.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},te.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},te.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,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 fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){Pe.prototype.restoreState.call(this,fe);var Oe=fe;this.strokeColor=Oe.strokeColor,this.strokeWidth=Oe.strokeWidth,this.strokeDasharray=Oe.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}(be),Ie=function(Pe){function te(fe,Oe,Ue,xe){var Ce=Pe.call(this,fe,xe||'<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 Ce.fonts=[],Ce.fontBoxes=[],Ce.fonts=Oe,Ce.currentFont=Ue,Ce.setCurrentFont=Ce.setCurrentFont.bind(Ce),Ce}return mt(te,Pe),te.prototype.getUi=function(){var fe=this,Oe=document.createElement("div");return Oe.style.overflow="hidden",Oe.style.flexGrow="2",this.fonts.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="inline-block",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/fe.fonts.length-5+"%",xe.style.borderColor=Ue===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){fe.setCurrentFont(Ue,xe)}),Oe.appendChild(xe);var Ce=document.createElement("div");Ce.style.display="flex",Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.fontFamily=Ue,Ce.style.overflow="hidden";var je=document.createElement("div");je.style.whiteSpace="nowrap",je.style.overflow="hidden",je.style.textOverflow="ellipsis",je.innerHTML="The quick brown fox jumps over the lazy dog",Ce.appendChild(je),xe.appendChild(Ce),fe.fontBoxes.push(xe)}),Oe},te.prototype.setCurrentFont=function(fe,Oe){var Ue=this;this.currentFont=fe,this.fontBoxes.forEach(function(xe){xe.style.borderColor=xe===Oe?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(oe),Me=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.color="transparent",xe.padding=5,xe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",xe.text=xe.DEFAULT_TEXT,xe.isMoved=!1,xe.color=Ue.defaultColor,xe.fontFamily=Ue.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setColor=xe.setColor.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.renderText=xe.renderText.bind(xe),xe.sizeText=xe.sizeText.bind(xe),xe.textEditDivClicked=xe.textEditDivClicked.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.setSize=xe.setSize.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.colorPanel=new le("Color",Ue.defaultColorSet,Ue.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.fontFamilyPanel=new Ie("Font",Ue.defaultFontFamilies,Ue.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){if(Pe.prototype.ownsTarget.call(this,fe)||fe===this.visual||fe===this.textElement||fe===this.bgRectangle)return!0;var Oe=!1;return this.textElement.childNodes.forEach(function(Ue){Ue===fe&&(Oe=!0)}),Oe},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.bgRectangle=x.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=x.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(x.createTransform()),this.textElement.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},te.prototype.renderText=function(){var fe=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Oe){fe.textElement.appendChild(x.createTSpan(Oe.trim()===""?" ":Oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),Oe=1;if(fe.width>0&&fe.height>0){var Ue=(1*this.width-this.width*this.padding*2/100)/fe.width,xe=(1*this.height-this.height*this.padding*2/100)/fe.height;Oe=Math.min(Ue,xe)}return Oe},te.prototype.getTextPosition=function(fe){var Oe=this.textElement.getBBox(),Ue=0,xe=0;return Oe.width>0&&Oe.height>0&&(Ue=(this.width-Oe.width*fe)/2,xe=this.height/2-Oe.height*fe/2),{x:Ue,y:xe}},te.prototype.sizeText=function(){var fe=this.textElement.getBBox(),Oe=this.getTextScale(),Ue=this.getTextPosition(Oe);Ue.y-=fe.y*Oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ue.x+"px, "+Ue.y+"px) scale("+Oe+", "+Oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ue.x,Ue.y),this.textElement.transform.baseVal.getItem(1).setScale(Oe,Oe))},te.prototype.manipulate=function(fe){Pe.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(fe){Pe.prototype.resize.call(this,fe),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){Pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(fe){var Oe=this.state;Oe==="creating"&&(this._suppressMarkerCreateEvent=!0),Pe.prototype.pointerUp.call(this,fe),this.setSize(),(Oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var fe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Oe){Oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Oe=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&Oe>.9;)Oe-=.1,fe.textEditor.style.fontSize=Math.max(Oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Oe){Oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Oe){if(Oe.clipboardData){var Ue=Oe.clipboardData.getData("text"),xe=window.getSelection();if(!xe.rangeCount)return!1;xe.deleteFromDocument(),xe.getRangeAt(0).insertNode(document.createTextNode(Ue)),Oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){fe.textEditDivClicked(fe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var fe=this.getTextScale(),Oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ue=this.textElement.getBBox(),xe={x:Ue.width*fe,y:Ue.height*fe};Oe.x-=xe.x/2,Oe.y-=xe.y/2,this.textEditor.style.top=Oe.y+"px",this.textEditor.style.left=Oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Oe.x+"px",this.textEditor.style.fontSize=Math.max(16*fe,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(fe){this.text=fe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){Pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Pe.prototype.deselect.call(this)},te.prototype.dblClick=function(fe,Oe){Pe.prototype.dblClick.call(this,fe,Oe),this.showTextEditor()},te.prototype.setColor=function(fe){this.textElement&&x.setAttributes(this.textElement,[["fill",fe]]),this.color=fe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(fe)},te.prototype.setFont=function(fe){this.textElement&&x.setAttributes(this.textElement,[["font-family",fe]]),this.fontFamily=fe,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 fe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){var Oe=fe;this.color=Oe.color,this.fontFamily=Oe.fontFamily,this.padding=Oe.padding,this.text=Oe.text,this.createVisual(),Pe.prototype.restoreState.call(this,fe),this.setSize()},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),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}(me),Ae=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.color="transparent",xe.lineWidth=3,xe.drawing=!1,xe.pixelRatio=1,xe.color=Ue.defaultColor,xe.lineWidth=Ue.defaultStrokeWidth,xe.pixelRatio=Ue.freehandPixelRatio,xe.setColor=xe.setColor.bind(xe),xe.addCanvas=xe.addCanvas.bind(xe),xe.finishCreation=xe.finishCreation.bind(xe),xe.setLineWidth=xe.setLineWidth.bind(xe),xe.colorPanel=new le("Color",Ue.defaultColorSet,Ue.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.lineWidthPanel=new Te("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.lineWidthPanel.onWidthChanged=xe.setLineWidth,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.drawingImage=x.createImage(),this.visual.appendChild(this.drawingImage);var fe=x.createTransform();this.visual.transform.baseVal.appendItem(fe),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(fe,Oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(fe.x,fe.y),this.drawing=!0):Pe.prototype.pointerDown.call(this,fe,Oe)},te.prototype.manipulate=function(fe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(fe.x,fe.y),this.canvasContext.stroke()):Pe.prototype.manipulate.call(this,fe)},te.prototype.resize=function(fe){Pe.prototype.resize.call(this,fe),x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(fe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Pe.prototype.pointerUp.call(this,fe)},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(),Pe.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Pe.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var fe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ue=Oe[0],xe=Oe[1],Ce=Oe[2],je=Oe[3],Ze=!1,tt=0;tt<this.canvasElement.height;tt++)for(var it=0;it<this.canvasElement.width;it++)fe.data[tt*this.canvasElement.width*4+4*it+3]>0&&(Ze=!0,tt<xe&&(xe=tt),it<Ue&&(Ue=it),tt>je&&(je=tt),it>Ce&&(Ce=it));if(Ze){this.left=Ue/this.pixelRatio,this.top=xe/this.pixelRatio,this.width=(Ce-Ue)/this.pixelRatio,this.height=(je-xe)/this.pixelRatio;var ct=document.createElement("canvas");ct.width=Ce-Ue,ct.height=je-xe,ct.getContext("2d").putImageData(this.canvasContext.getImageData(Ue,xe,Ce-Ue,je-xe),0,0),this.drawingImgUrl=ct.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){x.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(fe){this.color=fe,this.colorChanged(fe)},te.prototype.setLineWidth=function(fe){this.lineWidth=fe},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 fe=Object.assign({drawingImgUrl:this.drawingImgUrl},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){this.createVisual(),Pe.prototype.restoreState.call(this,fe),this.drawingImgUrl=fe.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),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}(me),De=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Ue||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return xe.typeBoxes=[],xe.currentType=Oe,xe.setCurrentType=xe.setCurrentType.bind(xe),xe}return mt(te,Pe),te.prototype.getUi=function(){var fe=this,Oe=document.createElement("div");Oe.style.display="flex",Oe.style.overflow="hidden",Oe.style.flexGrow="2";for(var Ue=function(je){var Ze="both";switch(je){case 0:Ze="both";break;case 1:Ze="start";break;case 2:Ze="end";break;case 3:Ze="none"}var tt=document.createElement("div");if(tt.style.display="flex",tt.style.flexGrow="2",tt.style.alignItems="center",tt.style.justifyContent="space-between",tt.style.padding="5px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderColor=Ze===xe.currentType?xe.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){fe.setCurrentType(Ze,tt)}),Oe.appendChild(tt),Ze==="both"||Ze==="start"){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,5 10,0 10,10" fill="`+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,it.style.marginLeft="5px",tt.appendChild(it)}var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.style.flexGrow="2";var ut=document.createElement("hr");if(ut.style.minWidth="20px",ut.style.border="0px",ut.style.borderTop="3px solid "+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee"),ut.style.flexGrow="2",ct.appendChild(ut),tt.appendChild(ct),Ze==="both"||Ze==="end"){var pt=document.createElement("div");pt.style.display="flex",pt.style.alignItems="center",pt.style.minHeight="20px",pt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,pt.style.marginRight="5px",tt.appendChild(pt)}xe.typeBoxes.push(tt)},xe=this,Ce=0;Ce<4;Ce++)Ue(Ce);return Oe},te.prototype.setCurrentType=function(fe,Oe){var Ue=this;this.currentType=fe,this.typeBoxes.forEach(function(xe){xe.style.borderColor=xe===Oe?Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(oe),He=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.arrowType="end",xe.arrowBaseHeight=10,xe.arrowBaseWidth=10,xe.getArrowPoints=xe.getArrowPoints.bind(xe),xe.setArrowType=xe.setArrowType.bind(xe),xe.arrowTypePanel=new De("Arrow type","end"),xe.arrowTypePanel.onArrowTypeChanged=xe.setArrowType,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.arrow1&&fe!==this.arrow2)},te.prototype.getArrowPoints=function(fe,Oe){var Ue=this.arrowBaseWidth+2*this.strokeWidth,xe=this.arrowBaseHeight+2*this.strokeWidth;return fe-Ue/2+","+(Oe+xe/2)+" "+fe+","+(Oe-xe/2)+" "+(fe+Ue/2)+","+(Oe+xe/2)},te.prototype.createTips=function(){this.arrow1=x.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=x.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(Pe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",x.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),x.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var fe=0;Math.abs(this.x1-this.x2)>.1&&(fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Oe=this.arrow1.transform.baseVal.getItem(0);Oe.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Oe,0);var Ue=this.arrow2.transform.baseVal.getItem(0);Ue.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ue,0)}},te.prototype.setArrowType=function(fe){this.arrowType=fe,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 fe=Object.assign({arrowType:this.arrowType},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){Pe.prototype.restoreState.call(this,fe);var Oe=fe;this.arrowType=Oe.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}(Se),Ke=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.fillColor=Ue.defaultFillColor,xe.strokeWidth=0,xe.fillPanel=new le("Color",Ue.defaultColorSet,Ue.defaultFillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe}return mt(te,Pe),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var fe=Pe.prototype.getState.call(this);return fe.typeName=te.typeName,fe},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(Ee),Ve=function(Pe){function te(fe,Oe,Ue,xe){var Ce=Pe.call(this,fe,xe||'<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 Ce.opacities=[],Ce.opacityBoxes=[],Ce.opacities=Oe,Ce.currentOpacity=Ue,Ce.setCurrentOpacity=Ce.setCurrentOpacity.bind(Ce),Ce}return mt(te,Pe),te.prototype.getUi=function(){var fe=this,Oe=document.createElement("div");return Oe.style.display="flex",Oe.style.overflow="hidden",Oe.style.flexGrow="2",Oe.style.justifyContent="space-between",this.opacities.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="center",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=Ue===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){fe.setCurrentOpacity(Ue,xe)}),Oe.appendChild(xe);var Ce=document.createElement("div");Ce.innerText=100*Ue+"%",xe.appendChild(Ce),fe.opacityBoxes.push(xe)}),Oe},te.prototype.setCurrentOpacity=function(fe,Oe){var Ue=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(xe){xe.style.borderColor=xe===Oe?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(oe),nt=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.setOpacity=xe.setOpacity.bind(xe),xe.fillColor=Ue.defaultHighlightColor,xe.strokeWidth=0,xe.opacity=Ue.defaultHighlightOpacity,xe.fillPanel=new le("Color",Ue.defaultColorSet,xe.fillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe.opacityPanel=new Ve("Opacity",Ue.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return mt(te,Pe),te.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&x.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 fe=Pe.prototype.getState.call(this);return fe.typeName=te.typeName,fe},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}(Ke),Ne='<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>',We='<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>',$e=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.bgColor="transparent",xe.tipPosition={x:0,y:0},xe.tipBase1Position={x:0,y:0},xe.tipBase2Position={x:0,y:0},xe.tipMoving=!1,xe.color=Ue.defaultStrokeColor,xe.bgColor=Ue.defaultFillColor,xe.fontFamily=Ue.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setBgColor=xe.setBgColor.bind(xe),xe.getTipPoints=xe.getTipPoints.bind(xe),xe.positionTip=xe.positionTip.bind(xe),xe.setTipPoints=xe.setTipPoints.bind(xe),xe.colorPanel=new le("Text color",Ue.defaultColorSet,xe.color,Ne),xe.colorPanel.onColorChanged=xe.setColor,xe.bgColorPanel=new le("Fill color",Ue.defaultColorSet,xe.bgColor,We),xe.bgColorPanel.onColorChanged=xe.setBgColor,xe.fontFamilyPanel=new Ie("Font",Ue.defaultFontFamilies,Ue.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.tipGrip=new ve,xe.tipGrip.visual.transform.baseVal.appendItem(x.createTransform()),xe.controlBox.appendChild(xe.tipGrip.visual),xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return Pe.prototype.ownsTarget.call(this,fe)||this.tipGrip.ownsTarget(fe)||this.tip===fe},te.prototype.createTip=function(){x.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=x.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(fe,Oe){this.state==="new"&&Pe.prototype.pointerDown.call(this,fe,Oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Pe.prototype.pointerDown.call(this,fe,Oe)},te.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Pe.prototype.pointerUp.call(this,fe);else{var Oe=this.state==="creating";Pe.prototype.pointerUp.call(this,fe),this.setTipPoints(Oe),this.positionTip()}},te.prototype.manipulate=function(fe){if(this.tipMoving){var Oe=this.unrotatePoint(fe);this.tipPosition={x:Oe.x-this.manipulationStartLeft,y:Oe.y-this.manipulationStartTop},this.positionTip()}else Pe.prototype.manipulate.call(this,fe)},te.prototype.setBgColor=function(fe){this.bgRectangle&&this.tip&&(x.setAttributes(this.bgRectangle,[["fill",fe]]),x.setAttributes(this.tip,[["fill",fe]])),this.bgColor=fe,this.fillColorChanged(fe)},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(fe){fe===void 0&&(fe=!1);var Oe=Math.min(this.height/2,15),Ue=this.height/5;fe&&(this.tipPosition={x:Oe+Ue/2,y:this.height+20});var xe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?xe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ue=this.width/5,Oe=Math.min(this.width/2,15),this.tipBase1Position={x:Oe,y:0},this.tipBase2Position={x:Oe+Ue,y:0}):(this.tipBase1Position={x:0,y:Oe},this.tipBase2Position={x:0,y:Oe+Ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?xe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ue=this.width/5,Oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Oe-Ue,y:0},this.tipBase2Position={x:this.width-Oe,y:0}):(this.tipBase1Position={x:this.width,y:Oe},this.tipBase2Position={x:this.width,y:Oe+Ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?xe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ue=this.width/5,Oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Oe-Ue,y:this.height},this.tipBase2Position={x:this.width-Oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Oe-Ue},this.tipBase2Position={x:this.width,y:this.height-Oe}):xe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ue=this.width/5,Oe=Math.min(this.width/2,15),this.tipBase1Position={x:Oe,y:this.height},this.tipBase2Position={x:Oe+Ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Oe},this.tipBase2Position={x:0,y:this.height-Oe-Ue})},te.prototype.resize=function(fe){Pe.prototype.resize.call(this,fe),this.positionTip()},te.prototype.positionTip=function(){x.setAttributes(this.tip,[["points",this.getTipPoints()]]);var fe=this.tipGrip.visual.transform.baseVal.getItem(0);fe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(fe,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),Pe.prototype.select.call(this)},te.prototype.getState=function(){var fe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){var Oe=fe;this.bgColor=Oe.bgColor,this.tipPosition=Oe.tipPosition,Pe.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*Oe},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}(Me),rt=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.fillColor=Ue.defaultFillColor,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.setOpacity=xe.setOpacity.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.strokePanel=new le("Line color",we(Ue.defaultColorSet,["transparent"]),Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new le("Fill color",we(Ue.defaultColorSet,["transparent"]),xe.fillColor,We),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new Te("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Re("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.opacityPanel=new Ve("Opacity",Ue.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},te.prototype.createVisual=function(){this.visual=x.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(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},te.prototype.manipulate=function(fe){Pe.prototype.manipulate.call(this,fe)},te.prototype.resize=function(fe){Pe.prototype.resize.call(this,fe),this.setSize()},te.prototype.setSize=function(){Pe.prototype.setSize.call(this),x.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(fe){Pe.prototype.pointerUp.call(this,fe),this.setSize()},te.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},te.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},te.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&x.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&x.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 fe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){var Oe=fe;this.fillColor=Oe.fillColor,this.strokeColor=Oe.strokeColor,this.strokeWidth=Oe.strokeWidth,this.strokeDasharray=Oe.strokeDasharray,this.opacity=Oe.opacity,this.createVisual(),Pe.prototype.restoreState.call(this,fe),this.setSize()},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),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}(me),et=function(Pe){function te(fe,Oe,Ue){return Pe.call(this,fe,Oe,Ue)||this}return mt(te,Pe),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.tip1&&fe!==this.tip2)},te.prototype.createTips=function(){this.tip1=x.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(x.createTransform()),this.visual.appendChild(this.tip1),this.tip2=x.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(x.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(Pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(x.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()]]),x.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Oe=this.tip1.transform.baseVal.getItem(0);Oe.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Oe,0);var Ue=this.tip2.transform.baseVal.getItem(0);Ue.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ue,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var fe=Pe.prototype.getState.call(this);return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){Pe.prototype.restoreState.call(this,fe),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}(Se),Xe=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.strokePanel.colors=Ue.defaultColorSet,xe.fillColor="transparent",xe}return mt(te,Pe),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var fe=Pe.prototype.getState.call(this);return fe.typeName=te.typeName,fe},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}(rt),Ye=function(){function Pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Pe.prototype.addUndoStep=function(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))},Pe.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},Pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Pe.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Pe}(),Ge=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.curveX=0,xe.curveY=0,xe.manipulationStartCurveX=0,xe.manipulationStartCurveY=0,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.positionGrips=xe.positionGrips.bind(xe),xe.addControlGrips=xe.addControlGrips.bind(xe),xe.adjustVisual=xe.adjustVisual.bind(xe),xe.setupControlBox=xe.setupControlBox.bind(xe),xe.resize=xe.resize.bind(xe),xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.strokePanel=new le("Line color",Ue.defaultColorSet,Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Te("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Re("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorCurve&&fe!==this.visibleCurve&&!this.curveGrip.ownsTarget(fe))},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=x.createGroup(),this.selectorCurve=x.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=x.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(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=fe.x,this.curveY=fe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Oe)&&(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()),x.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),x.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),x.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){Pe.prototype.setupControlBox.call(this),this.curveControlLine1=x.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=x.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,Pe.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){Pe.prototype.positionGrips.call(this);var fe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-fe/2,this.curveY-fe/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(fe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+fe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+fe.y-this.manipulationStartY),Pe.prototype.manipulate.call(this,fe)},te.prototype.resize=function(fe){this.activeGrip===this.curveGrip&&(this.curveX=fe.x,this.curveY=fe.y),Pe.prototype.resize.call(this,fe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},te.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},te.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual()},te.prototype.scale=function(fe,Oe){this.curveX=this.curveX*fe,this.curveY=this.curveY*Oe,Pe.prototype.scale.call(this,fe,Oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Pe.prototype.getState.call(this));return fe.typeName=te.typeName,fe},te.prototype.restoreState=function(fe){Pe.prototype.restoreState.call(this,fe);var Oe=fe;this.strokeColor=Oe.strokeColor,this.strokeWidth=Oe.strokeWidth,this.strokeDasharray=Oe.strokeDasharray,this.curveX=Oe.curveX,this.curveY=Oe.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}(be),at=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,Oe,Ue)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.textColor="transparent",xe.fontSize="1rem",xe.isMoved=!1,xe.captionText="Caption",xe.PADDING=5,xe.captionBoxWidth=0,xe.captionBoxHeight=0,xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.fillColor=Ue.defaultFillColor,xe.textColor=Ue.defaultStrokeColor,xe.fontFamily=Ue.defaultFontFamily,xe.fontSize=Ue.defaultCaptionFontSize,xe.captionText=Ue.defaultCaptionText,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.sizeCaption=xe.sizeCaption.bind(xe),xe.setCaptionText=xe.setCaptionText.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.finishTextEditing=xe.finishTextEditing.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.setTextColor=xe.setTextColor.bind(xe),xe.strokePanel=new le("Line color",we(Ue.defaultColorSet,["transparent"]),xe.strokeColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new le("Fill color",we(Ue.defaultColorSet,["transparent"]),xe.fillColor,We),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new Te("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Re("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.fontFamilyPanel=new Ie("Font",Ue.defaultFontFamilies,Ue.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.textColorPanel=new le("Text color",Ue.defaultColorSet,xe.textColor,Ne),xe.textColorPanel.onColorChanged=xe.setTextColor,xe}return mt(te,Pe),te.prototype.ownsTarget=function(fe){return!(!Pe.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.frame&&fe!==this.captionBg&&fe!==this.captionElement)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=x.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=x.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=x.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(fe){this.captionText=fe,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(fe,Oe){Pe.prototype.pointerDown.call(this,fe,Oe),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},te.prototype.manipulate=function(fe){Pe.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(fe){Pe.prototype.resize.call(this,fe),this.setSize()},te.prototype.sizeCaption=function(){var fe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=fe.width+2*this.PADDING,this.captionBoxHeight=fe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),x.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')"]]),x.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 fe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Oe){Oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Oe){Oe.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Oe){Oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},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(fe){this.setCaptionText(fe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(fe){this.captionElement&&x.setAttributes(this.captionElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(fe){this.captionElement&&x.setAttributes(this.captionElement,[["fill",fe]]),this.textColor=fe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){Pe.prototype.setSize.call(this),x.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(fe){Pe.prototype.pointerUp.call(this,fe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(fe,Oe){Pe.prototype.dblClick.call(this,fe,Oe),this.showTextEditor()},te.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.frame&&x.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},te.prototype.setFillColor=function(fe){this.fillColor=fe,this.captionBg&&x.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},te.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.frame&&x.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.frame&&x.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 fe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Pe.prototype.getState.call(this));return fe.typeName=this.typeName,fe},te.prototype.restoreState=function(fe){var Oe=fe;this.fillColor=Oe.fillColor,this.strokeColor=Oe.strokeColor,this.strokeWidth=Oe.strokeWidth,this.strokeDasharray=Oe.strokeDasharray,this.textColor=Oe.textColor,this.fontFamily=Oe.fontFamily,this.captionText=Oe.captionText,this.fontSize=Oe.fontSize,this.createVisual(),Pe.prototype.restoreState.call(this,fe),this.setSize()},te.prototype.scale=function(fe,Oe){Pe.prototype.scale.call(this,fe,Oe),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}(me),Qe=function(){function Pe(te,fe){fe===void 0&&(fe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=fe}return Object.defineProperty(Pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Pe.prototype.preventDefault=function(){this._defaultPrevented=!0},Pe}(),ft=function(Pe){function te(fe,Oe,Ue){var xe=Pe.call(this,fe,!1)||this;return xe.dataUrl=Oe,xe.state=Ue,xe}return mt(te,Pe),te}(Qe),ot=function(Pe){function te(fe,Oe,Ue){Ue===void 0&&(Ue=!1);var xe=Pe.call(this,fe,Ue)||this;return xe.marker=Oe,xe}return mt(te,Pe),te}(Qe),Je=function(){function Pe(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Pe.prototype.addEventListener=function(te,fe){this[te].push(fe)},Pe.prototype.removeEventListener=function(te,fe){var Oe=this[te].indexOf(fe);Oe>-1&&this[te].splice(Oe,1)},Pe}(),Fe=function(){function Pe(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 ye,this._isOpen=!1,this.undoRedoManager=new Ye,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 Je,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Pe.instanceCounter++,this.styles=new ee(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(Pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[_e,Ae,He,Me,Xe,rt,nt,$e,et,Ke,Se,Ge,at]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[_e,Ae,He,Me,rt,nt,$e]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[_e,Ae,He,Me,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var fe=this;this._availableMarkerTypes.splice(0),te.forEach(function(Oe){if(typeof Oe=="string"){var Ue=fe.ALL_MARKER_TYPES.find(function(xe){return xe.typeName===Oe});Ue!==void 0&&fe._availableMarkerTypes.push(Ue)}else fe._availableMarkerTypes.push(Oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(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(Pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Pe.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(fe){return fe(new Qe(te))})},Pe.prototype.render=function(){return y(this,void 0,void 0,function(){var te;return ke(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(te=new ie).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 fe.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,fe.sent()]}})})},Pe.prototype.close=function(te){var fe=this;if(te===void 0&&(te=!1),this.isOpen){var Oe=!1;te||this.eventListeners.beforeclose.forEach(function(Ue){var xe=new Qe(fe,!0);Ue(xe),xe.defaultPrevented&&(Oe=!0)}),Oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ue){return Ue(new Qe(fe))}),this.detachEvents(),this._isOpen=!1)}},Pe.prototype.addMarkersToToolbar=function(){for(var te,fe=[],Oe=0;Oe<arguments.length;Oe++)fe[Oe]=arguments[Oe];(te=this._availableMarkerTypes).push.apply(te,fe)},Pe.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(fe){te(fe.dataUrl,fe.state)})},Pe.prototype.removeRenderEventListener=function(te){},Pe.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},Pe.prototype.removeCloseEventListener=function(te){},Pe.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))},Pe.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,fe=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,Oe=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(fe,Oe)},Pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Pe.prototype.resize=function(te,fe){this._isResizing=!0;var Oe=te/this.imageWidth,Ue=fe/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(fe),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Oe,Ue),this._isResizing=!1},Pe.prototype.scaleMarkers=function(te,fe){var Oe,Ue=this;this._currentMarker&&this._currentMarker instanceof Me?this._currentMarker.scale(te,fe):(Oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(xe){xe!==Ue._currentMarker&&xe.scale(te,fe)}),Oe!==void 0&&this.setCurrentMarker(Oe)},Pe.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Pe.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),fe=this.editorCanvas.getBoundingClientRect();this.left=te.left-fe.left,this.top=te.top-fe.top},Pe.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Pe.prototype.addDefs=function(){for(var te,fe=[],Oe=0;Oe<arguments.length;Oe++)fe[Oe]=arguments[Oe];this.defs=x.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,fe)},Pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Pe.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Pe.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Pe.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Pe.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var 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()},Pe.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Pe.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Pe.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var 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 ne(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 re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Pe.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},Pe.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Pe.prototype.toolbarButtonClicked=function(te,fe){if(te==="marker"&&fe!==void 0)this.createNewMarker(fe);else if(te==="action")switch(fe){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Pe.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var fe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ue){var xe=new ot(te,te._currentMarker,!0);Ue(xe),xe.defaultPrevented&&(fe=!0)}),!fe){var Oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ue){return Ue(new ot(te,Oe))})}}},Pe.prototype.clear=function(){var te=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ce){var je=new ot(te,void 0,!0);Ce(je),je.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var Oe=function(Ce){var je=Ue.markers[Ce];Ue.setCurrentMarker(Ue.markers[Ce]),Ue._currentMarker.dispose(),Ue.markerImage.removeChild(Ue._currentMarker.container),Ue.markers.splice(Ue.markers.indexOf(Ue._currentMarker),1),Ue.eventListeners.markerdelete.forEach(function(Ze){return Ze(new ot(te,je))})},Ue=this,xe=this.markers.length-1;xe>=0;xe--)Oe(xe);this.addUndoStep()}},Object.defineProperty(Pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Pe.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))},Pe.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Pe.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),Oe=this.undoRedoManager.getLastUndoStep();if(!Oe||Oe.width===fe.width&&Oe.height===fe.height){var Ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),Ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(xe){return xe(new Qe(te))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(xe){return xe(new Qe(te))})}},Pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Pe.prototype.undoStep=function(){var te=this,fe=this.undoRedoManager.undo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Oe){return Oe(new Qe(te))}))},Pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Pe.prototype.redoStep=function(){var te=this,fe=this.undoRedoManager.redo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Oe){return Oe(new Qe(te))}))},Pe.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},Pe.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},Pe.prototype.startRenderAndClose=function(){return y(this,void 0,void 0,function(){var te,fe,Oe=this;return ke(this,function(Ue){switch(Ue.label){case 0:return[4,this.render()];case 1:return te=Ue.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(xe){return xe(new ft(Oe,te,fe))}),this.close(!0),[2]}})})},Pe.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var fe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Oe){return fe.markers.push(Oe.getState())}),fe},Pe.prototype.restoreState=function(te){var fe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(Oe){var Ue=fe._availableMarkerTypes.find(function(Ce){return Ce.typeName===Oe.typeName});if(Ue!==void 0){var xe=fe.addNewMarker(Ue);xe.restoreState(Oe),fe.markers.push(xe)}}),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(Oe){return Oe(new Qe(fe))})},Pe.prototype.addNewMarker=function(te){var fe=x.createGroup();return this.markerImage.appendChild(fe),new te(fe,this.overlayContainer,this.settings)},Pe.prototype.createNewMarker=function(te){var fe,Oe=this;(fe=typeof te=="string"?this._availableMarkerTypes.find(function(Ue){return Ue.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(fe),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(fe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ue){return Ue(new ot(Oe,Oe._currentMarker))}))},Pe.prototype.markerCreated=function(te){var fe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Oe){return Oe(new ot(fe,fe._currentMarker))})},Pe.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},Pe.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},Pe.prototype.markerStateChanged=function(te){var fe=this;this.eventListeners.markerchange.forEach(function(Oe){return Oe(new ot(fe,te))})},Pe.prototype.setCurrentMarker=function(te){var fe=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Oe){return Oe(new ot(fe,fe._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(Oe){return Oe(new ot(fe,fe._currentMarker))}))},Pe.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 fe=this.markers.find(function(Oe){return Oe.ownsTarget(te.target)});fe!==void 0?(this.setCurrentMarker(fe),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))},Pe.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var fe=this.markers.find(function(Oe){return Oe.ownsTarget(te.target)});fe!==void 0&&fe!==this._currentMarker&&this.setCurrentMarker(fe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},Pe.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}))},Pe.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()},Pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Pe.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},Pe.prototype.clientToLocalCoordinates=function(te,fe){var Oe=this.markerImage.getBoundingClientRect();return{x:(te-Oe.left)/this.zoomLevel,y:(fe-Oe.top)/this.zoomLevel}},Pe.prototype.onWindowResize=function(){this.positionUI()},Pe.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()},Pe.prototype.addLicenseKey=function(te){z.addKey(te)},Pe.prototype.addEventListener=function(te,fe){this.eventListeners.addEventListener(te,fe)},Pe.prototype.removeEventListener=function(te,fe){this.eventListeners.removeEventListener(te,fe)},Pe.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(Pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Pe.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(fe){return fe(new Qe(te))}))},Pe.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(fe){return fe(new Qe(te))}))},Pe.instanceCounter=0,Pe}()},98535:function(Nt,Dt,ze){"use strict";ze.r(Dt),ze.d(Dt,{Panel:function(){return Ae},default:function(){return Me}});var Be=ze(32855),mt=ze(3300),y=ze(11913),ke=ze(34666),we=ze(92310),x=ze.n(we),z=ze(18929),ie=ze(48736),ae=ze(59301),ee=ze(43079),de=ze(11592),E=ze(27247),ne=ze(74430),re=ze(77900),oe=ze(10228),le=ae.forwardRef(function(De,He){var Ke=De.prefixCls,Ve=De.forceRender,nt=De.className,Ne=De.style,We=De.children,$e=De.isActive,rt=De.role,et=De.classNames,Xe=De.styles,Ye=ae.useState($e||Ve),Ge=(0,y.Z)(Ye,2),at=Ge[0],Qe=Ge[1];return ae.useEffect(function(){(Ve||$e)&&Qe(!0)},[Ve,$e]),at?ae.createElement("div",{ref:He,className:x()("".concat(Ke,"-content"),(0,ne.Z)((0,ne.Z)({},"".concat(Ke,"-content-active"),$e),"".concat(Ke,"-content-inactive"),!$e),nt),style:Ne,role:rt},ae.createElement("div",{className:x()("".concat(Ke,"-content-box"),et==null?void 0:et.body),style:Xe==null?void 0:Xe.body},We)):null});le.displayName="PanelContent";var he=le,pe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ve=ae.forwardRef(function(De,He){var Ke=De.showArrow,Ve=Ke===void 0?!0:Ke,nt=De.headerClass,Ne=De.isActive,We=De.onItemClick,$e=De.forceRender,rt=De.className,et=De.classNames,Xe=et===void 0?{}:et,Ye=De.styles,Ge=Ye===void 0?{}:Ye,at=De.prefixCls,Qe=De.collapsible,ft=De.accordion,ot=De.panelKey,Je=De.extra,Fe=De.header,Pe=De.expandIcon,te=De.openMotion,fe=De.destroyInactivePanel,Oe=De.children,Ue=(0,ee.Z)(De,pe),xe=Qe==="disabled",Ce=Je!=null&&typeof Je!="boolean",je=(0,ne.Z)((0,ne.Z)((0,ne.Z)({onClick:function(){We==null||We(ot)},onKeyDown:function(St){(St.key==="Enter"||St.keyCode===oe.Z.ENTER||St.which===oe.Z.ENTER)&&(We==null||We(ot))},role:ft?"tab":"button"},"aria-expanded",Ne),"aria-disabled",xe),"tabIndex",xe?-1:0),Ze=typeof Pe=="function"?Pe(De):ae.createElement("i",{className:"arrow"}),tt=Ze&&ae.createElement("div",(0,Be.Z)({className:"".concat(at,"-expand-icon")},["header","icon"].includes(Qe)?je:{}),Ze),it=x()("".concat(at,"-item"),(0,ne.Z)((0,ne.Z)({},"".concat(at,"-item-active"),Ne),"".concat(at,"-item-disabled"),xe),rt),ct=x()(nt,"".concat(at,"-header"),(0,ne.Z)({},"".concat(at,"-collapsible-").concat(Qe),!!Qe),Xe.header),ut=(0,E.Z)({className:ct,style:Ge.header},["header","icon"].includes(Qe)?{}:je);return ae.createElement("div",(0,Be.Z)({},Ue,{ref:He,className:it}),ae.createElement("div",ut,Ve&&tt,ae.createElement("span",(0,Be.Z)({className:"".concat(at,"-header-text")},Qe==="header"?je:{}),Fe),Ce&&ae.createElement("div",{className:"".concat(at,"-extra")},Je)),ae.createElement(re.default,(0,Be.Z)({visible:Ne,leavedClassName:"".concat(at,"-content-hidden")},te,{forceRender:$e,removeOnLeave:fe}),function(pt,St){var wt=pt.className,Et=pt.style;return ae.createElement(he,{ref:St,prefixCls:at,className:wt,classNames:Xe,style:Et,styles:Ge,isActive:Ne,forceRender:$e,role:ft?"tabpanel":void 0},Oe)}))}),ce=ve,me=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Ee=function(He,Ke){var Ve=Ke.prefixCls,nt=Ke.accordion,Ne=Ke.collapsible,We=Ke.destroyInactivePanel,$e=Ke.onItemClick,rt=Ke.activeKey,et=Ke.openMotion,Xe=Ke.expandIcon;return He.map(function(Ye,Ge){var at=Ye.children,Qe=Ye.label,ft=Ye.key,ot=Ye.collapsible,Je=Ye.onItemClick,Fe=Ye.destroyInactivePanel,Pe=(0,ee.Z)(Ye,me),te=String(ft!=null?ft:Ge),fe=ot!=null?ot:Ne,Oe=Fe!=null?Fe:We,Ue=function(je){fe!=="disabled"&&($e(je),Je==null||Je(je))},xe=!1;return nt?xe=rt[0]===te:xe=rt.indexOf(te)>-1,ae.createElement(ce,(0,Be.Z)({},Pe,{prefixCls:Ve,key:te,panelKey:te,isActive:xe,accordion:nt,openMotion:et,expandIcon:Xe,header:Qe,collapsible:fe,onItemClick:Ue,destroyInactivePanel:Oe}),at)})},Te=function(He,Ke,Ve){if(!He)return null;var nt=Ve.prefixCls,Ne=Ve.accordion,We=Ve.collapsible,$e=Ve.destroyInactivePanel,rt=Ve.onItemClick,et=Ve.activeKey,Xe=Ve.openMotion,Ye=Ve.expandIcon,Ge=He.key||String(Ke),at=He.props,Qe=at.header,ft=at.headerClass,ot=at.destroyInactivePanel,Je=at.collapsible,Fe=at.onItemClick,Pe=!1;Ne?Pe=et[0]===Ge:Pe=et.indexOf(Ge)>-1;var te=Je!=null?Je:We,fe=function(xe){te!=="disabled"&&(rt(xe),Fe==null||Fe(xe))},Oe={key:Ge,panelKey:Ge,header:Qe,headerClass:ft,isActive:Pe,prefixCls:nt,destroyInactivePanel:ot!=null?ot:$e,openMotion:Xe,accordion:Ne,children:He.props.children,onItemClick:fe,expandIcon:Ye,collapsible:te};return typeof He.type=="string"?He:(Object.keys(Oe).forEach(function(Ue){typeof Oe[Ue]=="undefined"&&delete Oe[Ue]}),ae.cloneElement(He,Oe))};function Re(De,He,Ke){return Array.isArray(De)?Ee(De,Ke):(0,de.Z)(He).map(function(Ve,nt){return Te(Ve,nt,Ke)})}var _e=Re,ye=ze(26112);function be(De){var He=De;if(!Array.isArray(He)){var Ke=(0,ke.Z)(He);He=Ke==="number"||Ke==="string"?[He]:[]}return He.map(function(Ve){return String(Ve)})}var Se=ae.forwardRef(function(De,He){var Ke=De.prefixCls,Ve=Ke===void 0?"rc-collapse":Ke,nt=De.destroyInactivePanel,Ne=nt===void 0?!1:nt,We=De.style,$e=De.accordion,rt=De.className,et=De.children,Xe=De.collapsible,Ye=De.openMotion,Ge=De.expandIcon,at=De.activeKey,Qe=De.defaultActiveKey,ft=De.onChange,ot=De.items,Je=x()(Ve,rt),Fe=(0,z.Z)([],{value:at,onChange:function(Ce){return ft==null?void 0:ft(Ce)},defaultValue:Qe,postState:be}),Pe=(0,y.Z)(Fe,2),te=Pe[0],fe=Pe[1],Oe=function(Ce){return fe(function(){if($e)return te[0]===Ce?[]:[Ce];var je=te.indexOf(Ce),Ze=je>-1;return Ze?te.filter(function(tt){return tt!==Ce}):[].concat((0,mt.Z)(te),[Ce])})};(0,ie.ZP)(!et,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Ue=_e(ot,et,{prefixCls:Ve,accordion:$e,openMotion:Ye,expandIcon:Ge,collapsible:Xe,destroyInactivePanel:Ne,onItemClick:Oe,activeKey:te});return ae.createElement("div",(0,Be.Z)({ref:He,className:Je,style:We,role:$e?"tablist":void 0},(0,ye.Z)(De,{aria:!0,data:!0})),Ue)}),Ie=Object.assign(Se,{Panel:ce}),Me=Ie,Ae=Ie.Panel},66042:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Me}});var Be=ze(27247),mt=ze(11913),y=ze(43403),ke=ze(34280),we=ze(59301),x=we.createContext(null),z=we.createContext({}),ie=x,ae=ze(74430),ee=ze(32855),de=ze(92310),E=ze.n(de),ne=ze(77900),re=ze(10228),oe=ze(26112),le=ze(43079),he=ze(8654),pe=["prefixCls","className","containerRef"],ve=function(De){var He=De.prefixCls,Ke=De.className,Ve=De.containerRef,nt=(0,le.Z)(De,pe),Ne=we.useContext(z),We=Ne.panel,$e=(0,he.x1)(We,Ve);return we.createElement("div",(0,ee.Z)({className:E()("".concat(He,"-content"),Ke),role:"dialog",ref:$e},(0,oe.Z)(De,{aria:!0}),{"aria-modal":"true"},nt))},ce=ve,me=ze(48736);function Ee(Ae){return typeof Ae=="string"&&String(Number(Ae))===Ae?((0,me.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ae)):Ae}function Te(Ae){warning(!("wrapperClassName"in Ae),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ae.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Re={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function _e(Ae,De){var He,Ke,Ve,nt=Ae.prefixCls,Ne=Ae.open,We=Ae.placement,$e=Ae.inline,rt=Ae.push,et=Ae.forceRender,Xe=Ae.autoFocus,Ye=Ae.keyboard,Ge=Ae.classNames,at=Ae.rootClassName,Qe=Ae.rootStyle,ft=Ae.zIndex,ot=Ae.className,Je=Ae.id,Fe=Ae.style,Pe=Ae.motion,te=Ae.width,fe=Ae.height,Oe=Ae.children,Ue=Ae.mask,xe=Ae.maskClosable,Ce=Ae.maskMotion,je=Ae.maskClassName,Ze=Ae.maskStyle,tt=Ae.afterOpenChange,it=Ae.onClose,ct=Ae.onMouseEnter,ut=Ae.onMouseOver,pt=Ae.onMouseLeave,St=Ae.onClick,wt=Ae.onKeyDown,Et=Ae.onKeyUp,vt=Ae.styles,At=Ae.drawerRender,gt=we.useRef(),dt=we.useRef(),xt=we.useRef();we.useImperativeHandle(De,function(){return gt.current});var bt=function(wr){var er=wr.keyCode,dr=wr.shiftKey;switch(er){case re.Z.TAB:{if(er===re.Z.TAB){if(!dr&&document.activeElement===xt.current){var Xt;(Xt=dt.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}else if(dr&&document.activeElement===dt.current){var qt;(qt=xt.current)===null||qt===void 0||qt.focus({preventScroll:!0})}}break}case re.Z.ESC:{it&&Ye&&(wr.stopPropagation(),it(wr));break}}};we.useEffect(function(){if(Ne&&Xe){var br;(br=gt.current)===null||br===void 0||br.focus({preventScroll:!0})}},[Ne]);var Pt=we.useState(!1),Zt=(0,mt.Z)(Pt,2),cr=Zt[0],Ht=Zt[1],vr=we.useContext(ie),Kr;typeof rt=="boolean"?Kr=rt?{}:{distance:0}:Kr=rt||{};var Xr=(He=(Ke=(Ve=Kr)===null||Ve===void 0?void 0:Ve.distance)!==null&&Ke!==void 0?Ke:vr==null?void 0:vr.pushDistance)!==null&&He!==void 0?He:180,Nr=we.useMemo(function(){return{pushDistance:Xr,push:function(){Ht(!0)},pull:function(){Ht(!1)}}},[Xr]);we.useEffect(function(){if(Ne){var br;vr==null||(br=vr.push)===null||br===void 0||br.call(vr)}else{var wr;vr==null||(wr=vr.pull)===null||wr===void 0||wr.call(vr)}},[Ne]),we.useEffect(function(){return function(){var br;vr==null||(br=vr.pull)===null||br===void 0||br.call(vr)}},[]);var fn=Ue&&we.createElement(ne.default,(0,ee.Z)({key:"mask"},Ce,{visible:Ne}),function(br,wr){var er=br.className,dr=br.style;return we.createElement("div",{className:E()("".concat(nt,"-mask"),er,Ge==null?void 0:Ge.mask,je),style:(0,Be.Z)((0,Be.Z)((0,Be.Z)({},dr),Ze),vt==null?void 0:vt.mask),onClick:xe&&Ne?it:void 0,ref:wr})}),Lr=typeof Pe=="function"?Pe(We):Pe,ln={};if(cr&&Xr)switch(We){case"top":ln.transform="translateY(".concat(Xr,"px)");break;case"bottom":ln.transform="translateY(".concat(-Xr,"px)");break;case"left":ln.transform="translateX(".concat(Xr,"px)");break;default:ln.transform="translateX(".concat(-Xr,"px)");break}We==="left"||We==="right"?ln.width=Ee(te):ln.height=Ee(fe);var Tr={onMouseEnter:ct,onMouseOver:ut,onMouseLeave:pt,onClick:St,onKeyDown:wt,onKeyUp:Et},vn=we.createElement(ne.default,(0,ee.Z)({key:"panel"},Lr,{visible:Ne,forceRender:et,onVisibleChanged:function(wr){tt==null||tt(wr)},removeOnLeave:!1,leavedClassName:"".concat(nt,"-content-wrapper-hidden")}),function(br,wr){var er=br.className,dr=br.style,Xt=we.createElement(ce,(0,ee.Z)({id:Je,containerRef:wr,prefixCls:nt,className:E()(ot,Ge==null?void 0:Ge.content),style:(0,Be.Z)((0,Be.Z)({},Fe),vt==null?void 0:vt.content)},(0,oe.Z)(Ae,{aria:!0}),Tr),Oe);return we.createElement("div",(0,ee.Z)({className:E()("".concat(nt,"-content-wrapper"),Ge==null?void 0:Ge.wrapper,er),style:(0,Be.Z)((0,Be.Z)((0,Be.Z)({},ln),dr),vt==null?void 0:vt.wrapper)},(0,oe.Z)(Ae,{data:!0})),At?At(Xt):Xt)}),on=(0,Be.Z)({},Qe);return ft&&(on.zIndex=ft),we.createElement(ie.Provider,{value:Nr},we.createElement("div",{className:E()(nt,"".concat(nt,"-").concat(We),at,(0,ae.Z)((0,ae.Z)({},"".concat(nt,"-open"),Ne),"".concat(nt,"-inline"),$e)),style:on,tabIndex:-1,ref:gt,onKeyDown:bt},fn,we.createElement("div",{tabIndex:0,ref:dt,style:Re,"aria-hidden":"true","data-sentinel":"start"}),vn,we.createElement("div",{tabIndex:0,ref:xt,style:Re,"aria-hidden":"true","data-sentinel":"end"})))}var ye=we.forwardRef(_e),be=ye,Se=function(De){var He=De.open,Ke=He===void 0?!1:He,Ve=De.prefixCls,nt=Ve===void 0?"rc-drawer":Ve,Ne=De.placement,We=Ne===void 0?"right":Ne,$e=De.autoFocus,rt=$e===void 0?!0:$e,et=De.keyboard,Xe=et===void 0?!0:et,Ye=De.width,Ge=Ye===void 0?378:Ye,at=De.mask,Qe=at===void 0?!0:at,ft=De.maskClosable,ot=ft===void 0?!0:ft,Je=De.getContainer,Fe=De.forceRender,Pe=De.afterOpenChange,te=De.destroyOnClose,fe=De.onMouseEnter,Oe=De.onMouseOver,Ue=De.onMouseLeave,xe=De.onClick,Ce=De.onKeyDown,je=De.onKeyUp,Ze=De.panelRef,tt=we.useState(!1),it=(0,mt.Z)(tt,2),ct=it[0],ut=it[1],pt=we.useState(!1),St=(0,mt.Z)(pt,2),wt=St[0],Et=St[1];(0,ke.Z)(function(){Et(!0)},[]);var vt=wt?Ke:!1,At=we.useRef(),gt=we.useRef();(0,ke.Z)(function(){vt&&(gt.current=document.activeElement)},[vt]);var dt=function(cr){var Ht;if(ut(cr),Pe==null||Pe(cr),!cr&&gt.current&&!((Ht=At.current)!==null&&Ht!==void 0&&Ht.contains(gt.current))){var vr;(vr=gt.current)===null||vr===void 0||vr.focus({preventScroll:!0})}},xt=we.useMemo(function(){return{panel:Ze}},[Ze]);if(!Fe&&!ct&&!vt&&te)return null;var bt={onMouseEnter:fe,onMouseOver:Oe,onMouseLeave:Ue,onClick:xe,onKeyDown:Ce,onKeyUp:je},Pt=(0,Be.Z)((0,Be.Z)({},De),{},{open:vt,prefixCls:nt,placement:We,autoFocus:rt,keyboard:Xe,width:Ge,mask:Qe,maskClosable:ot,inline:Je===!1,afterOpenChange:dt,ref:At},bt);return we.createElement(z.Provider,{value:xt},we.createElement(y.Z,{open:vt||Fe||ct,autoDestroy:!1,getContainer:Je,autoLock:Qe&&(vt||ct)},we.createElement(be,Pt)))},Ie=Se,Me=Ie},23425:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Re}});var Be=ze(74430),mt=ze(32855),y=ze(34666),ke=ze(27247),we=ze(11913),x=ze(92310),z=ze.n(x),ie=ze(18929),ae=ze(10228),ee=ze(26112),de=ze(48736),E=ze(59301),ne=ze(17119),re=[10,20,50,100],oe=function(ye){var be=ye.pageSizeOptions,Se=be===void 0?re:be,Ie=ye.locale,Me=ye.changeSize,Ae=ye.pageSize,De=ye.goButton,He=ye.quickGo,Ke=ye.rootPrefixCls,Ve=ye.disabled,nt=ye.buildOptionText,Ne=ye.showSizeChanger,We=ye.sizeChangerRender,$e=E.useState(""),rt=(0,we.Z)($e,2),et=rt[0],Xe=rt[1],Ye=function(){return!et||Number.isNaN(et)?void 0:Number(et)},Ge=typeof nt=="function"?nt:function(fe){return"".concat(fe," ").concat(Ie.items_per_page)},at=function(Oe){Xe(Oe.target.value)},Qe=function(Oe){De||et===""||(Xe(""),!(Oe.relatedTarget&&(Oe.relatedTarget.className.indexOf("".concat(Ke,"-item-link"))>=0||Oe.relatedTarget.className.indexOf("".concat(Ke,"-item"))>=0))&&(He==null||He(Ye())))},ft=function(Oe){et!==""&&(Oe.keyCode===ae.Z.ENTER||Oe.type==="click")&&(Xe(""),He==null||He(Ye()))},ot=function(){return Se.some(function(Oe){return Oe.toString()===Ae.toString()})?Se:Se.concat([Ae]).sort(function(Oe,Ue){var xe=Number.isNaN(Number(Oe))?0:Number(Oe),Ce=Number.isNaN(Number(Ue))?0:Number(Ue);return xe-Ce})},Je="".concat(Ke,"-options");if(!Ne&&!He)return null;var Fe=null,Pe=null,te=null;return Ne&&We&&(Fe=We({disabled:Ve,size:Ae,onSizeChange:function(Oe){Me==null||Me(Number(Oe))},"aria-label":Ie.page_size,className:"".concat(Je,"-size-changer"),options:ot().map(function(fe){return{label:Ge(fe),value:fe}})})),He&&(De&&(te=typeof De=="boolean"?E.createElement("button",{type:"button",onClick:ft,onKeyUp:ft,disabled:Ve,className:"".concat(Je,"-quick-jumper-button")},Ie.jump_to_confirm):E.createElement("span",{onClick:ft,onKeyUp:ft},De)),Pe=E.createElement("div",{className:"".concat(Je,"-quick-jumper")},Ie.jump_to,E.createElement("input",{disabled:Ve,type:"text",value:et,onChange:at,onKeyUp:ft,onBlur:Qe,"aria-label":Ie.page}),Ie.page,te)),E.createElement("li",{className:Je},Fe,Pe)},le=oe,he=function(ye){var be=ye.rootPrefixCls,Se=ye.page,Ie=ye.active,Me=ye.className,Ae=ye.showTitle,De=ye.onClick,He=ye.onKeyPress,Ke=ye.itemRender,Ve="".concat(be,"-item"),nt=z()(Ve,"".concat(Ve,"-").concat(Se),(0,Be.Z)((0,Be.Z)({},"".concat(Ve,"-active"),Ie),"".concat(Ve,"-disabled"),!Se),Me),Ne=function(){De(Se)},We=function(et){He(et,De,Se)},$e=Ke(Se,"page",E.createElement("a",{rel:"nofollow"},Se));return $e?E.createElement("li",{title:Ae?String(Se):null,className:nt,onClick:Ne,onKeyDown:We,tabIndex:0},$e):null},pe=he,ve=function(ye,be,Se){return Se};function ce(){}function me(_e){var ye=Number(_e);return typeof ye=="number"&&!Number.isNaN(ye)&&isFinite(ye)&&Math.floor(ye)===ye}function Ee(_e,ye,be){var Se=typeof _e=="undefined"?ye:_e;return Math.floor((be-1)/Se)+1}var Te=function(ye){var be=ye.prefixCls,Se=be===void 0?"rc-pagination":be,Ie=ye.selectPrefixCls,Me=Ie===void 0?"rc-select":Ie,Ae=ye.className,De=ye.current,He=ye.defaultCurrent,Ke=He===void 0?1:He,Ve=ye.total,nt=Ve===void 0?0:Ve,Ne=ye.pageSize,We=ye.defaultPageSize,$e=We===void 0?10:We,rt=ye.onChange,et=rt===void 0?ce:rt,Xe=ye.hideOnSinglePage,Ye=ye.align,Ge=ye.showPrevNextJumpers,at=Ge===void 0?!0:Ge,Qe=ye.showQuickJumper,ft=ye.showLessItems,ot=ye.showTitle,Je=ot===void 0?!0:ot,Fe=ye.onShowSizeChange,Pe=Fe===void 0?ce:Fe,te=ye.locale,fe=te===void 0?ne.Z:te,Oe=ye.style,Ue=ye.totalBoundaryShowSizeChanger,xe=Ue===void 0?50:Ue,Ce=ye.disabled,je=ye.simple,Ze=ye.showTotal,tt=ye.showSizeChanger,it=tt===void 0?nt>xe:tt,ct=ye.sizeChangerRender,ut=ye.pageSizeOptions,pt=ye.itemRender,St=pt===void 0?ve:pt,wt=ye.jumpPrevIcon,Et=ye.jumpNextIcon,vt=ye.prevIcon,At=ye.nextIcon,gt=E.useRef(null),dt=(0,ie.Z)(10,{value:Ne,defaultValue:$e}),xt=(0,we.Z)(dt,2),bt=xt[0],Pt=xt[1],Zt=(0,ie.Z)(1,{value:De,defaultValue:Ke,postState:function(Mr){return Math.max(1,Math.min(Mr,Ee(void 0,bt,nt)))}}),cr=(0,we.Z)(Zt,2),Ht=cr[0],vr=cr[1],Kr=E.useState(Ht),Xr=(0,we.Z)(Kr,2),Nr=Xr[0],fn=Xr[1];(0,E.useEffect)(function(){fn(Ht)},[Ht]);var Lr=et!==ce,ln="current"in ye,Tr=Math.max(1,Ht-(ft?3:5)),vn=Math.min(Ee(void 0,bt,nt),Ht+(ft?3:5));function on(Cr,Mr){var Zr=Cr||E.createElement("button",{type:"button","aria-label":Mr,className:"".concat(Se,"-item-link")});return typeof Cr=="function"&&(Zr=E.createElement(Cr,(0,ke.Z)({},ye))),Zr}function br(Cr){var Mr=Cr.target.value,Zr=Ee(void 0,bt,nt),xn;return Mr===""?xn=Mr:Number.isNaN(Number(Mr))?xn=Nr:Mr>=Zr?xn=Zr:xn=Number(Mr),xn}function wr(Cr){return me(Cr)&&Cr!==Ht&&me(nt)&&nt>0}var er=nt>bt?Qe:!1;function dr(Cr){(Cr.keyCode===ae.Z.UP||Cr.keyCode===ae.Z.DOWN)&&Cr.preventDefault()}function Xt(Cr){var Mr=br(Cr);switch(Mr!==Nr&&fn(Mr),Cr.keyCode){case ae.Z.ENTER:_r(Mr);break;case ae.Z.UP:_r(Mr-1);break;case ae.Z.DOWN:_r(Mr+1);break;default:break}}function qt(Cr){_r(br(Cr))}function yr(Cr){var Mr=Ee(Cr,bt,nt),Zr=Ht>Mr&&Mr!==0?Mr:Ht;Pt(Cr),fn(Zr),Pe==null||Pe(Ht,Cr),vr(Zr),et==null||et(Zr,Cr)}function _r(Cr){if(wr(Cr)&&!Ce){var Mr=Ee(void 0,bt,nt),Zr=Cr;return Cr>Mr?Zr=Mr:Cr<1&&(Zr=1),Zr!==Nr&&fn(Zr),vr(Zr),et==null||et(Zr,bt),Zr}return Ht}var jr=Ht>1,Yr=Ht<Ee(void 0,bt,nt);function dn(){jr&&_r(Ht-1)}function sn(){Yr&&_r(Ht+1)}function Hr(){_r(Tr)}function Qr(){_r(vn)}function sr(Cr,Mr){if(Cr.key==="Enter"||Cr.charCode===ae.Z.ENTER||Cr.keyCode===ae.Z.ENTER){for(var Zr=arguments.length,xn=new Array(Zr>2?Zr-2:0),rn=2;rn<Zr;rn++)xn[rn-2]=arguments[rn];Mr.apply(void 0,xn)}}function Wt(Cr){sr(Cr,dn)}function mr(Cr){sr(Cr,sn)}function Ur(Cr){sr(Cr,Hr)}function un(Cr){sr(Cr,Qr)}function kt(Cr){var Mr=St(Cr,"prev",on(vt,"prev page"));return E.isValidElement(Mr)?E.cloneElement(Mr,{disabled:!jr}):Mr}function Tt(Cr){var Mr=St(Cr,"next",on(At,"next page"));return E.isValidElement(Mr)?E.cloneElement(Mr,{disabled:!Yr}):Mr}function lr(Cr){(Cr.type==="click"||Cr.keyCode===ae.Z.ENTER)&&_r(Nr)}var $t=null,Ot=(0,ee.Z)(ye,{aria:!0,data:!0}),nr=Ze&&E.createElement("li",{className:"".concat(Se,"-total-text")},Ze(nt,[nt===0?0:(Ht-1)*bt+1,Ht*bt>nt?nt:Ht*bt])),pr=null,gr=Ee(void 0,bt,nt);if(Xe&&nt<=bt)return null;var Dr=[],hr={rootPrefixCls:Se,onClick:_r,onKeyPress:sr,showTitle:Je,itemRender:St,page:-1},Ar=Ht-1>0?Ht-1:0,jt=Ht+1<gr?Ht+1:gr,Sr=Qe&&Qe.goButton,ur=(0,y.Z)(je)==="object"?je.readOnly:!je,Or=Sr,Wr=null;je&&(Sr&&(typeof Sr=="boolean"?Or=E.createElement("button",{type:"button",onClick:lr,onKeyUp:lr},fe.jump_to_confirm):Or=E.createElement("span",{onClick:lr,onKeyUp:lr},Sr),Or=E.createElement("li",{title:Je?"".concat(fe.jump_to).concat(Ht,"/").concat(gr):null,className:"".concat(Se,"-simple-pager")},Or)),Wr=E.createElement("li",{title:Je?"".concat(Ht,"/").concat(gr):null,className:"".concat(Se,"-simple-pager")},ur?Nr:E.createElement("input",{type:"text","aria-label":fe.jump_to,value:Nr,disabled:Ce,onKeyDown:dr,onKeyUp:Xt,onChange:Xt,onBlur:qt,size:3}),E.createElement("span",{className:"".concat(Se,"-slash")},"/"),gr));var tn=ft?1:2;if(gr<=3+tn*2){gr||Dr.push(E.createElement(pe,(0,mt.Z)({},hr,{key:"noPager",page:1,className:"".concat(Se,"-item-disabled")})));for(var En=1;En<=gr;En+=1)Dr.push(E.createElement(pe,(0,mt.Z)({},hr,{key:En,page:En,active:Ht===En})))}else{var Zn=ft?fe.prev_3:fe.prev_5,On=ft?fe.next_3:fe.next_5,An=St(Tr,"jump-prev",on(wt,"prev page")),Hn=St(vn,"jump-next",on(Et,"next page"));at&&($t=An?E.createElement("li",{title:Je?Zn:null,key:"prev",onClick:Hr,tabIndex:0,onKeyDown:Ur,className:z()("".concat(Se,"-jump-prev"),(0,Be.Z)({},"".concat(Se,"-jump-prev-custom-icon"),!!wt))},An):null,pr=Hn?E.createElement("li",{title:Je?On:null,key:"next",onClick:Qr,tabIndex:0,onKeyDown:un,className:z()("".concat(Se,"-jump-next"),(0,Be.Z)({},"".concat(Se,"-jump-next-custom-icon"),!!Et))},Hn):null);var Cn=Math.max(1,Ht-tn),Xn=Math.min(Ht+tn,gr);Ht-1<=tn&&(Xn=1+tn*2),gr-Ht<=tn&&(Cn=gr-tn*2);for(var Qn=Cn;Qn<=Xn;Qn+=1)Dr.push(E.createElement(pe,(0,mt.Z)({},hr,{key:Qn,page:Qn,active:Ht===Qn})));if(Ht-1>=tn*2&&Ht!==3&&(Dr[0]=E.cloneElement(Dr[0],{className:z()("".concat(Se,"-item-after-jump-prev"),Dr[0].props.className)}),Dr.unshift($t)),gr-Ht>=tn*2&&Ht!==gr-2){var Jn=Dr[Dr.length-1];Dr[Dr.length-1]=E.cloneElement(Jn,{className:z()("".concat(Se,"-item-before-jump-next"),Jn.props.className)}),Dr.push(pr)}Cn!==1&&Dr.unshift(E.createElement(pe,(0,mt.Z)({},hr,{key:1,page:1}))),Xn!==gr&&Dr.push(E.createElement(pe,(0,mt.Z)({},hr,{key:gr,page:gr})))}var Er=kt(Ar);if(Er){var Fr=!jr||!gr;Er=E.createElement("li",{title:Je?fe.prev_page:null,onClick:dn,tabIndex:Fr?null:0,onKeyDown:Wt,className:z()("".concat(Se,"-prev"),(0,Be.Z)({},"".concat(Se,"-disabled"),Fr)),"aria-disabled":Fr},Er)}var en=Tt(jt);if(en){var $r,bn;je?($r=!Yr,bn=jr?0:null):($r=!Yr||!gr,bn=$r?null:0),en=E.createElement("li",{title:Je?fe.next_page:null,onClick:sn,tabIndex:bn,onKeyDown:mr,className:z()("".concat(Se,"-next"),(0,Be.Z)({},"".concat(Se,"-disabled"),$r)),"aria-disabled":$r},en)}var kr=z()(Se,Ae,(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},"".concat(Se,"-start"),Ye==="start"),"".concat(Se,"-center"),Ye==="center"),"".concat(Se,"-end"),Ye==="end"),"".concat(Se,"-simple"),je),"".concat(Se,"-disabled"),Ce));return E.createElement("ul",(0,mt.Z)({className:kr,style:Oe,ref:gt},Ot),nr,Er,je?Wr:Dr,en,E.createElement(le,{locale:fe,rootPrefixCls:Se,disabled:Ce,selectPrefixCls:Me,changeSize:yr,pageSize:bt,pageSizeOptions:ut,quickGo:er?_r:null,goButton:Or,showSizeChanger:it,sizeChangerRender:ct}))},Re=Te},25930:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Cd:function(){return Se}});var Be=ze(32855),mt=ze(27247),y=ze(43079),ke=ze(59301),we=ze(92310),x=ze.n(we),z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ie=function(){var Ae=(0,ke.useRef)([]),De=(0,ke.useRef)(null);return(0,ke.useEffect)(function(){var He=Date.now(),Ke=!1;Ae.current.forEach(function(Ve){if(Ve){Ke=!0;var nt=Ve.style;nt.transitionDuration=".3s, .3s, .3s, .06s",De.current&&He-De.current<100&&(nt.transitionDuration="0s, 0s")}}),Ke&&(De.current=Date.now())}),Ae.current},ae=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Ae){var De=(0,mt.Z)((0,mt.Z)({},z),Ae),He=De.className,Ke=De.percent,Ve=De.prefixCls,nt=De.strokeColor,Ne=De.strokeLinecap,We=De.strokeWidth,$e=De.style,rt=De.trailColor,et=De.trailWidth,Xe=De.transition,Ye=(0,y.Z)(De,ae);delete Ye.gapPosition;var Ge=Array.isArray(Ke)?Ke:[Ke],at=Array.isArray(nt)?nt:[nt],Qe=ie(),ft=We/2,ot=100-We/2,Je="M ".concat(Ne==="round"?ft:0,",").concat(ft,`
L `).concat(Ne==="round"?ot:100,",").concat(ft),Fe="0 0 100 ".concat(We),Pe=0;return ke.createElement("svg",(0,Be.Z)({className:x()("".concat(Ve,"-line"),He),viewBox:Fe,preserveAspectRatio:"none",style:$e},Ye),ke.createElement("path",{className:"".concat(Ve,"-line-trail"),d:Je,strokeLinecap:Ne,stroke:rt,strokeWidth:et||We,fillOpacity:"0"}),Ge.map(function(te,fe){var Oe=1;switch(Ne){case"round":Oe=1-We/100;break;case"square":Oe=1-We/2/100;break;default:Oe=1;break}var Ue={strokeDasharray:"".concat(te*Oe,"px, 100px"),strokeDashoffset:"-".concat(Pe,"px"),transition:Xe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},xe=at[fe]||at[at.length-1];return Pe+=te,ke.createElement("path",{key:fe,className:"".concat(Ve,"-line-path"),d:Je,strokeLinecap:Ne,stroke:xe,strokeWidth:We,fillOpacity:"0",ref:function(je){Qe[fe]=je},style:Ue})}))},de=ee,E=ze(34666),ne=ze(11913),re=ze(47273),oe=0,le=(0,re.Z)();function he(){var Me;return le?(Me=oe,oe+=1):Me="TEST_OR_SSR",Me}var pe=function(Me){var Ae=ke.useState(),De=(0,ne.Z)(Ae,2),He=De[0],Ke=De[1];return ke.useEffect(function(){Ke("rc_progress_".concat(he()))},[]),Me||He},ve=function(Ae){var De=Ae.bg,He=Ae.children;return ke.createElement("div",{style:{width:"100%",height:"100%",background:De}},He)};function ce(Me,Ae){return Object.keys(Me).map(function(De){var He=parseFloat(De),Ke="".concat(Math.floor(He*Ae),"%");return"".concat(Me[De]," ").concat(Ke)})}var me=ke.forwardRef(function(Me,Ae){var De=Me.prefixCls,He=Me.color,Ke=Me.gradientId,Ve=Me.radius,nt=Me.style,Ne=Me.ptg,We=Me.strokeLinecap,$e=Me.strokeWidth,rt=Me.size,et=Me.gapDegree,Xe=He&&(0,E.Z)(He)==="object",Ye=Xe?"#FFF":void 0,Ge=rt/2,at=ke.createElement("circle",{className:"".concat(De,"-circle-path"),r:Ve,cx:Ge,cy:Ge,stroke:Ye,strokeLinecap:We,strokeWidth:$e,opacity:Ne===0?0:1,style:nt,ref:Ae});if(!Xe)return at;var Qe="".concat(Ke,"-conic"),ft=et?"".concat(180+et/2,"deg"):"0deg",ot=ce(He,(360-et)/360),Je=ce(He,1),Fe="conic-gradient(from ".concat(ft,", ").concat(ot.join(", "),")"),Pe="linear-gradient(to ".concat(et?"bottom":"top",", ").concat(Je.join(", "),")");return ke.createElement(ke.Fragment,null,ke.createElement("mask",{id:Qe},at),ke.createElement("foreignObject",{x:0,y:0,width:rt,height:rt,mask:"url(#".concat(Qe,")")},ke.createElement(ve,{bg:Pe},ke.createElement(ve,{bg:Fe}))))}),Ee=me,Te=100,Re=function(Ae,De,He,Ke,Ve,nt,Ne,We,$e,rt){var et=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Xe=He/100*360*((360-nt)/360),Ye=nt===0?0:{bottom:0,top:180,left:90,right:-90}[Ne],Ge=(100-Ke)/100*De;$e==="round"&&Ke!==100&&(Ge+=rt/2,Ge>=De&&(Ge=De-.01));var at=Te/2;return{stroke:typeof We=="string"?We:void 0,strokeDasharray:"".concat(De,"px ").concat(Ae),strokeDashoffset:Ge+et,transform:"rotate(".concat(Ve+Xe+Ye,"deg)"),transformOrigin:"".concat(at,"px ").concat(at,"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}},_e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ye(Me){var Ae=Me!=null?Me:[];return Array.isArray(Ae)?Ae:[Ae]}var be=function(Ae){var De=(0,mt.Z)((0,mt.Z)({},z),Ae),He=De.id,Ke=De.prefixCls,Ve=De.steps,nt=De.strokeWidth,Ne=De.trailWidth,We=De.gapDegree,$e=We===void 0?0:We,rt=De.gapPosition,et=De.trailColor,Xe=De.strokeLinecap,Ye=De.style,Ge=De.className,at=De.strokeColor,Qe=De.percent,ft=(0,y.Z)(De,_e),ot=Te/2,Je=pe(He),Fe="".concat(Je,"-gradient"),Pe=ot-nt/2,te=Math.PI*2*Pe,fe=$e>0?90+$e/2:-90,Oe=te*((360-$e)/360),Ue=(0,E.Z)(Ve)==="object"?Ve:{count:Ve,gap:2},xe=Ue.count,Ce=Ue.gap,je=ye(Qe),Ze=ye(at),tt=Ze.find(function(Et){return Et&&(0,E.Z)(Et)==="object"}),it=tt&&(0,E.Z)(tt)==="object",ct=it?"butt":Xe,ut=Re(te,Oe,0,100,fe,$e,rt,et,ct,nt),pt=ie(),St=function(){var vt=0;return je.map(function(At,gt){var dt=Ze[gt]||Ze[Ze.length-1],xt=Re(te,Oe,vt,At,fe,$e,rt,dt,ct,nt);return vt+=At,ke.createElement(Ee,{key:gt,color:dt,ptg:At,radius:Pe,prefixCls:Ke,gradientId:Fe,style:xt,strokeLinecap:ct,strokeWidth:nt,gapDegree:$e,ref:function(Pt){pt[gt]=Pt},size:Te})}).reverse()},wt=function(){var vt=Math.round(xe*(je[0]/100)),At=100/xe,gt=0;return new Array(xe).fill(null).map(function(dt,xt){var bt=xt<=vt-1?Ze[0]:et,Pt=bt&&(0,E.Z)(bt)==="object"?"url(#".concat(Fe,")"):void 0,Zt=Re(te,Oe,gt,At,fe,$e,rt,bt,"butt",nt,Ce);return gt+=(Oe-Zt.strokeDashoffset+Ce)*100/Oe,ke.createElement("circle",{key:xt,className:"".concat(Ke,"-circle-path"),r:Pe,cx:ot,cy:ot,stroke:Pt,strokeWidth:nt,opacity:1,style:Zt,ref:function(Ht){pt[xt]=Ht}})})};return ke.createElement("svg",(0,Be.Z)({className:x()("".concat(Ke,"-circle"),Ge),viewBox:"0 0 ".concat(Te," ").concat(Te),style:Ye,id:He,role:"presentation"},ft),!xe&&ke.createElement("circle",{className:"".concat(Ke,"-circle-trail"),r:Pe,cx:ot,cy:ot,stroke:et,strokeLinecap:ct,strokeWidth:Ne||nt,style:ut}),xe?wt():St())},Se=be,Ie={Line:de,Circle:Se}},738:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return ce}});var Be=ze(32855),mt=ze(74430),y=ze(11913),ke=ze(43079),we=ze(92310),x=ze.n(we),z=ze(18929),ie=ze(10228),ae=ze(26112),ee=ze(59301);function de(me,Ee){var Te=me.disabled,Re=me.prefixCls,_e=me.character,ye=me.characterRender,be=me.index,Se=me.count,Ie=me.value,Me=me.allowHalf,Ae=me.focused,De=me.onHover,He=me.onClick,Ke=function(Xe){De(Xe,be)},Ve=function(Xe){He(Xe,be)},nt=function(Xe){Xe.keyCode===ie.Z.ENTER&&He(Xe,be)},Ne=be+1,We=new Set([Re]);Ie===0&&be===0&&Ae?We.add("".concat(Re,"-focused")):Me&&Ie+.5>=Ne&&Ie<Ne?(We.add("".concat(Re,"-half")),We.add("".concat(Re,"-active")),Ae&&We.add("".concat(Re,"-focused"))):(Ne<=Ie?We.add("".concat(Re,"-full")):We.add("".concat(Re,"-zero")),Ne===Ie&&Ae&&We.add("".concat(Re,"-focused")));var $e=typeof _e=="function"?_e(me):_e,rt=ee.createElement("li",{className:x()(Array.from(We)),ref:Ee},ee.createElement("div",{onClick:Te?null:Ve,onKeyDown:Te?null:nt,onMouseMove:Te?null:Ke,role:"radio","aria-checked":Ie>be?"true":"false","aria-posinset":be+1,"aria-setsize":Se,tabIndex:Te?-1:0},ee.createElement("div",{className:"".concat(Re,"-first")},$e),ee.createElement("div",{className:"".concat(Re,"-second")},$e)));return ye&&(rt=ye(rt,me)),rt}var E=ee.forwardRef(de);function ne(){var me=ee.useRef({});function Ee(Re){return me.current[Re]}function Te(Re){return function(_e){me.current[Re]=_e}}return[Ee,Te]}function re(me){var Ee=me.pageXOffset,Te="scrollLeft";if(typeof Ee!="number"){var Re=me.document;Ee=Re.documentElement[Te],typeof Ee!="number"&&(Ee=Re.body[Te])}return Ee}function oe(me){var Ee,Te,Re=me.ownerDocument,_e=Re.body,ye=Re&&Re.documentElement,be=me.getBoundingClientRect();return Ee=be.left,Te=be.top,Ee-=ye.clientLeft||_e.clientLeft||0,Te-=ye.clientTop||_e.clientTop||0,{left:Ee,top:Te}}function le(me){var Ee=oe(me),Te=me.ownerDocument,Re=Te.defaultView||Te.parentWindow;return Ee.left+=re(Re),Ee.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function pe(me,Ee){var Te=me.prefixCls,Re=Te===void 0?"rc-rate":Te,_e=me.className,ye=me.defaultValue,be=me.value,Se=me.count,Ie=Se===void 0?5:Se,Me=me.allowHalf,Ae=Me===void 0?!1:Me,De=me.allowClear,He=De===void 0?!0:De,Ke=me.keyboard,Ve=Ke===void 0?!0:Ke,nt=me.character,Ne=nt===void 0?"\u2605":nt,We=me.characterRender,$e=me.disabled,rt=me.direction,et=rt===void 0?"ltr":rt,Xe=me.tabIndex,Ye=Xe===void 0?0:Xe,Ge=me.autoFocus,at=me.onHoverChange,Qe=me.onChange,ft=me.onFocus,ot=me.onBlur,Je=me.onKeyDown,Fe=me.onMouseLeave,Pe=(0,ke.Z)(me,he),te=ne(),fe=(0,y.Z)(te,2),Oe=fe[0],Ue=fe[1],xe=ee.useRef(null),Ce=function(){if(!$e){var Tr;(Tr=xe.current)===null||Tr===void 0||Tr.focus()}};ee.useImperativeHandle(Ee,function(){return{focus:Ce,blur:function(){if(!$e){var Tr;(Tr=xe.current)===null||Tr===void 0||Tr.blur()}}}});var je=(0,z.Z)(ye||0,{value:be}),Ze=(0,y.Z)(je,2),tt=Ze[0],it=Ze[1],ct=(0,z.Z)(null),ut=(0,y.Z)(ct,2),pt=ut[0],St=ut[1],wt=function(Tr,vn){var on=et==="rtl",br=Tr+1;if(Ae){var wr=Oe(Tr),er=le(wr),dr=wr.clientWidth;(on&&vn-er>dr/2||!on&&vn-er<dr/2)&&(br-=.5)}return br},Et=function(Tr){it(Tr),Qe==null||Qe(Tr)},vt=ee.useState(!1),At=(0,y.Z)(vt,2),gt=At[0],dt=At[1],xt=function(){dt(!0),ft==null||ft()},bt=function(){dt(!1),ot==null||ot()},Pt=ee.useState(null),Zt=(0,y.Z)(Pt,2),cr=Zt[0],Ht=Zt[1],vr=function(Tr,vn){var on=wt(vn,Tr.pageX);on!==pt&&(Ht(on),St(null)),at==null||at(on)},Kr=function(Tr){$e||(Ht(null),St(null),at==null||at(void 0)),Tr&&(Fe==null||Fe(Tr))},Xr=function(Tr,vn){var on=wt(vn,Tr.pageX),br=!1;He&&(br=on===tt),Kr(),Et(br?0:on),St(br?on:null)},Nr=function(Tr){var vn=Tr.keyCode,on=et==="rtl",br=Ae?.5:1;Ve&&(vn===ie.Z.RIGHT&&tt<Ie&&!on?(Et(tt+br),Tr.preventDefault()):vn===ie.Z.LEFT&&tt>0&&!on||vn===ie.Z.RIGHT&&tt>0&&on?(Et(tt-br),Tr.preventDefault()):vn===ie.Z.LEFT&&tt<Ie&&on&&(Et(tt+br),Tr.preventDefault())),Je==null||Je(Tr)};ee.useEffect(function(){Ge&&!$e&&Ce()},[]);var fn=new Array(Ie).fill(0).map(function(ln,Tr){return ee.createElement(E,{ref:Ue(Tr),index:Tr,count:Ie,disabled:$e,prefixCls:"".concat(Re,"-star"),allowHalf:Ae,value:cr===null?tt:cr,onClick:Xr,onHover:vr,key:ln||Tr,character:Ne,characterRender:We,focused:gt})}),Lr=x()(Re,_e,(0,mt.Z)((0,mt.Z)({},"".concat(Re,"-disabled"),$e),"".concat(Re,"-rtl"),et==="rtl"));return ee.createElement("ul",(0,Be.Z)({className:Lr,onMouseLeave:Kr,tabIndex:$e?-1:Ye,onFocus:$e?null:xt,onBlur:$e?null:bt,onKeyDown:$e?null:Nr,ref:xe},(0,ae.Z)(Pe,{aria:!0,data:!0,attr:!0})),fn)}var ve=ee.forwardRef(pe),ce=ve},6551:function(Nt,Dt,ze){"use strict";ze.d(Dt,{ZP:function(){return z}});var Be=ze(11913),mt=ze(59301),y=ze(47273),ke=0,we=(0,y.Z)();function x(){var ie;return we?(ie=ke,ke+=1):ie="TEST_OR_SSR",ie}function z(ie){var ae=mt.useState(),ee=(0,Be.Z)(ae,2),de=ee[0],E=ee[1];return mt.useEffect(function(){E("rc_select_".concat(x()))},[]),ie||de}},37463:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Ac:function(){return dt},Xo:function(){return bt},Wx:function(){return Zt},ZP:function(){return un},lk:function(){return ce}});var Be=ze(32855),mt=ze(3300),y=ze(74430),ke=ze(27247),we=ze(11913),x=ze(43079),z=ze(34666),ie=ze(18929),ae=ze(48736),ee=ze(59301),de=ze(92310),E=ze.n(de),ne=ze(34280),re=ze(49658),oe=ze(8654),le=function(Tt){var lr=Tt.className,$t=Tt.customizeIcon,Ot=Tt.customizeIconProps,nr=Tt.children,pr=Tt.onMouseDown,gr=Tt.onClick,Dr=typeof $t=="function"?$t(Ot):$t;return ee.createElement("span",{className:lr,onMouseDown:function(Ar){Ar.preventDefault(),pr==null||pr(Ar)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gr,"aria-hidden":!0},Dr!==void 0?Dr:ee.createElement("span",{className:E()(lr.split(/\s+/).map(function(hr){return"".concat(hr,"-icon")}))},nr))},he=le,pe=function(Tt,lr,$t,Ot,nr){var pr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gr=arguments.length>6?arguments[6]:void 0,Dr=arguments.length>7?arguments[7]:void 0,hr=ee.useMemo(function(){if((0,z.Z)(Ot)==="object")return Ot.clearIcon;if(nr)return nr},[Ot,nr]),Ar=ee.useMemo(function(){return!!(!pr&&Ot&&($t.length||gr)&&!(Dr==="combobox"&&gr===""))},[Ot,pr,$t.length,gr,Dr]);return{allowClear:Ar,clearIcon:ee.createElement(he,{className:"".concat(Tt,"-clear"),onMouseDown:lr,customizeIcon:hr},"\xD7")}},ve=ee.createContext(null);function ce(){return ee.useContext(ve)}function me(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Tt=ee.useState(!1),lr=(0,we.Z)(Tt,2),$t=lr[0],Ot=lr[1],nr=ee.useRef(null),pr=function(){window.clearTimeout(nr.current)};ee.useEffect(function(){return pr},[]);var gr=function(hr,Ar){pr(),nr.current=window.setTimeout(function(){Ot(hr),Ar&&Ar()},kt)};return[$t,gr,pr]}function Ee(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Tt=ee.useRef(null),lr=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(lr.current)}},[]);function $t(Ot){(Ot||Tt.current===null)&&(Tt.current=Ot),window.clearTimeout(lr.current),lr.current=window.setTimeout(function(){Tt.current=null},kt)}return[function(){return Tt.current},$t]}function Te(kt,Tt,lr,$t){var Ot=ee.useRef(null);Ot.current={open:Tt,triggerOpen:lr,customizedTrigger:$t},ee.useEffect(function(){function nr(pr){var gr;if(!((gr=Ot.current)!==null&&gr!==void 0&&gr.customizedTrigger)){var Dr=pr.target;Dr.shadowRoot&&pr.composed&&(Dr=pr.composedPath()[0]||Dr),Ot.current.open&&kt().filter(function(hr){return hr}).every(function(hr){return!hr.contains(Dr)&&hr!==Dr})&&Ot.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nr),function(){return window.removeEventListener("mousedown",nr)}},[])}var Re=ze(10228);function _e(kt){return kt&&![Re.Z.ESC,Re.Z.SHIFT,Re.Z.BACKSPACE,Re.Z.TAB,Re.Z.WIN_KEY,Re.Z.ALT,Re.Z.META,Re.Z.WIN_KEY_RIGHT,Re.Z.CTRL,Re.Z.SEMICOLON,Re.Z.EQUALS,Re.Z.CAPS_LOCK,Re.Z.CONTEXT_MENU,Re.Z.F1,Re.Z.F2,Re.Z.F3,Re.Z.F4,Re.Z.F5,Re.Z.F6,Re.Z.F7,Re.Z.F8,Re.Z.F9,Re.Z.F10,Re.Z.F11,Re.Z.F12].includes(kt)}var ye=ze(26112),be=ze(11780);function Se(kt,Tt,lr){var $t=(0,ke.Z)((0,ke.Z)({},kt),lr?Tt:{});return Object.keys(Tt).forEach(function(Ot){var nr=Tt[Ot];typeof nr=="function"&&($t[Ot]=function(){for(var pr,gr=arguments.length,Dr=new Array(gr),hr=0;hr<gr;hr++)Dr[hr]=arguments[hr];return nr.apply(void 0,Dr),(pr=kt[Ot])===null||pr===void 0?void 0:pr.call.apply(pr,[kt].concat(Dr))})}),$t}var Ie=Se,Me=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(Tt,lr){var $t=Tt.prefixCls,Ot=Tt.id,nr=Tt.inputElement,pr=Tt.autoFocus,gr=Tt.autoComplete,Dr=Tt.editable,hr=Tt.activeDescendantId,Ar=Tt.value,jt=Tt.open,Sr=Tt.attrs,ur=(0,x.Z)(Tt,Me),Or=nr||ee.createElement("input",null),Wr=Or,tn=Wr.ref,En=Wr.props;return(0,ae.Kp)(!("maxLength"in Or.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Or=ee.cloneElement(Or,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},Ie(ur,En,!0)),{},{id:Ot,ref:(0,oe.sQ)(lr,tn),autoComplete:gr||"off",autoFocus:pr,className:E()("".concat($t,"-selection-search-input"),En==null?void 0:En.className),role:"combobox","aria-expanded":jt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ot,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ot,"_list"),"aria-activedescendant":jt?hr:void 0},Sr),{},{value:Dr?Ar:"",readOnly:!Dr,unselectable:Dr?null:"on",style:(0,ke.Z)((0,ke.Z)({},En.style),{},{opacity:Dr?null:0})})),Or},De=ee.forwardRef(Ae),He=De;function Ke(kt){return Array.isArray(kt)?kt:kt!==void 0?[kt]:[]}var Ve=typeof window!="undefined"&&window.document&&window.document.documentElement,nt=Ve;function Ne(kt){return kt!=null}function We(kt){return!kt&&kt!==0}function $e(kt){return["string","number"].includes((0,z.Z)(kt))}function rt(kt){var Tt=void 0;return kt&&($e(kt.title)?Tt=kt.title.toString():$e(kt.label)&&(Tt=kt.label.toString())),Tt}function et(kt,Tt){nt?ee.useLayoutEffect(kt,Tt):ee.useEffect(kt,Tt)}function Xe(kt){var Tt;return(Tt=kt.key)!==null&&Tt!==void 0?Tt:kt.value}var Ye=function(Tt){Tt.preventDefault(),Tt.stopPropagation()},Ge=function(Tt){var lr=Tt.id,$t=Tt.prefixCls,Ot=Tt.values,nr=Tt.open,pr=Tt.searchValue,gr=Tt.autoClearSearchValue,Dr=Tt.inputRef,hr=Tt.placeholder,Ar=Tt.disabled,jt=Tt.mode,Sr=Tt.showSearch,ur=Tt.autoFocus,Or=Tt.autoComplete,Wr=Tt.activeDescendantId,tn=Tt.tabIndex,En=Tt.removeIcon,Zn=Tt.maxTagCount,On=Tt.maxTagTextLength,An=Tt.maxTagPlaceholder,Hn=An===void 0?function(Vt){return"+ ".concat(Vt.length," ...")}:An,Cn=Tt.tagRender,Xn=Tt.onToggleOpen,Qn=Tt.onRemove,Jn=Tt.onInputChange,Er=Tt.onInputPaste,Fr=Tt.onInputKeyDown,en=Tt.onInputMouseDown,$r=Tt.onInputCompositionStart,bn=Tt.onInputCompositionEnd,kr=Tt.onInputBlur,Cr=ee.useRef(null),Mr=(0,ee.useState)(0),Zr=(0,we.Z)(Mr,2),xn=Zr[0],rn=Zr[1],an=(0,ee.useState)(!1),Un=(0,we.Z)(an,2),yt=Un[0],Mt=Un[1],Rt="".concat($t,"-selection"),Bt=nr||jt==="multiple"&&gr===!1||jt==="tags"?pr:"",Lt=jt==="tags"||jt==="multiple"&&gr===!1||Sr&&(nr||yt);et(function(){rn(Cr.current.scrollWidth)},[Bt]);var Jt=function(Kt,Qt,zt,Yt,tr){return ee.createElement("span",{title:rt(Kt),className:E()("".concat(Rt,"-item"),(0,y.Z)({},"".concat(Rt,"-item-disabled"),zt))},ee.createElement("span",{className:"".concat(Rt,"-item-content")},Qt),Yt&&ee.createElement(he,{className:"".concat(Rt,"-item-remove"),onMouseDown:Ye,onClick:tr,customizeIcon:En},"\xD7"))},fr=function(Kt,Qt,zt,Yt,tr,ar){var Rr=function(qr){Ye(qr),Xn(!nr)};return ee.createElement("span",{onMouseDown:Rr},Cn({label:Qt,value:Kt,disabled:zt,closable:Yt,onClose:tr,isMaxTag:!!ar}))},ir=function(Kt){var Qt=Kt.disabled,zt=Kt.label,Yt=Kt.value,tr=!Ar&&!Qt,ar=zt;if(typeof On=="number"&&(typeof zt=="string"||typeof zt=="number")){var Rr=String(ar);Rr.length>On&&(ar="".concat(Rr.slice(0,On),"..."))}var Pr=function(Br){Br&&Br.stopPropagation(),Qn(Kt)};return typeof Cn=="function"?fr(Yt,ar,Qt,tr,Pr):Jt(Kt,ar,Qt,tr,Pr)},rr=function(Kt){if(!Ot.length)return null;var Qt=typeof Hn=="function"?Hn(Kt):Hn;return typeof Cn=="function"?fr(void 0,Qt,!1,!1,void 0,!0):Jt({title:Qt},Qt,!1)},It=ee.createElement("div",{className:"".concat(Rt,"-search"),style:{width:xn},onFocus:function(){Mt(!0)},onBlur:function(){Mt(!1)}},ee.createElement(He,{ref:Dr,open:nr,prefixCls:$t,id:lr,inputElement:null,disabled:Ar,autoFocus:ur,autoComplete:Or,editable:Lt,activeDescendantId:Wr,value:Bt,onKeyDown:Fr,onMouseDown:en,onChange:Jn,onPaste:Er,onCompositionStart:$r,onCompositionEnd:bn,onBlur:kr,tabIndex:tn,attrs:(0,ye.Z)(Tt,!0)}),ee.createElement("span",{ref:Cr,className:"".concat(Rt,"-search-mirror"),"aria-hidden":!0},Bt,"\xA0")),Gt=ee.createElement(be.Z,{prefixCls:"".concat(Rt,"-overflow"),data:Ot,renderItem:ir,renderRest:rr,suffix:It,itemKey:Xe,maxCount:Zn});return ee.createElement("span",{className:"".concat(Rt,"-wrap")},Gt,!Ot.length&&!Bt&&ee.createElement("span",{className:"".concat(Rt,"-placeholder")},hr))},at=Ge,Qe=function(Tt){var lr=Tt.inputElement,$t=Tt.prefixCls,Ot=Tt.id,nr=Tt.inputRef,pr=Tt.disabled,gr=Tt.autoFocus,Dr=Tt.autoComplete,hr=Tt.activeDescendantId,Ar=Tt.mode,jt=Tt.open,Sr=Tt.values,ur=Tt.placeholder,Or=Tt.tabIndex,Wr=Tt.showSearch,tn=Tt.searchValue,En=Tt.activeValue,Zn=Tt.maxLength,On=Tt.onInputKeyDown,An=Tt.onInputMouseDown,Hn=Tt.onInputChange,Cn=Tt.onInputPaste,Xn=Tt.onInputCompositionStart,Qn=Tt.onInputCompositionEnd,Jn=Tt.onInputBlur,Er=Tt.title,Fr=ee.useState(!1),en=(0,we.Z)(Fr,2),$r=en[0],bn=en[1],kr=Ar==="combobox",Cr=kr||Wr,Mr=Sr[0],Zr=tn||"";kr&&En&&!$r&&(Zr=En),ee.useEffect(function(){kr&&bn(!1)},[kr,En]);var xn=Ar!=="combobox"&&!jt&&!Wr?!1:!!Zr,rn=Er===void 0?rt(Mr):Er,an=ee.useMemo(function(){return Mr?null:ee.createElement("span",{className:"".concat($t,"-selection-placeholder"),style:xn?{visibility:"hidden"}:void 0},ur)},[Mr,xn,ur,$t]);return ee.createElement("span",{className:"".concat($t,"-selection-wrap")},ee.createElement("span",{className:"".concat($t,"-selection-search")},ee.createElement(He,{ref:nr,prefixCls:$t,id:Ot,open:jt,inputElement:lr,disabled:pr,autoFocus:gr,autoComplete:Dr,editable:Cr,activeDescendantId:hr,value:Zr,onKeyDown:On,onMouseDown:An,onChange:function(yt){bn(!0),Hn(yt)},onPaste:Cn,onCompositionStart:Xn,onCompositionEnd:Qn,onBlur:Jn,tabIndex:Or,attrs:(0,ye.Z)(Tt,!0),maxLength:kr?Zn:void 0})),!kr&&Mr?ee.createElement("span",{className:"".concat($t,"-selection-item"),title:rn,style:xn?{visibility:"hidden"}:void 0},Mr.label):null,an)},ft=Qe,ot=function(Tt,lr){var $t=(0,ee.useRef)(null),Ot=(0,ee.useRef)(!1),nr=Tt.prefixCls,pr=Tt.open,gr=Tt.mode,Dr=Tt.showSearch,hr=Tt.tokenWithEnter,Ar=Tt.disabled,jt=Tt.prefix,Sr=Tt.autoClearSearchValue,ur=Tt.onSearch,Or=Tt.onSearchSubmit,Wr=Tt.onToggleOpen,tn=Tt.onInputKeyDown,En=Tt.onInputBlur,Zn=Tt.domRef;ee.useImperativeHandle(lr,function(){return{focus:function(rn){$t.current.focus(rn)},blur:function(){$t.current.blur()}}});var On=Ee(0),An=(0,we.Z)(On,2),Hn=An[0],Cn=An[1],Xn=function(rn){var an=rn.which,Un=$t.current instanceof HTMLTextAreaElement;!Un&&pr&&(an===Re.Z.UP||an===Re.Z.DOWN)&&rn.preventDefault(),tn&&tn(rn),an===Re.Z.ENTER&&gr==="tags"&&!Ot.current&&!pr&&(Or==null||Or(rn.target.value)),!(Un&&!pr&&~[Re.Z.UP,Re.Z.DOWN,Re.Z.LEFT,Re.Z.RIGHT].indexOf(an))&&_e(an)&&Wr(!0)},Qn=function(){Cn(!0)},Jn=(0,ee.useRef)(null),Er=function(rn){ur(rn,!0,Ot.current)!==!1&&Wr(!0)},Fr=function(){Ot.current=!0},en=function(rn){Ot.current=!1,gr!=="combobox"&&Er(rn.target.value)},$r=function(rn){var an=rn.target.value;if(hr&&Jn.current&&/[\r\n]/.test(Jn.current)){var Un=Jn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");an=an.replace(Un,Jn.current)}Jn.current=null,Er(an)},bn=function(rn){var an=rn.clipboardData,Un=an==null?void 0:an.getData("text");Jn.current=Un||""},kr=function(rn){var an=rn.target;if(an!==$t.current){var Un=document.body.style.msTouchAction!==void 0;Un?setTimeout(function(){$t.current.focus()}):$t.current.focus()}},Cr=function(rn){var an=Hn();rn.target!==$t.current&&!an&&!(gr==="combobox"&&Ar)&&rn.preventDefault(),(gr!=="combobox"&&(!Dr||!an)||!pr)&&(pr&&Sr!==!1&&ur("",!0,!1),Wr())},Mr={inputRef:$t,onInputKeyDown:Xn,onInputMouseDown:Qn,onInputChange:$r,onInputPaste:bn,onInputCompositionStart:Fr,onInputCompositionEnd:en,onInputBlur:En},Zr=gr==="multiple"||gr==="tags"?ee.createElement(at,(0,Be.Z)({},Tt,Mr)):ee.createElement(ft,(0,Be.Z)({},Tt,Mr));return ee.createElement("div",{ref:Zn,className:"".concat(nr,"-selector"),onClick:kr,onMouseDown:Cr},jt&&ee.createElement("div",{className:"".concat(nr,"-prefix")},jt),Zr)},Je=ee.forwardRef(ot),Fe=Je,Pe=ze(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fe=function(Tt){var lr=Tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:lr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:lr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:lr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:lr,adjustY:1},htmlRegion:"scroll"}}},Oe=function(Tt,lr){var $t=Tt.prefixCls,Ot=Tt.disabled,nr=Tt.visible,pr=Tt.children,gr=Tt.popupElement,Dr=Tt.animation,hr=Tt.transitionName,Ar=Tt.dropdownStyle,jt=Tt.dropdownClassName,Sr=Tt.direction,ur=Sr===void 0?"ltr":Sr,Or=Tt.placement,Wr=Tt.builtinPlacements,tn=Tt.dropdownMatchSelectWidth,En=Tt.dropdownRender,Zn=Tt.dropdownAlign,On=Tt.getPopupContainer,An=Tt.empty,Hn=Tt.getTriggerDOMNode,Cn=Tt.onPopupVisibleChange,Xn=Tt.onPopupMouseEnter,Qn=(0,x.Z)(Tt,te),Jn="".concat($t,"-dropdown"),Er=gr;En&&(Er=En(gr));var Fr=ee.useMemo(function(){return Wr||fe(tn)},[Wr,tn]),en=Dr?"".concat(Jn,"-").concat(Dr):hr,$r=typeof tn=="number",bn=ee.useMemo(function(){return $r?null:tn===!1?"minWidth":"width"},[tn,$r]),kr=Ar;$r&&(kr=(0,ke.Z)((0,ke.Z)({},kr),{},{width:tn}));var Cr=ee.useRef(null);return ee.useImperativeHandle(lr,function(){return{getPopupElement:function(){var Zr;return(Zr=Cr.current)===null||Zr===void 0?void 0:Zr.popupElement}}}),ee.createElement(Pe.Z,(0,Be.Z)({},Qn,{showAction:Cn?["click"]:[],hideAction:Cn?["click"]:[],popupPlacement:Or||(ur==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fr,prefixCls:Jn,popupTransitionName:en,popup:ee.createElement("div",{onMouseEnter:Xn},Er),ref:Cr,stretch:bn,popupAlign:Zn,popupVisible:nr,getPopupContainer:On,popupClassName:E()(jt,(0,y.Z)({},"".concat(Jn,"-empty"),An)),popupStyle:kr,getTriggerDOMNode:Hn,onPopupVisibleChange:Cn}),pr)},Ue=ee.forwardRef(Oe),xe=Ue,Ce=ze(40954);function je(kt,Tt){var lr=kt.key,$t;return"value"in kt&&($t=kt.value),lr!=null?lr:$t!==void 0?$t:"rc-index-key-".concat(Tt)}function Ze(kt){return typeof kt!="undefined"&&!Number.isNaN(kt)}function tt(kt,Tt){var lr=kt||{},$t=lr.label,Ot=lr.value,nr=lr.options,pr=lr.groupLabel,gr=$t||(Tt?"children":"label");return{label:gr,value:Ot||"value",options:nr||"options",groupLabel:pr||gr}}function it(kt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lr=Tt.fieldNames,$t=Tt.childrenAsData,Ot=[],nr=tt(lr,!1),pr=nr.label,gr=nr.value,Dr=nr.options,hr=nr.groupLabel;function Ar(jt,Sr){Array.isArray(jt)&&jt.forEach(function(ur){if(Sr||!(Dr in ur)){var Or=ur[gr];Ot.push({key:je(ur,Ot.length),groupOption:Sr,data:ur,label:ur[pr],value:Or})}else{var Wr=ur[hr];Wr===void 0&&$t&&(Wr=ur.label),Ot.push({key:je(ur,Ot.length),group:!0,data:ur,label:Wr}),Ar(ur[Dr],!0)}})}return Ar(kt,!1),Ot}function ct(kt){var Tt=(0,ke.Z)({},kt);return"props"in Tt||Object.defineProperty(Tt,"props",{get:function(){return(0,ae.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Tt}}),Tt}var ut=function(Tt,lr,$t){if(!lr||!lr.length)return null;var Ot=!1,nr=function gr(Dr,hr){var Ar=(0,Ce.Z)(hr),jt=Ar[0],Sr=Ar.slice(1);if(!jt)return[Dr];var ur=Dr.split(jt);return Ot=Ot||ur.length>1,ur.reduce(function(Or,Wr){return[].concat((0,mt.Z)(Or),(0,mt.Z)(gr(Wr,Sr)))},[]).filter(Boolean)},pr=nr(Tt,lr);return Ot?typeof $t!="undefined"?pr.slice(0,$t):pr:null},pt=ee.createContext(null),St=pt;function wt(kt){var Tt=kt.visible,lr=kt.values;if(!Tt)return null;var $t=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(lr.slice(0,$t).map(function(Ot){var nr=Ot.label,pr=Ot.value;return["number","string"].includes((0,z.Z)(nr))?nr:pr}).join(", ")),lr.length>$t?", ...":null)}var Et=["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"],vt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],At=function(Tt){return Tt==="tags"||Tt==="multiple"},gt=ee.forwardRef(function(kt,Tt){var lr,$t=kt.id,Ot=kt.prefixCls,nr=kt.className,pr=kt.showSearch,gr=kt.tagRender,Dr=kt.direction,hr=kt.omitDomProps,Ar=kt.displayValues,jt=kt.onDisplayValuesChange,Sr=kt.emptyOptions,ur=kt.notFoundContent,Or=ur===void 0?"Not Found":ur,Wr=kt.onClear,tn=kt.mode,En=kt.disabled,Zn=kt.loading,On=kt.getInputElement,An=kt.getRawInputElement,Hn=kt.open,Cn=kt.defaultOpen,Xn=kt.onDropdownVisibleChange,Qn=kt.activeValue,Jn=kt.onActiveValueChange,Er=kt.activeDescendantId,Fr=kt.searchValue,en=kt.autoClearSearchValue,$r=kt.onSearch,bn=kt.onSearchSplit,kr=kt.tokenSeparators,Cr=kt.allowClear,Mr=kt.prefix,Zr=kt.suffixIcon,xn=kt.clearIcon,rn=kt.OptionList,an=kt.animation,Un=kt.transitionName,yt=kt.dropdownStyle,Mt=kt.dropdownClassName,Rt=kt.dropdownMatchSelectWidth,Bt=kt.dropdownRender,Lt=kt.dropdownAlign,Jt=kt.placement,fr=kt.builtinPlacements,ir=kt.getPopupContainer,rr=kt.showAction,It=rr===void 0?[]:rr,Gt=kt.onFocus,Vt=kt.onBlur,Kt=kt.onKeyUp,Qt=kt.onKeyDown,zt=kt.onMouseDown,Yt=(0,x.Z)(kt,Et),tr=At(tn),ar=(pr!==void 0?pr:tr)||tn==="combobox",Rr=(0,ke.Z)({},Yt);vt.forEach(function(Kn){delete Rr[Kn]}),hr==null||hr.forEach(function(Kn){delete Rr[Kn]});var Pr=ee.useState(!1),qr=(0,we.Z)(Pr,2),Br=qr[0],hn=qr[1];ee.useEffect(function(){hn((0,re.Z)())},[]);var gn=ee.useRef(null),Tn=ee.useRef(null),yn=ee.useRef(null),Sn=ee.useRef(null),Fn=ee.useRef(null),Pn=ee.useRef(!1),Nn=me(),wn=(0,we.Z)(Nn,3),Vr=wn[0],pn=wn[1],Jr=wn[2];ee.useImperativeHandle(Tt,function(){var Kn,Wn;return{focus:(Kn=Sn.current)===null||Kn===void 0?void 0:Kn.focus,blur:(Wn=Sn.current)===null||Wn===void 0?void 0:Wn.blur,scrollTo:function(pi){var wi;return(wi=Fn.current)===null||wi===void 0?void 0:wi.scrollTo(pi)},nativeElement:gn.current||Tn.current}});var Mn=ee.useMemo(function(){var Kn;if(tn!=="combobox")return Fr;var Wn=(Kn=Ar[0])===null||Kn===void 0?void 0:Kn.value;return typeof Wn=="string"||typeof Wn=="number"?String(Wn):""},[Fr,tn,Ar]),Rn=tn==="combobox"&&typeof On=="function"&&On()||null,Bn=typeof An=="function"&&An(),$n=(0,oe.x1)(Tn,Bn==null||(lr=Bn.props)===null||lr===void 0?void 0:lr.ref),Ei=ee.useState(!1),oi=(0,we.Z)(Ei,2),Gi=oi[0],_i=oi[1];(0,ne.Z)(function(){_i(!0)},[]);var qn=(0,ie.Z)(!1,{defaultValue:Cn,value:Hn}),ti=(0,we.Z)(qn,2),ri=ti[0],ki=ti[1],ai=Gi?ri:!1,ui=!Or&&Sr;(En||ui&&ai&&tn==="combobox")&&(ai=!1);var si=ui?!1:ai,cn=ee.useCallback(function(Kn){var Wn=Kn!==void 0?Kn:!ai;En||(ki(Wn),ai!==Wn&&(Xn==null||Xn(Wn)))},[En,ai,ki,Xn]),_n=ee.useMemo(function(){return(kr||[]).some(function(Kn){return[`
`,`\r
`].includes(Kn)})},[kr]),Dn=ee.useContext(St)||{},jn=Dn.maxCount,Vn=Dn.rawValues,ei=function(Wn,gi,pi){if(!(tr&&Ze(jn)&&(Vn==null?void 0:Vn.size)>=jn)){var wi=!0,Ai=Wn;Jn==null||Jn(null);var la=ut(Wn,kr,Ze(jn)?jn-Vn.size:void 0),ia=pi?null:la;return tn!=="combobox"&&ia&&(Ai="",bn==null||bn(ia),cn(!1),wi=!1),$r&&Mn!==Ai&&$r(Ai,{source:gi?"typing":"effect"}),wi}},Zi=function(Wn){!Wn||!Wn.trim()||$r(Wn,{source:"submit"})};ee.useEffect(function(){!ai&&!tr&&tn!=="combobox"&&ei("",!1,!1)},[ai]),ee.useEffect(function(){ri&&En&&ki(!1),En&&!Pn.current&&pn(!1)},[En]);var di=Ee(),fi=(0,we.Z)(di,2),Ln=fi[0],bi=fi[1],Ki=ee.useRef(!1),ni=function(Wn){var gi=Ln(),pi=Wn.key,wi=pi==="Enter";if(wi&&(tn!=="combobox"&&Wn.preventDefault(),ai||cn(!0)),bi(!!Mn),pi==="Backspace"&&!gi&&tr&&!Mn&&Ar.length){for(var Ai=(0,mt.Z)(Ar),la=null,ia=Ai.length-1;ia>=0;ia-=1){var va=Ai[ia];if(!va.disabled){Ai.splice(ia,1),la=va;break}}la&&jt(Ai,{type:"remove",values:[la]})}for(var mi=arguments.length,Oi=new Array(mi>1?mi-1:0),Qi=1;Qi<mi;Qi++)Oi[Qi-1]=arguments[Qi];if(ai&&(!wi||!Ki.current)){var ua;wi&&(Ki.current=!0),(ua=Fn.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[Wn].concat(Oi))}Qt==null||Qt.apply(void 0,[Wn].concat(Oi))},sa=function(Wn){for(var gi=arguments.length,pi=new Array(gi>1?gi-1:0),wi=1;wi<gi;wi++)pi[wi-1]=arguments[wi];if(ai){var Ai;(Ai=Fn.current)===null||Ai===void 0||Ai.onKeyUp.apply(Ai,[Wn].concat(pi))}Wn.key==="Enter"&&(Ki.current=!1),Kt==null||Kt.apply(void 0,[Wn].concat(pi))},Vi=function(Wn){var gi=Ar.filter(function(pi){return pi!==Wn});jt(gi,{type:"remove",values:[Wn]})},Ji=function(){Ki.current=!1},vi=ee.useRef(!1),ro=function(){pn(!0),En||(Gt&&!vi.current&&Gt.apply(void 0,arguments),It.includes("focus")&&cn(!0)),vi.current=!0},Ya=function(){Pn.current=!0,pn(!1,function(){vi.current=!1,Pn.current=!1,cn(!1)}),!En&&(Mn&&(tn==="tags"?$r(Mn,{source:"submit"}):tn==="multiple"&&$r("",{source:"blur"})),Vt&&Vt.apply(void 0,arguments))},pa=[];ee.useEffect(function(){return function(){pa.forEach(function(Kn){return clearTimeout(Kn)}),pa.splice(0,pa.length)}},[]);var ma=function(Wn){var gi,pi=Wn.target,wi=(gi=yn.current)===null||gi===void 0?void 0:gi.getPopupElement();if(wi&&wi.contains(pi)){var Ai=setTimeout(function(){var mi=pa.indexOf(Ai);if(mi!==-1&&pa.splice(mi,1),Jr(),!Br&&!wi.contains(document.activeElement)){var Oi;(Oi=Sn.current)===null||Oi===void 0||Oi.focus()}});pa.push(Ai)}for(var la=arguments.length,ia=new Array(la>1?la-1:0),va=1;va<la;va++)ia[va-1]=arguments[va];zt==null||zt.apply(void 0,[Wn].concat(ia))},na=ee.useState({}),Ca=(0,we.Z)(na,2),no=Ca[1];function io(){no({})}var ao;Bn&&(ao=function(Wn){cn(Wn)}),Te(function(){var Kn;return[gn.current,(Kn=yn.current)===null||Kn===void 0?void 0:Kn.getPopupElement()]},si,cn,!!Bn);var Ba=ee.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},kt),{},{notFoundContent:Or,open:ai,triggerOpen:si,id:$t,showSearch:ar,multiple:tr,toggleOpen:cn})},[kt,Or,si,ai,$t,ar,tr,cn]),Ja=!!Zr||Zn,Fa;Ja&&(Fa=ee.createElement(he,{className:E()("".concat(Ot,"-arrow"),(0,y.Z)({},"".concat(Ot,"-arrow-loading"),Zn)),customizeIcon:Zr,customizeIconProps:{loading:Zn,searchValue:Mn,open:ai,focused:Vr,showSearch:ar}}));var Sa=function(){var Wn;Wr==null||Wr(),(Wn=Sn.current)===null||Wn===void 0||Wn.focus(),jt([],{type:"clear",values:Ar}),ei("",!1,!1)},Qa=pe(Ot,Sa,Ar,Cr,xn,En,Mn,tn),oo=Qa.allowClear,La=Qa.clearIcon,ka=ee.createElement(rn,{ref:Fn}),Aa=E()(Ot,nr,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Ot,"-focused"),Vr),"".concat(Ot,"-multiple"),tr),"".concat(Ot,"-single"),!tr),"".concat(Ot,"-allow-clear"),Cr),"".concat(Ot,"-show-arrow"),Ja),"".concat(Ot,"-disabled"),En),"".concat(Ot,"-loading"),Zn),"".concat(Ot,"-open"),ai),"".concat(Ot,"-customize-input"),Rn),"".concat(Ot,"-show-search"),ar)),Li=ee.createElement(xe,{ref:yn,disabled:En,prefixCls:Ot,visible:si,popupElement:ka,animation:an,transitionName:Un,dropdownStyle:yt,dropdownClassName:Mt,direction:Dr,dropdownMatchSelectWidth:Rt,dropdownRender:Bt,dropdownAlign:Lt,placement:Jt,builtinPlacements:fr,getPopupContainer:ir,empty:Sr,getTriggerDOMNode:function(Wn){return Tn.current||Wn},onPopupVisibleChange:ao,onPopupMouseEnter:io},Bn?ee.cloneElement(Bn,{ref:$n}):ee.createElement(Fe,(0,Be.Z)({},kt,{domRef:Tn,prefixCls:Ot,inputElement:Rn,ref:Sn,id:$t,prefix:Mr,showSearch:ar,autoClearSearchValue:en,mode:tn,activeDescendantId:Er,tagRender:gr,values:Ar,open:ai,onToggleOpen:cn,activeValue:Qn,searchValue:Mn,onSearch:ei,onSearchSubmit:Zi,onRemove:Vi,tokenWithEnter:_n,onInputBlur:Ji}))),hi;return Bn?hi=Li:hi=ee.createElement("div",(0,Be.Z)({className:Aa},Rr,{ref:gn,onMouseDown:ma,onKeyDown:ni,onKeyUp:sa,onFocus:ro,onBlur:Ya}),ee.createElement(wt,{visible:Vr&&!ai,values:Ar}),Li,Fa,oo&&La),ee.createElement(ve.Provider,{value:Ba},hi)}),dt=gt,xt=function(){return null};xt.isSelectOptGroup=!0;var bt=xt,Pt=function(){return null};Pt.isSelectOption=!0;var Zt=Pt,cr=ze(80547),Ht=ze(2738),vr=ze(6790);function Kr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Xr=["disabled","title","children","style","className"];function Nr(kt){return typeof kt=="string"||typeof kt=="number"}var fn=function(Tt,lr){var $t=ce(),Ot=$t.prefixCls,nr=$t.id,pr=$t.open,gr=$t.multiple,Dr=$t.mode,hr=$t.searchValue,Ar=$t.toggleOpen,jt=$t.notFoundContent,Sr=$t.onPopupScroll,ur=ee.useContext(St),Or=ur.maxCount,Wr=ur.flattenOptions,tn=ur.onActiveValue,En=ur.defaultActiveFirstOption,Zn=ur.onSelect,On=ur.menuItemSelectedIcon,An=ur.rawValues,Hn=ur.fieldNames,Cn=ur.virtual,Xn=ur.direction,Qn=ur.listHeight,Jn=ur.listItemHeight,Er=ur.optionRender,Fr="".concat(Ot,"-item"),en=(0,cr.Z)(function(){return Wr},[pr,Wr],function(rr,It){return It[0]&&rr[1]!==It[1]}),$r=ee.useRef(null),bn=ee.useMemo(function(){return gr&&Ze(Or)&&(An==null?void 0:An.size)>=Or},[gr,Or,An==null?void 0:An.size]),kr=function(It){It.preventDefault()},Cr=function(It){var Gt;(Gt=$r.current)===null||Gt===void 0||Gt.scrollTo(typeof It=="number"?{index:It}:It)},Mr=ee.useCallback(function(rr){return Dr==="combobox"?!1:An.has(rr)},[Dr,(0,mt.Z)(An).toString(),An.size]),Zr=function(It){for(var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Vt=en.length,Kt=0;Kt<Vt;Kt+=1){var Qt=(It+Kt*Gt+Vt)%Vt,zt=en[Qt]||{},Yt=zt.group,tr=zt.data;if(!Yt&&!(tr!=null&&tr.disabled)&&(Mr(tr.value)||!bn))return Qt}return-1},xn=ee.useState(function(){return Zr(0)}),rn=(0,we.Z)(xn,2),an=rn[0],Un=rn[1],yt=function(It){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Un(It);var Vt={source:Gt?"keyboard":"mouse"},Kt=en[It];if(!Kt){tn(null,-1,Vt);return}tn(Kt.value,It,Vt)};(0,ee.useEffect)(function(){yt(En!==!1?Zr(0):-1)},[en.length,hr]);var Mt=ee.useCallback(function(rr){return Dr==="combobox"?String(rr).toLowerCase()===hr.toLowerCase():An.has(rr)},[Dr,hr,(0,mt.Z)(An).toString(),An.size]);(0,ee.useEffect)(function(){var rr=setTimeout(function(){if(!gr&&pr&&An.size===1){var Gt=Array.from(An)[0],Vt=en.findIndex(function(Kt){var Qt=Kt.data;return hr?String(Qt.value).startsWith(hr):Qt.value===Gt});Vt!==-1&&(yt(Vt),Cr(Vt))}});if(pr){var It;(It=$r.current)===null||It===void 0||It.scrollTo(void 0)}return function(){return clearTimeout(rr)}},[pr,hr]);var Rt=function(It){It!==void 0&&Zn(It,{selected:!An.has(It)}),gr||Ar(!1)};if(ee.useImperativeHandle(lr,function(){return{onKeyDown:function(It){var Gt=It.which,Vt=It.ctrlKey;switch(Gt){case Re.Z.N:case Re.Z.P:case Re.Z.UP:case Re.Z.DOWN:{var Kt=0;if(Gt===Re.Z.UP?Kt=-1:Gt===Re.Z.DOWN?Kt=1:Kr()&&Vt&&(Gt===Re.Z.N?Kt=1:Gt===Re.Z.P&&(Kt=-1)),Kt!==0){var Qt=Zr(an+Kt,Kt);Cr(Qt),yt(Qt,!0)}break}case Re.Z.TAB:case Re.Z.ENTER:{var zt,Yt=en[an];Yt&&!(Yt!=null&&(zt=Yt.data)!==null&&zt!==void 0&&zt.disabled)&&!bn?Rt(Yt.value):Rt(void 0),pr&&It.preventDefault();break}case Re.Z.ESC:Ar(!1),pr&&It.stopPropagation()}},onKeyUp:function(){},scrollTo:function(It){Cr(It)}}}),en.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(nr,"_list"),className:"".concat(Fr,"-empty"),onMouseDown:kr},jt);var Bt=Object.keys(Hn).map(function(rr){return Hn[rr]}),Lt=function(It){return It.label};function Jt(rr,It){var Gt=rr.group;return{role:Gt?"presentation":"option",id:"".concat(nr,"_list_").concat(It)}}var fr=function(It){var Gt=en[It];if(!Gt)return null;var Vt=Gt.data||{},Kt=Vt.value,Qt=Gt.group,zt=(0,ye.Z)(Vt,!0),Yt=Lt(Gt);return Gt?ee.createElement("div",(0,Be.Z)({"aria-label":typeof Yt=="string"&&!Qt?Yt:null},zt,{key:It},Jt(Gt,It),{"aria-selected":Mt(Kt)}),Kt):null},ir={role:"listbox",id:"".concat(nr,"_list")};return ee.createElement(ee.Fragment,null,Cn&&ee.createElement("div",(0,Be.Z)({},ir,{style:{height:0,width:0,overflow:"hidden"}}),fr(an-1),fr(an),fr(an+1)),ee.createElement(vr.Z,{itemKey:"key",ref:$r,data:en,height:Qn,itemHeight:Jn,fullHeight:!1,onMouseDown:kr,onScroll:Sr,virtual:Cn,direction:Xn,innerProps:Cn?null:ir},function(rr,It){var Gt=rr.group,Vt=rr.groupOption,Kt=rr.data,Qt=rr.label,zt=rr.value,Yt=Kt.key;if(Gt){var tr,ar=(tr=Kt.title)!==null&&tr!==void 0?tr:Nr(Qt)?Qt.toString():void 0;return ee.createElement("div",{className:E()(Fr,"".concat(Fr,"-group"),Kt.className),title:ar},Qt!==void 0?Qt:Yt)}var Rr=Kt.disabled,Pr=Kt.title,qr=Kt.children,Br=Kt.style,hn=Kt.className,gn=(0,x.Z)(Kt,Xr),Tn=(0,Ht.Z)(gn,Bt),yn=Mr(zt),Sn=Rr||!yn&&bn,Fn="".concat(Fr,"-option"),Pn=E()(Fr,Fn,hn,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Fn,"-grouped"),Vt),"".concat(Fn,"-active"),an===It&&!Sn),"".concat(Fn,"-disabled"),Sn),"".concat(Fn,"-selected"),yn)),Nn=Lt(rr),wn=!On||typeof On=="function"||yn,Vr=typeof Nn=="number"?Nn:Nn||zt,pn=Nr(Vr)?Vr.toString():void 0;return Pr!==void 0&&(pn=Pr),ee.createElement("div",(0,Be.Z)({},(0,ye.Z)(Tn),Cn?{}:Jt(rr,It),{"aria-selected":Mt(zt),className:Pn,title:pn,onMouseMove:function(){an===It||Sn||yt(It)},onClick:function(){Sn||Rt(zt)},style:Br}),ee.createElement("div",{className:"".concat(Fn,"-content")},typeof Er=="function"?Er(rr,{index:It}):Vr),ee.isValidElement(On)||yn,wn&&ee.createElement(he,{className:"".concat(Fr,"-option-state"),customizeIcon:On,customizeIconProps:{value:zt,disabled:Sn,isSelected:yn}},yn?"\u2713":null))}))},Lr=ee.forwardRef(fn),ln=Lr,Tr=function(kt,Tt){var lr=ee.useRef({values:new Map,options:new Map}),$t=ee.useMemo(function(){var nr=lr.current,pr=nr.values,gr=nr.options,Dr=kt.map(function(jt){if(jt.label===void 0){var Sr;return(0,ke.Z)((0,ke.Z)({},jt),{},{label:(Sr=pr.get(jt.value))===null||Sr===void 0?void 0:Sr.label})}return jt}),hr=new Map,Ar=new Map;return Dr.forEach(function(jt){hr.set(jt.value,jt),Ar.set(jt.value,Tt.get(jt.value)||gr.get(jt.value))}),lr.current.values=hr,lr.current.options=Ar,Dr},[kt,Tt]),Ot=ee.useCallback(function(nr){return Tt.get(nr)||lr.current.options.get(nr)},[Tt]);return[$t,Ot]};function vn(kt,Tt){return Ke(kt).join("").toUpperCase().includes(Tt)}var on=function(kt,Tt,lr,$t,Ot){return ee.useMemo(function(){if(!lr||$t===!1)return kt;var nr=Tt.options,pr=Tt.label,gr=Tt.value,Dr=[],hr=typeof $t=="function",Ar=lr.toUpperCase(),jt=hr?$t:function(ur,Or){return Ot?vn(Or[Ot],Ar):Or[nr]?vn(Or[pr!=="children"?pr:"label"],Ar):vn(Or[gr],Ar)},Sr=hr?function(ur){return ct(ur)}:function(ur){return ur};return kt.forEach(function(ur){if(ur[nr]){var Or=jt(lr,Sr(ur));if(Or)Dr.push(ur);else{var Wr=ur[nr].filter(function(tn){return jt(lr,Sr(tn))});Wr.length&&Dr.push((0,ke.Z)((0,ke.Z)({},ur),{},(0,y.Z)({},nr,Wr)))}return}jt(lr,Sr(ur))&&Dr.push(ur)}),Dr},[kt,$t,Ot,lr,Tt])},br=ze(6551),wr=ze(11592),er=["children","value"],dr=["children"];function Xt(kt){var Tt=kt,lr=Tt.key,$t=Tt.props,Ot=$t.children,nr=$t.value,pr=(0,x.Z)($t,er);return(0,ke.Z)({key:lr,value:nr!==void 0?nr:lr,children:Ot},pr)}function qt(kt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,wr.Z)(kt).map(function(lr,$t){if(!ee.isValidElement(lr)||!lr.type)return null;var Ot=lr,nr=Ot.type.isSelectOptGroup,pr=Ot.key,gr=Ot.props,Dr=gr.children,hr=(0,x.Z)(gr,dr);return Tt||!nr?Xt(lr):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(pr===null?$t:pr,"__"),label:pr},hr),{},{options:qt(Dr)})}).filter(function(lr){return lr})}var yr=function(Tt,lr,$t,Ot,nr){return ee.useMemo(function(){var pr=Tt,gr=!Tt;gr&&(pr=qt(lr));var Dr=new Map,hr=new Map,Ar=function(ur,Or,Wr){Wr&&typeof Wr=="string"&&ur.set(Or[Wr],Or)},jt=function Sr(ur){for(var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wr=0;Wr<ur.length;Wr+=1){var tn=ur[Wr];!tn[$t.options]||Or?(Dr.set(tn[$t.value],tn),Ar(hr,tn,$t.label),Ar(hr,tn,Ot),Ar(hr,tn,nr)):Sr(tn[$t.options],!0)}};return jt(pr),{options:pr,valueOptions:Dr,labelOptions:hr}},[Tt,lr,$t,Ot,nr])},_r=yr;function jr(kt){var Tt=ee.useRef();Tt.current=kt;var lr=ee.useCallback(function(){return Tt.current.apply(Tt,arguments)},[]);return lr}function Yr(kt){var Tt=kt.mode,lr=kt.options,$t=kt.children,Ot=kt.backfill,nr=kt.allowClear,pr=kt.placeholder,gr=kt.getInputElement,Dr=kt.showSearch,hr=kt.onSearch,Ar=kt.defaultOpen,jt=kt.autoFocus,Sr=kt.labelInValue,ur=kt.value,Or=kt.inputValue,Wr=kt.optionLabelProp,tn=isMultiple(Tt),En=Dr!==void 0?Dr:tn||Tt==="combobox",Zn=lr||convertChildrenToData($t);if(warning(Tt!=="tags"||Zn.every(function(Cn){return!Cn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Tt==="tags"||Tt==="combobox"){var On=Zn.some(function(Cn){return Cn.options?Cn.options.some(function(Xn){return typeof("value"in Xn?Xn.value:Xn.key)=="number"}):typeof("value"in Cn?Cn.value:Cn.key)=="number"});warning(!On,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Tt!=="combobox"||!Wr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Tt==="combobox"||!Ot,"`backfill` only works with `combobox` mode."),warning(Tt==="combobox"||!gr,"`getInputElement` only work with `combobox` mode."),noteOnce(Tt!=="combobox"||!gr||!nr||!pr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hr&&!En&&Tt!=="combobox"&&Tt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ar||jt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ur!=null){var An=toArray(ur);warning(!Sr||An.every(function(Cn){return _typeof(Cn)==="object"&&("key"in Cn||"value"in Cn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!tn||Array.isArray(ur),"`value` should be array when `mode` is `multiple` or `tags`")}if($t){var Hn=null;toNodeArray($t).some(function(Cn){if(!React.isValidElement(Cn)||!Cn.type)return!1;var Xn=Cn,Qn=Xn.type;if(Qn.isSelectOption)return!1;if(Qn.isSelectOptGroup){var Jn=toNodeArray(Cn.props.children).every(function(Er){return!React.isValidElement(Er)||!Cn.type||Er.type.isSelectOption?!0:(Hn=Er.type,!1)});return!Jn}return Hn=Qn,!0}),Hn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Hn.displayName||Hn.name||Hn,"`.")),warning(Or===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function dn(kt,Tt){if(kt){var lr=function $t(Ot){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pr=0;pr<Ot.length;pr++){var gr=Ot[pr];if(gr[Tt==null?void 0:Tt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!nr&&Array.isArray(gr[Tt==null?void 0:Tt.options])&&$t(gr[Tt==null?void 0:Tt.options],!0))break}};lr(kt)}}var sn=null,Hr=["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"],Qr=["inputValue"];function sr(kt){return!kt||(0,z.Z)(kt)!=="object"}var Wt=ee.forwardRef(function(kt,Tt){var lr=kt.id,$t=kt.mode,Ot=kt.prefixCls,nr=Ot===void 0?"rc-select":Ot,pr=kt.backfill,gr=kt.fieldNames,Dr=kt.inputValue,hr=kt.searchValue,Ar=kt.onSearch,jt=kt.autoClearSearchValue,Sr=jt===void 0?!0:jt,ur=kt.onSelect,Or=kt.onDeselect,Wr=kt.dropdownMatchSelectWidth,tn=Wr===void 0?!0:Wr,En=kt.filterOption,Zn=kt.filterSort,On=kt.optionFilterProp,An=kt.optionLabelProp,Hn=kt.options,Cn=kt.optionRender,Xn=kt.children,Qn=kt.defaultActiveFirstOption,Jn=kt.menuItemSelectedIcon,Er=kt.virtual,Fr=kt.direction,en=kt.listHeight,$r=en===void 0?200:en,bn=kt.listItemHeight,kr=bn===void 0?20:bn,Cr=kt.labelRender,Mr=kt.value,Zr=kt.defaultValue,xn=kt.labelInValue,rn=kt.onChange,an=kt.maxCount,Un=(0,x.Z)(kt,Hr),yt=(0,br.ZP)(lr),Mt=At($t),Rt=!!(!Hn&&Xn),Bt=ee.useMemo(function(){return En===void 0&&$t==="combobox"?!1:En},[En,$t]),Lt=ee.useMemo(function(){return tt(gr,Rt)},[JSON.stringify(gr),Rt]),Jt=(0,ie.Z)("",{value:hr!==void 0?hr:Dr,postState:function(_n){return _n||""}}),fr=(0,we.Z)(Jt,2),ir=fr[0],rr=fr[1],It=_r(Hn,Xn,Lt,On,An),Gt=It.valueOptions,Vt=It.labelOptions,Kt=It.options,Qt=ee.useCallback(function(cn){var _n=Ke(cn);return _n.map(function(Dn){var jn,Vn,ei,Zi,di;if(sr(Dn))jn=Dn;else{var fi;ei=Dn.key,Vn=Dn.label,jn=(fi=Dn.value)!==null&&fi!==void 0?fi:ei}var Ln=Gt.get(jn);if(Ln){var bi;if(Vn===void 0&&(Vn=Ln==null?void 0:Ln[An||Lt.label]),ei===void 0&&(ei=(bi=Ln==null?void 0:Ln.key)!==null&&bi!==void 0?bi:jn),Zi=Ln==null?void 0:Ln.disabled,di=Ln==null?void 0:Ln.title,0)var Ki}return{label:Vn,value:jn,key:ei,disabled:Zi,title:di}})},[Lt,An,Gt]),zt=(0,ie.Z)(Zr,{value:Mr}),Yt=(0,we.Z)(zt,2),tr=Yt[0],ar=Yt[1],Rr=ee.useMemo(function(){var cn,_n=Mt&&tr===null?[]:tr,Dn=Qt(_n);return $t==="combobox"&&We((cn=Dn[0])===null||cn===void 0?void 0:cn.value)?[]:Dn},[tr,Qt,$t,Mt]),Pr=Tr(Rr,Gt),qr=(0,we.Z)(Pr,2),Br=qr[0],hn=qr[1],gn=ee.useMemo(function(){if(!$t&&Br.length===1){var cn=Br[0];if(cn.value===null&&(cn.label===null||cn.label===void 0))return[]}return Br.map(function(_n){var Dn;return(0,ke.Z)((0,ke.Z)({},_n),{},{label:(Dn=typeof Cr=="function"?Cr(_n):_n.label)!==null&&Dn!==void 0?Dn:_n.value})})},[$t,Br,Cr]),Tn=ee.useMemo(function(){return new Set(Br.map(function(cn){return cn.value}))},[Br]);ee.useEffect(function(){if($t==="combobox"){var cn,_n=(cn=Br[0])===null||cn===void 0?void 0:cn.value;rr(Ne(_n)?String(_n):"")}},[Br]);var yn=jr(function(cn,_n){var Dn=_n!=null?_n:cn;return(0,y.Z)((0,y.Z)({},Lt.value,cn),Lt.label,Dn)}),Sn=ee.useMemo(function(){if($t!=="tags")return Kt;var cn=(0,mt.Z)(Kt),_n=function(jn){return Gt.has(jn)};return(0,mt.Z)(Br).sort(function(Dn,jn){return Dn.value<jn.value?-1:1}).forEach(function(Dn){var jn=Dn.value;_n(jn)||cn.push(yn(jn,Dn.label))}),cn},[yn,Kt,Gt,Br,$t]),Fn=on(Sn,Lt,ir,Bt,On),Pn=ee.useMemo(function(){return $t!=="tags"||!ir||Fn.some(function(cn){return cn[On||"value"]===ir})||Fn.some(function(cn){return cn[Lt.value]===ir})?Fn:[yn(ir)].concat((0,mt.Z)(Fn))},[yn,On,$t,Fn,ir,Lt]),Nn=function cn(_n){var Dn=(0,mt.Z)(_n).sort(function(jn,Vn){return Zn(jn,Vn,{searchValue:ir})});return Dn.map(function(jn){return Array.isArray(jn.options)?(0,ke.Z)((0,ke.Z)({},jn),{},{options:jn.options.length>0?cn(jn.options):jn.options}):jn})},wn=ee.useMemo(function(){return Zn?Nn(Pn):Pn},[Pn,Zn,ir]),Vr=ee.useMemo(function(){return it(wn,{fieldNames:Lt,childrenAsData:Rt})},[wn,Lt,Rt]),pn=function(_n){var Dn=Qt(_n);if(ar(Dn),rn&&(Dn.length!==Br.length||Dn.some(function(ei,Zi){var di;return((di=Br[Zi])===null||di===void 0?void 0:di.value)!==(ei==null?void 0:ei.value)}))){var jn=xn?Dn:Dn.map(function(ei){return ei.value}),Vn=Dn.map(function(ei){return ct(hn(ei.value))});rn(Mt?jn:jn[0],Mt?Vn:Vn[0])}},Jr=ee.useState(null),Mn=(0,we.Z)(Jr,2),Rn=Mn[0],Bn=Mn[1],$n=ee.useState(0),Ei=(0,we.Z)($n,2),oi=Ei[0],Gi=Ei[1],_i=Qn!==void 0?Qn:$t!=="combobox",qn=ee.useCallback(function(cn,_n){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jn=Dn.source,Vn=jn===void 0?"keyboard":jn;Gi(_n),pr&&$t==="combobox"&&cn!==null&&Vn==="keyboard"&&Bn(String(cn))},[pr,$t]),ti=function(_n,Dn,jn){var Vn=function(){var Vi,Ji=hn(_n);return[xn?{label:Ji==null?void 0:Ji[Lt.label],value:_n,key:(Vi=Ji==null?void 0:Ji.key)!==null&&Vi!==void 0?Vi:_n}:_n,ct(Ji)]};if(Dn&&ur){var ei=Vn(),Zi=(0,we.Z)(ei,2),di=Zi[0],fi=Zi[1];ur(di,fi)}else if(!Dn&&Or&&jn!=="clear"){var Ln=Vn(),bi=(0,we.Z)(Ln,2),Ki=bi[0],ni=bi[1];Or(Ki,ni)}},ri=jr(function(cn,_n){var Dn,jn=Mt?_n.selected:!0;jn?Dn=Mt?[].concat((0,mt.Z)(Br),[cn]):[cn]:Dn=Br.filter(function(Vn){return Vn.value!==cn}),pn(Dn),ti(cn,jn),$t==="combobox"?Bn(""):(!At||Sr)&&(rr(""),Bn(""))}),ki=function(_n,Dn){pn(_n);var jn=Dn.type,Vn=Dn.values;(jn==="remove"||jn==="clear")&&Vn.forEach(function(ei){ti(ei.value,!1,jn)})},ai=function(_n,Dn){if(rr(_n),Bn(null),Dn.source==="submit"){var jn=(_n||"").trim();if(jn){var Vn=Array.from(new Set([].concat((0,mt.Z)(Tn),[jn])));pn(Vn),ti(jn,!0),rr("")}return}Dn.source!=="blur"&&($t==="combobox"&&pn(_n),Ar==null||Ar(_n))},ui=function(_n){var Dn=_n;$t!=="tags"&&(Dn=_n.map(function(Vn){var ei=Vt.get(Vn);return ei==null?void 0:ei.value}).filter(function(Vn){return Vn!==void 0}));var jn=Array.from(new Set([].concat((0,mt.Z)(Tn),(0,mt.Z)(Dn))));pn(jn),jn.forEach(function(Vn){ti(Vn,!0)})},si=ee.useMemo(function(){var cn=Er!==!1&&tn!==!1;return(0,ke.Z)((0,ke.Z)({},It),{},{flattenOptions:Vr,onActiveValue:qn,defaultActiveFirstOption:_i,onSelect:ri,menuItemSelectedIcon:Jn,rawValues:Tn,fieldNames:Lt,virtual:cn,direction:Fr,listHeight:$r,listItemHeight:kr,childrenAsData:Rt,maxCount:an,optionRender:Cn})},[an,It,Vr,qn,_i,ri,Jn,Tn,Lt,Er,tn,Fr,$r,kr,Rt,Cn]);return ee.createElement(St.Provider,{value:si},ee.createElement(dt,(0,Be.Z)({},Un,{id:yt,prefixCls:nr,ref:Tt,omitDomProps:Qr,mode:$t,displayValues:gn,onDisplayValuesChange:ki,direction:Fr,searchValue:ir,onSearch:ai,autoClearSearchValue:Sr,onSearchSplit:ui,dropdownMatchSelectWidth:tn,OptionList:ln,emptyOptions:!Vr.length,activeValue:Rn,activeDescendantId:"".concat(yt,"_list_").concat(oi)})))}),mr=Wt;mr.Option=Zt,mr.OptGroup=bt;var Ur=mr,un=Ur},63158:function(Nt,Dt,ze){"use strict";var Be=ze(32855),mt=ze(74430),y=ze(11913),ke=ze(43079),we=ze(59301),x=ze(92310),z=ze.n(x),ie=ze(18929),ae=ze(10228),ee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],de=we.forwardRef(function(E,ne){var re,oe=E.prefixCls,le=oe===void 0?"rc-switch":oe,he=E.className,pe=E.checked,ve=E.defaultChecked,ce=E.disabled,me=E.loadingIcon,Ee=E.checkedChildren,Te=E.unCheckedChildren,Re=E.onClick,_e=E.onChange,ye=E.onKeyDown,be=(0,ke.Z)(E,ee),Se=(0,ie.Z)(!1,{value:pe,defaultValue:ve}),Ie=(0,y.Z)(Se,2),Me=Ie[0],Ae=Ie[1];function De(nt,Ne){var We=Me;return ce||(We=nt,Ae(We),_e==null||_e(We,Ne)),We}function He(nt){nt.which===ae.Z.LEFT?De(!1,nt):nt.which===ae.Z.RIGHT&&De(!0,nt),ye==null||ye(nt)}function Ke(nt){var Ne=De(!Me,nt);Re==null||Re(Ne,nt)}var Ve=z()(le,he,(re={},(0,mt.Z)(re,"".concat(le,"-checked"),Me),(0,mt.Z)(re,"".concat(le,"-disabled"),ce),re));return we.createElement("button",(0,Be.Z)({},be,{type:"button",role:"switch","aria-checked":Me,disabled:ce,className:Ve,ref:ne,onKeyDown:He,onClick:Ke}),me,we.createElement("span",{className:"".concat(le,"-inner")},we.createElement("span",{className:"".concat(le,"-inner-checked")},Ee),we.createElement("span",{className:"".concat(le,"-inner-unchecked")},Te)))});de.displayName="Switch",Dt.Z=de},86351:function(Nt,Dt,ze){"use strict";ze.d(Dt,{R:function(){return mt},w:function(){return Be}});var Be={},mt="rc-table-internal-hook"},97347:function(Nt,Dt,ze){"use strict";ze.d(Dt,{L:function(){return le},Z:function(){return me}});var Be=ze(11913),mt=ze(74430),y=ze(3300),ke=ze(34666),we=ze(27247),x=ze(43079),z=ze(11592),ie=ze(48736),ae=ze(59301),ee=ze(86351),de=ze(54451);function E(Ee){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ee*parseFloat(Te)/100:null}function ne(Ee,Te,Re){return ae.useMemo(function(){if(Te&&Te>0){var _e=0,ye=0;Ee.forEach(function(Ke){var Ve=E(Te,Ke.width);Ve?_e+=Ve:ye+=1});var be=Math.max(Te,Re),Se=Math.max(be-_e,ye),Ie=ye,Me=Se/ye,Ae=0,De=Ee.map(function(Ke){var Ve=(0,we.Z)({},Ke),nt=E(Te,Ve.width);if(nt)Ve.width=nt;else{var Ne=Math.floor(Me);Ve.width=Ie===1?Se:Ne,Se-=Ne,Ie-=1}return Ae+=Ve.width,Ve});if(Ae<be){var He=be/Ae;Se=be,De.forEach(function(Ke,Ve){var nt=Math.floor(Ke.width*He);Ke.width=Ve===De.length-1?Se:nt,Se-=nt})}return[De,Math.max(Ae,be)]}return[Ee,Te]},[Ee,Te,Re])}var re=["children"],oe=["fixed"];function le(Ee){return(0,z.Z)(Ee).filter(function(Te){return ae.isValidElement(Te)}).map(function(Te){var Re=Te.key,_e=Te.props,ye=_e.children,be=(0,x.Z)(_e,re),Se=(0,we.Z)({key:Re},be);return ye&&(Se.children=le(ye)),Se})}function he(Ee){return Ee.filter(function(Te){return Te&&(0,ke.Z)(Te)==="object"&&!Te.hidden}).map(function(Te){var Re=Te.children;return Re&&Re.length>0?(0,we.Z)((0,we.Z)({},Te),{},{children:he(Re)}):Te})}function pe(Ee){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(Re){return Re&&(0,ke.Z)(Re)==="object"}).reduce(function(Re,_e,ye){var be=_e.fixed,Se=be===!0?"left":be,Ie="".concat(Te,"-").concat(ye),Me=_e.children;return Me&&Me.length>0?[].concat((0,y.Z)(Re),(0,y.Z)(pe(Me,Ie).map(function(Ae){return(0,we.Z)({fixed:Se},Ae)}))):[].concat((0,y.Z)(Re),[(0,we.Z)((0,we.Z)({key:Ie},_e),{},{fixed:Se})])},[])}function ve(Ee){return Ee.map(function(Te){var Re=Te.fixed,_e=(0,x.Z)(Te,oe),ye=Re;return Re==="left"?ye="right":Re==="right"&&(ye="left"),(0,we.Z)({fixed:ye},_e)})}function ce(Ee,Te){var Re=Ee.prefixCls,_e=Ee.columns,ye=Ee.children,be=Ee.expandable,Se=Ee.expandedKeys,Ie=Ee.columnTitle,Me=Ee.getRowKey,Ae=Ee.onTriggerExpand,De=Ee.expandIcon,He=Ee.rowExpandable,Ke=Ee.expandIconColumnIndex,Ve=Ee.direction,nt=Ee.expandRowByClick,Ne=Ee.columnWidth,We=Ee.fixed,$e=Ee.scrollWidth,rt=Ee.clientWidth,et=ae.useMemo(function(){var Fe=_e||le(ye)||[];return he(Fe.slice())},[_e,ye]),Xe=ae.useMemo(function(){if(be){var Fe=et.slice();if(!Fe.includes(ee.w)){var Pe=Ke||0;Pe>=0&&(Pe||We==="left"||!We)&&Fe.splice(Pe,0,ee.w),We==="right"&&Fe.splice(et.length,0,ee.w)}var te=Fe.indexOf(ee.w);Fe=Fe.filter(function(xe,Ce){return xe!==ee.w||Ce===te});var fe=et[te],Oe;We?Oe=We:Oe=fe?fe.fixed:null;var Ue=(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)({},de.v,{className:"".concat(Re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Ie),"fixed",Oe),"className","".concat(Re,"-row-expand-icon-cell")),"width",Ne),"render",function(Ce,je,Ze){var tt=Me(je,Ze),it=Se.has(tt),ct=He?He(je):!0,ut=De({prefixCls:Re,expanded:it,expandable:ct,record:je,onExpand:Ae});return nt?ae.createElement("span",{onClick:function(St){return St.stopPropagation()}},ut):ut});return Fe.map(function(xe){return xe===ee.w?Ue:xe})}return et.filter(function(xe){return xe!==ee.w})},[be,et,Me,Se,De,Ve]),Ye=ae.useMemo(function(){var Fe=Xe;return Te&&(Fe=Te(Fe)),Fe.length||(Fe=[{render:function(){return null}}]),Fe},[Te,Xe,Ve]),Ge=ae.useMemo(function(){return Ve==="rtl"?ve(pe(Ye)):pe(Ye)},[Ye,Ve,$e]),at=ae.useMemo(function(){for(var Fe=-1,Pe=Ge.length-1;Pe>=0;Pe-=1){var te=Ge[Pe].fixed;if(te==="left"||te===!0){Fe=Pe;break}}if(Fe>=0)for(var fe=0;fe<=Fe;fe+=1){var Oe=Ge[fe].fixed;if(Oe!=="left"&&Oe!==!0)return!0}var Ue=Ge.findIndex(function(je){var Ze=je.fixed;return Ze==="right"});if(Ue>=0)for(var xe=Ue;xe<Ge.length;xe+=1){var Ce=Ge[xe].fixed;if(Ce!=="right")return!0}return!1},[Ge]),Qe=ne(Ge,$e,rt),ft=(0,Be.Z)(Qe,2),ot=ft[0],Je=ft[1];return[Ye,ot,Je,at]}var me=ce},4030:function(Nt,Dt,ze){"use strict";ze.d(Dt,{w2:function(){return Be.w},vP:function(){return Nr.v},RQ:function(){return Be.R},ER:function(){return tt},Q$:function(){return En},TN:function(){return rn}});var Be=ze(86351),mt=ze(11913),y=ze(6089),ke=ze(34280),we=ze(13697),x=ze(59301),z=ze(4676);function ie(yt){var Mt=x.createContext(void 0),Rt=function(Lt){var Jt=Lt.value,fr=Lt.children,ir=x.useRef(Jt);ir.current=Jt;var rr=x.useState(function(){return{getValue:function(){return ir.current},listeners:new Set}}),It=(0,mt.Z)(rr,1),Gt=It[0];return(0,ke.Z)(function(){(0,z.unstable_batchedUpdates)(function(){Gt.listeners.forEach(function(Vt){Vt(Jt)})})},[Jt]),x.createElement(Mt.Provider,{value:Gt},fr)};return{Context:Mt,Provider:Rt,defaultValue:yt}}function ae(yt,Mt){var Rt=(0,y.Z)(typeof Mt=="function"?Mt:function(Vt){if(Mt===void 0)return Vt;if(!Array.isArray(Mt))return Vt[Mt];var Kt={};return Mt.forEach(function(Qt){Kt[Qt]=Vt[Qt]}),Kt}),Bt=x.useContext(yt==null?void 0:yt.Context),Lt=Bt||{},Jt=Lt.listeners,fr=Lt.getValue,ir=x.useRef();ir.current=Rt(Bt?fr():yt==null?void 0:yt.defaultValue);var rr=x.useState({}),It=(0,mt.Z)(rr,2),Gt=It[1];return(0,ke.Z)(function(){if(!Bt)return;function Vt(Kt){var Qt=Rt(Kt);(0,we.Z)(ir.current,Qt,!0)||Gt({})}return Jt.add(Vt),function(){Jt.delete(Vt)}},[Bt]),ir.current}var ee=ze(32855),de=ze(8654);function E(){var yt=x.createContext(null);function Mt(){return x.useContext(yt)}function Rt(Lt,Jt){var fr=(0,de.Yr)(Lt),ir=function(It,Gt){var Vt=fr?{ref:Gt}:{},Kt=x.useRef(0),Qt=x.useRef(It),zt=Mt();return zt!==null?x.createElement(Lt,(0,ee.Z)({},It,Vt)):((!Jt||Jt(Qt.current,It))&&(Kt.current+=1),Qt.current=It,x.createElement(yt.Provider,{value:Kt.current},x.createElement(Lt,(0,ee.Z)({},It,Vt))))};return fr?x.forwardRef(ir):ir}function Bt(Lt,Jt){var fr=(0,de.Yr)(Lt),ir=function(It,Gt){var Vt=fr?{ref:Gt}:{};return Mt(),x.createElement(Lt,(0,ee.Z)({},It,Vt))};return fr?x.memo(x.forwardRef(ir),Jt):x.memo(ir,Jt)}return{makeImmutable:Rt,responseImmutable:Bt,useImmutableMark:Mt}}var ne=E(),re=ne.makeImmutable,oe=ne.responseImmutable,le=ne.useImmutableMark,he=E(),pe=he.makeImmutable,ve=he.responseImmutable,ce=he.useImmutableMark,me=ie(),Ee=me;function Te(yt,Mt){var Rt=React.useRef(0);Rt.current+=1;var Bt=React.useRef(yt),Lt=[];Object.keys(yt||{}).map(function(fr){var ir;(yt==null?void 0:yt[fr])!==((ir=Bt.current)===null||ir===void 0?void 0:ir[fr])&&Lt.push(fr)}),Bt.current=yt;var Jt=React.useRef([]);return Lt.length&&(Jt.current=Lt),React.useDebugValue(Rt.current),React.useDebugValue(Jt.current.join(", ")),Mt&&console.log("".concat(Mt,":"),Rt.current,Jt.current),Rt.current}var Re=null,_e=null,ye=ze(34666),be=ze(27247),Se=ze(74430),Ie=ze(92310),Me=ze.n(Ie),Ae=ze(80547),De=ze(97938),He=ze(48736),Ke=x.createContext({renderWithProps:!1}),Ve=Ke,nt="RC_TABLE_KEY";function Ne(yt){return yt==null?[]:Array.isArray(yt)?yt:[yt]}function We(yt){var Mt=[],Rt={};return yt.forEach(function(Bt){for(var Lt=Bt||{},Jt=Lt.key,fr=Lt.dataIndex,ir=Jt||Ne(fr).join("-")||nt;Rt[ir];)ir="".concat(ir,"_next");Rt[ir]=!0,Mt.push(ir)}),Mt}function $e(yt){return yt!=null}function rt(yt){return typeof yt=="number"&&!Number.isNaN(yt)}function et(yt){return yt&&(0,ye.Z)(yt)==="object"&&!Array.isArray(yt)&&!x.isValidElement(yt)}function Xe(yt,Mt,Rt,Bt,Lt,Jt){var fr=x.useContext(Ve),ir=ce(),rr=(0,Ae.Z)(function(){if($e(Bt))return[Bt];var It=Mt==null||Mt===""?[]:Array.isArray(Mt)?Mt:[Mt],Gt=(0,De.Z)(yt,It),Vt=Gt,Kt=void 0;if(Lt){var Qt=Lt(Gt,yt,Rt);et(Qt)?(Vt=Qt.children,Kt=Qt.props,fr.renderWithProps=!0):Vt=Qt}return[Vt,Kt]},[ir,yt,Bt,Mt,Lt,Rt],function(It,Gt){if(Jt){var Vt=(0,mt.Z)(It,2),Kt=Vt[1],Qt=(0,mt.Z)(Gt,2),zt=Qt[1];return Jt(zt,Kt)}return fr.renderWithProps?!0:!(0,we.Z)(It,Gt,!0)});return rr}function Ye(yt,Mt,Rt,Bt){var Lt=yt+Mt-1;return yt<=Bt&&Lt>=Rt}function Ge(yt,Mt){return ae(Ee,function(Rt){var Bt=Ye(yt,Mt||1,Rt.hoverStartRow,Rt.hoverEndRow);return[Bt,Rt.onHover]})}var at=ze(70425),Qe=function(Mt){var Rt=Mt.ellipsis,Bt=Mt.rowType,Lt=Mt.children,Jt,fr=Rt===!0?{showTitle:!0}:Rt;return fr&&(fr.showTitle||Bt==="header")&&(typeof Lt=="string"||typeof Lt=="number"?Jt=Lt.toString():x.isValidElement(Lt)&&typeof Lt.props.children=="string"&&(Jt=Lt.props.children)),Jt};function ft(yt){var Mt,Rt,Bt,Lt,Jt,fr,ir,rr,It=yt.component,Gt=yt.children,Vt=yt.ellipsis,Kt=yt.scope,Qt=yt.prefixCls,zt=yt.className,Yt=yt.align,tr=yt.record,ar=yt.render,Rr=yt.dataIndex,Pr=yt.renderIndex,qr=yt.shouldCellUpdate,Br=yt.index,hn=yt.rowType,gn=yt.colSpan,Tn=yt.rowSpan,yn=yt.fixLeft,Sn=yt.fixRight,Fn=yt.firstFixLeft,Pn=yt.lastFixLeft,Nn=yt.firstFixRight,wn=yt.lastFixRight,Vr=yt.appendNode,pn=yt.additionalProps,Jr=pn===void 0?{}:pn,Mn=yt.isSticky,Rn="".concat(Qt,"-cell"),Bn=ae(Ee,["supportSticky","allColumnsFixedLeft","rowHoverable"]),$n=Bn.supportSticky,Ei=Bn.allColumnsFixedLeft,oi=Bn.rowHoverable,Gi=Xe(tr,Rr,Pr,Gt,ar,qr),_i=(0,mt.Z)(Gi,2),qn=_i[0],ti=_i[1],ri={},ki=typeof yn=="number"&&$n,ai=typeof Sn=="number"&&$n;ki&&(ri.position="sticky",ri.left=yn),ai&&(ri.position="sticky",ri.right=Sn);var ui=(Mt=(Rt=(Bt=ti==null?void 0:ti.colSpan)!==null&&Bt!==void 0?Bt:Jr.colSpan)!==null&&Rt!==void 0?Rt:gn)!==null&&Mt!==void 0?Mt:1,si=(Lt=(Jt=(fr=ti==null?void 0:ti.rowSpan)!==null&&fr!==void 0?fr:Jr.rowSpan)!==null&&Jt!==void 0?Jt:Tn)!==null&&Lt!==void 0?Lt:1,cn=Ge(Br,si),_n=(0,mt.Z)(cn,2),Dn=_n[0],jn=_n[1],Vn=(0,at.zX)(function(Ki){var ni;tr&&jn(Br,Br+si-1),Jr==null||(ni=Jr.onMouseEnter)===null||ni===void 0||ni.call(Jr,Ki)}),ei=(0,at.zX)(function(Ki){var ni;tr&&jn(-1,-1),Jr==null||(ni=Jr.onMouseLeave)===null||ni===void 0||ni.call(Jr,Ki)});if(ui===0||si===0)return null;var Zi=(ir=Jr.title)!==null&&ir!==void 0?ir:Qe({rowType:hn,ellipsis:Vt,children:qn}),di=Me()(Rn,zt,(rr={},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)(rr,"".concat(Rn,"-fix-left"),ki&&$n),"".concat(Rn,"-fix-left-first"),Fn&&$n),"".concat(Rn,"-fix-left-last"),Pn&&$n),"".concat(Rn,"-fix-left-all"),Pn&&Ei&&$n),"".concat(Rn,"-fix-right"),ai&&$n),"".concat(Rn,"-fix-right-first"),Nn&&$n),"".concat(Rn,"-fix-right-last"),wn&&$n),"".concat(Rn,"-ellipsis"),Vt),"".concat(Rn,"-with-append"),Vr),"".concat(Rn,"-fix-sticky"),(ki||ai)&&Mn&&$n),(0,Se.Z)(rr,"".concat(Rn,"-row-hover"),!ti&&Dn)),Jr.className,ti==null?void 0:ti.className),fi={};Yt&&(fi.textAlign=Yt);var Ln=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},ti==null?void 0:ti.style),ri),fi),Jr.style),bi=qn;return(0,ye.Z)(bi)==="object"&&!Array.isArray(bi)&&!x.isValidElement(bi)&&(bi=null),Vt&&(Pn||Nn)&&(bi=x.createElement("span",{className:"".concat(Rn,"-content")},bi)),x.createElement(It,(0,ee.Z)({},ti,Jr,{className:di,style:Ln,title:Zi,scope:Kt,onMouseEnter:oi?Vn:void 0,onMouseLeave:oi?ei:void 0,colSpan:ui!==1?ui:null,rowSpan:si!==1?si:null}),Vr,bi)}var ot=x.memo(ft);function Je(yt,Mt,Rt,Bt,Lt){var Jt=Rt[yt]||{},fr=Rt[Mt]||{},ir,rr;Jt.fixed==="left"?ir=Bt.left[Lt==="rtl"?Mt:yt]:fr.fixed==="right"&&(rr=Bt.right[Lt==="rtl"?yt:Mt]);var It=!1,Gt=!1,Vt=!1,Kt=!1,Qt=Rt[Mt+1],zt=Rt[yt-1],Yt=Qt&&!Qt.fixed||zt&&!zt.fixed||Rt.every(function(qr){return qr.fixed==="left"});if(Lt==="rtl"){if(ir!==void 0){var tr=zt&&zt.fixed==="left";Kt=!tr&&Yt}else if(rr!==void 0){var ar=Qt&&Qt.fixed==="right";Vt=!ar&&Yt}}else if(ir!==void 0){var Rr=Qt&&Qt.fixed==="left";It=!Rr&&Yt}else if(rr!==void 0){var Pr=zt&&zt.fixed==="right";Gt=!Pr&&Yt}return{fixLeft:ir,fixRight:rr,lastFixLeft:It,firstFixRight:Gt,lastFixRight:Vt,firstFixLeft:Kt,isSticky:Bt.isSticky}}var Fe=x.createContext({}),Pe=Fe;function te(yt){var Mt=yt.className,Rt=yt.index,Bt=yt.children,Lt=yt.colSpan,Jt=Lt===void 0?1:Lt,fr=yt.rowSpan,ir=yt.align,rr=ae(Ee,["prefixCls","direction"]),It=rr.prefixCls,Gt=rr.direction,Vt=x.useContext(Pe),Kt=Vt.scrollColumnIndex,Qt=Vt.stickyOffsets,zt=Vt.flattenColumns,Yt=Rt+Jt-1,tr=Yt+1===Kt?Jt+1:Jt,ar=Je(Rt,Rt+tr-1,zt,Qt,Gt);return x.createElement(ot,(0,ee.Z)({className:Mt,index:Rt,component:"td",prefixCls:It,record:null,dataIndex:null,align:ir,colSpan:tr,rowSpan:fr,render:function(){return Bt}},ar))}var fe=ze(43079),Oe=["children"];function Ue(yt){var Mt=yt.children,Rt=(0,fe.Z)(yt,Oe);return x.createElement("tr",Rt,Mt)}function xe(yt){var Mt=yt.children;return Mt}xe.Row=Ue,xe.Cell=te;var Ce=xe;function je(yt){var Mt=yt.children,Rt=yt.stickyOffsets,Bt=yt.flattenColumns,Lt=ae(Ee,"prefixCls"),Jt=Bt.length-1,fr=Bt[Jt],ir=x.useMemo(function(){return{stickyOffsets:Rt,flattenColumns:Bt,scrollColumnIndex:fr!=null&&fr.scrollbar?Jt:null}},[fr,Bt,Jt,Rt]);return x.createElement(Pe.Provider,{value:ir},x.createElement("tfoot",{className:"".concat(Lt,"-summary")},Mt))}var Ze=ve(je),tt=Ce,it=ze(29301),ct=ze(24514),ut=ze(75152),pt=ze(26112);function St(yt,Mt,Rt,Bt,Lt,Jt,fr){yt.push({record:Mt,indent:Rt,index:fr});var ir=Jt(Mt),rr=Lt==null?void 0:Lt.has(ir);if(Mt&&Array.isArray(Mt[Bt])&&rr)for(var It=0;It<Mt[Bt].length;It+=1)St(yt,Mt[Bt][It],Rt+1,Bt,Lt,Jt,It)}function wt(yt,Mt,Rt,Bt){var Lt=x.useMemo(function(){if(Rt!=null&&Rt.size){for(var Jt=[],fr=0;fr<(yt==null?void 0:yt.length);fr+=1){var ir=yt[fr];St(Jt,ir,0,Mt,Rt,Bt,fr)}return Jt}return yt==null?void 0:yt.map(function(rr,It){return{record:rr,indent:0,index:It}})},[yt,Mt,Rt,Bt]);return Lt}function Et(yt,Mt,Rt,Bt){var Lt=ae(Ee,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Jt=Lt.flattenColumns,fr=Lt.expandableType,ir=Lt.expandedKeys,rr=Lt.childrenColumnName,It=Lt.onTriggerExpand,Gt=Lt.rowExpandable,Vt=Lt.onRow,Kt=Lt.expandRowByClick,Qt=Lt.rowClassName,zt=fr==="nest",Yt=fr==="row"&&(!Gt||Gt(yt)),tr=Yt||zt,ar=ir&&ir.has(Mt),Rr=rr&&yt&&yt[rr],Pr=(0,at.zX)(It),qr=Vt==null?void 0:Vt(yt,Rt),Br=qr==null?void 0:qr.onClick,hn=function(Sn){Kt&&tr&&It(yt,Sn);for(var Fn=arguments.length,Pn=new Array(Fn>1?Fn-1:0),Nn=1;Nn<Fn;Nn++)Pn[Nn-1]=arguments[Nn];Br==null||Br.apply(void 0,[Sn].concat(Pn))},gn;typeof Qt=="string"?gn=Qt:typeof Qt=="function"&&(gn=Qt(yt,Rt,Bt));var Tn=We(Jt);return(0,be.Z)((0,be.Z)({},Lt),{},{columnsKey:Tn,nestExpandable:zt,expanded:ar,hasNestChildren:Rr,record:yt,onTriggerExpand:Pr,rowSupportExpand:Yt,expandable:tr,rowProps:(0,be.Z)((0,be.Z)({},qr),{},{className:Me()(gn,qr==null?void 0:qr.className),onClick:hn})})}function vt(yt){var Mt=yt.prefixCls,Rt=yt.children,Bt=yt.component,Lt=yt.cellComponent,Jt=yt.className,fr=yt.expanded,ir=yt.colSpan,rr=yt.isEmpty,It=ae(Ee,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Gt=It.scrollbarSize,Vt=It.fixHeader,Kt=It.fixColumn,Qt=It.componentWidth,zt=It.horizonScroll,Yt=Rt;return(rr?zt&&Qt:Kt)&&(Yt=x.createElement("div",{style:{width:Qt-(Vt&&!rr?Gt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Mt,"-expanded-row-fixed")},Yt)),x.createElement(Bt,{className:Jt,style:{display:fr?null:"none"}},x.createElement(ot,{component:Lt,prefixCls:Mt,colSpan:ir},Yt))}var At=vt;function gt(yt){var Mt=yt.prefixCls,Rt=yt.record,Bt=yt.onExpand,Lt=yt.expanded,Jt=yt.expandable,fr="".concat(Mt,"-row-expand-icon");if(!Jt)return x.createElement("span",{className:Me()(fr,"".concat(Mt,"-row-spaced"))});var ir=function(It){Bt(Rt,It),It.stopPropagation()};return x.createElement("span",{className:Me()(fr,(0,Se.Z)((0,Se.Z)({},"".concat(Mt,"-row-expanded"),Lt),"".concat(Mt,"-row-collapsed"),!Lt)),onClick:ir})}function dt(yt,Mt,Rt){var Bt=[];function Lt(Jt){(Jt||[]).forEach(function(fr,ir){Bt.push(Mt(fr,ir)),Lt(fr[Rt])})}return Lt(yt),Bt}function xt(yt,Mt,Rt,Bt){return typeof yt=="string"?yt:typeof yt=="function"?yt(Mt,Rt,Bt):""}function bt(yt,Mt,Rt,Bt,Lt){var Jt=yt.record,fr=yt.prefixCls,ir=yt.columnsKey,rr=yt.fixedInfoList,It=yt.expandIconColumnIndex,Gt=yt.nestExpandable,Vt=yt.indentSize,Kt=yt.expandIcon,Qt=yt.expanded,zt=yt.hasNestChildren,Yt=yt.onTriggerExpand,tr=ir[Rt],ar=rr[Rt],Rr;Rt===(It||0)&&Gt&&(Rr=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(Vt*Bt,"px")},className:"".concat(fr,"-row-indent indent-level-").concat(Bt)}),Kt({prefixCls:fr,expanded:Qt,expandable:zt,record:Jt,onExpand:Yt})));var Pr;return Mt.onCell&&(Pr=Mt.onCell(Jt,Lt)),{key:tr,fixedInfo:ar,appendCellNode:Rr,additionalCellProps:Pr||{}}}function Pt(yt){var Mt=yt.className,Rt=yt.style,Bt=yt.record,Lt=yt.index,Jt=yt.renderIndex,fr=yt.rowKey,ir=yt.indent,rr=ir===void 0?0:ir,It=yt.rowComponent,Gt=yt.cellComponent,Vt=yt.scopeCellComponent,Kt=Et(Bt,fr,Lt,rr),Qt=Kt.prefixCls,zt=Kt.flattenColumns,Yt=Kt.expandedRowClassName,tr=Kt.expandedRowRender,ar=Kt.rowProps,Rr=Kt.expanded,Pr=Kt.rowSupportExpand,qr=x.useRef(!1);qr.current||(qr.current=Rr);var Br=xt(Yt,Bt,Lt,rr),hn=x.createElement(It,(0,ee.Z)({},ar,{"data-row-key":fr,className:Me()(Mt,"".concat(Qt,"-row"),"".concat(Qt,"-row-level-").concat(rr),ar==null?void 0:ar.className,(0,Se.Z)({},Br,rr>=1)),style:(0,be.Z)((0,be.Z)({},Rt),ar==null?void 0:ar.style)}),zt.map(function(yn,Sn){var Fn=yn.render,Pn=yn.dataIndex,Nn=yn.className,wn=bt(Kt,yn,Sn,rr,Lt),Vr=wn.key,pn=wn.fixedInfo,Jr=wn.appendCellNode,Mn=wn.additionalCellProps;return x.createElement(ot,(0,ee.Z)({className:Nn,ellipsis:yn.ellipsis,align:yn.align,scope:yn.rowScope,component:yn.rowScope?Vt:Gt,prefixCls:Qt,key:Vr,record:Bt,index:Lt,renderIndex:Jt,dataIndex:Pn,render:Fn,shouldCellUpdate:yn.shouldCellUpdate},pn,{appendNode:Jr,additionalProps:Mn}))})),gn;if(Pr&&(qr.current||Rr)){var Tn=tr(Bt,Lt,rr+1,Rr);gn=x.createElement(At,{expanded:Rr,className:Me()("".concat(Qt,"-expanded-row"),"".concat(Qt,"-expanded-row-level-").concat(rr+1),Br),prefixCls:Qt,component:It,cellComponent:Gt,colSpan:zt.length,isEmpty:!1},Tn)}return x.createElement(x.Fragment,null,hn,gn)}var Zt=ve(Pt);function cr(yt){var Mt=yt.columnKey,Rt=yt.onColumnResize,Bt=x.useRef();return(0,ke.Z)(function(){Bt.current&&Rt(Mt,Bt.current.offsetWidth)},[]),x.createElement(it.Z,{data:Mt},x.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ht=ze(29194);function vr(yt){var Mt=yt.prefixCls,Rt=yt.columnsKey,Bt=yt.onColumnResize,Lt=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(Mt,"-measure-row"),style:{height:0,fontSize:0},ref:Lt},x.createElement(it.Z.Collection,{onBatchResize:function(fr){(0,Ht.Z)(Lt.current)&&fr.forEach(function(ir){var rr=ir.data,It=ir.size;Bt(rr,It.offsetWidth)})}},Rt.map(function(Jt){return x.createElement(cr,{key:Jt,columnKey:Jt,onColumnResize:Bt})})))}function Kr(yt){var Mt=yt.data,Rt=yt.measureColumnWidth,Bt=ae(Ee,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Lt=Bt.prefixCls,Jt=Bt.getComponent,fr=Bt.onColumnResize,ir=Bt.flattenColumns,rr=Bt.getRowKey,It=Bt.expandedKeys,Gt=Bt.childrenColumnName,Vt=Bt.emptyNode,Kt=wt(Mt,Gt,It,rr),Qt=x.useRef({renderWithProps:!1}),zt=Jt(["body","wrapper"],"tbody"),Yt=Jt(["body","row"],"tr"),tr=Jt(["body","cell"],"td"),ar=Jt(["body","cell"],"th"),Rr;Mt.length?Rr=Kt.map(function(qr,Br){var hn=qr.record,gn=qr.indent,Tn=qr.index,yn=rr(hn,Br);return x.createElement(Zt,{key:yn,rowKey:yn,record:hn,index:Br,renderIndex:Tn,rowComponent:Yt,cellComponent:tr,scopeCellComponent:ar,indent:gn})}):Rr=x.createElement(At,{expanded:!0,className:"".concat(Lt,"-placeholder"),prefixCls:Lt,component:Yt,cellComponent:tr,colSpan:ir.length,isEmpty:!0},Vt);var Pr=We(ir);return x.createElement(Ve.Provider,{value:Qt.current},x.createElement(zt,{className:"".concat(Lt,"-tbody")},Rt&&x.createElement(vr,{prefixCls:Lt,columnsKey:Pr,onColumnResize:fr}),Rr))}var Xr=ve(Kr),Nr=ze(54451),fn=["columnType"];function Lr(yt){for(var Mt=yt.colWidths,Rt=yt.columns,Bt=yt.columCount,Lt=ae(Ee,["tableLayout"]),Jt=Lt.tableLayout,fr=[],ir=Bt||Rt.length,rr=!1,It=ir-1;It>=0;It-=1){var Gt=Mt[It],Vt=Rt&&Rt[It],Kt=void 0,Qt=void 0;if(Vt&&(Kt=Vt[Nr.v],Jt==="auto"&&(Qt=Vt.minWidth)),Gt||Qt||Kt||rr){var zt=Kt||{},Yt=zt.columnType,tr=(0,fe.Z)(zt,fn);fr.unshift(x.createElement("col",(0,ee.Z)({key:It,style:{width:Gt,minWidth:Qt}},tr))),rr=!0}}return x.createElement("colgroup",null,fr)}var ln=Lr,Tr=ze(3300),vn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function on(yt,Mt){return(0,x.useMemo)(function(){for(var Rt=[],Bt=0;Bt<Mt;Bt+=1){var Lt=yt[Bt];if(Lt!==void 0)Rt[Bt]=Lt;else return null}return Rt},[yt.join("_"),Mt])}var br=x.forwardRef(function(yt,Mt){var Rt=yt.className,Bt=yt.noData,Lt=yt.columns,Jt=yt.flattenColumns,fr=yt.colWidths,ir=yt.columCount,rr=yt.stickyOffsets,It=yt.direction,Gt=yt.fixHeader,Vt=yt.stickyTopOffset,Kt=yt.stickyBottomOffset,Qt=yt.stickyClassName,zt=yt.onScroll,Yt=yt.maxContentScroll,tr=yt.children,ar=(0,fe.Z)(yt,vn),Rr=ae(Ee,["prefixCls","scrollbarSize","isSticky","getComponent"]),Pr=Rr.prefixCls,qr=Rr.scrollbarSize,Br=Rr.isSticky,hn=Rr.getComponent,gn=hn(["header","table"],"table"),Tn=Br&&!Gt?0:qr,yn=x.useRef(null),Sn=x.useCallback(function(Mn){(0,de.mH)(Mt,Mn),(0,de.mH)(yn,Mn)},[]);x.useEffect(function(){var Mn;function Rn(Bn){var $n=Bn,Ei=$n.currentTarget,oi=$n.deltaX;oi&&(zt({currentTarget:Ei,scrollLeft:Ei.scrollLeft+oi}),Bn.preventDefault())}return(Mn=yn.current)===null||Mn===void 0||Mn.addEventListener("wheel",Rn,{passive:!1}),function(){var Bn;(Bn=yn.current)===null||Bn===void 0||Bn.removeEventListener("wheel",Rn)}},[]);var Fn=x.useMemo(function(){return Jt.every(function(Mn){return Mn.width})},[Jt]),Pn=Jt[Jt.length-1],Nn={fixed:Pn?Pn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Pr,"-cell-scrollbar")}}},wn=(0,x.useMemo)(function(){return Tn?[].concat((0,Tr.Z)(Lt),[Nn]):Lt},[Tn,Lt]),Vr=(0,x.useMemo)(function(){return Tn?[].concat((0,Tr.Z)(Jt),[Nn]):Jt},[Tn,Jt]),pn=(0,x.useMemo)(function(){var Mn=rr.right,Rn=rr.left;return(0,be.Z)((0,be.Z)({},rr),{},{left:It==="rtl"?[].concat((0,Tr.Z)(Rn.map(function(Bn){return Bn+Tn})),[0]):Rn,right:It==="rtl"?Mn:[].concat((0,Tr.Z)(Mn.map(function(Bn){return Bn+Tn})),[0]),isSticky:Br})},[Tn,rr,Br]),Jr=on(fr,ir);return x.createElement("div",{style:(0,be.Z)({overflow:"hidden"},Br?{top:Vt,bottom:Kt}:{}),ref:Sn,className:Me()(Rt,(0,Se.Z)({},Qt,!!Qt))},x.createElement(gn,{style:{tableLayout:"fixed",visibility:Bt||Jr?null:"hidden"}},(!Bt||!Yt||Fn)&&x.createElement(ln,{colWidths:Jr?[].concat((0,Tr.Z)(Jr),[Tn]):[],columCount:ir+1,columns:Vr}),tr((0,be.Z)((0,be.Z)({},ar),{},{stickyOffsets:pn,columns:wn,flattenColumns:Vr}))))}),wr=x.memo(br),er=function(Mt){var Rt=Mt.cells,Bt=Mt.stickyOffsets,Lt=Mt.flattenColumns,Jt=Mt.rowComponent,fr=Mt.cellComponent,ir=Mt.onHeaderRow,rr=Mt.index,It=ae(Ee,["prefixCls","direction"]),Gt=It.prefixCls,Vt=It.direction,Kt;ir&&(Kt=ir(Rt.map(function(zt){return zt.column}),rr));var Qt=We(Rt.map(function(zt){return zt.column}));return x.createElement(Jt,Kt,Rt.map(function(zt,Yt){var tr=zt.column,ar=Je(zt.colStart,zt.colEnd,Lt,Bt,Vt),Rr;return tr&&tr.onHeaderCell&&(Rr=zt.column.onHeaderCell(tr)),x.createElement(ot,(0,ee.Z)({},zt,{scope:tr.title?zt.colSpan>1?"colgroup":"col":null,ellipsis:tr.ellipsis,align:tr.align,component:fr,prefixCls:Gt,key:Qt[Yt]},ar,{additionalProps:Rr,rowType:"header"}))}))},dr=er;function Xt(yt){var Mt=[];function Rt(fr,ir){var rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Mt[rr]=Mt[rr]||[];var It=ir,Gt=fr.filter(Boolean).map(function(Vt){var Kt={key:Vt.key,className:Vt.className||"",children:Vt.title,column:Vt,colStart:It},Qt=1,zt=Vt.children;return zt&&zt.length>0&&(Qt=Rt(zt,It,rr+1).reduce(function(Yt,tr){return Yt+tr},0),Kt.hasSubColumns=!0),"colSpan"in Vt&&(Qt=Vt.colSpan),"rowSpan"in Vt&&(Kt.rowSpan=Vt.rowSpan),Kt.colSpan=Qt,Kt.colEnd=Kt.colStart+Qt-1,Mt[rr].push(Kt),It+=Qt,Qt});return Gt}Rt(yt,0);for(var Bt=Mt.length,Lt=function(ir){Mt[ir].forEach(function(rr){!("rowSpan"in rr)&&!rr.hasSubColumns&&(rr.rowSpan=Bt-ir)})},Jt=0;Jt<Bt;Jt+=1)Lt(Jt);return Mt}var qt=function(Mt){var Rt=Mt.stickyOffsets,Bt=Mt.columns,Lt=Mt.flattenColumns,Jt=Mt.onHeaderRow,fr=ae(Ee,["prefixCls","getComponent"]),ir=fr.prefixCls,rr=fr.getComponent,It=x.useMemo(function(){return Xt(Bt)},[Bt]),Gt=rr(["header","wrapper"],"thead"),Vt=rr(["header","row"],"tr"),Kt=rr(["header","cell"],"th");return x.createElement(Gt,{className:"".concat(ir,"-thead")},It.map(function(Qt,zt){var Yt=x.createElement(dr,{key:zt,flattenColumns:Lt,cells:Qt,stickyOffsets:Rt,rowComponent:Vt,cellComponent:Kt,onHeaderRow:Jt,index:zt});return Yt}))},yr=ve(qt),_r=ze(97347);function jr(yt,Mt,Rt){var Bt=(0,Nr.g)(yt),Lt=Bt.expandIcon,Jt=Bt.expandedRowKeys,fr=Bt.defaultExpandedRowKeys,ir=Bt.defaultExpandAllRows,rr=Bt.expandedRowRender,It=Bt.onExpand,Gt=Bt.onExpandedRowsChange,Vt=Bt.childrenColumnName,Kt=Lt||gt,Qt=Vt||"children",zt=x.useMemo(function(){return rr?"row":yt.expandable&&yt.internalHooks===Be.R&&yt.expandable.__PARENT_RENDER_ICON__||Mt.some(function(Br){return Br&&(0,ye.Z)(Br)==="object"&&Br[Qt]})?"nest":!1},[!!rr,Mt]),Yt=x.useState(function(){return fr||(ir?dt(Mt,Rt,Qt):[])}),tr=(0,mt.Z)(Yt,2),ar=tr[0],Rr=tr[1],Pr=x.useMemo(function(){return new Set(Jt||ar||[])},[Jt,ar]),qr=x.useCallback(function(Br){var hn=Rt(Br,Mt.indexOf(Br)),gn,Tn=Pr.has(hn);Tn?(Pr.delete(hn),gn=(0,Tr.Z)(Pr)):gn=[].concat((0,Tr.Z)(Pr),[hn]),Rr(gn),It&&It(!Tn,Br),Gt&&Gt(gn)},[Rt,Pr,Mt,It,Gt]);return[Bt,zt,Pr,Kt,Qt,qr]}function Yr(yt,Mt,Rt){var Bt=yt.map(function(Lt,Jt){return Je(Jt,Jt,yt,Mt,Rt)});return(0,Ae.Z)(function(){return Bt},[Bt],function(Lt,Jt){return!(0,we.Z)(Lt,Jt)})}function dn(yt){var Mt=(0,x.useRef)(yt),Rt=(0,x.useState)({}),Bt=(0,mt.Z)(Rt,2),Lt=Bt[1],Jt=(0,x.useRef)(null),fr=(0,x.useRef)([]);function ir(rr){fr.current.push(rr);var It=Promise.resolve();Jt.current=It,It.then(function(){if(Jt.current===It){var Gt=fr.current,Vt=Mt.current;fr.current=[],Gt.forEach(function(Kt){Mt.current=Kt(Mt.current)}),Jt.current=null,Vt!==Mt.current&&Lt({})}})}return(0,x.useEffect)(function(){return function(){Jt.current=null}},[]),[Mt.current,ir]}function sn(yt){var Mt=(0,x.useRef)(yt||null),Rt=(0,x.useRef)();function Bt(){window.clearTimeout(Rt.current)}function Lt(fr){Mt.current=fr,Bt(),Rt.current=window.setTimeout(function(){Mt.current=null,Rt.current=void 0},100)}function Jt(){return Mt.current}return(0,x.useEffect)(function(){return Bt},[]),[Lt,Jt]}function Hr(){var yt=x.useState(-1),Mt=(0,mt.Z)(yt,2),Rt=Mt[0],Bt=Mt[1],Lt=x.useState(-1),Jt=(0,mt.Z)(Lt,2),fr=Jt[0],ir=Jt[1],rr=x.useCallback(function(It,Gt){Bt(It),ir(Gt)},[]);return[Rt,fr,rr]}var Qr=ze(47273),sr=(0,Qr.Z)()?window:null;function Wt(yt,Mt){var Rt=(0,ye.Z)(yt)==="object"?yt:{},Bt=Rt.offsetHeader,Lt=Bt===void 0?0:Bt,Jt=Rt.offsetSummary,fr=Jt===void 0?0:Jt,ir=Rt.offsetScroll,rr=ir===void 0?0:ir,It=Rt.getContainer,Gt=It===void 0?function(){return sr}:It,Vt=Gt()||sr,Kt=!!yt;return x.useMemo(function(){return{isSticky:Kt,stickyClassName:Kt?"".concat(Mt,"-sticky-holder"):"",offsetHeader:Lt,offsetSummary:fr,offsetScroll:rr,container:Vt}},[Kt,rr,Lt,fr,Mt,Vt])}function mr(yt,Mt,Rt){var Bt=(0,x.useMemo)(function(){var Lt=Mt.length,Jt=function(It,Gt,Vt){for(var Kt=[],Qt=0,zt=It;zt!==Gt;zt+=Vt)Kt.push(Qt),Mt[zt].fixed&&(Qt+=yt[zt]||0);return Kt},fr=Jt(0,Lt,1),ir=Jt(Lt-1,-1,-1).reverse();return Rt==="rtl"?{left:ir,right:fr}:{left:fr,right:ir}},[yt,Mt,Rt]);return Bt}var Ur=mr;function un(yt){var Mt=yt.className,Rt=yt.children;return x.createElement("div",{className:Mt},Rt)}var kt=un,Tt=ze(8224),lr=ze(16089),$t=ze(76846);function Ot(yt){var Mt=(0,$t.bn)(yt),Rt=Mt.getBoundingClientRect(),Bt=document.documentElement;return{left:Rt.left+(window.pageXOffset||Bt.scrollLeft)-(Bt.clientLeft||document.body.clientLeft||0),top:Rt.top+(window.pageYOffset||Bt.scrollTop)-(Bt.clientTop||document.body.clientTop||0)}}var nr=function(Mt,Rt){var Bt,Lt,Jt=Mt.scrollBodyRef,fr=Mt.onScroll,ir=Mt.offsetScroll,rr=Mt.container,It=Mt.direction,Gt=ae(Ee,"prefixCls"),Vt=((Bt=Jt.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,Kt=((Lt=Jt.current)===null||Lt===void 0?void 0:Lt.clientWidth)||0,Qt=Vt&&Kt*(Kt/Vt),zt=x.useRef(),Yt=dn({scrollLeft:0,isHiddenScrollBar:!0}),tr=(0,mt.Z)(Yt,2),ar=tr[0],Rr=tr[1],Pr=x.useRef({delta:0,x:0}),qr=x.useState(!1),Br=(0,mt.Z)(qr,2),hn=Br[0],gn=Br[1],Tn=x.useRef(null);x.useEffect(function(){return function(){lr.Z.cancel(Tn.current)}},[]);var yn=function(){gn(!1)},Sn=function(Vr){Vr.persist(),Pr.current.delta=Vr.pageX-ar.scrollLeft,Pr.current.x=0,gn(!0),Vr.preventDefault()},Fn=function(Vr){var pn,Jr=Vr||((pn=window)===null||pn===void 0?void 0:pn.event),Mn=Jr.buttons;if(!hn||Mn===0){hn&&gn(!1);return}var Rn=Pr.current.x+Vr.pageX-Pr.current.x-Pr.current.delta,Bn=It==="rtl";Rn=Math.max(Bn?Qt-Kt:0,Math.min(Bn?0:Kt-Qt,Rn));var $n=!Bn||Math.abs(Rn)+Math.abs(Qt)<Kt;$n&&(fr({scrollLeft:Rn/Kt*(Vt+2)}),Pr.current.x=Vr.pageX)},Pn=function(){lr.Z.cancel(Tn.current),Tn.current=(0,lr.Z)(function(){if(Jt.current){var Vr=Ot(Jt.current).top,pn=Vr+Jt.current.offsetHeight,Jr=rr===window?document.documentElement.scrollTop+window.innerHeight:Ot(rr).top+rr.clientHeight;pn-(0,ut.Z)()<=Jr||Vr>=Jr-ir?Rr(function(Mn){return(0,be.Z)((0,be.Z)({},Mn),{},{isHiddenScrollBar:!0})}):Rr(function(Mn){return(0,be.Z)((0,be.Z)({},Mn),{},{isHiddenScrollBar:!1})})}})},Nn=function(Vr){Rr(function(pn){return(0,be.Z)((0,be.Z)({},pn),{},{scrollLeft:Vr/Vt*Kt||0})})};return x.useImperativeHandle(Rt,function(){return{setScrollLeft:Nn,checkScrollBarVisible:Pn}}),x.useEffect(function(){var wn=(0,Tt.Z)(document.body,"mouseup",yn,!1),Vr=(0,Tt.Z)(document.body,"mousemove",Fn,!1);return Pn(),function(){wn.remove(),Vr.remove()}},[Qt,hn]),x.useEffect(function(){if(Jt.current){for(var wn=[],Vr=(0,$t.bn)(Jt.current);Vr;)wn.push(Vr),Vr=Vr.parentElement;return wn.forEach(function(pn){return pn.addEventListener("scroll",Pn,!1)}),window.addEventListener("resize",Pn,!1),window.addEventListener("scroll",Pn,!1),rr.addEventListener("scroll",Pn,!1),function(){wn.forEach(function(pn){return pn.removeEventListener("scroll",Pn)}),window.removeEventListener("resize",Pn),window.removeEventListener("scroll",Pn),rr.removeEventListener("scroll",Pn)}}},[rr]),x.useEffect(function(){ar.isHiddenScrollBar||Rr(function(wn){var Vr=Jt.current;return Vr?(0,be.Z)((0,be.Z)({},wn),{},{scrollLeft:Vr.scrollLeft/Vr.scrollWidth*Vr.clientWidth}):wn})},[ar.isHiddenScrollBar]),Vt<=Kt||!Qt||ar.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,ut.Z)(),width:Kt,bottom:ir},className:"".concat(Gt,"-sticky-scroll")},x.createElement("div",{onMouseDown:Sn,ref:zt,className:Me()("".concat(Gt,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Gt,"-sticky-scroll-bar-active"),hn)),style:{width:"".concat(Qt,"px"),transform:"translate3d(".concat(ar.scrollLeft,"px, 0, 0)")}}))},pr=x.forwardRef(nr);function gr(yt){return null}var Dr=gr;function hr(yt){return null}var Ar=hr,jt="rc-table",Sr=[],ur={};function Or(){return"No Data"}function Wr(yt,Mt){var Rt=(0,be.Z)({rowKey:"key",prefixCls:jt,emptyText:Or},yt),Bt=Rt.prefixCls,Lt=Rt.className,Jt=Rt.rowClassName,fr=Rt.style,ir=Rt.data,rr=Rt.rowKey,It=Rt.scroll,Gt=Rt.tableLayout,Vt=Rt.direction,Kt=Rt.title,Qt=Rt.footer,zt=Rt.summary,Yt=Rt.caption,tr=Rt.id,ar=Rt.showHeader,Rr=Rt.components,Pr=Rt.emptyText,qr=Rt.onRow,Br=Rt.onHeaderRow,hn=Rt.onScroll,gn=Rt.internalHooks,Tn=Rt.transformColumns,yn=Rt.internalRefs,Sn=Rt.tailor,Fn=Rt.getContainerWidth,Pn=Rt.sticky,Nn=Rt.rowHoverable,wn=Nn===void 0?!0:Nn,Vr=ir||Sr,pn=!!Vr.length,Jr=gn===Be.R,Mn=x.useCallback(function(zn,Gn){return(0,De.Z)(Rr,zn)||Gn},[Rr]),Rn=x.useMemo(function(){return typeof rr=="function"?rr:function(zn){var Gn=zn&&zn[rr];return Gn}},[rr]),Bn=Mn(["body"]),$n=Hr(),Ei=(0,mt.Z)($n,3),oi=Ei[0],Gi=Ei[1],_i=Ei[2],qn=jr(Rt,Vr,Rn),ti=(0,mt.Z)(qn,6),ri=ti[0],ki=ti[1],ai=ti[2],ui=ti[3],si=ti[4],cn=ti[5],_n=It==null?void 0:It.x,Dn=x.useState(0),jn=(0,mt.Z)(Dn,2),Vn=jn[0],ei=jn[1],Zi=(0,_r.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},Rt),ri),{},{expandable:!!ri.expandedRowRender,columnTitle:ri.columnTitle,expandedKeys:ai,getRowKey:Rn,onTriggerExpand:cn,expandIcon:ui,expandIconColumnIndex:ri.expandIconColumnIndex,direction:Vt,scrollWidth:Jr&&Sn&&typeof _n=="number"?_n:null,clientWidth:Vn}),Jr?Tn:null),di=(0,mt.Z)(Zi,4),fi=di[0],Ln=di[1],bi=di[2],Ki=di[3],ni=bi!=null?bi:_n,sa=x.useMemo(function(){return{columns:fi,flattenColumns:Ln}},[fi,Ln]),Vi=x.useRef(),Ji=x.useRef(),vi=x.useRef(),ro=x.useRef();x.useImperativeHandle(Mt,function(){return{nativeElement:Vi.current,scrollTo:function(Gn){var Ci;if(vi.current instanceof HTMLElement){var Ii=Gn.index,Pi=Gn.top,Ra=Gn.key;if(rt(Pi)){var xa;(xa=vi.current)===null||xa===void 0||xa.scrollTo({top:Pi})}else{var Ia,fa=Ra!=null?Ra:Rn(Vr[Ii]);(Ia=vi.current.querySelector('[data-row-key="'.concat(fa,'"]')))===null||Ia===void 0||Ia.scrollIntoView()}}else(Ci=vi.current)!==null&&Ci!==void 0&&Ci.scrollTo&&vi.current.scrollTo(Gn)}}});var Ya=x.useRef(),pa=x.useState(!1),ma=(0,mt.Z)(pa,2),na=ma[0],Ca=ma[1],no=x.useState(!1),io=(0,mt.Z)(no,2),ao=io[0],Ba=io[1],Ja=x.useState(new Map),Fa=(0,mt.Z)(Ja,2),Sa=Fa[0],Qa=Fa[1],oo=We(Ln),La=oo.map(function(zn){return Sa.get(zn)}),ka=x.useMemo(function(){return La},[La.join("_")]),Aa=Ur(ka,Ln,Vt),Li=It&&$e(It.y),hi=It&&$e(ni)||!!ri.fixed,Kn=hi&&Ln.some(function(zn){var Gn=zn.fixed;return Gn}),Wn=x.useRef(),gi=Wt(Pn,Bt),pi=gi.isSticky,wi=gi.offsetHeader,Ai=gi.offsetSummary,la=gi.offsetScroll,ia=gi.stickyClassName,va=gi.container,mi=x.useMemo(function(){return zt==null?void 0:zt(Vr)},[zt,Vr]),Oi=(Li||pi)&&x.isValidElement(mi)&&mi.type===Ce&&mi.props.fixed,Qi,ua,$a;Li&&(ua={overflowY:pn?"scroll":"auto",maxHeight:It.y}),hi&&(Qi={overflowX:"auto"},Li||(ua={overflowY:"hidden"}),$a={width:ni===!0?"auto":ni,minWidth:"100%"});var Co=x.useCallback(function(zn,Gn){Qa(function(Ci){if(Ci.get(zn)!==Gn){var Ii=new Map(Ci);return Ii.set(zn,Gn),Ii}return Ci})},[]),So=sn(null),wa=(0,mt.Z)(So,2),Ta=wa[0],Wi=wa[1];function ca(zn,Gn){Gn&&(typeof Gn=="function"?Gn(zn):Gn.scrollLeft!==zn&&(Gn.scrollLeft=zn,Gn.scrollLeft!==zn&&setTimeout(function(){Gn.scrollLeft=zn},0)))}var $i=(0,y.Z)(function(zn){var Gn=zn.currentTarget,Ci=zn.scrollLeft,Ii=Vt==="rtl",Pi=typeof Ci=="number"?Ci:Gn.scrollLeft,Ra=Gn||ur;if(!Wi()||Wi()===Ra){var xa;Ta(Ra),ca(Pi,Ji.current),ca(Pi,vi.current),ca(Pi,Ya.current),ca(Pi,(xa=Wn.current)===null||xa===void 0?void 0:xa.setScrollLeft)}var Ia=Gn||Ji.current;if(Ia){var fa=Jr&&Sn&&typeof ni=="number"?ni:Ia.scrollWidth,ga=Ia.clientWidth;if(fa===ga){Ca(!1),Ba(!1);return}Ii?(Ca(-Pi<fa-ga),Ba(-Pi>0)):(Ca(Pi>0),Ba(Pi<fa-ga))}}),so=(0,y.Z)(function(zn){$i(zn),hn==null||hn(zn)}),Qo=function(){if(hi&&vi.current){var Gn;$i({currentTarget:(0,$t.bn)(vi.current),scrollLeft:(Gn=vi.current)===null||Gn===void 0?void 0:Gn.scrollLeft})}else Ca(!1),Ba(!1)},$o=function(Gn){var Ci,Ii=Gn.width;(Ci=Wn.current)===null||Ci===void 0||Ci.checkScrollBarVisible();var Pi=Vi.current?Vi.current.offsetWidth:Ii;Jr&&Fn&&Vi.current&&(Pi=Fn(Vi.current,Pi)||Pi),Pi!==Vn&&(Qo(),ei(Pi))},Wa=x.useRef(!1);x.useEffect(function(){Wa.current&&Qo()},[hi,ir,fi.length]),x.useEffect(function(){Wa.current=!0},[]);var qo=x.useState(0),ko=(0,mt.Z)(qo,2),_a=ko[0],es=ko[1],Ao=x.useState(!0),To=(0,mt.Z)(Ao,2),_o=To[0],Do=To[1];(0,ke.Z)(function(){(!Sn||!Jr)&&(vi.current instanceof Element?es((0,ut.o)(vi.current).width):es((0,ut.o)(ro.current).width)),Do((0,ct.G)("position","sticky"))},[]),x.useEffect(function(){Jr&&yn&&(yn.body.current=vi.current)});var Ua=x.useCallback(function(zn){return x.createElement(x.Fragment,null,x.createElement(yr,zn),Oi==="top"&&x.createElement(Ze,zn,mi))},[Oi,mi]),lo=x.useCallback(function(zn){return x.createElement(Ze,zn,mi)},[mi]),jo=Mn(["table"],"table"),Da=x.useMemo(function(){return Gt||(Kn?ni==="max-content"?"auto":"fixed":Li||pi||Ln.some(function(zn){var Gn=zn.ellipsis;return Gn})?"fixed":"auto")},[Li,Kn,Ln,Gt,pi]),Oo,Po={colWidths:ka,columCount:Ln.length,stickyOffsets:Aa,onHeaderRow:Br,fixHeader:Li,scroll:It},ts=x.useMemo(function(){return pn?null:typeof Pr=="function"?Pr():Pr},[pn,Pr]),uo=x.createElement(Xr,{data:Vr,measureColumnWidth:Li||hi||pi}),co=x.createElement(ln,{colWidths:Ln.map(function(zn){var Gn=zn.width;return Gn}),columns:Ln}),ja=Yt!=null?x.createElement("caption",{className:"".concat(Bt,"-caption")},Yt):void 0,qa=(0,pt.Z)(Rt,{data:!0}),rs=(0,pt.Z)(Rt,{aria:!0});if(Li||pi){var Za;typeof Bn=="function"?(Za=Bn(Vr,{scrollbarSize:_a,ref:vi,onScroll:$i}),Po.colWidths=Ln.map(function(zn,Gn){var Ci=zn.width,Ii=Gn===Ln.length-1?Ci-_a:Ci;return typeof Ii=="number"&&!Number.isNaN(Ii)?Ii:0})):Za=x.createElement("div",{style:(0,be.Z)((0,be.Z)({},Qi),ua),onScroll:so,ref:vi,className:Me()("".concat(Bt,"-body"))},x.createElement(jo,(0,ee.Z)({style:(0,be.Z)((0,be.Z)({},$a),{},{tableLayout:Da})},rs),ja,co,uo,!Oi&&mi&&x.createElement(Ze,{stickyOffsets:Aa,flattenColumns:Ln},mi)));var Ro=(0,be.Z)((0,be.Z)((0,be.Z)({noData:!Vr.length,maxContentScroll:hi&&ni==="max-content"},Po),sa),{},{direction:Vt,stickyClassName:ia,onScroll:$i});Oo=x.createElement(x.Fragment,null,ar!==!1&&x.createElement(wr,(0,ee.Z)({},Ro,{stickyTopOffset:wi,className:"".concat(Bt,"-header"),ref:Ji}),Ua),Za,Oi&&Oi!=="top"&&x.createElement(wr,(0,ee.Z)({},Ro,{stickyBottomOffset:Ai,className:"".concat(Bt,"-summary"),ref:Ya}),lo),pi&&vi.current&&vi.current instanceof Element&&x.createElement(pr,{ref:Wn,offsetScroll:la,scrollBodyRef:vi,onScroll:$i,container:va,direction:Vt}))}else Oo=x.createElement("div",{style:(0,be.Z)((0,be.Z)({},Qi),ua),className:Me()("".concat(Bt,"-content")),onScroll:$i,ref:vi},x.createElement(jo,(0,ee.Z)({style:(0,be.Z)((0,be.Z)({},$a),{},{tableLayout:Da})},rs),ja,co,ar!==!1&&x.createElement(yr,(0,ee.Z)({},Po,sa)),uo,mi&&x.createElement(Ze,{stickyOffsets:Aa,flattenColumns:Ln},mi)));var Oa=x.createElement("div",(0,ee.Z)({className:Me()(Bt,Lt,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(Bt,"-rtl"),Vt==="rtl"),"".concat(Bt,"-ping-left"),na),"".concat(Bt,"-ping-right"),ao),"".concat(Bt,"-layout-fixed"),Gt==="fixed"),"".concat(Bt,"-fixed-header"),Li),"".concat(Bt,"-fixed-column"),Kn),"".concat(Bt,"-fixed-column-gapped"),Kn&&Ki),"".concat(Bt,"-scroll-horizontal"),hi),"".concat(Bt,"-has-fix-left"),Ln[0]&&Ln[0].fixed),"".concat(Bt,"-has-fix-right"),Ln[Ln.length-1]&&Ln[Ln.length-1].fixed==="right")),style:fr,id:tr,ref:Vi},qa),Kt&&x.createElement(kt,{className:"".concat(Bt,"-title")},Kt(Vr)),x.createElement("div",{ref:ro,className:"".concat(Bt,"-container")},Oo),Qt&&x.createElement(kt,{className:"".concat(Bt,"-footer")},Qt(Vr)));hi&&(Oa=x.createElement(it.Z,{onResize:$o},Oa));var Io=Yr(Ln,Aa,Vt),Pa=x.useMemo(function(){return{scrollX:ni,prefixCls:Bt,getComponent:Mn,scrollbarSize:_a,direction:Vt,fixedInfoList:Io,isSticky:pi,supportSticky:_o,componentWidth:Vn,fixHeader:Li,fixColumn:Kn,horizonScroll:hi,tableLayout:Da,rowClassName:Jt,expandedRowClassName:ri.expandedRowClassName,expandIcon:ui,expandableType:ki,expandRowByClick:ri.expandRowByClick,expandedRowRender:ri.expandedRowRender,onTriggerExpand:cn,expandIconColumnIndex:ri.expandIconColumnIndex,indentSize:ri.indentSize,allColumnsFixedLeft:Ln.every(function(zn){return zn.fixed==="left"}),emptyNode:ts,columns:fi,flattenColumns:Ln,onColumnResize:Co,hoverStartRow:oi,hoverEndRow:Gi,onHover:_i,rowExpandable:ri.rowExpandable,onRow:qr,getRowKey:Rn,expandedKeys:ai,childrenColumnName:si,rowHoverable:wn}},[ni,Bt,Mn,_a,Vt,Io,pi,_o,Vn,Li,Kn,hi,Da,Jt,ri.expandedRowClassName,ui,ki,ri.expandRowByClick,ri.expandedRowRender,cn,ri.expandIconColumnIndex,ri.indentSize,ts,fi,Ln,Co,oi,Gi,_i,ri.rowExpandable,qr,Rn,ai,si,wn]);return x.createElement(Ee.Provider,{value:Pa},Oa)}var tn=x.forwardRef(Wr);function En(yt){return pe(tn,yt)}var Zn=En();Zn.EXPAND_COLUMN=Be.w,Zn.INTERNAL_HOOKS=Be.R,Zn.Column=Dr,Zn.ColumnGroup=Ar,Zn.Summary=tt;var On=Zn,An=ze(6790),Hn=ie(null),Cn=ie(null);function Xn(yt,Mt,Rt){var Bt=Mt||1;return Rt[yt+Bt]-(Rt[yt]||0)}function Qn(yt){var Mt=yt.rowInfo,Rt=yt.column,Bt=yt.colIndex,Lt=yt.indent,Jt=yt.index,fr=yt.component,ir=yt.renderIndex,rr=yt.record,It=yt.style,Gt=yt.className,Vt=yt.inverse,Kt=yt.getHeight,Qt=Rt.render,zt=Rt.dataIndex,Yt=Rt.className,tr=Rt.width,ar=ae(Cn,["columnsOffset"]),Rr=ar.columnsOffset,Pr=bt(Mt,Rt,Bt,Lt,Jt),qr=Pr.key,Br=Pr.fixedInfo,hn=Pr.appendCellNode,gn=Pr.additionalCellProps,Tn=gn.style,yn=gn.colSpan,Sn=yn===void 0?1:yn,Fn=gn.rowSpan,Pn=Fn===void 0?1:Fn,Nn=Bt-1,wn=Xn(Nn,Sn,Rr),Vr=Sn>1?tr-wn:0,pn=(0,be.Z)((0,be.Z)((0,be.Z)({},Tn),It),{},{flex:"0 0 ".concat(wn,"px"),width:"".concat(wn,"px"),marginRight:Vr,pointerEvents:"auto"}),Jr=x.useMemo(function(){return Vt?Pn<=1:Sn===0||Pn===0||Pn>1},[Pn,Sn,Vt]);Jr?pn.visibility="hidden":Vt&&(pn.height=Kt==null?void 0:Kt(Pn));var Mn=Jr?function(){return null}:Qt,Rn={};return(Pn===0||Sn===0)&&(Rn.rowSpan=1,Rn.colSpan=1),x.createElement(ot,(0,ee.Z)({className:Me()(Yt,Gt),ellipsis:Rt.ellipsis,align:Rt.align,scope:Rt.rowScope,component:fr,prefixCls:Mt.prefixCls,key:qr,record:rr,index:Jt,renderIndex:ir,dataIndex:zt,render:Mn,shouldCellUpdate:Rt.shouldCellUpdate},Br,{appendNode:hn,additionalProps:(0,be.Z)((0,be.Z)({},gn),{},{style:pn},Rn)}))}var Jn=Qn,Er=["data","index","className","rowKey","style","extra","getHeight"],Fr=x.forwardRef(function(yt,Mt){var Rt=yt.data,Bt=yt.index,Lt=yt.className,Jt=yt.rowKey,fr=yt.style,ir=yt.extra,rr=yt.getHeight,It=(0,fe.Z)(yt,Er),Gt=Rt.record,Vt=Rt.indent,Kt=Rt.index,Qt=ae(Ee,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),zt=Qt.scrollX,Yt=Qt.flattenColumns,tr=Qt.prefixCls,ar=Qt.fixColumn,Rr=Qt.componentWidth,Pr=ae(Hn,["getComponent"]),qr=Pr.getComponent,Br=Et(Gt,Jt,Bt,Vt),hn=qr(["body","row"],"div"),gn=qr(["body","cell"],"div"),Tn=Br.rowSupportExpand,yn=Br.expanded,Sn=Br.rowProps,Fn=Br.expandedRowRender,Pn=Br.expandedRowClassName,Nn;if(Tn&&yn){var wn=Fn(Gt,Bt,Vt+1,yn),Vr=xt(Pn,Gt,Bt,Vt),pn={};ar&&(pn={style:(0,Se.Z)({},"--virtual-width","".concat(Rr,"px"))});var Jr="".concat(tr,"-expanded-row-cell");Nn=x.createElement(hn,{className:Me()("".concat(tr,"-expanded-row"),"".concat(tr,"-expanded-row-level-").concat(Vt+1),Vr)},x.createElement(ot,{component:gn,prefixCls:tr,className:Me()(Jr,(0,Se.Z)({},"".concat(Jr,"-fixed"),ar)),additionalProps:pn},wn))}var Mn=(0,be.Z)((0,be.Z)({},fr),{},{width:zt});ir&&(Mn.position="absolute",Mn.pointerEvents="none");var Rn=x.createElement(hn,(0,ee.Z)({},Sn,It,{"data-row-key":Jt,ref:Tn?null:Mt,className:Me()(Lt,"".concat(tr,"-row"),Sn==null?void 0:Sn.className,(0,Se.Z)({},"".concat(tr,"-row-extra"),ir)),style:(0,be.Z)((0,be.Z)({},Mn),Sn==null?void 0:Sn.style)}),Yt.map(function(Bn,$n){return x.createElement(Jn,{key:$n,component:gn,rowInfo:Br,column:Bn,colIndex:$n,indent:Vt,index:Bt,renderIndex:Kt,record:Gt,inverse:ir,getHeight:rr})}));return Tn?x.createElement("div",{ref:Mt},Rn,Nn):Rn}),en=ve(Fr),$r=en,bn=x.forwardRef(function(yt,Mt){var Rt=yt.data,Bt=yt.onScroll,Lt=ae(Ee,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Jt=Lt.flattenColumns,fr=Lt.onColumnResize,ir=Lt.getRowKey,rr=Lt.expandedKeys,It=Lt.prefixCls,Gt=Lt.childrenColumnName,Vt=Lt.scrollX,Kt=Lt.direction,Qt=ae(Hn),zt=Qt.sticky,Yt=Qt.scrollY,tr=Qt.listItemHeight,ar=Qt.getComponent,Rr=Qt.onScroll,Pr=x.useRef(),qr=wt(Rt,Gt,rr,ir),Br=x.useMemo(function(){var Nn=0;return Jt.map(function(wn){var Vr=wn.width,pn=wn.key;return Nn+=Vr,[pn,Vr,Nn]})},[Jt]),hn=x.useMemo(function(){return Br.map(function(Nn){return Nn[2]})},[Br]);x.useEffect(function(){Br.forEach(function(Nn){var wn=(0,mt.Z)(Nn,2),Vr=wn[0],pn=wn[1];fr(Vr,pn)})},[Br]),x.useImperativeHandle(Mt,function(){var Nn,wn={scrollTo:function(pn){var Jr;(Jr=Pr.current)===null||Jr===void 0||Jr.scrollTo(pn)},nativeElement:(Nn=Pr.current)===null||Nn===void 0?void 0:Nn.nativeElement};return Object.defineProperty(wn,"scrollLeft",{get:function(){var pn;return((pn=Pr.current)===null||pn===void 0?void 0:pn.getScrollInfo().x)||0},set:function(pn){var Jr;(Jr=Pr.current)===null||Jr===void 0||Jr.scrollTo({left:pn})}}),wn});var gn=function(wn,Vr){var pn,Jr=(pn=qr[Vr])===null||pn===void 0?void 0:pn.record,Mn=wn.onCell;if(Mn){var Rn,Bn=Mn(Jr,Vr);return(Rn=Bn==null?void 0:Bn.rowSpan)!==null&&Rn!==void 0?Rn:1}return 1},Tn=function(wn){var Vr=wn.start,pn=wn.end,Jr=wn.getSize,Mn=wn.offsetY;if(pn<0)return null;for(var Rn=Jt.filter(function(ui){return gn(ui,Vr)===0}),Bn=Vr,$n=function(si){if(Rn=Rn.filter(function(cn){return gn(cn,si)===0}),!Rn.length)return Bn=si,1},Ei=Vr;Ei>=0&&!$n(Ei);Ei-=1);for(var oi=Jt.filter(function(ui){return gn(ui,pn)!==1}),Gi=pn,_i=function(si){if(oi=oi.filter(function(cn){return gn(cn,si)!==1}),!oi.length)return Gi=Math.max(si-1,pn),1},qn=pn;qn<qr.length&&!_i(qn);qn+=1);for(var ti=[],ri=function(si){var cn=qr[si];if(!cn)return 1;Jt.some(function(_n){return gn(_n,si)>1})&&ti.push(si)},ki=Bn;ki<=Gi;ki+=1)ri(ki);var ai=ti.map(function(ui){var si=qr[ui],cn=ir(si.record,ui),_n=function(Vn){var ei=ui+Vn-1,Zi=ir(qr[ei].record,ei),di=Jr(cn,Zi);return di.bottom-di.top},Dn=Jr(cn);return x.createElement($r,{key:ui,data:si,rowKey:cn,index:ui,style:{top:-Mn+Dn.top},extra:!0,getHeight:_n})});return ai},yn=x.useMemo(function(){return{columnsOffset:hn}},[hn]),Sn="".concat(It,"-tbody"),Fn=ar(["body","wrapper"]),Pn={};return zt&&(Pn.position="sticky",Pn.bottom=0,(0,ye.Z)(zt)==="object"&&zt.offsetScroll&&(Pn.bottom=zt.offsetScroll)),x.createElement(Cn.Provider,{value:yn},x.createElement(An.Z,{fullHeight:!1,ref:Pr,prefixCls:"".concat(Sn,"-virtual"),styles:{horizontalScrollBar:Pn},className:Sn,height:Yt,itemHeight:tr||24,data:qr,itemKey:function(wn){return ir(wn.record)},component:Fn,scrollWidth:Vt,direction:Kt,onVirtualScroll:function(wn){var Vr,pn=wn.x;Bt({currentTarget:(Vr=Pr.current)===null||Vr===void 0?void 0:Vr.nativeElement,scrollLeft:pn})},onScroll:Rr,extraRender:Tn},function(Nn,wn,Vr){var pn=ir(Nn.record,wn);return x.createElement($r,{data:Nn,rowKey:pn,index:wn,style:Vr.style})}))}),kr=ve(bn),Cr=kr,Mr=function(Mt,Rt){var Bt=Rt.ref,Lt=Rt.onScroll;return x.createElement(Cr,{ref:Bt,data:Mt,onScroll:Lt})};function Zr(yt,Mt){var Rt=yt.data,Bt=yt.columns,Lt=yt.scroll,Jt=yt.sticky,fr=yt.prefixCls,ir=fr===void 0?jt:fr,rr=yt.className,It=yt.listItemHeight,Gt=yt.components,Vt=yt.onScroll,Kt=Lt||{},Qt=Kt.x,zt=Kt.y;typeof Qt!="number"&&(Qt=1),typeof zt!="number"&&(zt=500);var Yt=(0,at.zX)(function(Rr,Pr){return(0,De.Z)(Gt,Rr)||Pr}),tr=(0,at.zX)(Vt),ar=x.useMemo(function(){return{sticky:Jt,scrollY:zt,listItemHeight:It,getComponent:Yt,onScroll:tr}},[Jt,zt,It,Yt,tr]);return x.createElement(Hn.Provider,{value:ar},x.createElement(On,(0,ee.Z)({},yt,{className:Me()(rr,"".concat(ir,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},Lt),{},{x:Qt}),components:(0,be.Z)((0,be.Z)({},Gt),{},{body:Rt!=null&&Rt.length?Mr:void 0}),columns:Bt,internalHooks:Be.R,tailor:!0,ref:Mt})))}var xn=x.forwardRef(Zr);function rn(yt){return pe(xn,yt)}var an=rn(),Un=null},54451:function(Nt,Dt,ze){"use strict";ze.d(Dt,{g:function(){return x},v:function(){return we}});var Be=ze(27247),mt=ze(43079),y=ze(48736),ke=["expandable"],we="RC_TABLE_INTERNAL_COL_DEFINE";function x(z){var ie=z.expandable,ae=(0,mt.Z)(z,ke),ee;return"expandable"in z?ee=(0,Be.Z)((0,Be.Z)({},ae),ie):ee=ae,ee.showExpandColumn===!1&&(ee.expandIconColumnIndex=-1),ee}},22711:function(Nt,Dt,ze){"use strict";ze.r(Dt),ze.d(Dt,{ResizableTextArea:function(){return Ie},default:function(){return He}});var Be=ze(32855),mt=ze(74430),y=ze(27247),ke=ze(3300),we=ze(11913),x=ze(43079),z=ze(92310),ie=ze.n(z),ae=ze(36901),ee=ze(66003),de=ze(30292),E=ze(18929),ne=ze(59301),re=ze(34666),oe=ze(29301),le=ze(34280),he=ze(16089),pe=`
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;
`,ve=["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"],ce={},me;function Ee(Ke){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=Ke.getAttribute("id")||Ke.getAttribute("data-reactid")||Ke.getAttribute("name");if(Ve&&ce[nt])return ce[nt];var Ne=window.getComputedStyle(Ke),We=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),$e=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),rt=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),et=ve.map(function(Ye){return"".concat(Ye,":").concat(Ne.getPropertyValue(Ye))}).join(";"),Xe={sizingStyle:et,paddingSize:$e,borderSize:rt,boxSizing:We};return Ve&&nt&&(ce[nt]=Xe),Xe}function Te(Ke){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;me||(me=document.createElement("textarea"),me.setAttribute("tab-index","-1"),me.setAttribute("aria-hidden","true"),me.setAttribute("name","hiddenTextarea"),document.body.appendChild(me)),Ke.getAttribute("wrap")?me.setAttribute("wrap",Ke.getAttribute("wrap")):me.removeAttribute("wrap");var We=Ee(Ke,Ve),$e=We.paddingSize,rt=We.borderSize,et=We.boxSizing,Xe=We.sizingStyle;me.setAttribute("style","".concat(Xe,";").concat(pe)),me.value=Ke.value||Ke.placeholder||"";var Ye=void 0,Ge=void 0,at,Qe=me.scrollHeight;if(et==="border-box"?Qe+=rt:et==="content-box"&&(Qe-=$e),nt!==null||Ne!==null){me.value=" ";var ft=me.scrollHeight-$e;nt!==null&&(Ye=ft*nt,et==="border-box"&&(Ye=Ye+$e+rt),Qe=Math.max(Ye,Qe)),Ne!==null&&(Ge=ft*Ne,et==="border-box"&&(Ge=Ge+$e+rt),at=Qe>Ge?"":"hidden",Qe=Math.min(Ge,Qe))}var ot={height:Qe,overflowY:at,resize:"none"};return Ye&&(ot.minHeight=Ye),Ge&&(ot.maxHeight=Ge),ot}var Re=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_e=0,ye=1,be=2,Se=ne.forwardRef(function(Ke,Ve){var nt=Ke,Ne=nt.prefixCls,We=nt.defaultValue,$e=nt.value,rt=nt.autoSize,et=nt.onResize,Xe=nt.className,Ye=nt.style,Ge=nt.disabled,at=nt.onChange,Qe=nt.onInternalAutoSize,ft=(0,x.Z)(nt,Re),ot=(0,E.Z)(We,{value:$e,postState:function(Zt){return Zt!=null?Zt:""}}),Je=(0,we.Z)(ot,2),Fe=Je[0],Pe=Je[1],te=function(Zt){Pe(Zt.target.value),at==null||at(Zt)},fe=ne.useRef();ne.useImperativeHandle(Ve,function(){return{textArea:fe.current}});var Oe=ne.useMemo(function(){return rt&&(0,re.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),Ue=(0,we.Z)(Oe,2),xe=Ue[0],Ce=Ue[1],je=!!rt,Ze=function(){try{if(document.activeElement===fe.current){var Zt=fe.current,cr=Zt.selectionStart,Ht=Zt.selectionEnd,vr=Zt.scrollTop;fe.current.setSelectionRange(cr,Ht),fe.current.scrollTop=vr}}catch(Kr){}},tt=ne.useState(be),it=(0,we.Z)(tt,2),ct=it[0],ut=it[1],pt=ne.useState(),St=(0,we.Z)(pt,2),wt=St[0],Et=St[1],vt=function(){ut(_e)};(0,le.Z)(function(){je&&vt()},[$e,xe,Ce,je]),(0,le.Z)(function(){if(ct===_e)ut(ye);else if(ct===ye){var Pt=Te(fe.current,!1,xe,Ce);ut(be),Et(Pt)}else Ze()},[ct]);var At=ne.useRef(),gt=function(){he.Z.cancel(At.current)},dt=function(Zt){ct===be&&(et==null||et(Zt),rt&&(gt(),At.current=(0,he.Z)(function(){vt()})))};ne.useEffect(function(){return gt},[]);var xt=je?wt:null,bt=(0,y.Z)((0,y.Z)({},Ye),xt);return(ct===_e||ct===ye)&&(bt.overflowY="hidden",bt.overflowX="hidden"),ne.createElement(oe.Z,{onResize:dt,disabled:!(rt||et)},ne.createElement("textarea",(0,Be.Z)({},ft,{ref:fe,style:bt,className:ie()(Ne,Xe,(0,mt.Z)({},"".concat(Ne,"-disabled"),Ge)),disabled:Ge,value:Fe,onChange:te})))}),Ie=Se,Me=["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"],Ae=ne.forwardRef(function(Ke,Ve){var nt,Ne=Ke.defaultValue,We=Ke.value,$e=Ke.onFocus,rt=Ke.onBlur,et=Ke.onChange,Xe=Ke.allowClear,Ye=Ke.maxLength,Ge=Ke.onCompositionStart,at=Ke.onCompositionEnd,Qe=Ke.suffix,ft=Ke.prefixCls,ot=ft===void 0?"rc-textarea":ft,Je=Ke.showCount,Fe=Ke.count,Pe=Ke.className,te=Ke.style,fe=Ke.disabled,Oe=Ke.hidden,Ue=Ke.classNames,xe=Ke.styles,Ce=Ke.onResize,je=Ke.onClear,Ze=Ke.onPressEnter,tt=Ke.readOnly,it=Ke.autoSize,ct=Ke.onKeyDown,ut=(0,x.Z)(Ke,Me),pt=(0,E.Z)(Ne,{value:We,defaultValue:Ne}),St=(0,we.Z)(pt,2),wt=St[0],Et=St[1],vt=wt==null?"":String(wt),At=ne.useState(!1),gt=(0,we.Z)(At,2),dt=gt[0],xt=gt[1],bt=ne.useRef(!1),Pt=ne.useState(null),Zt=(0,we.Z)(Pt,2),cr=Zt[0],Ht=Zt[1],vr=(0,ne.useRef)(null),Kr=(0,ne.useRef)(null),Xr=function(){var mr;return(mr=Kr.current)===null||mr===void 0?void 0:mr.textArea},Nr=function(){Xr().focus()};(0,ne.useImperativeHandle)(Ve,function(){var Wt;return{resizableTextArea:Kr.current,focus:Nr,blur:function(){Xr().blur()},nativeElement:((Wt=vr.current)===null||Wt===void 0?void 0:Wt.nativeElement)||Xr()}}),(0,ne.useEffect)(function(){xt(function(Wt){return!fe&&Wt})},[fe]);var fn=ne.useState(null),Lr=(0,we.Z)(fn,2),ln=Lr[0],Tr=Lr[1];ne.useEffect(function(){if(ln){var Wt;(Wt=Xr()).setSelectionRange.apply(Wt,(0,ke.Z)(ln))}},[ln]);var vn=(0,ee.Z)(Fe,Je),on=(nt=vn.max)!==null&&nt!==void 0?nt:Ye,br=Number(on)>0,wr=vn.strategy(vt),er=!!on&&wr>on,dr=function(mr,Ur){var un=Ur;!bt.current&&vn.exceedFormatter&&vn.max&&vn.strategy(Ur)>vn.max&&(un=vn.exceedFormatter(Ur,{max:vn.max}),Ur!==un&&Tr([Xr().selectionStart||0,Xr().selectionEnd||0])),Et(un),(0,de.rJ)(mr.currentTarget,mr,et,un)},Xt=function(mr){bt.current=!0,Ge==null||Ge(mr)},qt=function(mr){bt.current=!1,dr(mr,mr.currentTarget.value),at==null||at(mr)},yr=function(mr){dr(mr,mr.target.value)},_r=function(mr){mr.key==="Enter"&&Ze&&Ze(mr),ct==null||ct(mr)},jr=function(mr){xt(!0),$e==null||$e(mr)},Yr=function(mr){xt(!1),rt==null||rt(mr)},dn=function(mr){Et(""),Nr(),(0,de.rJ)(Xr(),mr,et)},sn=Qe,Hr;vn.show&&(vn.showFormatter?Hr=vn.showFormatter({value:vt,count:wr,maxLength:on}):Hr="".concat(wr).concat(br?" / ".concat(on):""),sn=ne.createElement(ne.Fragment,null,sn,ne.createElement("span",{className:ie()("".concat(ot,"-data-count"),Ue==null?void 0:Ue.count),style:xe==null?void 0:xe.count},Hr)));var Qr=function(mr){var Ur;Ce==null||Ce(mr),(Ur=Xr())!==null&&Ur!==void 0&&Ur.style.height&&Ht(!0)},sr=!it&&!Je&&!Xe;return ne.createElement(ae.BaseInput,{ref:vr,value:vt,allowClear:Xe,handleReset:dn,suffix:sn,prefixCls:ot,classNames:(0,y.Z)((0,y.Z)({},Ue),{},{affixWrapper:ie()(Ue==null?void 0:Ue.affixWrapper,(0,mt.Z)((0,mt.Z)({},"".concat(ot,"-show-count"),Je),"".concat(ot,"-textarea-allow-clear"),Xe))}),disabled:fe,focused:dt,className:ie()(Pe,er&&"".concat(ot,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},te),cr&&!sr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Hr=="string"?Hr:void 0}},hidden:Oe,readOnly:tt,onClear:je},ne.createElement(Ie,(0,Be.Z)({},ut,{autoSize:it,maxLength:Ye,onKeyDown:_r,onChange:yr,onFocus:jr,onBlur:Yr,onCompositionStart:Xt,onCompositionEnd:qt,className:ie()(Ue==null?void 0:Ue.textarea),style:(0,y.Z)((0,y.Z)({},xe==null?void 0:xe.textarea),{},{resize:te==null?void 0:te.resize}),disabled:fe,prefixCls:ot,onResize:Qr,ref:Kr,readOnly:tt})))}),De=Ae,He=De},639:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return ce}});var Be=ze(32855),mt=ze(74430),y=ze(27247),ke=ze(11913),we=ze(43079),x=ze(59301),z=ze(92310),ie=ze.n(z),ae=ze(26112),ee=ze(30699),de=function(Ee){for(var Te=Ee.prefixCls,Re=Ee.level,_e=Ee.isStart,ye=Ee.isEnd,be="".concat(Te,"-indent-unit"),Se=[],Ie=0;Ie<Re;Ie+=1)Se.push(x.createElement("span",{key:Ie,className:ie()(be,(0,mt.Z)((0,mt.Z)({},"".concat(be,"-start"),_e[Ie]),"".concat(be,"-end"),ye[Ie]))}));return x.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Se)},E=x.memo(de),ne=ze(65065),re=ze(34061),oe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],le="open",he="close",pe="---",ve=function(Ee){var Te,Re,_e,ye=Ee.eventKey,be=Ee.className,Se=Ee.style,Ie=Ee.dragOver,Me=Ee.dragOverGapTop,Ae=Ee.dragOverGapBottom,De=Ee.isLeaf,He=Ee.isStart,Ke=Ee.isEnd,Ve=Ee.expanded,nt=Ee.selected,Ne=Ee.checked,We=Ee.halfChecked,$e=Ee.loading,rt=Ee.domRef,et=Ee.active,Xe=Ee.data,Ye=Ee.onMouseMove,Ge=Ee.selectable,at=(0,we.Z)(Ee,oe),Qe=x.useContext(ee.k),ft=x.useContext(ee.y),ot=x.useRef(null),Je=x.useState(!1),Fe=(0,ke.Z)(Je,2),Pe=Fe[0],te=Fe[1],fe=!!(Qe.disabled||Ee.disabled||(Te=ft.nodeDisabled)!==null&&Te!==void 0&&Te.call(ft,Xe)),Oe=x.useMemo(function(){return!Qe.checkable||Ee.checkable===!1?!1:Qe.checkable},[Qe.checkable,Ee.checkable]),Ue=function(wr){fe||Qe.onNodeSelect(wr,(0,re.F)(Ee))},xe=function(wr){fe||!Oe||Ee.disableCheckbox||Qe.onNodeCheck(wr,(0,re.F)(Ee),!Ne)},Ce=x.useMemo(function(){return typeof Ge=="boolean"?Ge:Qe.selectable},[Ge,Qe.selectable]),je=function(wr){Qe.onNodeClick(wr,(0,re.F)(Ee)),Ce?Ue(wr):xe(wr)},Ze=function(wr){Qe.onNodeDoubleClick(wr,(0,re.F)(Ee))},tt=function(wr){Qe.onNodeMouseEnter(wr,(0,re.F)(Ee))},it=function(wr){Qe.onNodeMouseLeave(wr,(0,re.F)(Ee))},ct=function(wr){Qe.onNodeContextMenu(wr,(0,re.F)(Ee))},ut=x.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(Xe)))},[Qe.draggable,Xe]),pt=function(wr){wr.stopPropagation(),te(!0),Qe.onNodeDragStart(wr,Ee);try{wr.dataTransfer.setData("text/plain","")}catch(er){}},St=function(wr){wr.preventDefault(),wr.stopPropagation(),Qe.onNodeDragEnter(wr,Ee)},wt=function(wr){wr.preventDefault(),wr.stopPropagation(),Qe.onNodeDragOver(wr,Ee)},Et=function(wr){wr.stopPropagation(),Qe.onNodeDragLeave(wr,Ee)},vt=function(wr){wr.stopPropagation(),te(!1),Qe.onNodeDragEnd(wr,Ee)},At=function(wr){wr.preventDefault(),wr.stopPropagation(),te(!1),Qe.onNodeDrop(wr,Ee)},gt=function(wr){$e||Qe.onNodeExpand(wr,(0,re.F)(Ee))},dt=x.useMemo(function(){var br=(0,ne.Z)(Qe.keyEntities,ye)||{},wr=br.children;return!!(wr||[]).length},[Qe.keyEntities,ye]),xt=x.useMemo(function(){return De===!1?!1:De||!Qe.loadData&&!dt||Qe.loadData&&Ee.loaded&&!dt},[De,Qe.loadData,dt,Ee.loaded]);x.useEffect(function(){$e||typeof Qe.loadData=="function"&&Ve&&!xt&&!Ee.loaded&&Qe.onNodeLoad((0,re.F)(Ee))},[$e,Qe.loadData,Qe.onNodeLoad,Ve,xt,Ee]);var bt=x.useMemo(function(){var br;return(br=Qe.draggable)!==null&&br!==void 0&&br.icon?x.createElement("span",{className:"".concat(Qe.prefixCls,"-draggable-icon")},Qe.draggable.icon):null},[Qe.draggable]),Pt=function(wr){var er=Ee.switcherIcon||Qe.switcherIcon;return typeof er=="function"?er((0,y.Z)((0,y.Z)({},Ee),{},{isLeaf:wr})):er},Zt=function(){if(xt){var wr=Pt(!0);return wr!==!1?x.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},wr):null}var er=Pt(!1);return er!==!1?x.createElement("span",{onClick:gt,className:ie()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(Ve?le:he))},er):null},cr=x.useMemo(function(){if(!Oe)return null;var br=typeof Oe!="boolean"?Oe:null;return x.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-checkbox"),(0,mt.Z)((0,mt.Z)((0,mt.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Ne),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Ne&&We),"".concat(Qe.prefixCls,"-checkbox-disabled"),fe||Ee.disableCheckbox)),onClick:xe,role:"checkbox","aria-checked":We?"mixed":Ne,"aria-disabled":fe||Ee.disableCheckbox,"aria-label":"Select ".concat(typeof Ee.title=="string"?Ee.title:"tree node")},br)},[Oe,Ne,We,fe,Ee.disableCheckbox,Ee.title]),Ht=x.useMemo(function(){return xt?null:Ve?le:he},[xt,Ve]),vr=x.useMemo(function(){return x.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(Ht||"docu"),(0,mt.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),$e))})},[Qe.prefixCls,Ht,$e]),Kr=x.useMemo(function(){var br=!!Qe.draggable,wr=!Ee.disabled&&br&&Qe.dragOverNodeKey===ye;return wr?Qe.dropIndicatorRender({dropPosition:Qe.dropPosition,dropLevelOffset:Qe.dropLevelOffset,indent:Qe.indent,prefixCls:Qe.prefixCls,direction:Qe.direction}):null},[Qe.dropPosition,Qe.dropLevelOffset,Qe.indent,Qe.prefixCls,Qe.direction,Qe.draggable,Qe.dragOverNodeKey,Qe.dropIndicatorRender]),Xr=x.useMemo(function(){var br=Ee.title,wr=br===void 0?pe:br,er="".concat(Qe.prefixCls,"-node-content-wrapper"),dr;if(Qe.showIcon){var Xt=Ee.icon||Qe.icon;dr=Xt?x.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Xt=="function"?Xt(Ee):Xt):vr}else Qe.loadData&&$e&&(dr=vr);var qt;return typeof wr=="function"?qt=wr(Xe):Qe.titleRender?qt=Qe.titleRender(Xe):qt=wr,x.createElement("span",{ref:ot,title:typeof wr=="string"?wr:"",className:ie()(er,"".concat(er,"-").concat(Ht||"normal"),(0,mt.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!fe&&(nt||Pe))),onMouseEnter:tt,onMouseLeave:it,onContextMenu:ct,onClick:je,onDoubleClick:Ze},dr,x.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},qt),Kr)},[Qe.prefixCls,Qe.showIcon,Ee,Qe.icon,vr,Qe.titleRender,Xe,Ht,tt,it,ct,je,Ze]),Nr=(0,ae.Z)(at,{aria:!0,data:!0}),fn=(0,ne.Z)(Qe.keyEntities,ye)||{},Lr=fn.level,ln=Ke[Ke.length-1],Tr=!fe&&ut,vn=Qe.draggingNodeKey===ye,on=Ge!==void 0?{"aria-selected":!!Ge}:void 0;return x.createElement("div",(0,Be.Z)({ref:rt,role:"treeitem","aria-expanded":De?void 0:Ve,className:ie()(be,"".concat(Qe.prefixCls,"-treenode"),(_e={},(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)(_e,"".concat(Qe.prefixCls,"-treenode-disabled"),fe),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(Ve?"open":"close"),!De),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Ne),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),We),"".concat(Qe.prefixCls,"-treenode-selected"),nt),"".concat(Qe.prefixCls,"-treenode-loading"),$e),"".concat(Qe.prefixCls,"-treenode-active"),et),"".concat(Qe.prefixCls,"-treenode-leaf-last"),ln),"".concat(Qe.prefixCls,"-treenode-draggable"),ut),"dragging",vn),(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)(_e,"drop-target",Qe.dropTargetKey===ye),"drop-container",Qe.dropContainerKey===ye),"drag-over",!fe&&Ie),"drag-over-gap-top",!fe&&Me),"drag-over-gap-bottom",!fe&&Ae),"filter-node",(Re=Qe.filterTreeNode)===null||Re===void 0?void 0:Re.call(Qe,(0,re.F)(Ee))),"".concat(Qe.prefixCls,"-treenode-leaf"),xt))),style:Se,draggable:Tr,onDragStart:Tr?pt:void 0,onDragEnter:ut?St:void 0,onDragOver:ut?wt:void 0,onDragLeave:ut?Et:void 0,onDrop:ut?At:void 0,onDragEnd:ut?vt:void 0,onMouseMove:Ye},on,Nr),x.createElement(E,{prefixCls:Qe.prefixCls,level:Lr,isStart:He,isEnd:Ke}),bt,Zt(),cr,Xr)};ve.isTreeNode=1;var ce=ve},30699:function(Nt,Dt,ze){"use strict";ze.d(Dt,{k:function(){return mt},y:function(){return y}});var Be=ze(59301),mt=Be.createContext(null),y=Be.createContext({})},89149:function(Nt,Dt,ze){"use strict";ze.d(Dt,{OF:function(){return ye.Z},y6:function(){return he.y},ZP:function(){return fe}});var Be=ze(32855),mt=ze(34666),y=ze(27247),ke=ze(3300),we=ze(33377),x=ze(93912),z=ze(83383),ie=ze(18881),ae=ze(85461),ee=ze(74430),de=ze(92310),E=ze.n(de),ne=ze(10228),re=ze(26112),oe=ze(48736),le=ze(59301),he=ze(30699),pe=function(Ue){var xe=Ue.dropPosition,Ce=Ue.dropLevelOffset,je=Ue.indent,Ze={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(xe){case-1:Ze.top=0,Ze.left=-Ce*je;break;case 1:Ze.bottom=0,Ze.left=-Ce*je;break;case 0:Ze.bottom=0,Ze.left=je;break}return le.createElement("div",{style:Ze})},ve=pe;function ce(Oe){if(Oe==null)throw new TypeError("Cannot destructure "+Oe)}var me=ze(11913),Ee=ze(43079),Te=ze(34280),Re=ze(6790),_e=ze(77900),ye=ze(639);function be(Oe,Ue){var xe=le.useState(!1),Ce=(0,me.Z)(xe,2),je=Ce[0],Ze=Ce[1];(0,Te.Z)(function(){if(je)return Oe(),function(){Ue()}},[je]),(0,Te.Z)(function(){return Ze(!0),function(){Ze(!1)}},[])}var Se=be,Ie=ze(34061),Me=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=le.forwardRef(function(Oe,Ue){var xe=Oe.className,Ce=Oe.style,je=Oe.motion,Ze=Oe.motionNodes,tt=Oe.motionType,it=Oe.onMotionStart,ct=Oe.onMotionEnd,ut=Oe.active,pt=Oe.treeNodeRequiredProps,St=(0,Ee.Z)(Oe,Me),wt=le.useState(!0),Et=(0,me.Z)(wt,2),vt=Et[0],At=Et[1],gt=le.useContext(he.k),dt=gt.prefixCls,xt=Ze&&tt!=="hide";(0,Te.Z)(function(){Ze&&xt!==vt&&At(xt)},[Ze]);var bt=function(){Ze&&it()},Pt=le.useRef(!1),Zt=function(){Ze&&!Pt.current&&(Pt.current=!0,ct())};Se(bt,Zt);var cr=function(vr){xt===vr&&Zt()};return Ze?le.createElement(_e.default,(0,Be.Z)({ref:Ue,visible:vt},je,{motionAppear:tt==="show",onVisibleChanged:cr}),function(Ht,vr){var Kr=Ht.className,Xr=Ht.style;return le.createElement("div",{ref:vr,className:E()("".concat(dt,"-treenode-motion"),Kr),style:Xr},Ze.map(function(Nr){var fn=Object.assign({},(ce(Nr.data),Nr.data)),Lr=Nr.title,ln=Nr.key,Tr=Nr.isStart,vn=Nr.isEnd;delete fn.children;var on=(0,Ie.H8)(ln,pt);return le.createElement(ye.Z,(0,Be.Z)({},fn,on,{title:Lr,active:ut,data:Nr.data,key:ln,isStart:Tr,isEnd:vn}))}))}):le.createElement(ye.Z,(0,Be.Z)({domRef:Ue,className:xe,style:Ce},St,{active:ut}))}),De=Ae;function He(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xe=Oe.length,Ce=Ue.length;if(Math.abs(xe-Ce)!==1)return{add:!1,key:null};function je(Ze,tt){var it=new Map;Ze.forEach(function(ut){it.set(ut,!0)});var ct=tt.filter(function(ut){return!it.has(ut)});return ct.length===1?ct[0]:null}return xe<Ce?{add:!0,key:je(Oe,Ue)}:{add:!1,key:je(Ue,Oe)}}function Ke(Oe,Ue,xe){var Ce=Oe.findIndex(function(it){return it.key===xe}),je=Oe[Ce+1],Ze=Ue.findIndex(function(it){return it.key===xe});if(je){var tt=Ue.findIndex(function(it){return it.key===je.key});return Ue.slice(Ze+1,tt)}return Ue.slice(Ze+1)}var Ve=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],nt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ne=function(){},We="RC_TREE_MOTION_".concat(Math.random()),$e={key:We},rt={key:We,level:0,index:0,pos:"0",node:$e,nodes:[$e]},et={parent:null,children:[],pos:rt.pos,data:$e,title:null,key:We,isStart:[],isEnd:[]};function Xe(Oe,Ue,xe,Ce){return Ue===!1||!xe?Oe:Oe.slice(0,Math.ceil(xe/Ce)+1)}function Ye(Oe){var Ue=Oe.key,xe=Oe.pos;return(0,Ie.km)(Ue,xe)}function Ge(Oe){for(var Ue=String(Oe.data.key),xe=Oe;xe.parent;)xe=xe.parent,Ue="".concat(xe.data.key," > ").concat(Ue);return Ue}var at=le.forwardRef(function(Oe,Ue){var xe=Oe.prefixCls,Ce=Oe.data,je=Oe.selectable,Ze=Oe.checkable,tt=Oe.expandedKeys,it=Oe.selectedKeys,ct=Oe.checkedKeys,ut=Oe.loadedKeys,pt=Oe.loadingKeys,St=Oe.halfCheckedKeys,wt=Oe.keyEntities,Et=Oe.disabled,vt=Oe.dragging,At=Oe.dragOverNodeKey,gt=Oe.dropPosition,dt=Oe.motion,xt=Oe.height,bt=Oe.itemHeight,Pt=Oe.virtual,Zt=Oe.scrollWidth,cr=Oe.focusable,Ht=Oe.activeItem,vr=Oe.focused,Kr=Oe.tabIndex,Xr=Oe.onKeyDown,Nr=Oe.onFocus,fn=Oe.onBlur,Lr=Oe.onActiveChange,ln=Oe.onListChangeStart,Tr=Oe.onListChangeEnd,vn=(0,Ee.Z)(Oe,Ve),on=le.useRef(null),br=le.useRef(null);le.useImperativeHandle(Ue,function(){return{scrollTo:function(gr){on.current.scrollTo(gr)},getIndentWidth:function(){return br.current.offsetWidth}}});var wr=le.useState(tt),er=(0,me.Z)(wr,2),dr=er[0],Xt=er[1],qt=le.useState(Ce),yr=(0,me.Z)(qt,2),_r=yr[0],jr=yr[1],Yr=le.useState(Ce),dn=(0,me.Z)(Yr,2),sn=dn[0],Hr=dn[1],Qr=le.useState([]),sr=(0,me.Z)(Qr,2),Wt=sr[0],mr=sr[1],Ur=le.useState(null),un=(0,me.Z)(Ur,2),kt=un[0],Tt=un[1],lr=le.useRef(Ce);lr.current=Ce;function $t(){var pr=lr.current;jr(pr),Hr(pr),mr([]),Tt(null),Tr()}(0,Te.Z)(function(){Xt(tt);var pr=He(dr,tt);if(pr.key!==null)if(pr.add){var gr=_r.findIndex(function(ur){var Or=ur.key;return Or===pr.key}),Dr=Xe(Ke(_r,Ce,pr.key),Pt,xt,bt),hr=_r.slice();hr.splice(gr+1,0,et),Hr(hr),mr(Dr),Tt("show")}else{var Ar=Ce.findIndex(function(ur){var Or=ur.key;return Or===pr.key}),jt=Xe(Ke(Ce,_r,pr.key),Pt,xt,bt),Sr=Ce.slice();Sr.splice(Ar+1,0,et),Hr(Sr),mr(jt),Tt("hide")}else _r!==Ce&&(jr(Ce),Hr(Ce))},[tt,Ce]),le.useEffect(function(){vt||$t()},[vt]);var Ot=dt?sn:Ce,nr={expandedKeys:tt,selectedKeys:it,loadedKeys:ut,loadingKeys:pt,checkedKeys:ct,halfCheckedKeys:St,dragOverNodeKey:At,dropPosition:gt,keyEntities:wt};return le.createElement(le.Fragment,null,vr&&Ht&&le.createElement("span",{style:nt,"aria-live":"assertive"},Ge(Ht)),le.createElement("div",null,le.createElement("input",{style:nt,disabled:cr===!1||Et,tabIndex:cr!==!1?Kr:null,onKeyDown:Xr,onFocus:Nr,onBlur:fn,value:"",onChange:Ne,"aria-label":"for screen reader"})),le.createElement("div",{className:"".concat(xe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},le.createElement("div",{className:"".concat(xe,"-indent")},le.createElement("div",{ref:br,className:"".concat(xe,"-indent-unit")}))),le.createElement(Re.Z,(0,Be.Z)({},vn,{data:Ot,itemKey:Ye,height:xt,fullHeight:!1,virtual:Pt,itemHeight:bt,scrollWidth:Zt,prefixCls:"".concat(xe,"-list"),ref:on,role:"tree",onVisibleChange:function(gr){gr.every(function(Dr){return Ye(Dr)!==We})&&$t()}}),function(pr){var gr=pr.pos,Dr=Object.assign({},(ce(pr.data),pr.data)),hr=pr.title,Ar=pr.key,jt=pr.isStart,Sr=pr.isEnd,ur=(0,Ie.km)(Ar,gr);delete Dr.key,delete Dr.children;var Or=(0,Ie.H8)(ur,nr);return le.createElement(De,(0,Be.Z)({},Dr,Or,{title:hr,active:!!Ht&&Ar===Ht.key,pos:gr,data:pr.data,isStart:jt,isEnd:Sr,motion:dt,motionNodes:Ar===We?Wt:null,motionType:kt,onMotionStart:ln,onMotionEnd:$t,treeNodeRequiredProps:nr,onMouseMove:function(){Lr(null)}}))}))}),Qe=at,ft=ze(82661),ot=ze(34643),Je=ze(65065),Fe=10,Pe=function(Oe){(0,ie.Z)(xe,Oe);var Ue=(0,ae.Z)(xe);function xe(){var Ce;(0,we.Z)(this,xe);for(var je=arguments.length,Ze=new Array(je),tt=0;tt<je;tt++)Ze[tt]=arguments[tt];return Ce=Ue.call.apply(Ue,[this].concat(Ze)),(0,ee.Z)((0,z.Z)(Ce),"destroyed",!1),(0,ee.Z)((0,z.Z)(Ce),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,z.Z)(Ce),"loadingRetryTimes",{}),(0,ee.Z)((0,z.Z)(Ce),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ie.w$)()}),(0,ee.Z)((0,z.Z)(Ce),"dragStartMousePosition",null),(0,ee.Z)((0,z.Z)(Ce),"dragNodeProps",null),(0,ee.Z)((0,z.Z)(Ce),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,z.Z)(Ce),"listRef",le.createRef()),(0,ee.Z)((0,z.Z)(Ce),"onNodeDragStart",function(it,ct){var ut=Ce.state,pt=ut.expandedKeys,St=ut.keyEntities,wt=Ce.props.onDragStart,Et=ct.eventKey;Ce.dragNodeProps=ct,Ce.dragStartMousePosition={x:it.clientX,y:it.clientY};var vt=(0,ft._5)(pt,Et);Ce.setState({draggingNodeKey:Et,dragChildrenKeys:(0,ft.wA)(Et,St),indent:Ce.listRef.current.getIndentWidth()}),Ce.setExpandedKeys(vt),window.addEventListener("dragend",Ce.onWindowDragEnd),wt==null||wt({event:it,node:(0,Ie.F)(ct)})}),(0,ee.Z)((0,z.Z)(Ce),"onNodeDragEnter",function(it,ct){var ut=Ce.state,pt=ut.expandedKeys,St=ut.keyEntities,wt=ut.dragChildrenKeys,Et=ut.flattenNodes,vt=ut.indent,At=Ce.props,gt=At.onDragEnter,dt=At.onExpand,xt=At.allowDrop,bt=At.direction,Pt=ct.pos,Zt=ct.eventKey;if(Ce.currentMouseOverDroppableNodeKey!==Zt&&(Ce.currentMouseOverDroppableNodeKey=Zt),!Ce.dragNodeProps){Ce.resetDragState();return}var cr=(0,ft.OM)(it,Ce.dragNodeProps,ct,vt,Ce.dragStartMousePosition,xt,Et,St,pt,bt),Ht=cr.dropPosition,vr=cr.dropLevelOffset,Kr=cr.dropTargetKey,Xr=cr.dropContainerKey,Nr=cr.dropTargetPos,fn=cr.dropAllowed,Lr=cr.dragOverNodeKey;if(wt.includes(Kr)||!fn){Ce.resetDragState();return}if(Ce.delayedDragEnterLogic||(Ce.delayedDragEnterLogic={}),Object.keys(Ce.delayedDragEnterLogic).forEach(function(ln){clearTimeout(Ce.delayedDragEnterLogic[ln])}),Ce.dragNodeProps.eventKey!==ct.eventKey&&(it.persist(),Ce.delayedDragEnterLogic[Pt]=window.setTimeout(function(){if(Ce.state.draggingNodeKey!==null){var ln=(0,ke.Z)(pt),Tr=(0,Je.Z)(St,ct.eventKey);Tr&&(Tr.children||[]).length&&(ln=(0,ft.L0)(pt,ct.eventKey)),Ce.props.hasOwnProperty("expandedKeys")||Ce.setExpandedKeys(ln),dt==null||dt(ln,{node:(0,Ie.F)(ct),expanded:!0,nativeEvent:it.nativeEvent})}},800)),Ce.dragNodeProps.eventKey===Kr&&vr===0){Ce.resetDragState();return}Ce.setState({dragOverNodeKey:Lr,dropPosition:Ht,dropLevelOffset:vr,dropTargetKey:Kr,dropContainerKey:Xr,dropTargetPos:Nr,dropAllowed:fn}),gt==null||gt({event:it,node:(0,Ie.F)(ct),expandedKeys:pt})}),(0,ee.Z)((0,z.Z)(Ce),"onNodeDragOver",function(it,ct){var ut=Ce.state,pt=ut.dragChildrenKeys,St=ut.flattenNodes,wt=ut.keyEntities,Et=ut.expandedKeys,vt=ut.indent,At=Ce.props,gt=At.onDragOver,dt=At.allowDrop,xt=At.direction;if(Ce.dragNodeProps){var bt=(0,ft.OM)(it,Ce.dragNodeProps,ct,vt,Ce.dragStartMousePosition,dt,St,wt,Et,xt),Pt=bt.dropPosition,Zt=bt.dropLevelOffset,cr=bt.dropTargetKey,Ht=bt.dropContainerKey,vr=bt.dropTargetPos,Kr=bt.dropAllowed,Xr=bt.dragOverNodeKey;pt.includes(cr)||!Kr||(Ce.dragNodeProps.eventKey===cr&&Zt===0?Ce.state.dropPosition===null&&Ce.state.dropLevelOffset===null&&Ce.state.dropTargetKey===null&&Ce.state.dropContainerKey===null&&Ce.state.dropTargetPos===null&&Ce.state.dropAllowed===!1&&Ce.state.dragOverNodeKey===null||Ce.resetDragState():Pt===Ce.state.dropPosition&&Zt===Ce.state.dropLevelOffset&&cr===Ce.state.dropTargetKey&&Ht===Ce.state.dropContainerKey&&vr===Ce.state.dropTargetPos&&Kr===Ce.state.dropAllowed&&Xr===Ce.state.dragOverNodeKey||Ce.setState({dropPosition:Pt,dropLevelOffset:Zt,dropTargetKey:cr,dropContainerKey:Ht,dropTargetPos:vr,dropAllowed:Kr,dragOverNodeKey:Xr}),gt==null||gt({event:it,node:(0,Ie.F)(ct)}))}}),(0,ee.Z)((0,z.Z)(Ce),"onNodeDragLeave",function(it,ct){Ce.currentMouseOverDroppableNodeKey===ct.eventKey&&!it.currentTarget.contains(it.relatedTarget)&&(Ce.resetDragState(),Ce.currentMouseOverDroppableNodeKey=null);var ut=Ce.props.onDragLeave;ut==null||ut({event:it,node:(0,Ie.F)(ct)})}),(0,ee.Z)((0,z.Z)(Ce),"onWindowDragEnd",function(it){Ce.onNodeDragEnd(it,null,!0),window.removeEventListener("dragend",Ce.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ce),"onNodeDragEnd",function(it,ct){var ut=Ce.props.onDragEnd;Ce.setState({dragOverNodeKey:null}),Ce.cleanDragState(),ut==null||ut({event:it,node:(0,Ie.F)(ct)}),Ce.dragNodeProps=null,window.removeEventListener("dragend",Ce.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ce),"onNodeDrop",function(it,ct){var ut,pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=Ce.state,wt=St.dragChildrenKeys,Et=St.dropPosition,vt=St.dropTargetKey,At=St.dropTargetPos,gt=St.dropAllowed;if(gt){var dt=Ce.props.onDrop;if(Ce.setState({dragOverNodeKey:null}),Ce.cleanDragState(),vt!==null){var xt=(0,y.Z)((0,y.Z)({},(0,Ie.H8)(vt,Ce.getTreeNodeRequiredProps())),{},{active:((ut=Ce.getActiveItem())===null||ut===void 0?void 0:ut.key)===vt,data:(0,Je.Z)(Ce.state.keyEntities,vt).node}),bt=wt.includes(vt);(0,oe.ZP)(!bt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pt=(0,ft.yx)(At),Zt={event:it,node:(0,Ie.F)(xt),dragNode:Ce.dragNodeProps?(0,Ie.F)(Ce.dragNodeProps):null,dragNodesKeys:[Ce.dragNodeProps.eventKey].concat(wt),dropToGap:Et!==0,dropPosition:Et+Number(Pt[Pt.length-1])};pt||dt==null||dt(Zt),Ce.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(Ce),"cleanDragState",function(){var it=Ce.state.draggingNodeKey;it!==null&&Ce.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ce.dragStartMousePosition=null,Ce.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,z.Z)(Ce),"triggerExpandActionExpand",function(it,ct){var ut=Ce.state,pt=ut.expandedKeys,St=ut.flattenNodes,wt=ct.expanded,Et=ct.key,vt=ct.isLeaf;if(!(vt||it.shiftKey||it.metaKey||it.ctrlKey)){var At=St.filter(function(dt){return dt.key===Et})[0],gt=(0,Ie.F)((0,y.Z)((0,y.Z)({},(0,Ie.H8)(Et,Ce.getTreeNodeRequiredProps())),{},{data:At.data}));Ce.setExpandedKeys(wt?(0,ft._5)(pt,Et):(0,ft.L0)(pt,Et)),Ce.onNodeExpand(it,gt)}}),(0,ee.Z)((0,z.Z)(Ce),"onNodeClick",function(it,ct){var ut=Ce.props,pt=ut.onClick,St=ut.expandAction;St==="click"&&Ce.triggerExpandActionExpand(it,ct),pt==null||pt(it,ct)}),(0,ee.Z)((0,z.Z)(Ce),"onNodeDoubleClick",function(it,ct){var ut=Ce.props,pt=ut.onDoubleClick,St=ut.expandAction;St==="doubleClick"&&Ce.triggerExpandActionExpand(it,ct),pt==null||pt(it,ct)}),(0,ee.Z)((0,z.Z)(Ce),"onNodeSelect",function(it,ct){var ut=Ce.state.selectedKeys,pt=Ce.state,St=pt.keyEntities,wt=pt.fieldNames,Et=Ce.props,vt=Et.onSelect,At=Et.multiple,gt=ct.selected,dt=ct[wt.key],xt=!gt;xt?At?ut=(0,ft.L0)(ut,dt):ut=[dt]:ut=(0,ft._5)(ut,dt);var bt=ut.map(function(Pt){var Zt=(0,Je.Z)(St,Pt);return Zt?Zt.node:null}).filter(Boolean);Ce.setUncontrolledState({selectedKeys:ut}),vt==null||vt(ut,{event:"select",selected:xt,node:ct,selectedNodes:bt,nativeEvent:it.nativeEvent})}),(0,ee.Z)((0,z.Z)(Ce),"onNodeCheck",function(it,ct,ut){var pt=Ce.state,St=pt.keyEntities,wt=pt.checkedKeys,Et=pt.halfCheckedKeys,vt=Ce.props,At=vt.checkStrictly,gt=vt.onCheck,dt=ct.key,xt,bt={event:"check",node:ct,checked:ut,nativeEvent:it.nativeEvent};if(At){var Pt=ut?(0,ft.L0)(wt,dt):(0,ft._5)(wt,dt),Zt=(0,ft._5)(Et,dt);xt={checked:Pt,halfChecked:Zt},bt.checkedNodes=Pt.map(function(Nr){return(0,Je.Z)(St,Nr)}).filter(Boolean).map(function(Nr){return Nr.node}),Ce.setUncontrolledState({checkedKeys:Pt})}else{var cr=(0,ot.S)([].concat((0,ke.Z)(wt),[dt]),!0,St),Ht=cr.checkedKeys,vr=cr.halfCheckedKeys;if(!ut){var Kr=new Set(Ht);Kr.delete(dt);var Xr=(0,ot.S)(Array.from(Kr),{checked:!1,halfCheckedKeys:vr},St);Ht=Xr.checkedKeys,vr=Xr.halfCheckedKeys}xt=Ht,bt.checkedNodes=[],bt.checkedNodesPositions=[],bt.halfCheckedKeys=vr,Ht.forEach(function(Nr){var fn=(0,Je.Z)(St,Nr);if(fn){var Lr=fn.node,ln=fn.pos;bt.checkedNodes.push(Lr),bt.checkedNodesPositions.push({node:Lr,pos:ln})}}),Ce.setUncontrolledState({checkedKeys:Ht},!1,{halfCheckedKeys:vr})}gt==null||gt(xt,bt)}),(0,ee.Z)((0,z.Z)(Ce),"onNodeLoad",function(it){var ct,ut=it.key,pt=Ce.state.keyEntities,St=(0,Je.Z)(pt,ut);if(!(St!=null&&(ct=St.children)!==null&&ct!==void 0&&ct.length)){var wt=new Promise(function(Et,vt){Ce.setState(function(At){var gt=At.loadedKeys,dt=gt===void 0?[]:gt,xt=At.loadingKeys,bt=xt===void 0?[]:xt,Pt=Ce.props,Zt=Pt.loadData,cr=Pt.onLoad;if(!Zt||dt.includes(ut)||bt.includes(ut))return null;var Ht=Zt(it);return Ht.then(function(){var vr=Ce.state.loadedKeys,Kr=(0,ft.L0)(vr,ut);cr==null||cr(Kr,{event:"load",node:it}),Ce.setUncontrolledState({loadedKeys:Kr}),Ce.setState(function(Xr){return{loadingKeys:(0,ft._5)(Xr.loadingKeys,ut)}}),Et()}).catch(function(vr){if(Ce.setState(function(Xr){return{loadingKeys:(0,ft._5)(Xr.loadingKeys,ut)}}),Ce.loadingRetryTimes[ut]=(Ce.loadingRetryTimes[ut]||0)+1,Ce.loadingRetryTimes[ut]>=Fe){var Kr=Ce.state.loadedKeys;(0,oe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ce.setUncontrolledState({loadedKeys:(0,ft.L0)(Kr,ut)}),Et()}vt(vr)}),{loadingKeys:(0,ft.L0)(bt,ut)}})});return wt.catch(function(){}),wt}}),(0,ee.Z)((0,z.Z)(Ce),"onNodeMouseEnter",function(it,ct){var ut=Ce.props.onMouseEnter;ut==null||ut({event:it,node:ct})}),(0,ee.Z)((0,z.Z)(Ce),"onNodeMouseLeave",function(it,ct){var ut=Ce.props.onMouseLeave;ut==null||ut({event:it,node:ct})}),(0,ee.Z)((0,z.Z)(Ce),"onNodeContextMenu",function(it,ct){var ut=Ce.props.onRightClick;ut&&(it.preventDefault(),ut({event:it,node:ct}))}),(0,ee.Z)((0,z.Z)(Ce),"onFocus",function(){var it=Ce.props.onFocus;Ce.setState({focused:!0});for(var ct=arguments.length,ut=new Array(ct),pt=0;pt<ct;pt++)ut[pt]=arguments[pt];it==null||it.apply(void 0,ut)}),(0,ee.Z)((0,z.Z)(Ce),"onBlur",function(){var it=Ce.props.onBlur;Ce.setState({focused:!1}),Ce.onActiveChange(null);for(var ct=arguments.length,ut=new Array(ct),pt=0;pt<ct;pt++)ut[pt]=arguments[pt];it==null||it.apply(void 0,ut)}),(0,ee.Z)((0,z.Z)(Ce),"getTreeNodeRequiredProps",function(){var it=Ce.state,ct=it.expandedKeys,ut=it.selectedKeys,pt=it.loadedKeys,St=it.loadingKeys,wt=it.checkedKeys,Et=it.halfCheckedKeys,vt=it.dragOverNodeKey,At=it.dropPosition,gt=it.keyEntities;return{expandedKeys:ct||[],selectedKeys:ut||[],loadedKeys:pt||[],loadingKeys:St||[],checkedKeys:wt||[],halfCheckedKeys:Et||[],dragOverNodeKey:vt,dropPosition:At,keyEntities:gt}}),(0,ee.Z)((0,z.Z)(Ce),"setExpandedKeys",function(it){var ct=Ce.state,ut=ct.treeData,pt=ct.fieldNames,St=(0,Ie.oH)(ut,it,pt);Ce.setUncontrolledState({expandedKeys:it,flattenNodes:St},!0)}),(0,ee.Z)((0,z.Z)(Ce),"onNodeExpand",function(it,ct){var ut=Ce.state.expandedKeys,pt=Ce.state,St=pt.listChanging,wt=pt.fieldNames,Et=Ce.props,vt=Et.onExpand,At=Et.loadData,gt=ct.expanded,dt=ct[wt.key];if(!St){var xt=ut.includes(dt),bt=!gt;if((0,oe.ZP)(gt&&xt||!gt&&!xt,"Expand state not sync with index check"),ut=bt?(0,ft.L0)(ut,dt):(0,ft._5)(ut,dt),Ce.setExpandedKeys(ut),vt==null||vt(ut,{node:ct,expanded:bt,nativeEvent:it.nativeEvent}),bt&&At){var Pt=Ce.onNodeLoad(ct);Pt&&Pt.then(function(){var Zt=(0,Ie.oH)(Ce.state.treeData,ut,wt);Ce.setUncontrolledState({flattenNodes:Zt})}).catch(function(){var Zt=Ce.state.expandedKeys,cr=(0,ft._5)(Zt,dt);Ce.setExpandedKeys(cr)})}}}),(0,ee.Z)((0,z.Z)(Ce),"onListChangeStart",function(){Ce.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,z.Z)(Ce),"onListChangeEnd",function(){setTimeout(function(){Ce.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,z.Z)(Ce),"onActiveChange",function(it){var ct=Ce.state.activeKey,ut=Ce.props,pt=ut.onActiveChange,St=ut.itemScrollOffset,wt=St===void 0?0:St;ct!==it&&(Ce.setState({activeKey:it}),it!==null&&Ce.scrollTo({key:it,offset:wt}),pt==null||pt(it))}),(0,ee.Z)((0,z.Z)(Ce),"getActiveItem",function(){var it=Ce.state,ct=it.activeKey,ut=it.flattenNodes;return ct===null?null:ut.find(function(pt){var St=pt.key;return St===ct})||null}),(0,ee.Z)((0,z.Z)(Ce),"offsetActiveKey",function(it){var ct=Ce.state,ut=ct.flattenNodes,pt=ct.activeKey,St=ut.findIndex(function(vt){var At=vt.key;return At===pt});St===-1&&it<0&&(St=ut.length),St=(St+it+ut.length)%ut.length;var wt=ut[St];if(wt){var Et=wt.key;Ce.onActiveChange(Et)}else Ce.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(Ce),"onKeyDown",function(it){var ct=Ce.state,ut=ct.activeKey,pt=ct.expandedKeys,St=ct.checkedKeys,wt=ct.fieldNames,Et=Ce.props,vt=Et.onKeyDown,At=Et.checkable,gt=Et.selectable;switch(it.which){case ne.Z.UP:{Ce.offsetActiveKey(-1),it.preventDefault();break}case ne.Z.DOWN:{Ce.offsetActiveKey(1),it.preventDefault();break}}var dt=Ce.getActiveItem();if(dt&&dt.data){var xt=Ce.getTreeNodeRequiredProps(),bt=dt.data.isLeaf===!1||!!(dt.data[wt.children]||[]).length,Pt=(0,Ie.F)((0,y.Z)((0,y.Z)({},(0,Ie.H8)(ut,xt)),{},{data:dt.data,active:!0}));switch(it.which){case ne.Z.LEFT:{bt&&pt.includes(ut)?Ce.onNodeExpand({},Pt):dt.parent&&Ce.onActiveChange(dt.parent.key),it.preventDefault();break}case ne.Z.RIGHT:{bt&&!pt.includes(ut)?Ce.onNodeExpand({},Pt):dt.children&&dt.children.length&&Ce.onActiveChange(dt.children[0].key),it.preventDefault();break}case ne.Z.ENTER:case ne.Z.SPACE:{At&&!Pt.disabled&&Pt.checkable!==!1&&!Pt.disableCheckbox?Ce.onNodeCheck({},Pt,!St.includes(ut)):!At&&gt&&!Pt.disabled&&Pt.selectable!==!1&&Ce.onNodeSelect({},Pt);break}}}vt==null||vt(it)}),(0,ee.Z)((0,z.Z)(Ce),"setUncontrolledState",function(it){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ce.destroyed){var pt=!1,St=!0,wt={};Object.keys(it).forEach(function(Et){if(Ce.props.hasOwnProperty(Et)){St=!1;return}pt=!0,wt[Et]=it[Et]}),pt&&(!ct||St)&&Ce.setState((0,y.Z)((0,y.Z)({},wt),ut))}}),(0,ee.Z)((0,z.Z)(Ce),"scrollTo",function(it){Ce.listRef.current.scrollTo(it)}),Ce}return(0,x.Z)(xe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var je=this.props,Ze=je.activeKey,tt=je.itemScrollOffset,it=tt===void 0?0:tt;Ze!==void 0&&Ze!==this.state.activeKey&&(this.setState({activeKey:Ze}),Ze!==null&&this.scrollTo({key:Ze,offset:it}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var je=this.state,Ze=je.focused,tt=je.flattenNodes,it=je.keyEntities,ct=je.draggingNodeKey,ut=je.activeKey,pt=je.dropLevelOffset,St=je.dropContainerKey,wt=je.dropTargetKey,Et=je.dropPosition,vt=je.dragOverNodeKey,At=je.indent,gt=this.props,dt=gt.prefixCls,xt=gt.className,bt=gt.style,Pt=gt.showLine,Zt=gt.focusable,cr=gt.tabIndex,Ht=cr===void 0?0:cr,vr=gt.selectable,Kr=gt.showIcon,Xr=gt.icon,Nr=gt.switcherIcon,fn=gt.draggable,Lr=gt.checkable,ln=gt.checkStrictly,Tr=gt.disabled,vn=gt.motion,on=gt.loadData,br=gt.filterTreeNode,wr=gt.height,er=gt.itemHeight,dr=gt.scrollWidth,Xt=gt.virtual,qt=gt.titleRender,yr=gt.dropIndicatorRender,_r=gt.onContextMenu,jr=gt.onScroll,Yr=gt.direction,dn=gt.rootClassName,sn=gt.rootStyle,Hr=(0,re.Z)(this.props,{aria:!0,data:!0}),Qr;fn&&((0,mt.Z)(fn)==="object"?Qr=fn:typeof fn=="function"?Qr={nodeDraggable:fn}:Qr={});var sr={prefixCls:dt,selectable:vr,showIcon:Kr,icon:Xr,switcherIcon:Nr,draggable:Qr,draggingNodeKey:ct,checkable:Lr,checkStrictly:ln,disabled:Tr,keyEntities:it,dropLevelOffset:pt,dropContainerKey:St,dropTargetKey:wt,dropPosition:Et,dragOverNodeKey:vt,indent:At,direction:Yr,dropIndicatorRender:yr,loadData:on,filterTreeNode:br,titleRender:qt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return le.createElement(he.k.Provider,{value:sr},le.createElement("div",{className:E()(dt,xt,dn,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(dt,"-show-line"),Pt),"".concat(dt,"-focused"),Ze),"".concat(dt,"-active-focused"),ut!==null)),style:sn},le.createElement(Qe,(0,Be.Z)({ref:this.listRef,prefixCls:dt,style:bt,data:tt,disabled:Tr,selectable:vr,checkable:!!Lr,motion:vn,dragging:ct!==null,height:wr,itemHeight:er,virtual:Xt,focusable:Zt,focused:Ze,tabIndex:Ht,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_r,onScroll:jr,scrollWidth:dr},this.getTreeNodeRequiredProps(),Hr))))}}],[{key:"getDerivedStateFromProps",value:function(je,Ze){var tt=Ze.prevProps,it={prevProps:je};function ct(Ht){return!tt&&je.hasOwnProperty(Ht)||tt&&tt[Ht]!==je[Ht]}var ut,pt=Ze.fieldNames;if(ct("fieldNames")&&(pt=(0,Ie.w$)(je.fieldNames),it.fieldNames=pt),ct("treeData")?ut=je.treeData:ct("children")&&((0,oe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ut=(0,Ie.zn)(je.children)),ut){it.treeData=ut;var St=(0,Ie.I8)(ut,{fieldNames:pt});it.keyEntities=(0,y.Z)((0,ee.Z)({},We,rt),St.keyEntities)}var wt=it.keyEntities||Ze.keyEntities;if(ct("expandedKeys")||tt&&ct("autoExpandParent"))it.expandedKeys=je.autoExpandParent||!tt&&je.defaultExpandParent?(0,ft.r7)(je.expandedKeys,wt):je.expandedKeys;else if(!tt&&je.defaultExpandAll){var Et=(0,y.Z)({},wt);delete Et[We];var vt=[];Object.keys(Et).forEach(function(Ht){var vr=Et[Ht];vr.children&&vr.children.length&&vt.push(vr.key)}),it.expandedKeys=vt}else!tt&&je.defaultExpandedKeys&&(it.expandedKeys=je.autoExpandParent||je.defaultExpandParent?(0,ft.r7)(je.defaultExpandedKeys,wt):je.defaultExpandedKeys);if(it.expandedKeys||delete it.expandedKeys,ut||it.expandedKeys){var At=(0,Ie.oH)(ut||Ze.treeData,it.expandedKeys||Ze.expandedKeys,pt);it.flattenNodes=At}if(je.selectable&&(ct("selectedKeys")?it.selectedKeys=(0,ft.BT)(je.selectedKeys,je):!tt&&je.defaultSelectedKeys&&(it.selectedKeys=(0,ft.BT)(je.defaultSelectedKeys,je))),je.checkable){var gt;if(ct("checkedKeys")?gt=(0,ft.E6)(je.checkedKeys)||{}:!tt&&je.defaultCheckedKeys?gt=(0,ft.E6)(je.defaultCheckedKeys)||{}:ut&&(gt=(0,ft.E6)(je.checkedKeys)||{checkedKeys:Ze.checkedKeys,halfCheckedKeys:Ze.halfCheckedKeys}),gt){var dt=gt,xt=dt.checkedKeys,bt=xt===void 0?[]:xt,Pt=dt.halfCheckedKeys,Zt=Pt===void 0?[]:Pt;if(!je.checkStrictly){var cr=(0,ot.S)(bt,!0,wt);bt=cr.checkedKeys,Zt=cr.halfCheckedKeys}it.checkedKeys=bt,it.halfCheckedKeys=Zt}}return ct("loadedKeys")&&(it.loadedKeys=je.loadedKeys),it}}]),xe}(le.Component);(0,ee.Z)(Pe,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ve,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Pe,"TreeNode",ye.Z);var te=Pe,fe=te},82661:function(Nt,Dt,ze){"use strict";ze.d(Dt,{BT:function(){return le},E6:function(){return ve},L0:function(){return ee},OM:function(){return oe},_5:function(){return ae},r7:function(){return ce},wA:function(){return E},yx:function(){return de}});var Be=ze(3300),mt=ze(34666),y=ze(48736),ke=ze(59301),we=ze(639),x=ze(65065),z=ze(34061),ie=null;function ae(me,Ee){if(!me)return[];var Te=me.slice(),Re=Te.indexOf(Ee);return Re>=0&&Te.splice(Re,1),Te}function ee(me,Ee){var Te=(me||[]).slice();return Te.indexOf(Ee)===-1&&Te.push(Ee),Te}function de(me){return me.split("-")}function E(me,Ee){var Te=[],Re=(0,x.Z)(Ee,me);function _e(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ye.forEach(function(be){var Se=be.key,Ie=be.children;Te.push(Se),_e(Ie)})}return _e(Re.children),Te}function ne(me){if(me.parent){var Ee=de(me.pos);return Number(Ee[Ee.length-1])===me.parent.children.length-1}return!1}function re(me){var Ee=de(me.pos);return Number(Ee[Ee.length-1])===0}function oe(me,Ee,Te,Re,_e,ye,be,Se,Ie,Me){var Ae,De=me.clientX,He=me.clientY,Ke=me.target.getBoundingClientRect(),Ve=Ke.top,nt=Ke.height,Ne=(Me==="rtl"?-1:1)*(((_e==null?void 0:_e.x)||0)-De),We=(Ne-12)/Re,$e=Ie.filter(function(fe){var Oe;return(Oe=Se[fe])===null||Oe===void 0||(Oe=Oe.children)===null||Oe===void 0?void 0:Oe.length}),rt=(0,x.Z)(Se,Te.eventKey);if(He<Ve+nt/2){var et=be.findIndex(function(fe){return fe.key===rt.key}),Xe=et<=0?0:et-1,Ye=be[Xe].key;rt=(0,x.Z)(Se,Ye)}var Ge=rt.key,at=rt,Qe=rt.key,ft=0,ot=0;if(!$e.includes(Ge))for(var Je=0;Je<We&&ne(rt);Je+=1)rt=rt.parent,ot+=1;var Fe=Ee.data,Pe=rt.node,te=!0;return re(rt)&&rt.level===0&&He<Ve+nt/2&&ye({dragNode:Fe,dropNode:Pe,dropPosition:-1})&&rt.key===Te.eventKey?ft=-1:(at.children||[]).length&&$e.includes(Qe)?ye({dragNode:Fe,dropNode:Pe,dropPosition:0})?ft=0:te=!1:ot===0?We>-1.5?ye({dragNode:Fe,dropNode:Pe,dropPosition:1})?ft=1:te=!1:ye({dragNode:Fe,dropNode:Pe,dropPosition:0})?ft=0:ye({dragNode:Fe,dropNode:Pe,dropPosition:1})?ft=1:te=!1:ye({dragNode:Fe,dropNode:Pe,dropPosition:1})?ft=1:te=!1,{dropPosition:ft,dropLevelOffset:ot,dropTargetKey:rt.key,dropTargetPos:rt.pos,dragOverNodeKey:Qe,dropContainerKey:ft===0?null:((Ae=rt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:te}}function le(me,Ee){if(me){var Te=Ee.multiple;return Te?me.slice():me.length?[me[0]]:me}}var he=function(Ee){return Ee};function pe(me,Ee){if(!me)return[];var Te=Ee||{},Re=Te.processProps,_e=Re===void 0?he:Re,ye=Array.isArray(me)?me:[me];return ye.map(function(be){var Se=be.children,Ie=_objectWithoutProperties(be,ie),Me=pe(Se,Ee);return React.createElement(TreeNode,_extends({key:Ie.key},_e(Ie)),Me)})}function ve(me){if(!me)return null;var Ee;if(Array.isArray(me))Ee={checkedKeys:me,halfCheckedKeys:void 0};else if((0,mt.Z)(me)==="object")Ee={checkedKeys:me.checked||void 0,halfCheckedKeys:me.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ee}function ce(me,Ee){var Te=new Set;function Re(_e){if(!Te.has(_e)){var ye=(0,x.Z)(Ee,_e);if(ye){Te.add(_e);var be=ye.parent,Se=ye.node;Se.disabled||be&&Re(be.key)}}}return(me||[]).forEach(function(_e){Re(_e)}),(0,Be.Z)(Te)}},34643:function(Nt,Dt,ze){"use strict";ze.d(Dt,{S:function(){return z}});var Be=ze(48736),mt=ze(65065);function y(ie,ae){var ee=new Set;return ie.forEach(function(de){ae.has(de)||ee.add(de)}),ee}function ke(ie){var ae=ie||{},ee=ae.disabled,de=ae.disableCheckbox,E=ae.checkable;return!!(ee||de)||E===!1}function we(ie,ae,ee,de){for(var E=new Set(ie),ne=new Set,re=0;re<=ee;re+=1){var oe=ae.get(re)||new Set;oe.forEach(function(ve){var ce=ve.key,me=ve.node,Ee=ve.children,Te=Ee===void 0?[]:Ee;E.has(ce)&&!de(me)&&Te.filter(function(Re){return!de(Re.node)}).forEach(function(Re){E.add(Re.key)})})}for(var le=new Set,he=ee;he>=0;he-=1){var pe=ae.get(he)||new Set;pe.forEach(function(ve){var ce=ve.parent,me=ve.node;if(!(de(me)||!ve.parent||le.has(ve.parent.key))){if(de(ve.parent.node)){le.add(ce.key);return}var Ee=!0,Te=!1;(ce.children||[]).filter(function(Re){return!de(Re.node)}).forEach(function(Re){var _e=Re.key,ye=E.has(_e);Ee&&!ye&&(Ee=!1),!Te&&(ye||ne.has(_e))&&(Te=!0)}),Ee&&E.add(ce.key),Te&&ne.add(ce.key),le.add(ce.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(y(ne,E))}}function x(ie,ae,ee,de,E){for(var ne=new Set(ie),re=new Set(ae),oe=0;oe<=de;oe+=1){var le=ee.get(oe)||new Set;le.forEach(function(ce){var me=ce.key,Ee=ce.node,Te=ce.children,Re=Te===void 0?[]:Te;!ne.has(me)&&!re.has(me)&&!E(Ee)&&Re.filter(function(_e){return!E(_e.node)}).forEach(function(_e){ne.delete(_e.key)})})}re=new Set;for(var he=new Set,pe=de;pe>=0;pe-=1){var ve=ee.get(pe)||new Set;ve.forEach(function(ce){var me=ce.parent,Ee=ce.node;if(!(E(Ee)||!ce.parent||he.has(ce.parent.key))){if(E(ce.parent.node)){he.add(me.key);return}var Te=!0,Re=!1;(me.children||[]).filter(function(_e){return!E(_e.node)}).forEach(function(_e){var ye=_e.key,be=ne.has(ye);Te&&!be&&(Te=!1),!Re&&(be||re.has(ye))&&(Re=!0)}),Te||ne.delete(me.key),Re&&re.add(me.key),he.add(me.key)}})}return{checkedKeys:Array.from(ne),halfCheckedKeys:Array.from(y(re,ne))}}function z(ie,ae,ee,de){var E=[],ne;de?ne=de:ne=ke;var re=new Set(ie.filter(function(pe){var ve=!!(0,mt.Z)(ee,pe);return ve||E.push(pe),ve})),oe=new Map,le=0;Object.keys(ee).forEach(function(pe){var ve=ee[pe],ce=ve.level,me=oe.get(ce);me||(me=new Set,oe.set(ce,me)),me.add(ve),le=Math.max(le,ce)}),(0,Be.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(pe){return"'".concat(pe,"'")}).join(", ")));var he;return ae===!0?he=we(re,oe,le,ne):he=x(re,ae.halfCheckedKeys,oe,le,ne),he}},65065:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Be}});function Be(mt,y){return mt[y]}},34061:function(Nt,Dt,ze){"use strict";ze.d(Dt,{F:function(){return ce},H8:function(){return ve},I8:function(){return pe},km:function(){return E},oH:function(){return le},w$:function(){return ne},zn:function(){return oe}});var Be=ze(34666),mt=ze(3300),y=ze(27247),ke=ze(43079),we=ze(11592),x=ze(2738),z=ze(48736),ie=ze(65065),ae=["children"];function ee(me,Ee){return"".concat(me,"-").concat(Ee)}function de(me){return me&&me.type&&me.type.isTreeNode}function E(me,Ee){return me!=null?me:Ee}function ne(me){var Ee=me||{},Te=Ee.title,Re=Ee._title,_e=Ee.key,ye=Ee.children,be=Te||"title";return{title:be,_title:Re||[be],key:_e||"key",children:ye||"children"}}function re(me,Ee){var Te=new Map;function Re(_e){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_e||[]).forEach(function(be){var Se=be[Ee.key],Ie=be[Ee.children];warning(Se!=null,"Tree node must have a certain key: [".concat(ye).concat(Se,"]"));var Me=String(Se);warning(!Te.has(Me)||Se===null||Se===void 0,"Same 'key' exist in the Tree: ".concat(Me)),Te.set(Me,!0),Re(Ie,"".concat(ye).concat(Me," > "))})}Re(me)}function oe(me){function Ee(Te){var Re=(0,we.Z)(Te);return Re.map(function(_e){if(!de(_e))return(0,z.ZP)(!_e,"Tree/TreeNode can only accept TreeNode as children."),null;var ye=_e.key,be=_e.props,Se=be.children,Ie=(0,ke.Z)(be,ae),Me=(0,y.Z)({key:ye},Ie),Ae=Ee(Se);return Ae.length&&(Me.children=Ae),Me}).filter(function(_e){return _e})}return Ee(me)}function le(me,Ee,Te){var Re=ne(Te),_e=Re._title,ye=Re.key,be=Re.children,Se=new Set(Ee===!0?[]:Ee),Ie=[];function Me(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(He,Ke){for(var Ve=ee(De?De.pos:"0",Ke),nt=E(He[ye],Ve),Ne,We=0;We<_e.length;We+=1){var $e=_e[We];if(He[$e]!==void 0){Ne=He[$e];break}}var rt=Object.assign((0,x.Z)(He,[].concat((0,mt.Z)(_e),[ye,be])),{title:Ne,key:nt,parent:De,pos:Ve,children:null,data:He,isStart:[].concat((0,mt.Z)(De?De.isStart:[]),[Ke===0]),isEnd:[].concat((0,mt.Z)(De?De.isEnd:[]),[Ke===Ae.length-1])});return Ie.push(rt),Ee===!0||Se.has(nt)?rt.children=Me(He[be]||[],rt):rt.children=[],rt})}return Me(me),Ie}function he(me,Ee,Te){var Re={};(0,Be.Z)(Te)==="object"?Re=Te:Re={externalGetKey:Te},Re=Re||{};var _e=Re,ye=_e.childrenPropName,be=_e.externalGetKey,Se=_e.fieldNames,Ie=ne(Se),Me=Ie.key,Ae=Ie.children,De=ye||Ae,He;be?typeof be=="string"?He=function(nt){return nt[be]}:typeof be=="function"&&(He=function(nt){return be(nt)}):He=function(nt,Ne){return E(nt[Me],Ne)};function Ke(Ve,nt,Ne,We){var $e=Ve?Ve[De]:me,rt=Ve?ee(Ne.pos,nt):"0",et=Ve?[].concat((0,mt.Z)(We),[Ve]):[];if(Ve){var Xe=He(Ve,rt),Ye={node:Ve,index:nt,pos:rt,key:Xe,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1,nodes:et};Ee(Ye)}$e&&$e.forEach(function(Ge,at){Ke(Ge,at,{node:Ve,pos:rt,level:Ne?Ne.level+1:-1},et)})}Ke(null)}function pe(me){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=Ee.initWrapper,Re=Ee.processEntity,_e=Ee.onProcessFinished,ye=Ee.externalGetKey,be=Ee.childrenPropName,Se=Ee.fieldNames,Ie=arguments.length>2?arguments[2]:void 0,Me=ye||Ie,Ae={},De={},He={posEntities:Ae,keyEntities:De};return Te&&(He=Te(He)||He),he(me,function(Ke){var Ve=Ke.node,nt=Ke.index,Ne=Ke.pos,We=Ke.key,$e=Ke.parentPos,rt=Ke.level,et=Ke.nodes,Xe={node:Ve,nodes:et,index:nt,key:We,pos:Ne,level:rt},Ye=E(We,Ne);Ae[Ne]=Xe,De[Ye]=Xe,Xe.parent=Ae[$e],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),Re&&Re(Xe,He)},{externalGetKey:Me,childrenPropName:be,fieldNames:Se}),_e&&_e(He),He}function ve(me,Ee){var Te=Ee.expandedKeys,Re=Ee.selectedKeys,_e=Ee.loadedKeys,ye=Ee.loadingKeys,be=Ee.checkedKeys,Se=Ee.halfCheckedKeys,Ie=Ee.dragOverNodeKey,Me=Ee.dropPosition,Ae=Ee.keyEntities,De=(0,ie.Z)(Ae,me),He={eventKey:me,expanded:Te.indexOf(me)!==-1,selected:Re.indexOf(me)!==-1,loaded:_e.indexOf(me)!==-1,loading:ye.indexOf(me)!==-1,checked:be.indexOf(me)!==-1,halfChecked:Se.indexOf(me)!==-1,pos:String(De?De.pos:""),dragOver:Ie===me&&Me===0,dragOverGapTop:Ie===me&&Me===-1,dragOverGapBottom:Ie===me&&Me===1};return He}function ce(me){var Ee=me.data,Te=me.expanded,Re=me.selected,_e=me.checked,ye=me.loaded,be=me.loading,Se=me.halfChecked,Ie=me.dragOver,Me=me.dragOverGapTop,Ae=me.dragOverGapBottom,De=me.pos,He=me.active,Ke=me.eventKey,Ve=(0,y.Z)((0,y.Z)({},Ee),{},{expanded:Te,selected:Re,checked:_e,loaded:ye,loading:be,halfChecked:Se,dragOver:Ie,dragOverGapTop:Me,dragOverGapBottom:Ae,pos:De,active:He,key:Ke});return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),me}}),Ve}},90472:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Ke}});var Be=ze(32855),mt=ze(33377),y=ze(93912),ke=ze(83383),we=ze(18881),x=ze(85461),z=ze(74430),ie=ze(59301),ae=ze(27247),ee=ze(43079),de=ze(34666),E=ze(13932),ne=ze(68702),re=ze(3300),oe=ze(92310),le=ze.n(oe),he=ze(26112),pe=ze(48736),ve=function(Ve,nt){if(Ve&&nt){var Ne=Array.isArray(nt)?nt:nt.split(","),We=Ve.name||"",$e=Ve.type||"",rt=$e.replace(/\/.*$/,"");return Ne.some(function(et){var Xe=et.trim();if(/^\*(\/\*)?$/.test(et))return!0;if(Xe.charAt(0)==="."){var Ye=We.toLowerCase(),Ge=Xe.toLowerCase(),at=[Ge];return(Ge===".jpg"||Ge===".jpeg")&&(at=[".jpg",".jpeg"]),at.some(function(Qe){return Ye.endsWith(Qe)})}return/\/\*$/.test(Xe)?rt===Xe.replace(/\/.*$/,""):$e===Xe?!0:/^\w+$/.test(Xe)?((0,pe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function ce(Ve,nt){var Ne="cannot ".concat(Ve.method," ").concat(Ve.action," ").concat(nt.status,"'"),We=new Error(Ne);return We.status=nt.status,We.method=Ve.method,We.url=Ve.action,We}function me(Ve){var nt=Ve.responseText||Ve.response;if(!nt)return nt;try{return JSON.parse(nt)}catch(Ne){return nt}}function Ee(Ve){var nt=new XMLHttpRequest;Ve.onProgress&&nt.upload&&(nt.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),Ve.onProgress(rt)});var Ne=new FormData;Ve.data&&Object.keys(Ve.data).forEach(function($e){var rt=Ve.data[$e];if(Array.isArray(rt)){rt.forEach(function(et){Ne.append("".concat($e,"[]"),et)});return}Ne.append($e,rt)}),Ve.file instanceof Blob?Ne.append(Ve.filename,Ve.file,Ve.file.name):Ne.append(Ve.filename,Ve.file),nt.onerror=function(rt){Ve.onError(rt)},nt.onload=function(){return nt.status<200||nt.status>=300?Ve.onError(ce(Ve,nt),me(nt)):Ve.onSuccess(me(nt),nt)},nt.open(Ve.method,Ve.action,!0),Ve.withCredentials&&"withCredentials"in nt&&(nt.withCredentials=!0);var We=Ve.headers||{};return We["X-Requested-With"]!==null&&nt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(We).forEach(function($e){We[$e]!==null&&nt.setRequestHeader($e,We[$e])}),nt.send(Ne),{abort:function(){nt.abort()}}}var Te=function(){var Ve=(0,ne.Z)((0,E.Z)().mark(function nt(Ne,We){var $e,rt,et,Xe,Ye,Ge,at,Qe;return(0,E.Z)().wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:Ge=function(){return Ge=(0,ne.Z)((0,E.Z)().mark(function Fe(Pe){return(0,E.Z)().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.abrupt("return",new Promise(function(Oe){Pe.file(function(Ue){We(Ue)?(Pe.fullPath&&!Ue.webkitRelativePath&&(Object.defineProperties(Ue,{webkitRelativePath:{writable:!0}}),Ue.webkitRelativePath=Pe.fullPath.replace(/^\//,""),Object.defineProperties(Ue,{webkitRelativePath:{writable:!1}})),Oe(Ue)):Oe(null)})}));case 1:case"end":return fe.stop()}},Fe)})),Ge.apply(this,arguments)},Ye=function(Fe){return Ge.apply(this,arguments)},Xe=function(){return Xe=(0,ne.Z)((0,E.Z)().mark(function Fe(Pe){var te,fe,Oe,Ue,xe;return(0,E.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:te=Pe.createReader(),fe=[];case 2:return je.next=5,new Promise(function(Ze){te.readEntries(Ze,function(){return Ze([])})});case 5:if(Oe=je.sent,Ue=Oe.length,Ue){je.next=9;break}return je.abrupt("break",12);case 9:for(xe=0;xe<Ue;xe++)fe.push(Oe[xe]);je.next=2;break;case 12:return je.abrupt("return",fe);case 13:case"end":return je.stop()}},Fe)})),Xe.apply(this,arguments)},et=function(Fe){return Xe.apply(this,arguments)},$e=[],rt=[],Ne.forEach(function(Je){return rt.push(Je.webkitGetAsEntry())}),at=function(){var Je=(0,ne.Z)((0,E.Z)().mark(function Fe(Pe,te){var fe,Oe;return(0,E.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(Pe){xe.next=2;break}return xe.abrupt("return");case 2:if(Pe.path=te||"",!Pe.isFile){xe.next=10;break}return xe.next=6,Ye(Pe);case 6:fe=xe.sent,fe&&$e.push(fe),xe.next=15;break;case 10:if(!Pe.isDirectory){xe.next=15;break}return xe.next=13,et(Pe);case 13:Oe=xe.sent,rt.push.apply(rt,(0,re.Z)(Oe));case 15:case"end":return xe.stop()}},Fe)}));return function(Pe,te){return Je.apply(this,arguments)}}(),Qe=0;case 9:if(!(Qe<rt.length)){ot.next=15;break}return ot.next=12,at(rt[Qe]);case 12:Qe++,ot.next=9;break;case 15:return ot.abrupt("return",$e);case 16:case"end":return ot.stop()}},nt)}));return function(Ne,We){return Ve.apply(this,arguments)}}(),Re=Te,_e=+new Date,ye=0;function be(){return"rc-upload-".concat(_e,"-").concat(++ye)}var Se=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Ie=function(Ve){(0,we.Z)(Ne,Ve);var nt=(0,x.Z)(Ne);function Ne(){var We;(0,mt.Z)(this,Ne);for(var $e=arguments.length,rt=new Array($e),et=0;et<$e;et++)rt[et]=arguments[et];return We=nt.call.apply(nt,[this].concat(rt)),(0,z.Z)((0,ke.Z)(We),"state",{uid:be()}),(0,z.Z)((0,ke.Z)(We),"reqs",{}),(0,z.Z)((0,ke.Z)(We),"fileInput",void 0),(0,z.Z)((0,ke.Z)(We),"_isMounted",void 0),(0,z.Z)((0,ke.Z)(We),"onChange",function(Xe){var Ye=We.props,Ge=Ye.accept,at=Ye.directory,Qe=Xe.target.files,ft=(0,re.Z)(Qe).filter(function(ot){return!at||ve(ot,Ge)});We.uploadFiles(ft),We.reset()}),(0,z.Z)((0,ke.Z)(We),"onClick",function(Xe){var Ye=We.fileInput;if(Ye){var Ge=Xe.target,at=We.props.onClick;if(Ge&&Ge.tagName==="BUTTON"){var Qe=Ye.parentNode;Qe.focus(),Ge.blur()}Ye.click(),at&&at(Xe)}}),(0,z.Z)((0,ke.Z)(We),"onKeyDown",function(Xe){Xe.key==="Enter"&&We.onClick(Xe)}),(0,z.Z)((0,ke.Z)(We),"onFileDrop",function(){var Xe=(0,ne.Z)((0,E.Z)().mark(function Ye(Ge){var at,Qe,ft;return(0,E.Z)().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(at=We.props.multiple,Ge.preventDefault(),Ge.type!=="dragover"){Je.next=4;break}return Je.abrupt("return");case 4:if(!We.props.directory){Je.next=11;break}return Je.next=7,Re(Array.prototype.slice.call(Ge.dataTransfer.items),function(Fe){return ve(Fe,We.props.accept)});case 7:Qe=Je.sent,We.uploadFiles(Qe),Je.next=14;break;case 11:ft=(0,re.Z)(Ge.dataTransfer.files).filter(function(Fe){return ve(Fe,We.props.accept)}),at===!1&&(ft=ft.slice(0,1)),We.uploadFiles(ft);case 14:case"end":return Je.stop()}},Ye)}));return function(Ye){return Xe.apply(this,arguments)}}()),(0,z.Z)((0,ke.Z)(We),"uploadFiles",function(Xe){var Ye=(0,re.Z)(Xe),Ge=Ye.map(function(at){return at.uid=be(),We.processFile(at,Ye)});Promise.all(Ge).then(function(at){var Qe=We.props.onBatchStart;Qe==null||Qe(at.map(function(ft){var ot=ft.origin,Je=ft.parsedFile;return{file:ot,parsedFile:Je}})),at.filter(function(ft){return ft.parsedFile!==null}).forEach(function(ft){We.post(ft)})})}),(0,z.Z)((0,ke.Z)(We),"processFile",function(){var Xe=(0,ne.Z)((0,E.Z)().mark(function Ye(Ge,at){var Qe,ft,ot,Je,Fe,Pe,te,fe,Oe;return(0,E.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(Qe=We.props.beforeUpload,ft=Ge,!Qe){xe.next=14;break}return xe.prev=3,xe.next=6,Qe(Ge,at);case 6:ft=xe.sent,xe.next=12;break;case 9:xe.prev=9,xe.t0=xe.catch(3),ft=!1;case 12:if(ft!==!1){xe.next=14;break}return xe.abrupt("return",{origin:Ge,parsedFile:null,action:null,data:null});case 14:if(ot=We.props.action,typeof ot!="function"){xe.next=21;break}return xe.next=18,ot(Ge);case 18:Je=xe.sent,xe.next=22;break;case 21:Je=ot;case 22:if(Fe=We.props.data,typeof Fe!="function"){xe.next=29;break}return xe.next=26,Fe(Ge);case 26:Pe=xe.sent,xe.next=30;break;case 29:Pe=Fe;case 30:return te=((0,de.Z)(ft)==="object"||typeof ft=="string")&&ft?ft:Ge,te instanceof File?fe=te:fe=new File([te],Ge.name,{type:Ge.type}),Oe=fe,Oe.uid=Ge.uid,xe.abrupt("return",{origin:Ge,data:Pe,parsedFile:Oe,action:Je});case 35:case"end":return xe.stop()}},Ye,null,[[3,9]])}));return function(Ye,Ge){return Xe.apply(this,arguments)}}()),(0,z.Z)((0,ke.Z)(We),"saveFileInput",function(Xe){We.fileInput=Xe}),We}return(0,y.Z)(Ne,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function($e){var rt=this,et=$e.data,Xe=$e.origin,Ye=$e.action,Ge=$e.parsedFile;if(this._isMounted){var at=this.props,Qe=at.onStart,ft=at.customRequest,ot=at.name,Je=at.headers,Fe=at.withCredentials,Pe=at.method,te=Xe.uid,fe=ft||Ee,Oe={action:Ye,filename:ot,data:et,file:Ge,headers:Je,withCredentials:Fe,method:Pe||"post",onProgress:function(xe){var Ce=rt.props.onProgress;Ce==null||Ce(xe,Ge)},onSuccess:function(xe,Ce){var je=rt.props.onSuccess;je==null||je(xe,Ge,Ce),delete rt.reqs[te]},onError:function(xe,Ce){var je=rt.props.onError;je==null||je(xe,Ce,Ge),delete rt.reqs[te]}};Qe(Xe),this.reqs[te]=fe(Oe)}}},{key:"reset",value:function(){this.setState({uid:be()})}},{key:"abort",value:function($e){var rt=this.reqs;if($e){var et=$e.uid?$e.uid:$e;rt[et]&&rt[et].abort&&rt[et].abort(),delete rt[et]}else Object.keys(rt).forEach(function(Xe){rt[Xe]&&rt[Xe].abort&&rt[Xe].abort(),delete rt[Xe]})}},{key:"render",value:function(){var $e=this.props,rt=$e.component,et=$e.prefixCls,Xe=$e.className,Ye=$e.classNames,Ge=Ye===void 0?{}:Ye,at=$e.disabled,Qe=$e.id,ft=$e.name,ot=$e.style,Je=$e.styles,Fe=Je===void 0?{}:Je,Pe=$e.multiple,te=$e.accept,fe=$e.capture,Oe=$e.children,Ue=$e.directory,xe=$e.openFileDialogOnClick,Ce=$e.onMouseEnter,je=$e.onMouseLeave,Ze=$e.hasControlInside,tt=(0,ee.Z)($e,Se),it=le()((0,z.Z)((0,z.Z)((0,z.Z)({},et,!0),"".concat(et,"-disabled"),at),Xe,Xe)),ct=Ue?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ut=at?{}:{onClick:xe?this.onClick:function(){},onKeyDown:xe?this.onKeyDown:function(){},onMouseEnter:Ce,onMouseLeave:je,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ze?void 0:"0"};return ie.createElement(rt,(0,Be.Z)({},ut,{className:it,role:Ze?void 0:"button",style:ot}),ie.createElement("input",(0,Be.Z)({},(0,he.Z)(tt,{aria:!0,data:!0}),{id:Qe,name:ft,disabled:at,type:"file",ref:this.saveFileInput,onClick:function(St){return St.stopPropagation()},key:this.state.uid,style:(0,ae.Z)({display:"none"},Fe.input),className:Ge.input,accept:te},ct,{multiple:Pe,onChange:this.onChange},fe!=null?{capture:fe}:{})),Oe)}}]),Ne}(ie.Component),Me=Ie;function Ae(){}var De=function(Ve){(0,we.Z)(Ne,Ve);var nt=(0,x.Z)(Ne);function Ne(){var We;(0,mt.Z)(this,Ne);for(var $e=arguments.length,rt=new Array($e),et=0;et<$e;et++)rt[et]=arguments[et];return We=nt.call.apply(nt,[this].concat(rt)),(0,z.Z)((0,ke.Z)(We),"uploader",void 0),(0,z.Z)((0,ke.Z)(We),"saveUploader",function(Xe){We.uploader=Xe}),We}return(0,y.Z)(Ne,[{key:"abort",value:function($e){this.uploader.abort($e)}},{key:"render",value:function(){return ie.createElement(Me,(0,Be.Z)({},this.props,{ref:this.saveUploader}))}}]),Ne}(ie.Component);(0,z.Z)(De,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ae,onError:Ae,onSuccess:Ae,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var He=De,Ke=He},8224:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return mt}});var Be=ze(4676);function mt(y,ke,we,x){var z=Be.unstable_batchedUpdates?function(ae){Be.unstable_batchedUpdates(we,ae)}:we;return y!=null&&y.addEventListener&&y.addEventListener(ke,z,x),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(ke,z,x)}}}},24514:function(Nt,Dt,ze){"use strict";ze.d(Dt,{G:function(){return ke}});var Be=ze(47273),mt=function(x){if((0,Be.Z)()&&window.document.documentElement){var z=Array.isArray(x)?x:[x],ie=window.document.documentElement;return z.some(function(ae){return ae in ie.style})}return!1},y=function(x,z){if(!mt(x))return!1;var ie=document.createElement("div"),ae=ie.style[x];return ie.style[x]=z,ie.style[x]!==ae};function ke(we,x){return!Array.isArray(we)&&x!==void 0?y(we,x):mt(we)}},6790:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return Fe}});var Be=ze(32855),mt=ze(34666),y=ze(27247),ke=ze(74430),we=ze(11913),x=ze(43079),z=ze(92310),ie=ze.n(z),ae=ze(29301),ee=ze(70425),de=ze(34280),E=ze(59301),ne=ze(4676),re=E.forwardRef(function(Pe,te){var fe=Pe.height,Oe=Pe.offsetY,Ue=Pe.offsetX,xe=Pe.children,Ce=Pe.prefixCls,je=Pe.onInnerResize,Ze=Pe.innerProps,tt=Pe.rtl,it=Pe.extra,ct={},ut={display:"flex",flexDirection:"column"};return Oe!==void 0&&(ct={height:fe,position:"relative",overflow:"hidden"},ut=(0,y.Z)((0,y.Z)({},ut),{},(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({transform:"translateY(".concat(Oe,"px)")},tt?"marginRight":"marginLeft",-Ue),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:ct},E.createElement(ae.Z,{onResize:function(St){var wt=St.offsetHeight;wt&&je&&je()}},E.createElement("div",(0,Be.Z)({style:ut,className:ie()((0,ke.Z)({},"".concat(Ce,"-holder-inner"),Ce)),ref:te},Ze),xe,it)))});re.displayName="Filler";var oe=re;function le(Pe){var te=Pe.children,fe=Pe.setRef,Oe=E.useCallback(function(Ue){fe(Ue)},[]);return E.cloneElement(te,{ref:Oe})}function he(Pe,te,fe,Oe,Ue,xe,Ce,je){var Ze=je.getKey;return Pe.slice(te,fe+1).map(function(tt,it){var ct=te+it,ut=Ce(tt,ct,{style:{width:Oe},offsetX:Ue}),pt=Ze(tt);return E.createElement(le,{key:pt,setRef:function(wt){return xe(tt,wt)}},ut)})}function pe(Pe,te,fe,Oe){var Ue=fe-Pe,xe=te-fe,Ce=Math.min(Ue,xe)*2;if(Oe<=Ce){var je=Math.floor(Oe/2);return Oe%2?fe+je+1:fe-je}return Ue>xe?fe-(Oe-xe):fe+(Oe-Ue)}function ve(Pe,te,fe){var Oe=Pe.length,Ue=te.length,xe,Ce;if(Oe===0&&Ue===0)return null;Oe<Ue?(xe=Pe,Ce=te):(xe=te,Ce=Pe);var je={__EMPTY_ITEM__:!0};function Ze(St){return St!==void 0?fe(St):je}for(var tt=null,it=Math.abs(Oe-Ue)!==1,ct=0;ct<Ce.length;ct+=1){var ut=Ze(xe[ct]),pt=Ze(Ce[ct]);if(ut!==pt){tt=ct,it=it||ut!==Ze(Ce[ct+1]);break}}return tt===null?null:{index:tt,multiple:it}}function ce(Pe,te,fe){var Oe=E.useState(Pe),Ue=(0,we.Z)(Oe,2),xe=Ue[0],Ce=Ue[1],je=E.useState(null),Ze=(0,we.Z)(je,2),tt=Ze[0],it=Ze[1];return E.useEffect(function(){var ct=ve(xe||[],Pe||[],te);(ct==null?void 0:ct.index)!==void 0&&(fe==null||fe(ct.index),it(Pe[ct.index])),Ce(Pe)},[Pe]),[tt]}var me=ze(16089),Ee=(typeof navigator=="undefined"?"undefined":(0,mt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Te=Ee,Re=function(Pe,te,fe,Oe){var Ue=(0,E.useRef)(!1),xe=(0,E.useRef)(null);function Ce(){clearTimeout(xe.current),Ue.current=!0,xe.current=setTimeout(function(){Ue.current=!1},50)}var je=(0,E.useRef)({top:Pe,bottom:te,left:fe,right:Oe});return je.current.top=Pe,je.current.bottom=te,je.current.left=fe,je.current.right=Oe,function(Ze,tt){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ct=Ze?tt<0&&je.current.left||tt>0&&je.current.right:tt<0&&je.current.top||tt>0&&je.current.bottom;return it&&ct?(clearTimeout(xe.current),Ue.current=!1):(!ct||Ue.current)&&Ce(),!Ue.current&&ct}};function _e(Pe,te,fe,Oe,Ue,xe,Ce){var je=(0,E.useRef)(0),Ze=(0,E.useRef)(null),tt=(0,E.useRef)(null),it=(0,E.useRef)(!1),ct=Re(te,fe,Oe,Ue);function ut(At,gt){if(me.Z.cancel(Ze.current),!ct(!1,gt)){var dt=At;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;je.current+=gt,tt.current=gt,Te||dt.preventDefault(),Ze.current=(0,me.Z)(function(){var xt=it.current?10:1;Ce(je.current*xt,!1),je.current=0})}}function pt(At,gt){Ce(gt,!0),Te||At.preventDefault()}var St=(0,E.useRef)(null),wt=(0,E.useRef)(null);function Et(At){if(Pe){me.Z.cancel(wt.current),wt.current=(0,me.Z)(function(){St.current=null},2);var gt=At.deltaX,dt=At.deltaY,xt=At.shiftKey,bt=gt,Pt=dt;(St.current==="sx"||!St.current&&xt&&dt&&!gt)&&(bt=dt,Pt=0,St.current="sx");var Zt=Math.abs(bt),cr=Math.abs(Pt);St.current===null&&(St.current=xe&&Zt>cr?"x":"y"),St.current==="y"?ut(At,Pt):pt(At,bt)}}function vt(At){Pe&&(it.current=At.detail===tt.current)}return[Et,vt]}function ye(Pe,te,fe,Oe){var Ue=E.useMemo(function(){return[new Map,[]]},[Pe,fe.id,Oe]),xe=(0,we.Z)(Ue,2),Ce=xe[0],je=xe[1],Ze=function(it){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:it,ut=Ce.get(it),pt=Ce.get(ct);if(ut===void 0||pt===void 0)for(var St=Pe.length,wt=je.length;wt<St;wt+=1){var Et,vt=Pe[wt],At=te(vt);Ce.set(At,wt);var gt=(Et=fe.get(At))!==null&&Et!==void 0?Et:Oe;if(je[wt]=(je[wt-1]||0)+gt,At===it&&(ut=wt),At===ct&&(pt=wt),ut!==void 0&&pt!==void 0)break}return{top:je[ut-1]||0,bottom:je[pt]}};return Ze}var be=ze(33377),Se=ze(93912),Ie=function(){function Pe(){(0,be.Z)(this,Pe),(0,ke.Z)(this,"maps",void 0),(0,ke.Z)(this,"id",0),(0,ke.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Se.Z)(Pe,[{key:"set",value:function(fe,Oe){this.diffRecords.set(fe,this.maps[fe]),this.maps[fe]=Oe,this.id+=1}},{key:"get",value:function(fe){return this.maps[fe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Pe}(),Me=Ie;function Ae(Pe){var te=parseFloat(Pe);return isNaN(te)?0:te}function De(Pe,te,fe){var Oe=E.useState(0),Ue=(0,we.Z)(Oe,2),xe=Ue[0],Ce=Ue[1],je=(0,E.useRef)(new Map),Ze=(0,E.useRef)(new Me),tt=(0,E.useRef)(0);function it(){tt.current+=1}function ct(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;it();var St=function(){var vt=!1;je.current.forEach(function(At,gt){if(At&&At.offsetParent){var dt=At.offsetHeight,xt=getComputedStyle(At),bt=xt.marginTop,Pt=xt.marginBottom,Zt=Ae(bt),cr=Ae(Pt),Ht=dt+Zt+cr;Ze.current.get(gt)!==Ht&&(Ze.current.set(gt,Ht),vt=!0)}}),vt&&Ce(function(At){return At+1})};if(pt)St();else{tt.current+=1;var wt=tt.current;Promise.resolve().then(function(){wt===tt.current&&St()})}}function ut(pt,St){var wt=Pe(pt),Et=je.current.get(wt);St?(je.current.set(wt,St),ct()):je.current.delete(wt),!Et!=!St&&(St?te==null||te(pt):fe==null||fe(pt))}return(0,E.useEffect)(function(){return it},[]),[ut,ct,Ze.current,xe]}var He=14/15;function Ke(Pe,te,fe){var Oe=(0,E.useRef)(!1),Ue=(0,E.useRef)(0),xe=(0,E.useRef)(0),Ce=(0,E.useRef)(null),je=(0,E.useRef)(null),Ze,tt=function(pt){if(Oe.current){var St=Math.ceil(pt.touches[0].pageX),wt=Math.ceil(pt.touches[0].pageY),Et=Ue.current-St,vt=xe.current-wt,At=Math.abs(Et)>Math.abs(vt);At?Ue.current=St:xe.current=wt;var gt=fe(At,At?Et:vt,!1,pt);gt&&pt.preventDefault(),clearInterval(je.current),gt&&(je.current=setInterval(function(){At?Et*=He:vt*=He;var dt=Math.floor(At?Et:vt);(!fe(At,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(je.current)},16))}},it=function(){Oe.current=!1,Ze()},ct=function(pt){Ze(),pt.touches.length===1&&!Oe.current&&(Oe.current=!0,Ue.current=Math.ceil(pt.touches[0].pageX),xe.current=Math.ceil(pt.touches[0].pageY),Ce.current=pt.target,Ce.current.addEventListener("touchmove",tt,{passive:!1}),Ce.current.addEventListener("touchend",it,{passive:!0}))};Ze=function(){Ce.current&&(Ce.current.removeEventListener("touchmove",tt),Ce.current.removeEventListener("touchend",it))},(0,de.Z)(function(){return Pe&&te.current.addEventListener("touchstart",ct,{passive:!0}),function(){var ut;(ut=te.current)===null||ut===void 0||ut.removeEventListener("touchstart",ct),Ze(),clearInterval(je.current)}},[Pe])}function Ve(Pe){return Math.floor(Math.pow(Pe,.5))}function nt(Pe,te){var fe="touches"in Pe?Pe.touches[0]:Pe;return fe[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Ne(Pe,te,fe){E.useEffect(function(){var Oe=te.current;if(Pe&&Oe){var Ue=!1,xe,Ce,je=function(){me.Z.cancel(xe)},Ze=function ut(){je(),xe=(0,me.Z)(function(){fe(Ce),ut()})},tt=function(pt){if(!(pt.target.draggable||pt.button!==0)){var St=pt;St._virtualHandled||(St._virtualHandled=!0,Ue=!0)}},it=function(){Ue=!1,je()},ct=function(pt){if(Ue){var St=nt(pt,!1),wt=Oe.getBoundingClientRect(),Et=wt.top,vt=wt.bottom;if(St<=Et){var At=Et-St;Ce=-Ve(At),Ze()}else if(St>=vt){var gt=St-vt;Ce=Ve(gt),Ze()}else je()}};return Oe.addEventListener("mousedown",tt),Oe.ownerDocument.addEventListener("mouseup",it),Oe.ownerDocument.addEventListener("mousemove",ct),function(){Oe.removeEventListener("mousedown",tt),Oe.ownerDocument.removeEventListener("mouseup",it),Oe.ownerDocument.removeEventListener("mousemove",ct),je()}}},[Pe])}var We=10;function $e(Pe,te,fe,Oe,Ue,xe,Ce,je){var Ze=E.useRef(),tt=E.useState(null),it=(0,we.Z)(tt,2),ct=it[0],ut=it[1];return(0,de.Z)(function(){if(ct&&ct.times<We){if(!Pe.current){ut(function(vn){return(0,y.Z)({},vn)});return}xe();var pt=ct.targetAlign,St=ct.originAlign,wt=ct.index,Et=ct.offset,vt=Pe.current.clientHeight,At=!1,gt=pt,dt=null;if(vt){for(var xt=pt||St,bt=0,Pt=0,Zt=0,cr=Math.min(te.length-1,wt),Ht=0;Ht<=cr;Ht+=1){var vr=Ue(te[Ht]);Pt=bt;var Kr=fe.get(vr);Zt=Pt+(Kr===void 0?Oe:Kr),bt=Zt}for(var Xr=xt==="top"?Et:vt-Et,Nr=cr;Nr>=0;Nr-=1){var fn=Ue(te[Nr]),Lr=fe.get(fn);if(Lr===void 0){At=!0;break}if(Xr-=Lr,Xr<=0)break}switch(xt){case"top":dt=Pt-Et;break;case"bottom":dt=Zt-vt+Et;break;default:{var ln=Pe.current.scrollTop,Tr=ln+vt;Pt<ln?gt="top":Zt>Tr&&(gt="bottom")}}dt!==null&&Ce(dt),dt!==ct.lastTop&&(At=!0)}At&&ut((0,y.Z)((0,y.Z)({},ct),{},{times:ct.times+1,targetAlign:gt,lastTop:dt}))}},[ct,Pe.current]),function(pt){if(pt==null){je();return}if(me.Z.cancel(Ze.current),typeof pt=="number")Ce(pt);else if(pt&&(0,mt.Z)(pt)==="object"){var St,wt=pt.align;"index"in pt?St=pt.index:St=te.findIndex(function(At){return Ue(At)===pt.key});var Et=pt.offset,vt=Et===void 0?0:Et;ut({times:0,index:St,offset:vt,originAlign:wt})}}}var rt=E.forwardRef(function(Pe,te){var fe=Pe.prefixCls,Oe=Pe.rtl,Ue=Pe.scrollOffset,xe=Pe.scrollRange,Ce=Pe.onStartMove,je=Pe.onStopMove,Ze=Pe.onScroll,tt=Pe.horizontal,it=Pe.spinSize,ct=Pe.containerSize,ut=Pe.style,pt=Pe.thumbStyle,St=Pe.showScrollBar,wt=E.useState(!1),Et=(0,we.Z)(wt,2),vt=Et[0],At=Et[1],gt=E.useState(null),dt=(0,we.Z)(gt,2),xt=dt[0],bt=dt[1],Pt=E.useState(null),Zt=(0,we.Z)(Pt,2),cr=Zt[0],Ht=Zt[1],vr=!Oe,Kr=E.useRef(),Xr=E.useRef(),Nr=E.useState(St),fn=(0,we.Z)(Nr,2),Lr=fn[0],ln=fn[1],Tr=E.useRef(),vn=function(){St===!0||St===!1||(clearTimeout(Tr.current),ln(!0),Tr.current=setTimeout(function(){ln(!1)},3e3))},on=xe-ct||0,br=ct-it||0,wr=E.useMemo(function(){if(Ue===0||on===0)return 0;var dn=Ue/on;return dn*br},[Ue,on,br]),er=function(sn){sn.stopPropagation(),sn.preventDefault()},dr=E.useRef({top:wr,dragging:vt,pageY:xt,startTop:cr});dr.current={top:wr,dragging:vt,pageY:xt,startTop:cr};var Xt=function(sn){At(!0),bt(nt(sn,tt)),Ht(dr.current.top),Ce(),sn.stopPropagation(),sn.preventDefault()};E.useEffect(function(){var dn=function(sr){sr.preventDefault()},sn=Kr.current,Hr=Xr.current;return sn.addEventListener("touchstart",dn,{passive:!1}),Hr.addEventListener("touchstart",Xt,{passive:!1}),function(){sn.removeEventListener("touchstart",dn),Hr.removeEventListener("touchstart",Xt)}},[]);var qt=E.useRef();qt.current=on;var yr=E.useRef();yr.current=br,E.useEffect(function(){if(vt){var dn,sn=function(sr){var Wt=dr.current,mr=Wt.dragging,Ur=Wt.pageY,un=Wt.startTop;me.Z.cancel(dn);var kt=Kr.current.getBoundingClientRect(),Tt=ct/(tt?kt.width:kt.height);if(mr){var lr=(nt(sr,tt)-Ur)*Tt,$t=un;!vr&&tt?$t-=lr:$t+=lr;var Ot=qt.current,nr=yr.current,pr=nr?$t/nr:0,gr=Math.ceil(pr*Ot);gr=Math.max(gr,0),gr=Math.min(gr,Ot),dn=(0,me.Z)(function(){Ze(gr,tt)})}},Hr=function(){At(!1),je()};return window.addEventListener("mousemove",sn,{passive:!0}),window.addEventListener("touchmove",sn,{passive:!0}),window.addEventListener("mouseup",Hr,{passive:!0}),window.addEventListener("touchend",Hr,{passive:!0}),function(){window.removeEventListener("mousemove",sn),window.removeEventListener("touchmove",sn),window.removeEventListener("mouseup",Hr),window.removeEventListener("touchend",Hr),me.Z.cancel(dn)}}},[vt]),E.useEffect(function(){return vn(),function(){clearTimeout(Tr.current)}},[Ue]),E.useImperativeHandle(te,function(){return{delayHidden:vn}});var _r="".concat(fe,"-scrollbar"),jr={position:"absolute",visibility:Lr?null:"hidden"},Yr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return tt?(Object.assign(jr,{height:8,left:0,right:0,bottom:0}),Object.assign(Yr,(0,ke.Z)({height:"100%",width:it},vr?"left":"right",wr))):(Object.assign(jr,(0,ke.Z)({width:8,top:0,bottom:0},vr?"right":"left",0)),Object.assign(Yr,{width:"100%",height:it,top:wr})),E.createElement("div",{ref:Kr,className:ie()(_r,(0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(_r,"-horizontal"),tt),"".concat(_r,"-vertical"),!tt),"".concat(_r,"-visible"),Lr)),style:(0,y.Z)((0,y.Z)({},jr),ut),onMouseDown:er,onMouseMove:vn},E.createElement("div",{ref:Xr,className:ie()("".concat(_r,"-thumb"),(0,ke.Z)({},"".concat(_r,"-thumb-moving"),vt)),style:(0,y.Z)((0,y.Z)({},Yr),pt),onMouseDown:Xt}))}),et=rt,Xe=20;function Ye(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=Pe/te*Pe;return isNaN(fe)&&(fe=0),fe=Math.max(fe,Xe),Math.floor(fe)}var Ge=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],at=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ft(Pe,te){var fe=Pe.prefixCls,Oe=fe===void 0?"rc-virtual-list":fe,Ue=Pe.className,xe=Pe.height,Ce=Pe.itemHeight,je=Pe.fullHeight,Ze=je===void 0?!0:je,tt=Pe.style,it=Pe.data,ct=Pe.children,ut=Pe.itemKey,pt=Pe.virtual,St=Pe.direction,wt=Pe.scrollWidth,Et=Pe.component,vt=Et===void 0?"div":Et,At=Pe.onScroll,gt=Pe.onVirtualScroll,dt=Pe.onVisibleChange,xt=Pe.innerProps,bt=Pe.extraRender,Pt=Pe.styles,Zt=Pe.showScrollBar,cr=Zt===void 0?"optional":Zt,Ht=(0,x.Z)(Pe,Ge),vr=E.useCallback(function(It){return typeof ut=="function"?ut(It):It==null?void 0:It[ut]},[ut]),Kr=De(vr,null,null),Xr=(0,we.Z)(Kr,4),Nr=Xr[0],fn=Xr[1],Lr=Xr[2],ln=Xr[3],Tr=!!(pt!==!1&&xe&&Ce),vn=E.useMemo(function(){return Object.values(Lr.maps).reduce(function(It,Gt){return It+Gt},0)},[Lr.id,Lr.maps]),on=Tr&&it&&(Math.max(Ce*it.length,vn)>xe||!!wt),br=St==="rtl",wr=ie()(Oe,(0,ke.Z)({},"".concat(Oe,"-rtl"),br),Ue),er=it||at,dr=(0,E.useRef)(),Xt=(0,E.useRef)(),qt=(0,E.useRef)(),yr=(0,E.useState)(0),_r=(0,we.Z)(yr,2),jr=_r[0],Yr=_r[1],dn=(0,E.useState)(0),sn=(0,we.Z)(dn,2),Hr=sn[0],Qr=sn[1],sr=(0,E.useState)(!1),Wt=(0,we.Z)(sr,2),mr=Wt[0],Ur=Wt[1],un=function(){Ur(!0)},kt=function(){Ur(!1)},Tt={getKey:vr};function lr(It){Yr(function(Gt){var Vt;typeof It=="function"?Vt=It(Gt):Vt=It;var Kt=Qn(Vt);return dr.current.scrollTop=Kt,Kt})}var $t=(0,E.useRef)({start:0,end:er.length}),Ot=(0,E.useRef)(),nr=ce(er,vr),pr=(0,we.Z)(nr,1),gr=pr[0];Ot.current=gr;var Dr=E.useMemo(function(){if(!Tr)return{scrollHeight:void 0,start:0,end:er.length-1,offset:void 0};if(!on){var It;return{scrollHeight:((It=Xt.current)===null||It===void 0?void 0:It.offsetHeight)||0,start:0,end:er.length-1,offset:void 0}}for(var Gt=0,Vt,Kt,Qt,zt=er.length,Yt=0;Yt<zt;Yt+=1){var tr=er[Yt],ar=vr(tr),Rr=Lr.get(ar),Pr=Gt+(Rr===void 0?Ce:Rr);Pr>=jr&&Vt===void 0&&(Vt=Yt,Kt=Gt),Pr>jr+xe&&Qt===void 0&&(Qt=Yt),Gt=Pr}return Vt===void 0&&(Vt=0,Kt=0,Qt=Math.ceil(xe/Ce)),Qt===void 0&&(Qt=er.length-1),Qt=Math.min(Qt+1,er.length-1),{scrollHeight:Gt,start:Vt,end:Qt,offset:Kt}},[on,Tr,jr,er,ln,xe]),hr=Dr.scrollHeight,Ar=Dr.start,jt=Dr.end,Sr=Dr.offset;$t.current.start=Ar,$t.current.end=jt,E.useLayoutEffect(function(){var It=Lr.getRecord();if(It.size===1){var Gt=Array.from(It.keys())[0],Vt=It.get(Gt),Kt=er[Ar];if(Kt&&Vt===void 0){var Qt=vr(Kt);if(Qt===Gt){var zt=Lr.get(Gt),Yt=zt-Ce;lr(function(tr){return tr+Yt})}}}Lr.resetRecord()},[hr]);var ur=E.useState({width:0,height:xe}),Or=(0,we.Z)(ur,2),Wr=Or[0],tn=Or[1],En=function(Gt){tn({width:Gt.offsetWidth,height:Gt.offsetHeight})},Zn=(0,E.useRef)(),On=(0,E.useRef)(),An=E.useMemo(function(){return Ye(Wr.width,wt)},[Wr.width,wt]),Hn=E.useMemo(function(){return Ye(Wr.height,hr)},[Wr.height,hr]),Cn=hr-xe,Xn=(0,E.useRef)(Cn);Xn.current=Cn;function Qn(It){var Gt=It;return Number.isNaN(Xn.current)||(Gt=Math.min(Gt,Xn.current)),Gt=Math.max(Gt,0),Gt}var Jn=jr<=0,Er=jr>=Cn,Fr=Hr<=0,en=Hr>=wt,$r=Re(Jn,Er,Fr,en),bn=function(){return{x:br?-Hr:Hr,y:jr}},kr=(0,E.useRef)(bn()),Cr=(0,ee.zX)(function(It){if(gt){var Gt=(0,y.Z)((0,y.Z)({},bn()),It);(kr.current.x!==Gt.x||kr.current.y!==Gt.y)&&(gt(Gt),kr.current=Gt)}});function Mr(It,Gt){var Vt=It;Gt?((0,ne.flushSync)(function(){Qr(Vt)}),Cr()):lr(Vt)}function Zr(It){var Gt=It.currentTarget.scrollTop;Gt!==jr&&lr(Gt),At==null||At(It),Cr()}var xn=function(Gt){var Vt=Gt,Kt=wt?wt-Wr.width:0;return Vt=Math.max(Vt,0),Vt=Math.min(Vt,Kt),Vt},rn=(0,ee.zX)(function(It,Gt){Gt?((0,ne.flushSync)(function(){Qr(function(Vt){var Kt=Vt+(br?-It:It);return xn(Kt)})}),Cr()):lr(function(Vt){var Kt=Vt+It;return Kt})}),an=_e(Tr,Jn,Er,Fr,en,!!wt,rn),Un=(0,we.Z)(an,2),yt=Un[0],Mt=Un[1];Ke(Tr,dr,function(It,Gt,Vt,Kt){var Qt=Kt;return $r(It,Gt,Vt)?!1:!Qt||!Qt._virtualHandled?(Qt&&(Qt._virtualHandled=!0),yt({preventDefault:function(){},deltaX:It?Gt:0,deltaY:It?0:Gt}),!0):!1}),Ne(on,dr,function(It){lr(function(Gt){return Gt+It})}),(0,de.Z)(function(){function It(Vt){var Kt=Jn&&Vt.detail<0,Qt=Er&&Vt.detail>0;Tr&&!Kt&&!Qt&&Vt.preventDefault()}var Gt=dr.current;return Gt.addEventListener("wheel",yt,{passive:!1}),Gt.addEventListener("DOMMouseScroll",Mt,{passive:!0}),Gt.addEventListener("MozMousePixelScroll",It,{passive:!1}),function(){Gt.removeEventListener("wheel",yt),Gt.removeEventListener("DOMMouseScroll",Mt),Gt.removeEventListener("MozMousePixelScroll",It)}},[Tr,Jn,Er]),(0,de.Z)(function(){if(wt){var It=xn(Hr);Qr(It),Cr({x:It})}},[Wr.width,wt]);var Rt=function(){var Gt,Vt;(Gt=Zn.current)===null||Gt===void 0||Gt.delayHidden(),(Vt=On.current)===null||Vt===void 0||Vt.delayHidden()},Bt=$e(dr,er,Lr,Ce,vr,function(){return fn(!0)},lr,Rt);E.useImperativeHandle(te,function(){return{nativeElement:qt.current,getScrollInfo:bn,scrollTo:function(Gt){function Vt(Kt){return Kt&&(0,mt.Z)(Kt)==="object"&&("left"in Kt||"top"in Kt)}Vt(Gt)?(Gt.left!==void 0&&Qr(xn(Gt.left)),Bt(Gt.top)):Bt(Gt)}}}),(0,de.Z)(function(){if(dt){var It=er.slice(Ar,jt+1);dt(It,er)}},[Ar,jt,er]);var Lt=ye(er,vr,Lr,Ce),Jt=bt==null?void 0:bt({start:Ar,end:jt,virtual:on,offsetX:Hr,offsetY:Sr,rtl:br,getSize:Lt}),fr=he(er,Ar,jt,wt,Hr,Nr,ct,Tt),ir=null;xe&&(ir=(0,y.Z)((0,ke.Z)({},Ze?"height":"maxHeight",xe),Qe),Tr&&(ir.overflowY="hidden",wt&&(ir.overflowX="hidden"),mr&&(ir.pointerEvents="none")));var rr={};return br&&(rr.dir="rtl"),E.createElement("div",(0,Be.Z)({ref:qt,style:(0,y.Z)((0,y.Z)({},tt),{},{position:"relative"}),className:wr},rr,Ht),E.createElement(ae.Z,{onResize:En},E.createElement(vt,{className:"".concat(Oe,"-holder"),style:ir,ref:dr,onScroll:Zr,onMouseEnter:Rt},E.createElement(oe,{prefixCls:Oe,height:hr,offsetX:Hr,offsetY:Sr,scrollWidth:wt,onInnerResize:fn,ref:Xt,innerProps:xt,rtl:br,extra:Jt},fr))),on&&hr>xe&&E.createElement(et,{ref:Zn,prefixCls:Oe,scrollOffset:jr,scrollRange:hr,rtl:br,onScroll:Mr,onStartMove:un,onStopMove:kt,spinSize:Hn,containerSize:Wr.height,style:Pt==null?void 0:Pt.verticalScrollBar,thumbStyle:Pt==null?void 0:Pt.verticalScrollBarThumb,showScrollBar:cr}),on&&wt>Wr.width&&E.createElement(et,{ref:On,prefixCls:Oe,scrollOffset:Hr,scrollRange:wt,rtl:br,onScroll:Mr,onStartMove:un,onStopMove:kt,spinSize:An,containerSize:Wr.width,horizontal:!0,style:Pt==null?void 0:Pt.horizontalScrollBar,thumbStyle:Pt==null?void 0:Pt.horizontalScrollBarThumb,showScrollBar:cr}))}var ot=E.forwardRef(ft);ot.displayName="List";var Je=ot,Fe=Je},7062:function(Nt,Dt,ze){var Be=ze(19637),mt=ze(97573),y=[ze(96627)];Nt.exports=Be.createStore(mt,y)},96627:function(Nt,Dt,ze){Nt.exports=Be;function Be(){return ze(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(Nt){return Nt<10?"0"+Nt:Nt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(Nt){return rx_escapable.lastIndex=0,rx_escapable.test(Nt)?'"'+Nt.replace(rx_escapable,function(Dt){var ze=meta[Dt];return typeof ze=="string"?ze:"\\u"+("0000"+Dt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Nt+'"'}function str(Nt,Dt){var ze,Be,mt,y,ke=gap,we,x=Dt[Nt];switch(x&&typeof x=="object"&&typeof x.toJSON=="function"&&(x=x.toJSON(Nt)),typeof rep=="function"&&(x=rep.call(Dt,Nt,x)),typeof x){case"string":return quote(x);case"number":return isFinite(x)?String(x):"null";case"boolean":case"null":return String(x);case"object":if(!x)return"null";if(gap+=indent,we=[],Object.prototype.toString.apply(x)==="[object Array]"){for(y=x.length,ze=0;ze<y;ze+=1)we[ze]=str(ze,x)||"null";return mt=we.length===0?"[]":gap?`[
`+gap+we.join(`,
`+gap)+`
`+ke+"]":"["+we.join(",")+"]",gap=ke,mt}if(rep&&typeof rep=="object")for(y=rep.length,ze=0;ze<y;ze+=1)typeof rep[ze]=="string"&&(Be=rep[ze],mt=str(Be,x),mt&&we.push(quote(Be)+(gap?": ":":")+mt));else for(Be in x)Object.prototype.hasOwnProperty.call(x,Be)&&(mt=str(Be,x),mt&&we.push(quote(Be)+(gap?": ":":")+mt));return mt=we.length===0?"{}":gap?`{
`+gap+we.join(`,
`+gap)+`
`+ke+"}":"{"+we.join(",")+"}",gap=ke,mt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Nt,Dt,ze){var Be;if(gap="",indent="",typeof ze=="number")for(Be=0;Be<ze;Be+=1)indent+=" ";else typeof ze=="string"&&(indent=ze);if(rep=Dt,Dt&&typeof Dt!="function"&&(typeof Dt!="object"||typeof Dt.length!="number"))throw new Error("JSON.stringify");return str("",{"":Nt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Nt,Dt){var ze,Be,mt=Nt[Dt];if(mt&&typeof mt=="object")for(ze in mt)Object.prototype.hasOwnProperty.call(mt,ze)&&(Be=walk(mt,ze),Be!==void 0?mt[ze]=Be:delete mt[ze]);return reviver.call(Nt,Dt,mt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Nt){return"\\u"+("0000"+Nt.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(Nt,Dt,ze){var Be=ze(67039),mt=Be.slice,y=Be.pluck,ke=Be.each,we=Be.bind,x=Be.create,z=Be.isList,ie=Be.isFunction,ae=Be.isObject;Nt.exports={createStore:E};var ee={version:"2.0.12",enabled:!1,get:function(ne,re){var oe=this.storage.read(this._namespacePrefix+ne);return this._deserialize(oe,re)},set:function(ne,re){return re===void 0?this.remove(ne):(this.storage.write(this._namespacePrefix+ne,this._serialize(re)),re)},remove:function(ne){this.storage.remove(this._namespacePrefix+ne)},each:function(ne){var re=this;this.storage.each(function(oe,le){ne.call(re,re._deserialize(oe),(le||"").replace(re._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ne){return this._namespacePrefix=="__storejs_"+ne+"_"},createStore:function(){return E.apply(this,arguments)},addPlugin:function(ne){this._addPlugin(ne)},namespace:function(ne){return E(this.storage,this.plugins,ne)}};function de(){var ne=typeof console=="undefined"?null:console;if(ne){var re=ne.warn?ne.warn:ne.log;re.apply(ne,arguments)}}function E(ne,re,oe){oe||(oe=""),ne&&!z(ne)&&(ne=[ne]),re&&!z(re)&&(re=[re]);var le=oe?"__storejs_"+oe+"_":"",he=oe?new RegExp("^"+le):null,pe=/^[a-zA-Z0-9_\-]*$/;if(!pe.test(oe))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var ve={_namespacePrefix:le,_namespaceRegexp:he,_testStorage:function(me){try{var Ee="__storejs__test__";me.write(Ee,Ee);var Te=me.read(Ee)===Ee;return me.remove(Ee),Te}catch(Re){return!1}},_assignPluginFnProp:function(me,Ee){var Te=this[Ee];this[Ee]=function(){var _e=mt(arguments,0),ye=this;function be(){if(Te)return ke(arguments,function(Ie,Me){_e[Me]=Ie}),Te.apply(ye,_e)}var Se=[be].concat(_e);return me.apply(ye,Se)}},_serialize:function(me){return JSON.stringify(me)},_deserialize:function(me,Ee){if(!me)return Ee;var Te="";try{Te=JSON.parse(me)}catch(Re){Te=me}return Te!==void 0?Te:Ee},_addStorage:function(me){this.enabled||this._testStorage(me)&&(this.storage=me,this.enabled=!0)},_addPlugin:function(me){var Ee=this;if(z(me)){ke(me,function(_e){Ee._addPlugin(_e)});return}var Te=y(this.plugins,function(_e){return me===_e});if(!Te){if(this.plugins.push(me),!ie(me))throw new Error("Plugins must be function values that return objects");var Re=me.call(this);if(!ae(Re))throw new Error("Plugins must return an object of function properties");ke(Re,function(_e,ye){if(!ie(_e))throw new Error("Bad plugin property: "+ye+" from plugin "+me.name+". Plugins should only return functions.");Ee._assignPluginFnProp(_e,ye)})}},addStorage:function(me){de("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(me)}},ce=x(ve,ee,{plugins:[]});return ce.raw={},ke(ce,function(me,Ee){ie(me)&&(ce.raw[Ee]=we(ce,me))}),ke(ne,function(me){ce._addStorage(me)}),ke(re,function(me){ce._addPlugin(me)}),ce}},67039:function(Nt,Dt,ze){var Be=we(),mt=x(),y=z(),ke=typeof window!="undefined"?window:ze.g;Nt.exports={assign:Be,create:mt,trim:y,bind:ie,slice:ae,each:ee,map:de,pluck:E,isList:ne,isFunction:re,isObject:oe,Global:ke};function we(){return Object.assign?Object.assign:function(he,pe,ve,ce){for(var me=1;me<arguments.length;me++)ee(Object(arguments[me]),function(Ee,Te){he[Te]=Ee});return he}}function x(){if(Object.create)return function(pe,ve,ce,me){var Ee=ae(arguments,1);return Be.apply(this,[Object.create(pe)].concat(Ee))};{let he=function(){};var le=he;return function(ve,ce,me,Ee){var Te=ae(arguments,1);return he.prototype=ve,Be.apply(this,[new he].concat(Te))}}}function z(){return String.prototype.trim?function(he){return String.prototype.trim.call(he)}:function(he){return he.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ie(le,he){return function(){return he.apply(le,Array.prototype.slice.call(arguments,0))}}function ae(le,he){return Array.prototype.slice.call(le,he||0)}function ee(le,he){E(le,function(pe,ve){return he(pe,ve),!1})}function de(le,he){var pe=ne(le)?[]:{};return E(le,function(ve,ce){return pe[ce]=he(ve,ce),!1}),pe}function E(le,he){if(ne(le)){for(var pe=0;pe<le.length;pe++)if(he(le[pe],pe))return le[pe]}else for(var ve in le)if(le.hasOwnProperty(ve)&&he(le[ve],ve))return le[ve]}function ne(le){return le!=null&&typeof le!="function"&&typeof le.length=="number"}function re(le){return le&&{}.toString.call(le)==="[object Function]"}function oe(le){return le&&{}.toString.call(le)==="[object Object]"}},97573:function(Nt,Dt,ze){Nt.exports=[ze(52496),ze(16436),ze(76673),ze(35701),ze(65578),ze(65300)]},35701:function(Nt,Dt,ze){var Be=ze(67039),mt=Be.Global,y=Be.trim;Nt.exports={name:"cookieStorage",read:we,write:z,each:x,remove:ie,clearAll:ae};var ke=mt.document;function we(de){if(!de||!ee(de))return null;var E="(?:^|.*;\\s*)"+escape(de).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ke.cookie.replace(new RegExp(E),"$1"))}function x(de){for(var E=ke.cookie.split(/; ?/g),ne=E.length-1;ne>=0;ne--)if(y(E[ne])){var re=E[ne].split("="),oe=unescape(re[0]),le=unescape(re[1]);de(le,oe)}}function z(de,E){de&&(ke.cookie=escape(de)+"="+escape(E)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(de){!de||!ee(de)||(ke.cookie=escape(de)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ae(){x(function(de,E){ie(E)})}function ee(de){return new RegExp("(?:^|;\\s*)"+escape(de).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ke.cookie)}},52496:function(Nt,Dt,ze){var Be=ze(67039),mt=Be.Global;Nt.exports={name:"localStorage",read:ke,write:we,each:x,remove:z,clearAll:ie};function y(){return mt.localStorage}function ke(ae){return y().getItem(ae)}function we(ae,ee){return y().setItem(ae,ee)}function x(ae){for(var ee=y().length-1;ee>=0;ee--){var de=y().key(ee);ae(ke(de),de)}}function z(ae){return y().removeItem(ae)}function ie(){return y().clear()}},65300:function(Nt){Nt.exports={name:"memoryStorage",read:ze,write:Be,each:mt,remove:y,clearAll:ke};var Dt={};function ze(we){return Dt[we]}function Be(we,x){Dt[we]=x}function mt(we){for(var x in Dt)Dt.hasOwnProperty(x)&&we(Dt[x],x)}function y(we){delete Dt[we]}function ke(we){Dt={}}},16436:function(Nt,Dt,ze){var Be=ze(67039),mt=Be.Global;Nt.exports={name:"oldFF-globalStorage",read:ke,write:we,each:x,remove:z,clearAll:ie};var y=mt.globalStorage;function ke(ae){return y[ae]}function we(ae,ee){y[ae]=ee}function x(ae){for(var ee=y.length-1;ee>=0;ee--){var de=y.key(ee);ae(y[de],de)}}function z(ae){return y.removeItem(ae)}function ie(){x(function(ae,ee){delete y[ae]})}},76673:function(Nt,Dt,ze){var Be=ze(67039),mt=Be.Global;Nt.exports={name:"oldIE-userDataStorage",write:z,read:ie,each:ae,remove:ee,clearAll:de};var y="storejs",ke=mt.document,we=re(),x=(mt.navigator?mt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(oe,le){if(!x){var he=ne(oe);we(function(pe){pe.setAttribute(he,le),pe.save(y)})}}function ie(oe){if(!x){var le=ne(oe),he=null;return we(function(pe){he=pe.getAttribute(le)}),he}}function ae(oe){we(function(le){for(var he=le.XMLDocument.documentElement.attributes,pe=he.length-1;pe>=0;pe--){var ve=he[pe];oe(le.getAttribute(ve.name),ve.name)}})}function ee(oe){var le=ne(oe);we(function(he){he.removeAttribute(le),he.save(y)})}function de(){we(function(oe){var le=oe.XMLDocument.documentElement.attributes;oe.load(y);for(var he=le.length-1;he>=0;he--)oe.removeAttribute(le[he].name);oe.save(y)})}var E=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ne(oe){return oe.replace(/^\d/,"___$&").replace(E,"___")}function re(){if(!ke||!ke.documentElement||!ke.documentElement.addBehavior)return null;var oe="script",le,he,pe;try{he=new ActiveXObject("htmlfile"),he.open(),he.write("<"+oe+">document.w=window</"+oe+'><iframe src="/favicon.ico"></iframe>'),he.close(),le=he.w.frames[0].document,pe=le.createElement("div")}catch(ve){pe=ke.createElement("div"),le=ke.body}return function(ve){var ce=[].slice.call(arguments,0);ce.unshift(pe),le.appendChild(pe),pe.addBehavior("#default#userData"),pe.load(y),ve.apply(this,ce),le.removeChild(pe)}}},65578:function(Nt,Dt,ze){var Be=ze(67039),mt=Be.Global;Nt.exports={name:"sessionStorage",read:ke,write:we,each:x,remove:z,clearAll:ie};function y(){return mt.sessionStorage}function ke(ae){return y().getItem(ae)}function we(ae,ee){return y().setItem(ae,ee)}function x(ae){for(var ee=y().length-1;ee>=0;ee--){var de=y().key(ee);ae(ke(de),de)}}function z(ae){return y().removeItem(ae)}function ie(){return y().clear()}},93314:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},73631:function(Nt){"use strict";Nt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(Nt){"use strict";Nt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},96908:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},57177:function(Nt){"use strict";Nt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},16722:function(Nt,Dt,ze){"use strict";ze.d(Dt,{Z:function(){return ie}});const Be=ae=>typeof ae=="object"&&ae!=null&&ae.nodeType===1,mt=(ae,ee)=>(!ee||ae!=="hidden")&&ae!=="visible"&&ae!=="clip",y=(ae,ee)=>{if(ae.clientHeight<ae.scrollHeight||ae.clientWidth<ae.scrollWidth){const de=getComputedStyle(ae,null);return mt(de.overflowY,ee)||mt(de.overflowX,ee)||(E=>{const ne=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(oe){return null}})(E);return!!ne&&(ne.clientHeight<E.scrollHeight||ne.clientWidth<E.scrollWidth)})(ae)}return!1},ke=(ae,ee,de,E,ne,re,oe,le)=>re<ae&&oe>ee||re>ae&&oe<ee?0:re<=ae&&le<=de||oe>=ee&&le>=de?re-ae-E:oe>ee&&le<de||re<ae&&le>de?oe-ee+ne:0,we=ae=>{const ee=ae.parentElement;return ee==null?ae.getRootNode().host||null:ee},x=(ae,ee)=>{var de,E,ne,re;if(typeof document=="undefined")return[];const{scrollMode:oe,block:le,inline:he,boundary:pe,skipOverflowHiddenElements:ve}=ee,ce=typeof pe=="function"?pe:et=>et!==pe;if(!Be(ae))throw new TypeError("Invalid target");const me=document.scrollingElement||document.documentElement,Ee=[];let Te=ae;for(;Be(Te)&&ce(Te);){if(Te=we(Te),Te===me){Ee.push(Te);break}Te!=null&&Te===document.body&&y(Te)&&!y(document.documentElement)||Te!=null&&y(Te,ve)&&Ee.push(Te)}const Re=(E=(de=window.visualViewport)==null?void 0:de.width)!=null?E:innerWidth,_e=(re=(ne=window.visualViewport)==null?void 0:ne.height)!=null?re:innerHeight,{scrollX:ye,scrollY:be}=window,{height:Se,width:Ie,top:Me,right:Ae,bottom:De,left:He}=ae.getBoundingClientRect(),{top:Ke,right:Ve,bottom:nt,left:Ne}=(et=>{const Xe=window.getComputedStyle(et);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(ae);let We=le==="start"||le==="nearest"?Me-Ke:le==="end"?De+nt:Me+Se/2-Ke+nt,$e=he==="center"?He+Ie/2-Ne+Ve:he==="end"?Ae+Ve:He-Ne;const rt=[];for(let et=0;et<Ee.length;et++){const Xe=Ee[et],{height:Ye,width:Ge,top:at,right:Qe,bottom:ft,left:ot}=Xe.getBoundingClientRect();if(oe==="if-needed"&&Me>=0&&He>=0&&De<=_e&&Ae<=Re&&(Xe===me&&!y(Xe)||Me>=at&&De<=ft&&He>=ot&&Ae<=Qe))return rt;const Je=getComputedStyle(Xe),Fe=parseInt(Je.borderLeftWidth,10),Pe=parseInt(Je.borderTopWidth,10),te=parseInt(Je.borderRightWidth,10),fe=parseInt(Je.borderBottomWidth,10);let Oe=0,Ue=0;const xe="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-Fe-te:0,Ce="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-Pe-fe:0,je="offsetWidth"in Xe?Xe.offsetWidth===0?0:Ge/Xe.offsetWidth:0,Ze="offsetHeight"in Xe?Xe.offsetHeight===0?0:Ye/Xe.offsetHeight:0;if(me===Xe)Oe=le==="start"?We:le==="end"?We-_e:le==="nearest"?ke(be,be+_e,_e,Pe,fe,be+We,be+We+Se,Se):We-_e/2,Ue=he==="start"?$e:he==="center"?$e-Re/2:he==="end"?$e-Re:ke(ye,ye+Re,Re,Fe,te,ye+$e,ye+$e+Ie,Ie),Oe=Math.max(0,Oe+be),Ue=Math.max(0,Ue+ye);else{Oe=le==="start"?We-at-Pe:le==="end"?We-ft+fe+Ce:le==="nearest"?ke(at,ft,Ye,Pe,fe+Ce,We,We+Se,Se):We-(at+Ye/2)+Ce/2,Ue=he==="start"?$e-ot-Fe:he==="center"?$e-(ot+Ge/2)+xe/2:he==="end"?$e-Qe+te+xe:ke(ot,Qe,Ge,Fe,te+xe,$e,$e+Ie,Ie);const{scrollLeft:tt,scrollTop:it}=Xe;Oe=Ze===0?0:Math.max(0,Math.min(it+Oe/Ze,Xe.scrollHeight-Ye/Ze+Ce)),Ue=je===0?0:Math.max(0,Math.min(tt+Ue/je,Xe.scrollWidth-Ge/je+xe)),We+=it-Oe,$e+=tt-Ue}rt.push({el:Xe,top:Oe,left:Ue})}return rt},z=ae=>ae===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(ae)?ae:{block:"start",inline:"nearest"};function ie(ae,ee){if(!ae.isConnected||!(ne=>{let re=ne;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(ae))return;const de=(ne=>{const re=window.getComputedStyle(ne);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(ae);if((ne=>typeof ne=="object"&&typeof ne.behavior=="function")(ee))return ee.behavior(x(ae,ee));const E=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:ne,top:re,left:oe}of x(ae,z(ee))){const le=re-de.top+de.bottom,he=oe-de.left+de.right;ne.scroll({top:le,left:he,behavior:E})}}}}]);