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

1168 lines
1.5 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[5382],{66543:function(){"use strict"},59598:function(){"use strict"},21697:function(lr,Gt){"use strict";Gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11081:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var lr={},Gt="5.0",Xe={},He=null,xt=!1,y=!1,De=null,xe=!1,x=null,z=null,oe=0;oe<arguments.length;oe++){var se=arguments[oe];if(se!==null)switch(typeof se){case"number":Gt=se.toFixed(1);break;case"string":se.match(new RegExp("^[0-9]\\.[0-9]+$"))?Gt=se:De=se;break;case"object":typeof se.is3D!="undefined"?He=se:Xe=se;break;case"boolean":xt=se,y=!0;break}}He===null&&(He={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Xe.material_id!==void 0&&!y&&(xt=!0)),De!==null&&Xe.id===void 0&&(Xe.id=De);var ee="",fe="",E=!1,ie=null,re=null,le=null,ce=!1,he=null,ge=null,be=null,me=null,ve=null;Xe.height!==void 0&&(Xe.height=Math.round(Xe.height)),Xe.width!==void 0&&(Xe.width=Math.round(Xe.width));var Ce=function(Ke){return parseFloat(Ke)>4?parseFloat(Ke):5};lr.setHTML5Codebase=function(Ke,$e){z=Ke,tt(Ke,$e)},lr.setJavaCodebase=lr.setJavaCodebaseVersion=lr.isCompiledInstalled=lr.setPreCompiledScriptPath=lr.setPreCompiledResourcePath=function(){},lr.setHTML5CodebaseVersion=function(Ke,$e){var Ge=parseFloat(Ke);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}x=Ke,We(Ke,$e)},lr.getHTML5CodebaseVersion=function(){return re},lr.getParameters=function(){return Xe},lr.setFontsCSSURL=function(Ke){me=Ke},lr.setGiacJSURL=function(Ke){},lr.setJNLPFile=function(Ke){ee=Ke},lr.setJNLPBaseDir=function(Ke){},lr.inject=function(){function Ke(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Ge=Xe.id,ot,Je=!1,ct=0;ct<arguments.length;ct++){var st=arguments[ct];typeof st=="string"?(st=st.toLowerCase(),st.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=st:Ge=arguments[ct]):typeof st=="boolean"?Je=st:st instanceof HTMLElement&&(ot=st)}Ye();function Ye(){if(!xe){setTimeout(Ye,200);return}$e=it($e);var Le=ot||document.getElementById(Ge);if(!Le){console.log("possibly bug on ajax loading? ");return}if(lr.removeExistingApplet(Le,!1),Xe.width===void 0&&Le.clientWidth&&(Xe.width=Le.clientWidth),Xe.height===void 0&&Le.clientHeight&&(Xe.height=Le.clientHeight),!(Xe.width&&Xe.height)&&$e==="html5"&&(delete Xe.width,delete Xe.height),ie=$e,$e==="screenshot")Ae(Le,Xe);else{var _e=!1;Xe.hasOwnProperty("playButton")&&Xe.playButton||Xe.hasOwnProperty("clickToLoad")&&Xe.clickToLoad?_e=!0:Xe.hasOwnProperty("playButtonAutoDecide")&&Xe.playButtonAutoDecide&&(_e=(!Te()||Ke())&&Me()),_e?(ie="screenshot",Ze(Le,Xe,Je,$e)):Ne(Le,Xe,Je)}}};function Te(){try{return window.self!==window.top}catch(Ke){return!0}}function Me(){return Xe.hasOwnProperty("screenshotGenerator")&&Xe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}lr.getViews=function(){return He},lr.isJavaInstalled=function(){return!1};var ke=function(Ke){var $e=function(ct){var st=JSON.parse(ct),Ye=function(te){return te.type=="G"||te.type=="E"},Le=st.elements?st.elements.filter(Ye)[0]:st;if(!Le||!Le.url){Ge();return}Xe.fileName=Le.url,de(Le.settings||{}),He.is3D=!0;var _e="https://www.geogebra.org/images/";lr.setPreviewImage(he||Le.previewUrl,_e+"GeoGebra_loading.png",_e+"applet_play.png"),Ke()},Ge=function(){Xe.onError&&Xe.onError(),rt("Error: Fetching material (id "+Xe.material_id+") failed.",Xe)},ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Je="/materials/"+Xe.material_id+"?scope=basic";ye("https://"+ot+"/api/proxy.php?path="+encodeURIComponent(Je),$e,Ge)};function de(Ke){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){Ke[Ge]=!!Ke[Ge]}),$e.forEach(function(Ge){Xe[Ge]===void 0&&Ke[Ge]!==void 0&&(Xe[Ge]=Ke[Ge])}),Xe.showToolBarHelp===void 0&&(Xe.showToolBarHelp=Xe.showToolBar)}function ye(Ke,$e,Ge){var ot=new XMLHttpRequest;ot.open("GET",Ke),ot.onload=function(){$e(ot.responseText)},ot.onerror=Ge,ot.send()}lr.isHTML5Installed=function(){return!0},lr.getLoadedAppletType=function(){return ie},lr.setPreviewImage=function(Ke,$e,Ge){he=Ke,ge=$e,be=Ge},lr.removeExistingApplet=function(Ke,$e){var Ge;typeof Ke=="string"&&(Ke=document.getElementById(Ke)),ie=null;var ot=null;for(Ge=0;Ge<Ke.childNodes.length;Ge++){var Je=Ke.childNodes[Ge],ct=Je.className;ct==="applet_screenshot"?$e?(Je.style.display="block",ie="screenshot"):Je.style.display="none":ct!=="applet_scaler prerender"&&(Ke.removeChild(Je),ot=ct&&ct.indexOf("appletParameters")!=-1?Je.id:null,Ge--)}var st=Xe.id!==void 0?Xe.id:ot,Ye=window[st];Ye&&typeof Ye.getBase64=="function"&&(Ye.remove(),window[st]=null)},lr.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ke=lr.getAppletObject();return Ke&&typeof Ke.recalculateEnvironments=="function"?(Ke.recalculateEnvironments(),!0):!1},lr.startAnimation=function(){var Ke=lr.getAppletObject();return Ke&&typeof Ke.startAnimation=="function"?(Ke.startAnimation(),!0):!1},lr.stopAnimation=function(){var Ke=lr.getAppletObject();return Ke&&typeof Ke.stopAnimation=="function"?(Ke.stopAnimation(),!0):!1},lr.getAppletObject=function(){var Ke=Xe.id!==void 0?Xe.id:"ggbApplet";return window[Ke]},lr.resize=function(){};var Se=function(Ke,$e,Ge){var ot=document.createElement("param");ot.setAttribute("name",$e),ot.setAttribute("value",Ge),Ke.appendChild(ot)},Oe=function(Ke){return Ke&&Ke!=="false"},Ne=function(Ke,$e,Ge){Ce(re)<=4.2&&(Ge=!0);var ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!ce)&&(ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Je=document.createElement("div");Je.classList.add("appletParameters","notranslate");var ct=$e.width,st=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(Ce(re)<=4.4)Oe($e.showToolBar)&&($e.height-=7),Oe($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Oe($e.showToolBar)&&($e.width=605,ct=605);else{var Ye=100;(Oe($e.showToolBar)||Oe($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),Ye=Oe($e.showMenuBar)?245:155),ct<Ye&&($e.width=Ye,ct=Ye)}Je.style.border="none",Je.style.display="inline-block";for(var Le in $e)$e.hasOwnProperty(Le)&&Le!=="appletOnLoad"&&Je.setAttribute("data-param-"+Le,$e[Le]);me&&Je.setAttribute("data-param-fontscssurl",me),lr.resize=function(){GGBAppletUtils.responsiveResize(Ke,$e)},window.addEventListener("resize",function(lt){lr.resize()});var _e=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Ge&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||Je.setAttribute("data-param-showSplash","false");var te=Ke.querySelector(".applet_scaler.prerender"),ue=te!==null;if(ue)var Re=te.querySelector(".ggb_preview");else{var Re=Ve(ct,st,$e.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=ct+"px",te.style.height=st+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Ce(re)>=5?($e.appletOnLoad=function(lt){var ht=Ke.querySelector(".ggb_preview");ht&&ht.parentNode.removeChild(ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),_e(lt)},ue||te.appendChild(Re)):Je.appendChild(Re),te.appendChild(Je),ue||Ke.appendChild(te),setTimeout(function(){lr.resize()},1)}else{var Fe=document.createElement("div");Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.appendChild(Je),Ke.appendChild(Fe),$e.appletOnLoad=function(lt){lr.resize(),_e(lt)}}function we(lt,ht){ht&&typeof ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,ht.appletOnLoad):renderGGBElement(lt),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ht)}function Ee(lt,ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(St){we(St.article,St.params)}),html5AppletsToProcess=null)},Ce(re)<5&&(lt.className+=" geogebraweb")):we(lt,ht)}if(ot){scriptLoadStarted=!0;for(var Pe=0;Pe<Je.childNodes.length;Pe++){var Ue=Je.childNodes[Pe].tagName;Ue==="TABLE"&&(Je.removeChild(Je.childNodes[Pe]),Pe--)}if(ggbHTML5LoadedScript!==null){var qe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');qe!=null&&qe.parentNode.removeChild(qe)}var nt=document.createElement("script"),dt=function(){Ee(Je,$e)};nt.src=fe+le,ggbHTML5LoadedCodebaseIsWebSimple=ce,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=nt.src,rt("GeoGebra HTML5 codebase loaded: '"+fe+"'.",$e),!z&&(!x||x=="5.0")?(ce?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dt()):fe.requirejs?__webpack_require__.e(981).then(function(){var lt=[__webpack_require__(60981)];dt.apply(null,lt)}.bind(this)).catch(__webpack_require__.oe):(nt.onload=dt,Ke.appendChild(nt))}else Ee(Je,$e);$e.height=st,$e.width=ct},Ae=function(Ke,$e,Ge){var ot=Ve($e.width,$e.height,$e.borderColor,Ge),Je=document.createElement("div");Je.style.position="relative",Je.style.display="block",Je.style.width=$e.width+"px",Je.style.height=$e.height+"px",Je.className="applet_screenshot applet_scaler"+(Ge?" applet_screenshot_play":""),Je.appendChild(ot);var ct=GGBAppletUtils.getScale($e,Ke,Ge);Ge?(Ke.appendChild(ze()),window.GGBT_wsf_view||(Ke.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Je,"66%"),Ke.appendChild(Je),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement(Je,ct),Je.style.width=$e.width+"px",Je.style.height=$e.height+"px",Je.parentNode.style.width=$e.width*ct+"px",Je.parentNode.style.height=$e.height*ct+"px"),lr.resize=function(){je(Ke,ot,Je,Ge)},window.addEventListener("resize",function(st){lr.resize()}),lr.resize()};function je(Ke,$e,Ge,ot){if(Ke.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ke.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ke)}var Je=GGBAppletUtils.getScale(Xe,Ke,ot);Ge.parentNode!==null&&(!isNaN(Je)&&Je!==1?(GGBAppletUtils.scaleElement(Ge,Je),Ge.parentNode.style.width=Xe.width*Je+"px",Ge.parentNode.style.height=Xe.height*Je+"px"):(GGBAppletUtils.scaleElement(Ge,1),Ge.parentNode.style.width=Xe.width+"px",Ge.parentNode.style.height=Xe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ke),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}lr.onExitFullscreen=function(Ke,$e){$e.appendChild(Ke)};var Ze=function(Ke,$e,Ge,ot){Ae(Ke,$e,!0);for(var Je=function(){var Ye=[];for(st=0;st<Ke.childNodes.length;st++)Ye.push(Ke.childNodes[st]);if(window.GGBT_wsf_view){var Le=window.GGBT_wsf_view.renderFullScreen(Ke,$e.id),_e=document.getElementById("fullscreencontainer"),te=jQuery(Ke).find(".fullscreencontent");te.length>0?(Le.remove(),te.attr("id","fullscreencontent").show(),jQuery(_e).append(te),window.dispatchEvent(new Event("resize"))):Ne(Le,$e,!1),window.GGBT_wsf_view.launchFullScreen(_e)}else ie=ot,Ne(Ke,$e,!1);if(!window.GGBT_wsf_view)for(st=0;st<Ye.length;st++)Ke.removeChild(Ye[st])},ct=Ke.getElementsByClassName("ggb_preview_play"),st=0;st<ct.length;st++)ct[st].addEventListener("click",Je,!1),ct[st].addEventListener("ontouchstart",Je,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ke),Me()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ze=function(){var Ke=document.createElement("div");if(Ke.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=$e:Ge.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Ge)}return Ke},Ve=function(Ke,$e,Ge,ot){var Je=document.createElement("div");Je.className="ggb_preview",Je.style.position="absolute",Je.style.zIndex="90",Je.style.width=Ke-2+"px",Je.style.height=$e-2+"px",Je.style.top="0px",Je.style.left="0px",Je.style.overflow="hidden",Je.style.backgroundColor="white";var ct="lightgrey";Ge!==void 0&&(Ge==="none"?ct="transparent":ct=Ge),Je.style.border="1px solid "+ct;var st=document.createElement("img");if(st.style.position="relative",st.style.zIndex="1000",st.style.top="-1px",st.style.left="-1px",he!==null&&st.setAttribute("src",he),st.style.opacity=.7,ge!==null){var Ye,Le,_e;if(!ot){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,st.style.opacity=.3,Le=360,Le>Ke/4*3&&(Le=Ke/4*3),_e=Le/5.8,Ye.setAttribute("src",ge),Ye.setAttribute("width",Le),Ye.setAttribute("height",_e);var te=(Ke-Le)/2,ue=($e-_e)/2;Ye.style.left=te+"px",Ye.style.top=ue+"px",Je.appendChild(Ye)}}return Je.appendChild(st),Je},it=function(Ke){return Ke=Ke.toLowerCase(),Ke==="html5"||Ke==="screenshot"?Ke:"html5"},Ie=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Ke,$e){if(re=Ke,$e){tt(re,!0);return}var Ge=!xt;if(Ge){var ot=Ce(re);!isNaN(ot)&&ot<4.4&&(Ge=!1)}var Je,ct;window.location.protocol.substr(0,4)==="http"?Je=window.location.protocol:Je="http:";var st=re.indexOf("//");st>0?ct=re:st===0?ct=Je+re:ct="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in Ie)if(re.slice(Ie[Ye].length*-1)===Ie[Ye]||re.slice((Ie[Ye].length+1)*-1)===Ie[Ye]+"/"){tt(ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!He.is3D&&!He.AV&&!He.SV&&!He.CV&&!He.EV2&&!He.CP&&!He.PC&&!He.DA&&!He.FI&&!He.PV&&!Oe(Xe.showToolBar)&&!Oe(Xe.showMenuBar)&&!Oe(Xe.showAlgebraInput)&&!Oe(Xe.enableRightClick)&&(!Xe.appName||Xe.appName=="classic")?ct+="webSimple/":ct+="web3d/",tt(ct,!1)},tt=function(Ke,$e){if(Ke.requirejs){fe=Ke;return}Ke.slice(-1)!=="/"&&(Ke+="/"),fe=Ke,$e===null&&($e=Ke.indexOf("http")===-1),E=$e,le="web.nocache.js",ce=!1;var Ge=fe.split("/");Ge.length>1&&(!$e&&Ge[Ge.length-2]==="webSimple"?(le="webSimple.nocache.js",ce=!0):Ie.indexOf(Ge[Ge.length-2])>=0&&(le=Ge[Ge.length-2]+".nocache.js")),Ge=Ke.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 ot=parseFloat(re);ot!==NaN&&ot<5&&Ke.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead."),We("5.0",$e))},rt=function(Ke,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(Ke)};Xe.material_id!==void 0?ke(et):et();function et(){var Ke=Gt;x!==null?Ke=x:parseFloat(Ke)<5&&(Ke="5.0"),We(Ke,!1),z!==null&&tt(z,E),xe=!0}return lr},GGBAppletUtils=function(){"use strict";function lr(){return window.GGBT_wsf_edit!==void 0}function Gt(xe,x){x!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+x+","+x+")",xe.style.webkitTransform="scale("+x+","+x+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function Xe(xe,x,z,oe,se,ee){var fe=null;if(ee!=null&&ee!="")for(var E=xe.parentNode;E!=null;)if((" "+E.className+" ").indexOf(" "+ee+" ")>-1){fe=E;break}else E=E.parentNode;var ie=0,re=0,le=0,ce=0,he=0,ge=0,be=0;if(fe)ie=fe.offsetWidth,re=Math.max(oe?fe.offsetWidth:0,fe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ie=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),le=ie):(ie=window.innerWidth,re=window.innerHeight,le=window.innerWidth),xe){var me=xe.getBoundingClientRect();me.left>0&&me.left<=ie&&(se===void 0||!se)&&(document.dir==="rtl"?(he=ie-me.width-me.left,ge=le<=480?10:30):(ge=me.left,he=le<=480?10:30),ce=ge+he)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ve=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce=40,be=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ce=0,be=40)}}return xe&&((z===void 0||!z)&&x>0&&x+ce<ie?ie=x:ie-=ce,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(re-=be)),{width:ie,height:re}}function He(xe,x,z,oe,se){if(xe.isScreenshoGenerator)return 1;var ee=oe!==void 0&&oe,fe=xe.noScaleMargin!=null&&xe.noScaleMargin,E=function(ve){return ve&&ve!=="false"},ie=E(xe.autoHeight),re=Xe(x,xe.width,z,ie,ee&&window.GGBT_wsf_view||fe,se),le=parseInt(re.width),ce=xe.width,he=xe.height;if(ce===void 0){var ge=x.querySelector(".appletParameters");ge&&(ce=ge.offsetWidth,he=ge.offsetHeight)}var be=le/ce,me=ee?1:re.height/he;return z!==void 0&&!z&&(be=Math.min(1,be),me=Math.min(1,me)),Math.min(be,me)}function xt(xe,x,z){var oe=1,se,ee=!1;if(xe.hasOwnProperty("allowUpscale")&&(ee=xe.allowUpscale),xe.hasOwnProperty("scale")&&(oe=parseFloat(xe.scale),(isNaN(oe)||oe===null||oe===0)&&(oe=1),oe>1&&(ee=!0)),x&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))se=He(xe,x,ee,z,xe.scaleContainerClass);else return oe;return ee&&(!xe.hasOwnProperty("scale")||oe===1)?se:Math.min(oe,se)}function y(xe){var x=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),oe=xe.getBoundingClientRect(),se=(x-oe.width)/2,ee=(z-oe.height)/2;ee<0&&(ee=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(se<40?xe.style.left="40px":xe.style.left=se+"px",xe.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?xe.style.top="40px":xe.style.top=ee+"px",xe.style.left=se+"px")}function De(xe,x){var z=xe.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(xe)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var oe=xt(x,xe);lr()&&z.setAttribute("data-param-scale",oe);for(var se=null,ee=0;ee<xe.childNodes.length;ee++)if(xe.childNodes[ee].className!==void 0&&xe.childNodes[ee].className.match(/^applet_scaler/)){se=xe.childNodes[ee];break}if(se!==null&&se.querySelector(".noscale")!==null)return;var fe=x.id!==void 0?x.id:"ggbApplet",E=window[fe];(E==null||!E.recalculateEnvironments)&&se!==null&&!se.className.match(/fullscreen/)&&(se.parentNode.style.transform="",!isNaN(oe)&&oe!==1?(se.parentNode.style.width=x.width*oe+"px",se.parentNode.style.height=x.height*oe+"px",Gt(se,oe)):(Gt(se,1),se.parentNode.style.width=x.width+"px",se.parentNode.style.height=x.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:lr,positionCenter:y,getScale:xt,scaleElement:Gt}}();__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 lr=n.location.search;return lr.indexOf(J)!=-1||lr.indexOf(K)!=-1}function q(lr,Gt){}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(lr){var Gt=s[L].bindings;s[L].bindings=function(){for(var Xe=Gt?Gt():{},He=lr[webModule.__softPermutationId],xt=O;xt<He.length;xt++){var y=He[xt];Xe[y[O]]=y[P]}return Xe}};var t;function u(){return v(),t}function v(){if(!t){var lr=o.createElement(Q);if(lr.id=L,lr.style.cssText=R+S,lr.tabIndex=-1,o.body.appendChild(lr),t=lr.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Gt=document.compatMode==U?V:W;t.write(Gt+X),t.close()}}}function w(lr){function Gt(He){function xt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=xt();if(y){He();return}function De(){if(!y){if(!xt())return;y=!0,He(),o.removeEventListener&&o.removeEventListener(Z,De,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,De,!1);var xe=setInterval(function(){De()},$)}function Xe(He){var xt=u(),y=xt.body,De=xt.createElement(_);De.language=ab,De.crossOrigin=W,De.src=He,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+He))}),y.appendChild(De)}Gt(function(){Xe(lr)})}webModule.__startLoadingFragment=function(lr){return C(lr)},webModule.__installRunAsyncCode=function(lr){var Gt=u(),Xe=Gt.body,He=Gt.createElement(_);He.language=ab,He.text=lr,Xe.appendChild(He),Xe.removeChild(He)};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(lr){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(lr){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(lr){var Gt=c[lr];return Gt==null?null:Gt},r=d,webModule.__errFn=e}function B(){function lr(xe){var x=xe.lastIndexOf(rb);x==-1&&(x=xe.length);var z=xe.indexOf(sb);z==-1&&(z=xe.length);var oe=xe.lastIndexOf(tb,Math.min(z,x));return oe>=O?xe.substring(O,oe+P):W}function Gt(xe){if(!xe.match(/^\w+:\/\//)){var x=o.createElement(ub);x.src=xe+vb,xe=lr(x.src)}return xe}function Xe(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function He(){for(var xe=o.getElementsByTagName(_),x=O;x<xe.length;++x)if(xe[x].src.indexOf(xb)!=-1)return lr(xe[x].src);return W}function xt(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function y(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var De=Xe();return De==W&&(De=He()),De==W&&(De=xt()),De==W&&y()&&(De=lr(o.location.href)),De=Gt(De),De}function C(lr){return lr.match(/^\//)||lr.match(/^[a-zA-Z]+:\/\//)?lr:webModule.__moduleBase+lr}function D(){var lr=[],Gt=O,Xe=[],He=[];function xt(xe){var x=He[xe](),z=Xe[xe];if(x in z)return x;var oe=[];for(var se in z)oe[z[se]]=se;throw r&&r(xe,oe,x),null}if(__gwt_isKnownPropertyValue=function(xe,x){return x in Xe[xe]},webModule.__getPropMap=function(){var xe={};for(var x in Xe)Xe.hasOwnProperty(x)&&(xe[x]=xt(x));return xe},webModule.__computePropValue=xt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var De=y.indexOf(Db);De!=-1&&(Gt=parseInt(y.substring(De+P),$),y=y.substring(O,De))}catch(xe){}return webModule.__softPermutationId=Gt,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(lr,Gt,Xe){"use strict";Xe.d(Gt,{Ax:function(){return De},Ds:function(){return xe},KI:function(){return z},SI:function(){return y},f1:function(){return xt}});var He=Xe(90524);function xt(oe){let se=!0;if(oe.length>0){for(let ee=0;ee<oe.length;ee++)if(oe[ee].compile_success==0||!oe[ee].compile_success){se=!1;break}}else se=!1;return se}function y(oe,se=""){let ee=[];for(let fe=0;fe<oe.length;fe++){let E=oe[fe],ie=se?`${se}/${E.name}`:`${E.name}`;ee.push({title:E.name,type:E.type,isLeaf:E.type!=="tree",key:ie})}return ee}function De(oe,se,ee){for(let fe=0;fe<oe.length;fe++){let E=oe[fe];if(E.key===se){E.children=ee;break}E.children&&De(E.children,se,ee)}return oe}function xe(oe,se,ee){let fe;return function(){let E=this,ie=arguments,re=function(){fe=null,ee||oe.apply(E,ie)},le=ee&&!fe;clearTimeout(fe),fe=setTimeout(re,se),le&&oe.apply(E,ie)}}const x=!0,z=He.Z.API_SERVER},6077:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return fe}});var He=Xe(59301),xt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Xe(92310),De=Xe.n(y),xe=Xe(29787),x=Xe(2859),z=Xe(82093),oe=Xe(49661),se=(E,ie,re)=>new Promise((le,ce)=>{var he=me=>{try{be(re.next(me))}catch(ve){ce(ve)}},ge=me=>{try{be(re.throw(me))}catch(ve){ce(ve)}},be=me=>me.done?le(me.value):Promise.resolve(me.value).then(he,ge);be((re=re.apply(E,ie)).next())}),fe=({data:E,className:ie,fullWidth:re,style:le={},onClose:ce,onOk:he,showFullTools:ge,noAssociationId:be})=>{const me=(0,He.useRef)(null),ve=(0,He.useRef)(null),Ce=(0,He.useRef)(null),Te=(0,He.useRef)(null),[Me,ke]=(0,He.useState)(!1),[de,ye]=(0,He.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,He.useEffect)(()=>(Ce.current||(Ce.current=document.createElement("style"),document.head.appendChild(Ce.current)),E!=null&&E.visible?(document.body.setAttribute("data-custom","y-hidden"),Ce.current.innerHTML=" html { overflow-y: hidden; }",E!=null&&E.src&&Se()):(document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null)),()=>{document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null)}),[E==null?void 0:E.visible]);const Se=()=>se(void 0,null,function*(){ke(!0),ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const je=yield(0,oe.ZJ)(E==null?void 0:E.src);me.current.src="",me.current.src=je,me.current.onload=function(){Ae()},ke(!1),ye("")}),Oe=je=>se(void 0,null,function*(){ke(!0),ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ze=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:E.title,file:je.dataUrl}});Ze!=null&&Ze.id&&!be?(yield(0,z.ZP)(`/api/attachments/${E.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ze==null?void 0:Ze.id,settings:JSON.stringify(je.state)}})).status===0&&he():Ze!=null&&Ze.id&&he(Ze),ke(!1),ye("")}),Ne=()=>{const je=document.querySelector('a[href="https://markerjs.com/"]');je&&je.parentNode&&(je.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(ze=>{const Ve=document.querySelector(ze.name);Ve&&Ve.setAttribute("title",ze.title)})},Ae=()=>{ve.current=new x.hP(me.current),ve.current.targetRoot=Te.current,ve.current.addEventListener("render",Oe),ve.current.addEventListener("beforeclose",ce),ge&&(ve.current.availableMarkerTypes=ve.current.ALL_MARKER_TYPES,ve.current.uiStyleSettings.redoButtonVisible=!0,ve.current.uiStyleSettings.notesButtonVisible=!0,ve.current.uiStyleSettings.zoomButtonVisible=!0,ve.current.uiStyleSettings.zoomOutButtonVisible=!0,ve.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ve.current.uiStyleSettings,ve.current.show(),E!=null&&E.snapshotData&&ve.current.restoreState(E.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ne()},300)};return He.createElement(He.Fragment,null,(E==null?void 0:E.visible)&&He.createElement(xe.Z,{spinning:Me,tip:de,style:{position:"absolute",width:"100vw"}},He.createElement("div",{ref:Te,className:De()(xt.imageDimensions,ie,re?xt.fullWidth:""),style:le},He.createElement("img",{className:xt.img,ref:me}))))}},88615:function(lr,Gt,Xe){"use strict";var He=Xe(59301),xt=Xe(77019),y=Xe(5269),De=Xe(20554),xe=Xe(99571),x=Xe(38394),z=Xe(21697),oe=Xe(48136),se=Xe(59301);const ee=(0,He.forwardRef)(({callback:fe,showSaveButton:E,value:ie=""},re)=>{const le=(0,He.useRef)(),ce=[{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}`}]}]}],ge=ve=>{le.current.setValue(le.current.getValue()+" "+ve.value+" ")},be=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:se.createElement(xt.Z,{className:z.Z.lists,gutter:[10,10]},ce.map((ve,Ce)=>se.createElement(y.Z,{flex:"110px",className:z.Z.item},se.createElement("div",null,se.createElement(x.Z,{value:`$$${ve.value}$$`}),ve.name),se.createElement("div",{className:z.Z.children},ve.children.map((Te,Me)=>se.createElement("div",{key:Me},se.createElement("h1",null,Te.name),se.createElement(xt.Z,{gutter:[10,10]},Te.data.map((ke,de)=>se.createElement(y.Z,{key:de,onClick:()=>ge(ke),className:z.Z.diamond},se.createElement(x.Z,{value:"`$$"+ke.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:se.createElement(xt.Z,{className:z.Z.lists,gutter:[10,10]},he.map((ve,Ce)=>se.createElement(y.Z,{flex:"110px",className:z.Z.item},se.createElement("div",null,se.createElement(x.Z,{value:"`$$"+ve.value+"$$`"}),ve.name),se.createElement("div",{className:z.Z.children},ve.children.map((Te,Me)=>se.createElement("div",{key:Me},Te.name&&se.createElement("h1",null,Te.name),se.createElement(xt.Z,{gutter:[10,10]},Te.data.map((ke,de)=>se.createElement(y.Z,{key:de,onClick:()=>ge(ke),className:z.Z.diamond},se.createElement(x.Z,{value:"`$$"+ke.value+"$$`"}))))))))))}],me=()=>{var ve=document.createElement("div");ve.innerHTML=le.current.getValue();var Ce=ve.innerText;return fe&&fe(Ce),Ce};return(0,He.useImperativeHandle)(re,()=>({getData:me})),se.createElement("div",{className:z.Z.mathWrap},se.createElement(De.default,{defaultActiveKey:"1",items:be}),se.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:le,style:{width:800,marginTop:30,fontSize:18}},ie||""),E&&se.createElement("div",{className:z.Z.button},se.createElement(xe.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Gt.Z=ee},57884:function(lr,Gt,Xe){"use strict";var He=Xe(59301),xt=Xe(93314),y=Xe(99571),De=Object.defineProperty,xe=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ee=(re,le,ce)=>le in re?De(re,le,{enumerable:!0,configurable:!0,writable:!0,value:ce}):re[le]=ce,fe=(re,le)=>{for(var ce in le||(le={}))oe.call(le,ce)&&ee(re,ce,le[ce]);if(z)for(var ce of z(le))se.call(le,ce)&&ee(re,ce,le[ce]);return re},E=(re,le)=>xe(re,x(le));const ie=({img:re,buttonProps:le={},styles:ce={},customText:he,ButtonText:ge,ButtonClick:be,Buttonclass:me,ButtonTwo:ve,imgStyles:Ce,loading:Te=!1,className:Me=""})=>He.createElement("section",{className:`tc animated fadeIn ${Me}`,style:fe({color:"#999",margin:"100px auto",visibility:Te?"hidden":"visible"},ce)},He.createElement("img",{src:re||xt,style:E(fe({},Ce),{pointerEvents:"none",userSelect:"none"})}),He.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ge&&He.createElement(y.ZP,fe({className:me,onClick:be},le),ge),ve&&ve);Gt.Z=ie},41550:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return me}});var He=Xe(59301),xt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=Xe(99571),De=Xe(70557),xe=Xe(51124),x=Xe(25399),z=Xe(49661),oe=Xe(72664),se=Xe(57884),ee=Xe(90524),fe=Xe(14794),E=Xe(59301),ie=Object.defineProperty,re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,he=(ve,Ce,Te)=>Ce in ve?ie(ve,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ve[Ce]=Te,ge=(ve,Ce)=>{for(var Te in Ce||(Ce={}))le.call(Ce,Te)&&he(ve,Te,Ce[Te]);if(re)for(var Te of re(Ce))ce.call(Ce,Te)&&he(ve,Te,Ce[Te]);return ve},be=(ve,Ce,Te)=>new Promise((Me,ke)=>{var de=Oe=>{try{Se(Te.next(Oe))}catch(Ne){ke(Ne)}},ye=Oe=>{try{Se(Te.throw(Oe))}catch(Ne){ke(Ne)}},Se=Oe=>Oe.done?Me(Oe.value):Promise.resolve(Oe.value).then(de,ye);Se((Te=Te.apply(ve,Ce)).next())}),me=({editOffice:ve="view",data:Ce,issaver:Te,onSaver:Me,theme:ke,type:de,filename:ye,monacoEditor:Se,className:Oe,style:Ne,close:Ae,onClose:je,hasMask:Ze,disabledDownload:ze,onImgDimensions:Ve,showNodata:it,recordInfo:Ie})=>{const[We,tt]=(0,He.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,He.useState)(""),[Ke,$e]=(0,He.useState)(),Ge=window.ENV==="build"?"/react/build":"",ot=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ct=10*(1024*1024),st=(0,He.useRef)();Ce!=null&&Ce.startsWith("/api")&&de!=="txt"&&(Ce=ee.Z.API_SERVER+Ce);const Ye=Re=>Re.substring(Re.lastIndexOf("/")+1).split(".").pop();ye&&Se&&(Se.filename=ye),(0,He.useEffect)(()=>{var Re,Fe;const we=(Fe=(Re=document.cookie)==null?void 0:Re.replace(/\s/g,""))==null?void 0:Fe.split(";");we==null||we.map(Ee=>{let Pe=Ee.split("=");Pe[0]==="_educoder_session"&&et(Pe[1])})},[]),(0,He.useEffect)(()=>{de==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?$e({url:Ce,fileType:Ye(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):_e())},[de,Ce]);function Le(Re){return be(this,null,function*(){Re.data.type==="pdfdata"&&(Me(Re.data.data),window.removeEventListener("message",Le,!1)),console.log("mess---:",Re.data)})}const _e=()=>be(void 0,null,function*(){console.log("data:",Ce);let Re=Ce;Ce.startsWith("http")||(Re=location.origin+Re);let Fe=new URL(Re).pathname.split("/").pop();const we=yield(0,oe.gJ)({attachment_id:Fe});we.url=ot+we.url,$e(we)}),te=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){ue();return}(0,z.Sv)(ye||"educoder",Ce,ye)},ue=()=>{Ie&&(0,fe.fc)({id:Ie==null?void 0:Ie.id,watch_type:1,course_id:Ie==null?void 0:Ie.course_id}),(0,z.Nd)(ye||"educoder",decodeURIComponent(Ce))};return E.createElement("div",{style:ge({},Ne||{}),className:`${Ze&&xt.bgBlack} ${de?xt.wrp:"hide"}`},Ae&&E.createElement("div",{className:xt.close,ref:st},!!Ve&&E.createElement(x.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},E.createElement("span",{onClick:()=>{je(),Ve()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!ze&&E.createElement(x.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},E.createElement("span",{onClick:ue},E.createElement("i",{className:"icon-quxiaozhiding"}))),Te&&E.createElement(x.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>st.current},E.createElement("span",{className:"",onClick:()=>{const Re=document.getElementById("pdfiframe");window.addEventListener("message",Le,!1),setTimeout(()=>{Re.contentWindow.postMessage("getData","*")},300)}},E.createElement("i",{className:"icon-baocun"}))),E.createElement(x.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},E.createElement("span",{className:"",onClick:()=>{je()}},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${xt[Oe]} ${Oe} ${xt.monaco} ${de==="txt"?"show":"hide"}`},de==="txt"&&E.createElement(E.Fragment,null,E.createElement(xe.ZP,ge({},Se)))),de==="audio"&&E.createElement("audio",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ce}`,autoPlay:!0}),de==="video"&&E.createElement(E.Fragment,null,(Ce==null?void 0:Ce.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${Ce}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ce}`,autoPlay:!0})),de==="office"&&Ke&&E.createElement("iframe",{src:`${Ge}/office.html?key=${Ke.key}&url=${btoa(Ke.url)}&callbackUrl=${ot+(Ke.callbackUrl||"")}&fileType=${Ke.fileType}&title=${Ke.title||""}&model=${ve}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!ze}`}),de==="html"&&E.createElement("iframe",{src:Ce+"&disposition=inline"}),de==="pdf"&&E.createElement("iframe",{id:"pdfiframe",src:`${Ge}/js/pdfview/index.html?filename=${ye||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!ze}&model=${ve}`}),de==="image"&&E.createElement("img",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ce}`}),(de==="other"||de==="download")&&E.createElement(E.Fragment,null,it?E.createElement(se.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:ze},"\u4E0B\u8F7D")}):E.createElement(y.ZP,{type:"primary",size:"middle",onClick:te,disabled:ze},E.createElement(De.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),de==="flowChart"&&E.createElement("div",{className:"embed"},E.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ce||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},38394:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{z:function(){return Se},Z:function(){return Oe}});var He=Xe(59301),xt=Xe(88831),y=Xe(90290),De=Xe(64018),xe=Xe(39394),x=Xe(90524),z=Xe(49661),oe=Xe(15342),se=Xe(77736),ee=Xe(99571),fe=Xe(1012),E=Xe(41550),ie=Xe(59301),le=({html:Ne})=>{const Ae=(0,He.useRef)(null),je=(0,He.useRef)(null),Ze=`.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,He.useEffect)(()=>{const ze=Ae.current.attachShadow({mode:"open"});je.current=document.createElement("div"),je.current.className="markdown-body",je.current.innerHTML=Ne,ze.appendChild(je.current);const Ve=document.createElement("style");return Ve.textContent=Ze,ze.appendChild(Ve),()=>{ze.innerHTML=""}},[]),(0,He.useEffect)(()=>{je.current&&(je.current.innerHTML=Ne)},[Ne]),ie.createElement("div",{ref:Ae})};function ce(Ne){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"],je=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Ne.replace(je,"").trim()}var he={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ge=Object.defineProperty,be=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ce=(Ne,Ae,je)=>Ae in Ne?ge(Ne,Ae,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ne[Ae]=je,Te=(Ne,Ae)=>{for(var je in Ae||(Ae={}))me.call(Ae,je)&&Ce(Ne,je,Ae[je]);if(be)for(var je of be(Ae))ve.call(Ae,je)&&Ce(Ne,je,Ae[je]);return Ne};const Me="@\u2581\u2581@",ke="@\u2581@",de=/<pre[^>]*>/g;function ye(Ne){let Ae=document.createElement("div");return Ae.innerHTML=Ne,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Se=(Ne,Ae)=>{Ne=Ne||"";const je=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\(\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?Ne.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(je,(it,Ie,We,tt,rt,et,Ke)=>{const $e=Ie||tt||et,Ge=We||rt||Ke||"?";return x.Z.API_SERVER+"/api/attachments/"+$e+Ge+"&t="+(0,z.Jn)($e,Date.now())+(it.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ne=Ne.replace(Ve,(it,Ie,We,tt,rt,et,Ke)=>{const $e=Ie||tt||et,Ge=We||rt||Ke||"?";return x.Z.API_SERVER+"/attachments/download/"+$e+Ge+"&t="+(0,z.Jn)($e,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(je,(it,Ie,We,tt,rt,et,Ke)=>{const $e=Ie||tt||et,Ge=We||rt||Ke||"?";return x.Z.API_SERVER+"/api/attachments/"+$e+Ge+"&t="+(0,z.Jn)($e,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Ze,(it,Ie,We,tt,rt)=>{const et=Ie||tt,Ke=We||rt||"";return'"'+x.Z.API_SERVER+"/api/attachments/"+et+Ke+et+Ke+"&t="+(0,z.Jn)(et,Date.now())}).replace(ze,(it,Ie,We,tt,rt)=>{const et=Ie||tt,Ke=We||rt||"";return"("+x.Z.API_SERVER+"/files/uploads/"+et+Ke+et+Ke+"&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,`
`),Ne)};var Oe=({value:Ne="",edit:Ae=!1,className:je,showTextOnly:Ze,showLines:ze,style:Ve={},stylesPrev:it={},highlightKeywords:Ie,showProgramFill:We,isProgramFill:tt,disabledFill:rt=!1,programFillValue:et,openEditor:Ke=()=>{},onFillChange:$e=Je=>{},onFillBlur:Ge=()=>{},onFillFocus:ot=()=>{}})=>{let Je=ce(String(Ne||""));const ct=(0,He.useRef)(),st=(0,He.useRef)(),[Ye,Le]=(0,He.useState)(""),[_e,te]=(0,He.useState)("office"),[ue,Re]=(0,He.useState)([]),Fe=(0,He.useRef)("a"+(0,fe.Z)()),we={},Ee=pt=>/<style[\s\S]*?>/i.test(pt||""),Pe=(pt,Ot,At)=>{const Nt=document.createElement(pt===ke?"input":"textarea");Nt.style.width="100%",Nt.style.height=pt===ke?"40px":"151px",Nt.rows=5,Nt.spellcheck=!1,Nt.name="edu-program-fill",Nt.placeholder="\u8BF7\u8F93\u5165",Nt.dataset.id=Ot;const Ht=Object.keys(we).length;return we[Ht]=Nt,`<span class="edu-program-fill-wrap ${pt===ke?"":"show"}" style="width:${pt===ke?"600px":"100%"}" title=${At||""}><span>${Nt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ue(pt){return pt=pt.replace(/!\[.*?\]\(.*?\)/g,""),pt=pt.replace(/\[.*?\]\(.*?\)/g,""),pt=pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),pt=pt.replace(/<embed.*?>/g,""),pt=pt.replace(/<img.*?>/g,""),pt=pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),pt=pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),pt=pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),pt=pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),pt}const qe=pt=>!Ze&&Ee(Je)?pt:pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ot,At){let Nt=At.replace(/(\n|\r)/g,"").split("}"),Ht=[];return Nt.map(gr=>{gr!=""&&Ht.push(`.${Fe.current} ${gr}`)}),`<style>${Ht.join("}")}</style>`}),nt=(0,He.useMemo)(()=>{try{const Nt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,gr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,$t=/\(\/attachments\/download\//g;Je=Je.replace($t,"("+x.Z.API_SERVER+"/attachments/download/").replace(Nt,"("+x.Z.API_SERVER+"/api/attachments/").replace(Ht,'"'+x.Z.API_SERVER+"/api/attachments/").replace(gr,'"'+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,`
`),ct.current.style.display="none"}catch(Nt){}if(We){let Nt=-1;return Je=Je.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Ht,gr,$t){var Ar;return++Nt,Pe(Ht,Nt,(Ar=et==null?void 0:et[Nt])==null?void 0:Ar.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${qe(Je||"")}</pre>`}let pt=qe(Je);pt=(0,y.ZP)(pt);const Ot=(0,y.ez)();Je.match(/\[TOC\]/)&&(pt=pt.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),pt=pt.replace(/(__special_katext_id_\d+__)/g,(Nt,Ht)=>{const{type:gr,expression:$t}=Ot[Ht];return(0,oe.renderToString)(ye($t)||"",{displayMode:gr==="block",throwOnError:!1,output:"html"})}),pt=pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const At=document.createElement("div");if(At.innerHTML=pt,Ze)return At.innerText;if(Ie){const Nt=Ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return St(At,Nt),At.innerHTML}return setTimeout(()=>mt(),500),At.innerHTML},[Je,Ie]);(0,He.useEffect)(()=>{gt.current&&gt.current.querySelectorAll(["input","textarea"]).forEach(Ot=>{Ot.oninput=dt,Ot.onblur=lt,Ot.onfocus=ht})},[ue]),(0,He.useEffect)(()=>{var pt,Ot,At,Nt,Ht;if(et!=null&&et.length)try{const gr=gt.current.querySelectorAll(".edu-program-fill-score"),$t=gt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ar,er]of $t.entries())er.value=((pt=et==null?void 0:et[Ar])==null?void 0:pt.value)||"",((Ot=et==null?void 0:et[Ar])==null?void 0:Ot.type)==="warning"?er.className="program-fill-warning":((At=et==null?void 0:et[Ar])==null?void 0:At.type)==="success"?er.className="program-fill-success":er.className="";for(const[Ar,er]of gr.entries())er.innerHTML=(Nt=et==null?void 0:et[Ar])!=null&&Nt.score?`${(Ht=et==null?void 0:et[Ar])==null?void 0:Ht.score}\u5206`:"";Re(et)}catch(gr){console.log(gr,"error")}},[et]);const dt=pt=>{ue[pt.target.dataset.id]=ue[pt.target.dataset.id]||{},ue[pt.target.dataset.id].value=pt.target.value,Re([...ue]),$e(ue,pt.target.dataset.id)},lt=pt=>{ue[pt.target.dataset.id]=ue[pt.target.dataset.id]||{},ue[pt.target.dataset.id].value=pt.target.value,Re([...ue]),Ge(ue,pt.target.dataset.id)},ht=pt=>{ue[pt.target.dataset.id]=ue[pt.target.dataset.id]||{},ue[pt.target.dataset.id].value=pt.target.value,Re([...ue]),ot(ue,pt.target.dataset.id)};function St(pt,Ot){return pt.childNodes.forEach(At=>{var Nt;if(At.childNodes.length>0)St(At,Ot);else if(At.nodeName!=="IMG")if(At.innerHTML)At.innerHTML=(Nt=At.innerHTML)==null?void 0:Nt.replace(new RegExp(Ot,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ht=document.createElement("span");Ht.innerHTML=At.textContent.replace(new RegExp(Ot,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),At.replaceWith(Ht)}})}const gt=(0,He.useRef)();y.jb.WebkitLineClamp=ze,ze&&(Ve=Te(Te({},Ve),y.jb));function yt(pt){let Ot=pt.target;if(Ot.tagName.toUpperCase()==="A"){let At=Ot.getAttribute("href");if(At.indexOf("office")>-1)pt.preventDefault(),Le(At),te("office");else if(At.indexOf("application/pdf")>-1)pt.preventDefault(),Le(At),te("pdf");else if(At.indexOf("text/html")>-1)pt.preventDefault(),Le(At),te("html");else if(At.startsWith("#")){pt.preventDefault();let Nt=document.getElementById(At.replace("#",""));Nt&&Nt.scrollIntoView(!0)}}}const mt=()=>{var pt;const Ot=(pt=gt.current)==null?void 0:pt.querySelectorAll("video");Ot==null||Ot.forEach(At=>{if(At.oncontextmenu=()=>!1,At.src.indexOf(".m3u8")>-1&&!At.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Nt=new xe.ZP;Nt.loadSource(At.src),Nt.attachMedia(At)}}})};(0,He.useEffect)(()=>{if(gt.current&&nt&&nt.match(de)&&window.PR.prettyPrint(),gt.current)return gt.current.addEventListener("click",yt),()=>{var pt;(pt=gt.current)==null||pt.removeEventListener("click",yt),(0,y.AL)(),(0,y.Iy)()}},[nt,gt.current,yt]);const Ct=pt=>{pt.target.nodeName==="IMG"&&pt.target.className.indexOf("draw-flowchart")>-1?(ct.current.style.zIndex=1,ct.current.style.display="flex",ct.current.style.width=pt.target.clientWidth+"px",ct.current.style.height=pt.target.clientHeight+"px",ct.current.style.top=pt.target.offsetTop+"px",ct.current.style.left=pt.target.offsetLeft+"px",pt.target.id&&(st.current=pt.target.id)):ct.current.style.display="none"},wt=()=>{ct.current.style.display="none"};return(0,He.useEffect)(()=>{var pt;const Ot=At=>{At.preventDefault(),At.clipboardData.setData("text",window.getSelection().toString())};return(pt=gt.current)==null||pt.addEventListener("copy",Ot),()=>{var At;(At=gt.current)==null||At.removeEventListener("copy",Ot)}},[gt.current]),He.createElement("div",{style:{position:"relative"},onMouseLeave:wt},Ze&&He.createElement("div",{ref:gt,className:`${he.mdBody} `},nt),!Ze&&!Ee(nt)&&He.createElement("div",{ref:gt,style:Te({},Ve),onMouseOver:Ct,className:`${je||""} ${rt?"disabled-fill":""} markdown-body ${he.mdBody} ${Fe.current}`,dangerouslySetInnerHTML:{__html:nt}}),!Ze&&Ee(nt)&&He.createElement(le,{html:nt}),He.createElement("div",{ref:ct,className:`${he.button} ${Ae?"":he.previewFlowChart}`},He.createElement(se.Z,null,He.createElement(ee.ZP,{onClick:()=>{Ae?Ke(st.current):(Le(st.current),te("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),He.createElement(E.Z,{close:!0,data:Ye,type:Ye!=null&&Ye.length?_e:"",style:Te({},it),onClose:()=>Le("")}))}},25992:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{cT:function(){return de},pe:function(){return Te}});var He=Xe(59301),xt=Xe(14566),y=Xe(6767),De=Xe(82093),xe=Xe(28209),x=Xe.n(xe),z=Xe(1012),oe=Xe(76560),se=Xe(47257),ee=Xe.n(se),fe=Object.defineProperty,E=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,he=(Se,Oe,Ne)=>Oe in Se?fe(Se,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Se[Oe]=Ne,ge=(Se,Oe)=>{for(var Ne in Oe||(Oe={}))le.call(Oe,Ne)&&he(Se,Ne,Oe[Ne]);if(re)for(var Ne of re(Oe))ce.call(Oe,Ne)&&he(Se,Ne,Oe[Ne]);return Se},be=(Se,Oe)=>E(Se,ie(Oe)),me=(Se,Oe)=>{var Ne={};for(var Ae in Se)le.call(Se,Ae)&&Oe.indexOf(Ae)<0&&(Ne[Ae]=Se[Ae]);if(Se!=null&&re)for(var Ae of re(Se))Oe.indexOf(Ae)<0&&ce.call(Se,Ae)&&(Ne[Ae]=Se[Ae]);return Ne},ve=(Se,Oe,Ne)=>new Promise((Ae,je)=>{var Ze=it=>{try{Ve(Ne.next(it))}catch(Ie){je(Ie)}},ze=it=>{try{Ve(Ne.throw(it))}catch(Ie){je(Ie)}},Ve=it=>it.done?Ae(it.value):Promise.resolve(it.value).then(Ze,ze);Ve((Ne=Ne.apply(Se,Oe)).next())});const{Dragger:Ce}=xt.default,Te=Se=>{const Oe="bf3c199c2470cb477d907b1e0917c17b",Ne="5183666c72eec9e4";var Ae=x().enc.Utf8.parse(Oe);let je=x().enc.Utf8.parse(Ne);var Ze=x().AES.decrypt(Se,Ae,{iv:je,mode:x().mode.CBC});return Ze.toString(x().enc.Utf8)};let Me;const ke=Se=>ve(void 0,[Se],function*({identifier:Oe,oldFilename:Ne,newFilename:Ae}){var je,Ze,ze,Ve,it,Ie;const We=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});We.data=JSON.parse(Te(We.data));const tt=new OSS({endpoint:(je=We==null?void 0:We.data)==null?void 0:je.end_point,region:(Ze=We==null?void 0:We.data)==null?void 0:Ze.region,accessKeyId:(ze=We==null?void 0:We.data)==null?void 0:ze.access_key_id,accessKeySecret:(Ve=We==null?void 0:We.data)==null?void 0:Ve.access_key_secret,bucket:(it=We==null?void 0:We.data)==null?void 0:it.bucket,stsToken:(Ie=We==null?void 0:We.data)==null?void 0:Ie.security_token});return new Promise((rt,et)=>{console.log(11111,`${Oe}/${Ne}`,`${Oe}/${Ae}`,We.data),tt.copy(`/${Oe}/${Ne}`,`/${Oe}/${Ae}`).then(Ke=>{console.log("\u62F7\u8D1D\u6210\u529F",Ke)}).catch(Ke=>{console.log(Ke)})})}),de=(Se,Oe,Ne)=>ve(void 0,null,function*(){var Ae,je,Ze,ze,Ve,it;Oe.file_name=Se.name;const Ie=yield(0,De.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Te(Ie.data)),Ie.data=JSON.parse(Te(Ie.data));const We=Se.name.split(".");We.pop();const tt=Oe.realFileName?We.join(""):(0,z.Z)(),rt=new(ee())({endpoint:(Ae=Ie==null?void 0:Ie.data)==null?void 0:Ae.end_point,region:(je=Ie==null?void 0:Ie.data)==null?void 0:je.region,accessKeyId:(Ze=Ie==null?void 0:Ie.data)==null?void 0:Ze.access_key_id,accessKeySecret:(ze=Ie==null?void 0:Ie.data)==null?void 0:ze.access_key_secret,bucket:(Ve=Ie==null?void 0:Ie.data)==null?void 0:Ve.bucket,stsToken:(it=Ie==null?void 0:Ie.data)==null?void 0:it.security_token});return new Promise((et,Ke)=>{var $e;rt.multipartUpload(`${tt}`,new Blob([Se],{type:Se.type}),be(ge({timeout:200*1e3,partSize:102400},Ne),{callback:{url:($e=Ie==null?void 0:Ie.data)==null?void 0:$e.callback_url,host:Ie==null?void 0:Ie.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,De.rz)(Oe)}})).then(function(Ge){var ot;Se.response=(ot=Ge.data)==null?void 0:ot.data,et(Ge==null?void 0:Ge.data)}).catch(function(Ge){Ke(Ge),console.log("err:",Ge)})})}),ye=Se=>{var Oe=Se,{user:Ne,cancelUpload:Ae}=Oe,je=me(Oe,["user","cancelUpload"]);const[Ze,ze]=(0,He.useState)([]);let[Ve,it]=(0,He.useState)();const Ie={onRemove:tt=>{ze([...Ze.filter(rt=>rt.name!==tt.name)]),je.onChange(Ze.filter(rt=>rt.name!==tt.name))},disabled:je.disabled,multiple:!0,fileList:Ze==null?void 0:Ze.map(tt=>tt.file),customRequest:()=>{},beforeUpload:tt=>ve(void 0,null,function*(){let rt=je.maxSize||1073741824;if(Ze.filter(et=>et.name===tt.name).length){y.ZP.info(`${tt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(tt==null?void 0:tt.size)>rt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ze.push({name:tt.name,file:tt}),ze([...Ze]),je.onChange(Ze),!1)})},We=(tt,rt)=>ve(void 0,null,function*(){var et,Ke,$e,Ge,ot,Je;rt.file_name=tt.name;const ct=tt.name,st=yield(0,De.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(st.data=JSON.parse(Te(st.data)),(st==null?void 0:st.status)!==0){Ze[Ze.findIndex(_e=>_e.name===ct)].status="error",Ze[Ze.findIndex(_e=>_e.name===ct)].file.status="error",je.onChange(Ze),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ve=new(ee())({endpoint:(et=st==null?void 0:st.data)==null?void 0:et.end_point,region:(Ke=st==null?void 0:st.data)==null?void 0:Ke.region,accessKeyId:($e=st==null?void 0:st.data)==null?void 0:$e.access_key_id,accessKeySecret:(Ge=st==null?void 0:st.data)==null?void 0:Ge.access_key_secret,bucket:(ot=st==null?void 0:st.data)==null?void 0:ot.bucket,stsToken:(Je=st==null?void 0:st.data)==null?void 0:Je.security_token}),console.log(tt,"file"),it(Ve);const Ye=tt.name.split(".");Ye.pop();const Le=ct.indexOf(".")>-1?rt.realFileName?Ye.join("."):(0,z.Z)():ct;return new Promise((_e,te)=>{var ue;try{Ve.multipartUpload(`${je.identifier}/${Le}${ct.indexOf(".")>-1?"."+ct.split(".").pop():""}`,new Blob([tt.file],{type:tt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Re,Fe,we)=>{try{console.log("\u8FDB\u5EA6",Re,Fe,we);const Ee=Ze.findIndex(Pe=>Pe.name===ct);Ze[Ee].file.percent=Re*100,Ze[Ee].tempCheckpoint=Fe,ze([...Ze])}catch(Ee){}},checkpoint:Ze[Ze.findIndex(Re=>Re.name===ct)].tempCheckpoint,callback:{customValue:{id:ct+""},url:(ue=st==null?void 0:st.data)==null?void 0:ue.callback_url,host:st==null?void 0:st.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,De.rz)(rt)}}).then(function(Re){var Fe,we,Ee;const Pe=Ze.findIndex(qe=>qe.name===ct);let Ue="done";if(((Fe=Re.data)==null?void 0:Fe.status)===0){tt.response=(we=Re.data)==null?void 0:we.data;const qe=Ze.findIndex(nt=>nt.name===ct);Ze[qe].status="done",Ze[qe].file.status="done"}else y.ZP.warning((Ee=Re.data)==null?void 0:Ee.message),Ue="error";Ze[Pe].status=Ue,Ze[Pe].file.status=Ue,je.onChange(Ze),_e(Re==null?void 0:Re.data)}).catch(function(Re){Ze[Ze.findIndex(Fe=>Fe.name===ct)].status="error",Ze[Ze.findIndex(Fe=>Fe.name===ct)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ze([...Ze]),je.onChange(Ze),te(Re),console.log("err:",Re)})}catch(Re){}})});return(0,He.useEffect)(()=>{Ze.every(tt=>tt==="done"||tt==="error")&&je.onComplete(Ze)},[Ze]),(0,He.useEffect)(()=>{Ae&&(Ve==null||Ve.cancel())},[Ae]),(0,He.useEffect)(()=>{je.uploading&&Ze.map(tt=>ve(void 0,null,function*(){var rt;if((!tt.status||tt.status==="error")&&!Ae){tt.status="uploading",tt.file.status="uploading";const et=yield We(tt,{login:(rt=Ne==null?void 0:Ne.userInfo)==null?void 0:rt.login,container_type:je.container_type,container_id:je.container_id,description:je.description,realFileName:je.realFileName})}}))},[je.uploading]),He.createElement(Ce,be(ge({},Ie),{height:je.height,className:je.className}),He.createElement("p",{className:"ant-upload-hint"},je.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Gt.ZP=(0,oe.connect)(({loading:Se,globalSetting:Oe,user:Ne})=>({globalSetting:Oe,loading:Se.models.competitions,user:Ne}))(ye)},44905:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{h:function(){return ve}});var He=Xe(59301),xt=Xe(82326),y=Xe(28284),De=Xe(99571),xe=Xe(89780),x=Xe.n(xe),z=Xe(66543),oe=Xe(59598),se=Object.defineProperty,ee=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(Ce,Te,Me)=>Te in Ce?se(Ce,Te,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ce[Te]=Me,ce=(Ce,Te)=>{for(var Me in Te||(Te={}))ie.call(Te,Me)&&le(Ce,Me,Te[Me]);if(E)for(var Me of E(Te))re.call(Te,Me)&&le(Ce,Me,Te[Me]);return Ce},he=(Ce,Te)=>ee(Ce,fe(Te));const ge=xt.default.Option,be={labelCol:{span:4},wrapperCol:{span:20}},me={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"]};Gt.Z=({callback:Ce,onCancel:Te})=>{const[Me,ke]=(0,He.useState)("python");function de(Se){ke(me[Se][1])}function ye(Se){Ce(Se)}return He.createElement(y.default,he(ce({},be),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),He.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},He.createElement(xt.default,{getPopupContainer:Se=>Se.parentNode,onChange:de},Object.keys(me).map(Se=>He.createElement(ge,{key:Se,value:Se},me[Se][0])))),He.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},He.createElement(ve,{mode:Me})),He.createElement("div",{className:"flex-container flex-end"},He.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(De.ZP,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function ve({value:Ce,onChange:Te,mode:Me,options:ke={}}){const de=(0,He.useRef)(),[ye,Se]=(0,He.useState)();return(0,He.useEffect)(()=>{if(ye){let Oe=function(Ne){const Ae=Ne.getValue();Te&&Te(Ae)};return ye.on("change",Oe),()=>{ye.off("change",Oe)}}},[ye,Te]),(0,He.useEffect)(()=>{ye&&ye.setOption("mode",Me)},[ye,Me]),(0,He.useEffect)(()=>{ye&&(Ce!==ye.getValue()||Ce==="")&&setTimeout(()=>{ye.setValue(Ce||"")},300)},[ye,Ce]),(0,He.useEffect)(()=>{if(de.current&&!ye){const Oe=x().fromTextArea(de.current,ce({mode:Me,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ke));Se(Oe)}},[de.current,ye]),He.createElement("div",{className:"my-codemirror-container"},He.createElement("textarea",{ref:de}))}},2978:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return jr}});var He=Xe(59301),xt=Xe(89780),y=Xe.n(xt),De=Xe(76374),xe=Xe(66543),x=Xe(6313),z=Xe(25717),oe=Xe(99498),se=Xe(25419),ee=Xe(67549),fe=Xe(38394),E=({value:Dt="",className:jt,showTextOnly:Mt,showLines:ar,style:Or={}})=>{const wr=(0,He.useMemo)(()=>"",[Dt]);return He.createElement(He.Fragment,null,He.createElement("div",{dangerouslySetInnerHTML:{__html:wr}}))},ie=Object.defineProperty,re=Object.defineProperties,le=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,be=(Dt,jt,Mt)=>jt in Dt?ie(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,me=(Dt,jt)=>{for(var Mt in jt||(jt={}))he.call(jt,Mt)&&be(Dt,Mt,jt[Mt]);if(ce)for(var Mt of ce(jt))ge.call(jt,Mt)&&be(Dt,Mt,jt[Mt]);return Dt},ve=(Dt,jt)=>re(Dt,le(jt));let Ce=[{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 Te({onActionCallback:Dt,title:jt,icon:Mt,actionName:ar,className:Or="",children:wr}){function vr(){Dt(ar)}return He.createElement("a",{title:jt,className:Or,onClick:vr},He.createElement("i",{className:`${Mt}`}),wr)}var Me=({watch:Dt,showNullButton:jt,showNullProgramButton:Mt,onActionCallback:ar,fullScreen:Or,insertTemp:wr,hidetoolBar:vr,extraUse:Pr})=>{const dr=[...Ce,{title:`${Dt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Dt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return He.createElement("ul",{className:"markdown-toolbar-container"},!vr&&dr.map((Cr,Lr)=>He.createElement("li",{key:Lr},Cr.actionName?He.createElement(Te,ve(me({},Cr),{onActionCallback:ar})):He.createElement("span",{className:"v-line"}))),jt?He.createElement("li",null,He.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ar},He.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Mt?He.createElement(He.Fragment,null,He.createElement("li",null,He.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ar},He.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),He.createElement("li",null,He.createElement(Te,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ar},He.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,wr&&He.createElement("li",null,He.createElement(Te,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wr}`,onActionCallback:ar},He.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Pr&&He.createElement("li",null,Pr),He.createElement("li",{className:"btn-full-screen"},He.createElement(Te,{icon:`${Or?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Or?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ar})))},ke=Xe(75790),de=Xe(28284),ye=Xe(37568),Se=Xe(99571),Oe=Object.defineProperty,Ne=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ve=(Dt,jt,Mt)=>jt in Dt?Oe(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,it=(Dt,jt)=>{for(var Mt in jt||(jt={}))Ze.call(jt,Mt)&&Ve(Dt,Mt,jt[Mt]);if(je)for(var Mt of je(jt))ze.call(jt,Mt)&&Ve(Dt,Mt,jt[Mt]);return Dt},Ie=(Dt,jt)=>Ne(Dt,Ae(jt));const We={labelCol:{span:4},wrapperCol:{span:20}};var tt=({callback:Dt,onCancel:jt})=>{function Mt(ar){Dt(ar)}return He.createElement(de.default,Ie(it({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Mt,style:{width:500}}),He.createElement(de.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},He.createElement(ye.default,null)),He.createElement(de.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},He.createElement(ye.default,null)),He.createElement("div",{className:"flex-container flex-end"},He.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Se.ZP,{type:"ghost",onClick:jt},"\u53D6\u6D88")))},rt=Xe(44905),et=Xe(45596),Ke=Xe(62957),$e=Xe(77019),Ge=Xe(6077),ot=Xe(59301),Je=({callback:Dt,onCancel:jt})=>{const Mt=document.createElement("canvas"),ar=Mt.getContext("2d");Mt.width=1e3,Mt.height=800,ar.fillStyle="#ffffff",ar.fillRect(0,0,Mt.width,Mt.height);const Or=Mt.toDataURL("image/png");return ot.createElement(Ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ot.createElement($e.Z,{style:{height:"100vh"}},ot.createElement(Ge.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Or,visible:!0,title:String(Date.now())},onOk:wr=>{Dt({src:wr.url})},onClose:jt})))},ct=Xe(30641),st=Xe(5269),Ye=Xe(6767),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},_e=Xe(59301),ue=(0,He.forwardRef)(({onCancel:Dt,editImgId:jt,callback:Mt},ar)=>{let Or=(0,He.useRef)(),wr=(0,He.useRef)(),vr=(0,He.useRef)(),Pr=(0,He.useRef)(!1);const dr=(0,He.useRef)(!1);console.log("ref:",ar);const[Cr,Lr]=(0,He.useState)(0),[Xr,or]=(0,He.useState)("100vh");return(0,He.useEffect)(()=>{Lr(1)},[]),(0,He.useImperativeHandle)(ar,()=>({setHeight:or})),_e.createElement("div",{ref:dr,className:"body-overflow-initial"},_e.createElement(ct.Z,{width:"100vw",height:Xr,footer:null,closable:!0,placement:"bottom",open:!!Cr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Le.drawerWrap}`,onClose:()=>{window.saveDrawData(Ut=>{Mt({src:`/api/attachments/${Ut}`,id:Ut})})},title:_e.createElement($e.Z,{align:"middle"},_e.createElement(st.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),_e.createElement(st.Z,{onClick:()=>{or(Xr==="60px"?"100vh":"60px")}},_e.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),_e.createElement(st.Z,{onClick:()=>{window.saveDrawData(Ut=>{if(Ut===null){Ye.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ye.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Mt({src:`/api/attachments/${Ut}`,id:Ut,disabledClose:!0})})}},_e.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},_e.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${jt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:wr})))}),Re=Xe(90524),Fe=Xe(47889),we=Xe(71051);const Ee=Fe.ZP.Group,Pe={margin:"0 8px"};var Ue=({callback:Dt,onCancel:jt})=>{function Mt(ar){Dt(ar)}return He.createElement(de.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Mt},He.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},He.createElement("span",{style:Pe},"\u5355\u5143\u683C\u6570\uFF1A"),He.createElement("span",{style:Pe},"\u884C\u6570"),He.createElement(de.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},He.createElement(we.Z,null)),He.createElement("span",{style:Pe},"\u5217\u6570"),He.createElement(de.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},He.createElement(we.Z,null))),He.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},He.createElement("span",{style:Pe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),He.createElement(de.default.Item,{name:"align"},He.createElement(Ee,null,He.createElement(Fe.ZP,{value:"default"},He.createElement("i",{className:"fa fa-align-justify"})),He.createElement(Fe.ZP,{value:"left"},He.createElement("i",{className:"fa fa-align-left"})),He.createElement(Fe.ZP,{value:"center"},He.createElement("i",{className:"fa fa-align-center"})),He.createElement(Fe.ZP,{value:"right"},He.createElement("i",{className:"fa fa-align-right"}))))),He.createElement("div",{className:"flex-container flex-end"},He.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Se.ZP,{type:"ghost",onClick:jt},"\u53D6\u6D88")))},qe=Xe(71411),nt=Xe(11081),dt=Xe.n(nt),ht=(0,He.forwardRef)(({use3d:Dt,width:jt,height:Mt,callback:ar,showSaveButton:Or},wr)=>{const vr=(0,He.useRef)(),Pr=(0,He.useRef)(),[dr,Cr]=(0,He.useState)(!1),Lr=(0,He.useRef)({id:vr,appName:"graphing",width:jt||1e3,height:Mt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,He.useEffect)(()=>{Pr.current=new(dt())(Lr.current,!0),window.onload=function(){Pr.current.inject("applet_container")}},[]);const Xr=()=>{var or=window.ggbApplet.getPNGBase64(1,!0,72);return ar&&ar(or),or};return(0,He.useEffect)(()=>{Lr.current.appName=dr?"3D":"graphing",Pr.current.inject("applet_container")},[dr]),(0,He.useEffect)(()=>{Cr(Dt)},[Dt]),(0,He.useImperativeHandle)(wr,()=>({getImgData:Xr})),He.createElement(He.Fragment,null,He.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:vr}),He.createElement($e.Z,{align:"middle"},He.createElement(st.Z,{flex:1},He.createElement(qe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:dr,onChange:or=>Cr(or)})),He.createElement(st.Z,null,He.createElement(Se.ZP,{size:"large",onClick:Xr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),St=Xe(88615);const gt="link",yt="upload-image",mt="add-flowchart",Ct="draw-image",wt="add-flowchart",pt="code-block",Ot="add-table",At="------------",Nt={default:At,left:`:${At}`,center:`:${At}:`,right:`${At}:`};var Ht=Xe(17904);function gr(){}let $t=0;const Ar=1e4,er="\u2581",Ir="@\u2581\u2581@",$r="@\u2581@",nn=`
**\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`,dn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function tn(Dt){return/^\d+$/.test(Dt)?`${Dt}px`:Dt}const fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",hn={[fn+"-B"]:"bold",[fn+"-I"]:"italic"},Rr={[gt]:"\u6DFB\u52A0\u94FE\u63A5",[pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yt]:"\u6DFB\u52A0\u56FE\u7247",[Ct]:"\u6DFB\u52A0\u753B\u56FE",[mt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ot]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var jr=({defaultValue:Dt="",onChange:jt,width:Mt="100%",height:ar=400,miniToolbar:Or=!1,isFocus:wr=!1,watch:vr,insertTemp:Pr,mode:dr="markdown",id:Cr="markdown-editor-id",showResizeBar:Lr=!1,noStorage:Xr=!1,showNullButton:or=!1,showNullProgramButton:Ut=!1,hidetoolBar:Xt=!1,fullScreen:Yr=!1,onBlur:qr,onCMBeforeChange:Et,onFullScreen:kt,className:fr="",disablePaste:qt=!1,disabled:Rt=!1,disabledFill:rr=!1,placeholder:mr="",values:hr="",extraUse:ir})=>{const[Lt,br]=(0,He.useState)(null),[nr,Jr]=(0,He.useState)(Dt),[yr,Nr]=(0,He.useState)(vr),[Zr,an]=(0,He.useState)(Yr),[un,Cn]=(0,He.useState)(""),[Wn,Rn]=(0,He.useState)(0),[pn,rn]=(0,He.useState)(ar),[zn,Jn]=(0,He.useState)(!1),[Un,Vn]=(0,He.useState)(0),[Gn,Er]=(0,He.useState)(0),_r=(0,He.useRef)(),pr=(0,He.useRef)(),Fr=(0,He.useRef)(),kr=(0,He.useRef)(),Hr=(0,He.useRef)(),mn=(0,He.useRef)();(0,He.useEffect)(()=>{const Pt=window.scrollY||window.pageYOffset;Jr(hr),Lt==null||Lt.setValue(hr),window.scrollTo(0,Pt)},[hr]),(0,He.useEffect)(()=>{kt==null||kt(Zr)},[Zr]),(0,He.useEffect)(()=>{if(_r.current){let Pt=function(Wt,Yt){var xr;if(qt){Yt.preventDefault();return}const Tr=Yt.clipboardData;if(Tr){const Wr=Tr.types.toString(),Kr=Tr.items;if(Wr==="Files"||Tr.types.indexOf("Files")>-1){if(Yt.preventDefault(),dr=="stex")return;try{let Br=Kr[1];((xr=Kr[0])==null?void 0:xr.kind)==="file"&&(Br=Kr[0]);const on=Br.getAsFile(),Qr=on.name.split(".").pop();(0,et.I)(on,bn=>{var Mn,Nn,kn;bn.id?((Mn=on==null?void 0:on.type)==null?void 0:Mn.indexOf("image"))>-1?_t.replaceSelection(`<img width="100%" src="/api/attachments/${bn.id}?type=${bn.content_type})" alt="" />`):((Nn=on==null?void 0:on.type)==null?void 0:Nn.indexOf("video"))>-1?_t.replaceSelection(`<video width="100%" controls src="/api/attachments/${bn.id}"></video>`):((kn=on==null?void 0:on.type)==null?void 0:kn.indexOf("pdf"))>-1?_t.replaceSelection(`<a href="/api/attachments/${bn.id}?type=${on.type}&disposition=inline" target="_blank">${on.name}</a>`):dn.includes(Qr)?_t.replaceSelection(`<a href="/api/attachments/${bn.id}?type=office&disposition=inline" target="_blank">${on.name}</a>`):_t.replaceSelection(`[${on.name}](/api/attachments/${bn.id}?type=${bn.content_type})`):(bn==null?void 0:bn.status)===401&&(document.location.href="/user/login")})}catch(Br){Ye.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const _t=y().fromTextArea(_r.current,{mode:dr,lineNumbers:!Or,lineWrapping:!0,value:Dt,autoCloseTags:!0,autoCloseBrackets:!0});return _t.on("keyup",function(Wt,Yt){Yt.keyCode===8&&(Wt.getValue()==""?_t.setOption("placeholder",mr):_t.setOption("placeholder",null))}),_t.on("keydown",function(Wt,Yt){if(Yt.keyCode===8){var xr=_n(Wt);xr&&Yt.preventDefault()}}),wr&&_t.focus(),_t.on("paste",Pt),Rt&&_t.on("beforeChange",function(Wt,Yt){(Yt.origin==="paste"||Yt.origin==="+input")&&Yt.cancel()}),br(_t),()=>{_t.off("paste",Pt)}}},[]);const On=(0,He.useCallback)(()=>{if(pr.current)try{}catch(Pt){console.log(Pt,"---- to set md editor body height")}},[pn,pr,Zr]);(0,He.useEffect)(()=>{function Pt(){let _t=new De.Z(Wt=>{for(let Yt of Wt)(Yt.target.offsetHeight>0||Yt.target.offsetWidth>0)&&(On(),Lt.setSize("100%","100%"),Lt.refresh())});return _t.observe(_r.current.parentElement),_t}if(Lt){const _t=Pt();return()=>{var Wt,Yt;(Wt=_r.current)!=null&&Wt.parentElement&&_t.unobserve((Yt=_r.current)==null?void 0:Yt.parentElement)}}},[Lt,On]),(0,He.useEffect)(()=>{if(Lt){let Pt=[];for(const[_t,Wt]of Object.entries(hn)){let Yt={[_t]:()=>{In(Wt)}};Pt.push(Yt),Lt.addKeyMap(Yt)}return()=>{for(let _t of Pt)Lt.removeKeyMap(_t)}}},[Lt]),(0,He.useEffect)(()=>{Yr!==Zr&&an(Yr)},[Yr]),(0,Ht.Z)(()=>{if(!Xr&&Wn>0){let Pt=new Date().getTime(),_t=window.sessionStorage.getItem(Cr);Pt>=Wn+Ar&&(!_t||_t!==nr)&&(window.sessionStorage.setItem(Cr,nr),Jn(!0))}},Ar),(0,He.useEffect)(()=>{Nr(vr)},[Lt,vr]),(0,He.useEffect)(()=>{Lt&&wr&&Lt.focus()},[Lt,wr]),(0,He.useEffect)(()=>{if(yr&&Lt){let Pt=function(Wt){let Yt=Wt.target;if(kr.current){let xr=Yt.scrollTop/Yt.scrollHeight;kr.current.scrollTop=kr.current.scrollHeight*xr}};const _t=Lt.getScrollerElement();return _t.addEventListener("scroll",Pt),()=>{_t.removeEventListener("scroll",Pt)}}},[Lt,yr]),(0,He.useEffect)(()=>{if(Lt&&Et){let Pt=function(_t,Wt){Et(_t,Wt)};return Lt.on("beforeChange",Pt),()=>{Lt.off("beforeChange",Pt)}}},[Lt,Et]),(0,He.useEffect)(()=>{if(Lt&&qr){let Pt=function(){qr(Lt.getValue())};return Lt.on("blur",Pt),()=>{Lt.off("blur",Pt)}}},[Lt,qr]);function _n(Pt,_t){var Wt=Pt.getDoc(),Yt=Wt.getCursor(),xr=Wt.getLine(Yt.line),Tr=xr.charAt(Yt.ch-1),Wr=xr.lastIndexOf("@\u2581@",Yt.ch),Kr=xr.lastIndexOf("@\u2581\u2581@",Yt.ch),Br=Wr>Kr?Wr:Kr,on=Wr>Kr?3:4;if(Ir.indexOf(Tr)===-1)return null;if(console.log("change1:",_t,Pt,xr,Yt,Br,Wr,Kr,Tr),Br>=0&&Yt.ch-Br<5){var Qr=Br+on;return Wt.replaceRange("",{line:Yt.line,ch:Br},{line:Yt.line,ch:Qr}),{line:Yt.line,ch:Qr}}return null}(0,He.useEffect)(()=>{if(Lt){let Pt=function(_t,Wt){const Yt=_t.getValue();Jr(Yt),Rn(new Date().getTime()),_t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),jt&&(Ut?jt(Yt,ur(Yt)):jt(Yt))};return Lt.on("change",Pt),()=>{Lt.off("change",Pt)}}},[Lt,jt]),(0,He.useEffect)(()=>{if(Lt)if(Dt==null)Lt.setValue(""),Jr("");else{const Pt=window.scrollY||window.pageYOffset;Dt!==Lt.getValue()&&(Lt.setValue(Dt),Jr(Dt),Lt.setCursor(Rt?1:Lt.lineCount(),0),window.scrollTo(0,Pt))}},[Lt,Dt]);const In=(0,He.useCallback)(Pt=>{const _t=Lt.getCursor(),Wt=Lt.getSelection();let Yt=Wt.split(`
`);switch(Pt){case"bold":return Lt.replaceSelection("**"+Wt+"**"),Wt===""&&Lt.setCursor(_t.line,_t.ch+2),Lt.focus();case"italic":return Lt.replaceSelection("*"+Wt+"*"),Wt===""&&Lt.setCursor(_t.line,_t.ch+1),Lt.focus();case"code":return Lt.replaceSelection("`"+Wt+"`"),Wt===""&&Lt.setCursor(_t.line,_t.ch+1),Lt.focus();case"inline-latex":return Cn("inline-latex"),Lt.focus();case"latex":return Lt.replaceSelection("```latex\n"+Wt+"\n```"),Lt.setCursor(_t.line+1,Wt.length+1),Lt.focus();case"line-break":return Lt.replaceSelection(`<br/>
`),Lt.focus();case"list-ul":return Wt===""?Lt.replaceSelection("- "+Wt):Lt.replaceSelection(Yt.map(xr=>xr===""?"":`- ${xr}`).join(`
`)),Lt.focus();case"list-ol":return Wt===""?Lt.replaceSelection("1. "+Wt):Lt.replaceSelection(Yt.map((xr,Tr)=>xr===""?"":`${Tr+1}. ${xr}`).join(`
`)),Lt.focus();case"add-null-ch":return Wt===""&&Lt.setCursor(_t.line,_t.ch),Lt.replaceSelection(er),Lt.focus();case"add-signal":return Wt===""&&Lt.setCursor(_t.line,_t.ch),Lt.replaceSelection($r),Lt.focus();case"add-multiple":return Wt===""&&Lt.setCursor(_t.line,_t.ch),Lt.replaceSelection(Ir),Lt.focus();case"inster-template-1":return Wt===""&&Lt.setCursor(_t.line,_t.ch),Lt.replaceSelection(nn),Lt.focus();case"eraser":return Lt.setValue(""),Lt.focus();case"trigger-watch":return Nr(!yr),Lt.focus();case"trigger-full-screen":return an(!Zr),Lt.focus();case gt:Cn(gt);return;case pt:Cn(pt);return;case yt:Cn(yt);return;case Ct:Cn(Ct);return;case"maths-latex":Cn("maths-latex");return;case mt:Hr.current="",sessionStorage.removeItem("file_id"),Cn(mt);return;case Ot:Cn(Ot);return;default:throw new Error}},[Lt,yr,Zr]),Qn=(0,He.useCallback)((Pt,_t)=>{var Wt,Yt,xr,Tr,Wr,Kr;switch(Pt!=null&&Pt.disabledClose||Cn(""),un){case gt:const{title:Mn,link:Nn}=Pt;return Lt.replaceSelection(`[${Mn}](${Nn})`),Lt.focus();case pt:const{language:kn,content:Ln}=Pt;return Lt.replaceSelection(["```"+kn,Ln,"```"].join(`
`)),Lt.focus();case"maths-latex":for(var Br=atob(Pt),on=new Uint8Array(Br.length),Qr=0;Qr<Br.length;Qr++)on[Qr]=Br.charCodeAt(Qr);var bn=new Blob([on],{type:"image/png"});(0,et.I)(bn,gn=>{gn.id?Lt.replaceSelection(`![,](/api/attachments/${gn.id}?type=${gn.content_type})`):(gn==null?void 0:gn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Lt.replaceSelection("`$$"+Pt+"$$`");break;case wt:const{src:Pn,alt:Tn,id:Dn}=Pt;if(!Dn)return;Lt.getValue().indexOf(Pn)===-1?Lt.replaceSelection(`<center><img id="${Dn}" width="80%" src="${Pn}" class="draw-flowchart" alt="${Tn||""}" /></center>`):document.getElementById(Dn).src=Re.Z.API_SERVER+Pn+"?t="+Date.now();break;case yt:case Ct:const Ur=_t,Vr=(xr=(Yt=(Wt=Ur==null?void 0:Ur.name)==null?void 0:Wt.split("."))==null?void 0:Yt.pop)==null?void 0:xr.call(Yt);return((Tr=Ur==null?void 0:Ur.type)==null?void 0:Tr.indexOf("image"))>-1||!(Ur!=null&&Ur.type)?Ur!=null&&Ur.align||Ur!=null&&Ur.width?Lt.replaceSelection(`<p style="text-align:${Ur.align||"initial"}"><img width="${Ur.width?Ur.width+"%":"initial"}" src="${Pn}" alt="${Tn||""}" /></p>`):Lt.replaceSelection(`<img width="100%" src="${Pn}" alt="${Tn||""}" />`):((Wr=Ur==null?void 0:Ur.type)==null?void 0:Wr.indexOf("video"))>-1?Lt.replaceSelection(`<video width="100%" controls src="${Pn}"></video>`):((Kr=Ur==null?void 0:Ur.type)==null?void 0:Kr.indexOf("pdf"))>-1?Lt.replaceSelection(`<a href="${Pn}?type=${Ur.type}&disposition=inline" target="_blank">${Ur.name}</a>`):dn.includes(Vr)?Lt.replaceSelection(`<a href="${Pn}?type=office&disposition=inline" target="_blank">${Ur.name}</a>`):Lt.replaceSelection(`[${Ur.name}](${Pn})`),Lt.focus();case Ot:const{row:ln,col:vn,align:jn}=Pt;let Sn=`
`;for(let gn=0;gn<ln;gn++){let $n=[],Ei=[];for(let Ci=0;Ci<vn;Ci++)gn===1&&Ei.push(Nt[jn]),$n.push(" ");gn===1&&(Sn+=`| ${Ei.join(" | ")} |
`),Sn+=`| ${$n.join(vn===1?"":" | ")} |
`}return Lt.replaceSelection(Sn+`
`),Lt.focus();default:throw new Error}},[Lt,un]),vt=(0,He.useMemo)(()=>{switch(un){case gt:return He.createElement(tt,{callback:Qn,onCancel:Bt});case pt:return He.createElement(rt.Z,{callback:Qn,onCancel:Bt});case yt:return He.createElement(et.Z,{callback:Qn,onCancel:Bt});case mt:return He.createElement(ue,{editImgId:Hr.current,callback:Qn,onCancel:Bt});case Ot:return He.createElement(Ue,{callback:Qn,onCancel:Bt});case"maths-latex":return He.createElement(ht,{showSaveButton:!0,callback:Qn});case"inline-latex":return He.createElement(St.Z,{showSaveButton:!0,callback:Qn});default:return null}},[un]);function Bt(){Cn("")}(0,He.useEffect)(()=>{if(Fr.current){let Pt=function(Wr){xr=!0,Tr=Wr.pageY},_t=function(){xr=!1},Wt=function(Wr){if(xr){let Kr=Wr.pageY-Tr;Kr<0&&(Kr=0),Kr>300&&(Kr=300);let Br=ar+Kr+"px";rn(Br)}},Yt=Fr.current,xr=!1,Tr=0;return Yt.addEventListener("mousedown",Pt),document.addEventListener("mousemove",Wt),document.addEventListener("mouseup",_t),()=>{Yt.removeEventListener("mousedown",Pt),document.removeEventListener("mousemove",Wt),document.removeEventListener("mouseup",_t)}}},[Lt,Fr]),(0,He.useEffect)(()=>{rn(ar)},[ar]);const Ft=tn(Mt),zt=tn(pn),Jt={width:Ft,height:zt},Qt=(0,He.useMemo)(()=>{if(Wn){let Pt=new Date(Wn),_t=Pt.getHours(),Wt=Pt.getMinutes(),Yt=Pt.getSeconds();return _t=_t<10?"0"+_t:_t,Wt=Wt<10?"0"+Wt:Wt,Yt=Yt<10?"0"+Yt:Yt,`${_t}:${Wt}:${Yt}`}return 0},[Wn]),ur=Pt=>{const _t=[];if(Ut){let Wt=-1;Pt=Pt.replace(/(@▁▁@|@▁@)/g,function(Yt,xr,Tr){_t.push({multiLine:Yt!==$r})})}return _t};function sr(){window.sessionStorage.removeItem(Cr),Jn(!1),Rn(0)}function tr(){Jn(!1),Rn(0),Lt.setValue(window.sessionStorage.getItem(Cr))}(0,He.useEffect)(()=>{Rr[un]&&un!==Ct&&un!==mt&&setTimeout(()=>{const Pt=document.getElementsByClassName("markdown-popup-form")[0],_t=window.innerWidth/2-Pt.offsetWidth/2,Wt=window.innerHeight/2-Pt.offsetHeight/2;Vn(_t),Er(Wt)},0)},[un]);const It=Pt=>{Pt.preventDefault();const _t=Pt.clientX-Un,Wt=Pt.clientY-Gn;document.body.onmousemove=Yt=>{let xr=Yt.clientX-_t,Tr=Yt.clientY-Wt;const Wr=document.getElementsByClassName("markdown-popup-form")[0],Kr=window.innerWidth-Wr.offsetWidth,Br=window.innerHeight-Wr.offsetHeight;xr=Math.max(0,Math.min(xr,Kr)),Tr=Math.max(0,Math.min(Tr,Br)),Vt(Yt.clientX,Yt.clientY,_t,Wt)&&(Vn(xr),Er(Tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vt=(Pt,_t,Wt,Yt)=>{const xr=document.body.clientHeight,Tr=document.body.clientWidth;return Pt<20&&Wt>Pt||Pt>Tr-20&&Wt<Pt||_t<20&&Yt>_t||_t>xr-20&&Yt<_t?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return He.createElement(He.Fragment,null,He.createElement("div",{className:"markdown-editor-wrapper",ref:pr},He.createElement("div",{className:`markdown-editor-container ${fr} ${yr?"on-preview":""} ${Or?"mini":""} ${Zr?"full-screen":""}`,style:Jt},He.createElement(Me,{insertTemp:Pr,watch:yr,fullScreen:Zr,showNullButton:or,showNullProgramButton:Ut,onActionCallback:In,hidetoolBar:Xt,extraUse:ir}),He.createElement("div",{className:"markdown-editor-body"},He.createElement("div",{className:"codemirror-container"},He.createElement("textarea",{ref:_r,placeholder:mr})),yr?He.createElement("div",{ref:kr,className:"preview-container"},dr==="stex"&&He.createElement(E,{value:nr}),dr!=="stex"&&He.createElement(fe.Z,{edit:!0,disabledFill:rr,showProgramFill:Ut,value:nr,openEditor:Pt=>{var _t;Hr.current=Pt,(_t=mn.current)==null||_t.setHeight("100vh"),setTimeout(()=>{Cn("add-flowchart")},150)}})):null))),Lr?He.createElement("a",{ref:Fr,className:"editor-resize"}):null,un===Ct&&He.createElement(Je,{callback:Qn,onCancel:Bt}),un===mt&&He.createElement(ue,{ref:mn,editImgId:Hr.current,callback:Qn,onCancel:Bt}),He.createElement(ke.Z,null,Rr[un]&&un!==Ct&&un!==mt?He.createElement(Ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Un,top:Gn},title:He.createElement("div",{style:{cursor:"move"},onMouseDown:It},Rr[un]),open:!0,onCancel:Bt,footer:null,destroyOnClose:!0,width:un===mt?"1200px":null,height:un===mt?"80vh":null,className:"markdown-popup-form"},vt):null))}},45596:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return Te},I:function(){return ke}});var He=Xe(28284),xt=Xe(6767),y=Xe(37568),De=Xe(77736),xe=Xe(71051),x=Xe(47889),z=Xe(99571),oe=Xe(67303),se=Xe(59301),ee=Xe(59301),fe=Object.defineProperty,E=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,he=(de,ye,Se)=>ye in de?fe(de,ye,{enumerable:!0,configurable:!0,writable:!0,value:Se}):de[ye]=Se,ge=(de,ye)=>{for(var Se in ye||(ye={}))le.call(ye,Se)&&he(de,Se,ye[Se]);if(re)for(var Se of re(ye))ce.call(ye,Se)&&he(de,Se,ye[Se]);return de},be=(de,ye)=>E(de,ie(ye));const{useForm:me}=He.default,ve={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var Te=({callback:de,onCancel:ye})=>{const[Se]=me();let Oe=(0,se.useRef)();function Ne(Ze){Oe.current.width=Se.getFieldValue("width"),Oe.current.align=Se.getFieldValue("align"),de(Ze,Oe.current)}function Ae(Ze,ze){if(Ze.status===-1){xt.ZP.error(Ze.message);return}Se.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:ze.type})}function je(Ze){let ze=Ze.target.files[0];Oe.current=ze,ke(ze,Ae)}return ee.createElement(He.default,be(ge({form:Se},Ce),{className:"upload-image-panel",onFinish:Ne,style:{width:470,overflow:"hidden"}}),ee.createElement(He.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(He.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:ve})),ee.createElement(Me,{onFileChange:je}))),ee.createElement(He.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(He.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(De.Z,null,ee.createElement(He.default.Item,{name:"width",style:{margin:0}},ee.createElement(xe.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(He.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(He.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:ye},"\u53D6\u6D88"))))};function Me({onFileChange:de}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:de}))}function ke(de,ye){if(!de)throw new String("\u6CA1\u6709\u6587\u4EF6");let Se=new FormData;Se.append("editormd-image-file",de),Se.append("file_param_name","editormd-image-file"),Se.append("byxhr","true");var Oe=new window.XMLHttpRequest;Oe.withCredentials=!0,Oe.addEventListener("load",function(Ne){ye(JSON.parse(Ne.target.responseText),de)},!1),Oe.addEventListener("error",function(Ne){console.error(Ne)},!1),Oe.open("POST",`${oe.KI}/api/attachments.json`),Oe.send(Se)}},75790:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return y}});var He=Xe(59301),xt=Xe(4676);class y extends He.Component{constructor(xe){super(xe);const x=window.document;this.node=x.createElement("div"),x.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,xt.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{SV:function(){return ct},ZP:function(){return Je}});var He=Xe(59301),xt=Xe(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"]},De={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"]},xe={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 oe=Xe(53184),se=Xe.n(oe),ee=(st,Ye,Le)=>new Promise((_e,te)=>{var ue=we=>{try{Fe(Le.next(we))}catch(Ee){te(Ee)}},Re=we=>{try{Fe(Le.throw(we))}catch(Ee){te(Ee)}},Fe=we=>we.done?_e(we.value):Promise.resolve(we.value).then(ue,Re);Fe((Le=Le.apply(st,Ye)).next())});const fe={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=(st,Ye,Le,_e)=>{const te=Ye.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Le.lineNumber,endColumn:Le.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(Re=>({label:Re,kind:st.languages.CompletionItemKind.Text,insertText:Re,range:_e}))},ie=(st,Ye,Le,_e)=>{st.languages.registerCompletionItemProvider(Ye,{provideCompletionItems(te,ue){const Re=te.getWordUntilPosition(ue),Fe={startLineNumber:ue.lineNumber,endLineNumber:ue.lineNumber,startColumn:Re.startColumn,endColumn:Re.endColumn},we=te.getLineContent(ue.lineNumber).substring(Re.startColumn-2,Re.endColumn);return{suggestions:[...E(st,te,ue,Fe),...Le.map(Pe=>({label:Pe,kind:st.languages.CompletionItemKind.Keyword,documentation:Pe,insertText:Pe,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Fe})),..._e.map(Pe=>({label:Pe.label,kind:st.languages.CompletionItemKind.Snippet,documentation:Pe.content,insertText:we.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Fe}))]}}})};var re=st=>{fe.languages.forEach(Ye=>{st.languages.registerDocumentFormattingEditProvider(Ye,{provideDocumentFormattingEdits(Le){return ee(this,null,function*(){const _e=se()(Le.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:Le.getFullModelRange(),text:_e}]})}})}),ie(st,"java",De.keywords,De.quickKey),ie(st,"cpp",xe.keywords,xe.quickKey),ie(st,"c",y.keywords,[]),ie(st,"python",x.keywords,x.quickKey),ie(st,"scala",z.keywords,z.quickKey)};const le="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ce=Object.defineProperty,he=(st,Ye,Le)=>Ye in st?ce(st,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Le}):st[Ye]=Le,ge=(st,Ye,Le)=>he(st,typeof Ye!="symbol"?Ye+"":Ye,Le);const be=class Kl{constructor(Ye,Le,_e){this.placeholder=Ye,this.editor=Le,this.monaco=_e,Le.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)}};ge(be,"ID","editor.widget.placeholderHint");var ve=be,Ce=Xe(96236),Te=Xe(6767),Me=Xe(25399),ke=Xe(89392),de=Xe(33796),ye=Xe(56102),Se=Object.defineProperty,Oe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,ze=(st,Ye,Le)=>Ye in st?Se(st,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Le}):st[Ye]=Le,Ve=(st,Ye)=>{for(var Le in Ye||(Ye={}))je.call(Ye,Le)&&ze(st,Le,Ye[Le]);if(Ae)for(var Le of Ae(Ye))Ze.call(Ye,Le)&&ze(st,Le,Ye[Le]);return st},it=(st,Ye)=>Oe(st,Ne(Ye)),Ie=(st,Ye)=>{var Le={};for(var _e in st)je.call(st,_e)&&Ye.indexOf(_e)<0&&(Le[_e]=st[_e]);if(st!=null&&Ae)for(var _e of Ae(st))Ye.indexOf(_e)<0&&Ze.call(st,_e)&&(Le[_e]=st[_e]);return Le},We=(st,Ye,Le)=>new Promise((_e,te)=>{var ue=we=>{try{Fe(Le.next(we))}catch(Ee){te(Ee)}},Re=we=>{try{Fe(Le.throw(we))}catch(Ee){te(Ee)}},Fe=we=>we.done?_e(we.value):Promise.resolve(we.value).then(ue,Re);Fe((Le=Le.apply(st,Ye)).next())});function tt(st){return/^\d+$/.test(st)?`${st}px`:st}function rt(){}let et=!1;const Ke={"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 $e(st=[]){let Ye=st;if(Array.isArray(st)){for(let Le=0;Le<st.length;Le++){let _e=Ke[st[Le]];if(_e)return _e}return Ye[0]}return Ke[Ye]||Ye}let Ge=null;const ot=()=>We(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(st){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",st)}});var Je=st=>{var Ye=st,{width:Le="100%",height:_e="100%",value:te,language:ue="javascript",style:Re={},options:Fe={},overrideServices:we={},theme:Ee="vs-dark",onEditBlur:Pe,isCopy:Ue=!1,onSave:qe,autoHeight:nt=!1,forbidCopy:dt=!1,onChange:lt=rt,editorDidMount:ht=rt,onFocus:St=rt,onBreakPoint:gt=rt,breakPointValue:yt=[],filename:mt="educoder.txt",errorLine:Ct,errorContent:wt="",highlightLine:pt,openBreakPoint:Ot=!1,placeholder:At="",showMiniMap:Nt=!0}=Ye,Ht=Ie(Ye,["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 gr=(0,He.useRef)(),$t=(0,He.useRef)({}),Ar=(0,He.useRef)(),er=(0,He.useRef)(),Ir=(0,He.useRef)([]),$r=(0,He.useRef)(!1),nn=(0,He.useRef)(),dn=(0,He.useRef)(),tn=(0,He.useRef)(!1),[Dr,fn]=(0,He.useState)(!1);function hn(){let or;return gr.current&&(or=new xt.Z(Ut=>{for(let Xt of Ut)(Xt.target.offsetHeight>0||Xt.target.offsetWidth>0)&&$t.current.instance.layout()}),or.observe(gr.current)),or}function Rr(){Te.ZP.warning({content:decodeURIComponent(le),key:"monaco-editor-tip"})}const jr=()=>{let or=$t.current.instance;if(te!=null&&or&&Dr){const Ut=or.getModel();Ut&&te!==Ut.getValue()&&(et=!0,Ut.setValue(te),or.layout(),et=!1)}};(0,He.useEffect)(()=>{const or=de.Z.subscribe("formatDocument",Ut=>{var Xt;let Yr=$t.current.instance;(Xt=Yr==null?void 0:Yr.getAction)==null||Xt.call(Yr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ut=>{lt(Ut)},or},[]),(0,He.useEffect)(()=>{var or;let Ut=$t.current.instance;er.current&&clearTimeout(er.current),er.current=setTimeout(()=>{jr()},500),te&&(te!=null&&te.length)&&((or=Ut==null?void 0:Ut.updateOptions)==null||or.call(Ut,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,Dr,$t.current]),(0,He.useEffect)(()=>{if(Ct&&$t.current&&$t.current.instance){let Ut=$t.current.instance;Ut.changeViewZones(function(Xt){var Yr=document.createElement("div");Yr.style.padding="10px 20px",Yr.style.width="calc(100% - 20px)",Yr.className="my-error-line-wrp",Yr.innerHTML=wt,Xt.addZone({afterLineNumber:Ct||11,heightInLines:3,domNode:Yr})});var or={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}};Ut.addOverlayWidget(or),Ut.revealPositionInCenter({lineNumber:20,column:1})}},[Ct,$t.current,Dr]);const Dt=(or="",Ut)=>{if(!or||or.trim()==="")return!0;const Yr=$t.current.instance.getModel().getLineTokens(Ut);let qr=!1;for(let Et=0;Et<2;Et++)Yr.getStandardTokenType(Et)===1&&(qr=!0);return qr};(0,He.useEffect)(()=>{var or;const Ut=(or=$t.current)==null?void 0:or.instance;if(Ut&&Dr&&dt){const Xt=Ut.onDidBlurEditorWidget(()=>{tn.current=!1}),Yr=Ut.onDidFocusEditorText(()=>{tn.current=!0});return()=>{Xt.dispose(),Yr.dispose()}}},[$t.current,Dr,dt]),(0,He.useEffect)(()=>{var or;if((or=$t.current)!=null&&or.instance&&Dr&&Ot){let Ut=$t.current.instance,Xt=Ut.getModel();if(!Xt)return;(()=>{var Lt;let br=[],nr=[];const Jr=Xt.getAllDecorations();for(let Nr of Jr)Nr.options.className==="highlighted-line"&&(br.push((Lt=Nr==null?void 0:Nr.range)==null?void 0:Lt.startLineNumber),nr.push(Nr==null?void 0:Nr.id));if(pt===br[0])return;Xt.deltaDecorations(nr,[]);const yr=Xt.getLineCount();pt&&pt<=yr&&(Ut.deltaDecorations([],[{range:new Ge.Range(pt,1,pt,Xt.getLineMaxColumn(pt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ut.revealLineInCenter(pt))})();const qr=(Lt=!1)=>{var br;let nr=[],Jr=[];const yr=Xt.getAllDecorations();for(let Nr of yr)Nr.options.linesDecorationsClassName==="breakpoints-select"&&(nr.push((br=Nr==null?void 0:Nr.range)==null?void 0:br.startLineNumber),Jr.push(Nr==null?void 0:Nr.id));if(Lt)return{lines:nr,ids:Jr};gt(nr)},Et=Lt=>We(void 0,null,function*(){let br={range:new Ge.Range(Lt,1,Lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Xt.deltaDecorations([],[br]),qr()}),kt=Lt=>We(void 0,null,function*(){let br=[];const nr=Ut.getLineDecorations(Lt);for(let Jr of nr)Jr.options.linesDecorationsClassName==="breakpoints-select"&&br.push(Jr.id);yield Xt.deltaDecorations(br,[]),qr()}),fr=Lt=>{let br=Ut.getLineDecorations(Lt);for(let nr of br)if(nr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ke.isEqual)(yt,qr(!0).lines)){Xt.deltaDecorations(qr(!0).ids,[]);const Lt=yt.map(br=>({range:new Ge.Range(br,1,br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Xt.deltaDecorations([],Lt)}const qt=Ut.onDidChangeModelContent(Lt=>{let br=Ut.getPosition();if(br){let nr=br.lineNumber;clearTimeout(dn.current),dn.current=setTimeout(()=>{Dt(Xt.getLineContent(nr),nr)?kt(nr):fr(nr)?(kt(nr),Et(nr)):qr()},100)}}),Rt=Ut.onMouseDown(Lt=>{var br,nr,Jr;if(Lt.target.detail&&((Jr=(nr=(br=Lt.target)==null?void 0:br.element)==null?void 0:nr.className)!=null&&Jr.includes("line-numbers"))){let yr=Lt.target.position.lineNumber;if(Dt(Xt.getLineContent(yr),yr))return;fr(yr)?kt(yr):Et(yr)}}),rr=Lt=>{let br={range:new Ge.Range(Lt,1,Lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ir.current=Ut.deltaDecorations(Ir.current,[br])},mr=()=>{Ir.current=Ut.deltaDecorations(Ir.current,[])},hr=Ut.onMouseMove(Lt=>{var br,nr,Jr;if(mr(),Lt.target.detail&&((Jr=(nr=(br=Lt.target)==null?void 0:br.element)==null?void 0:nr.className)!=null&&Jr.includes("line-numbers"))){let yr=Lt.target.position.lineNumber;if(Dt(Xt.getLineContent(yr),yr))return;rr(yr)}}),ir=Ut.onMouseLeave(()=>{mr()});return()=>{qt.dispose(),Rt.dispose(),hr.dispose(),ir.dispose()}}},[$t.current,Dr,yt,pt,Ot,ue]),(0,He.useEffect)(()=>{var or;(or=$t.current)!=null&&or.instance&&Ot&&$t.current.instance.setPosition({lineNumber:0,column:0})},[pt]);function jt(){let or=$t.current.instance;if(or){const Ut=or.getSelection(),Xt=$t.current.pastePos||{},Yr=new Ge.Range(Xt.startLineNumber||Ut.endLineNumber,Xt.startColumn||Ut.endColumn,Xt.endLineNumber||Ut.endLineNumber,Xt.endColumn||Ut.endColumn);setTimeout(()=>{or.executeEdits("",[{range:Yr,text:""}])},300)}}function Mt(or){(window.navigator.platform.match("Mac")?or.metaKey:or.ctrlKey)&&or.keyCode==83&&(or.preventDefault(),qe())}const ar=()=>{if(nt&&$t.current.instance){const or=$t.current.instance.getContentHeight();Lr(or<_e?_e:or)}else Lr(_e)};function Or(or){var Ut=document.createEvent("MouseEvents");Ut.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),or.dispatchEvent(Ut)}const wr=or=>{if(!tn.current)return;const{keyCode:Ut,ctrlKey:Xt,metaKey:Yr,target:qr,type:Et}=or;return(Et==="paste"||(Ut===67||Ut===86)&&(Yr||Xt))&&qr.nodeName==="TEXTAREA"&&(Rr(),or.preventDefault()),!1};function vr(or,Ut){var Xt=window.URL||window.webkitURL||window,Yr=new Blob([Ut]),qr=document.createElementNS("http://www.w3.org/1999/xhtml","a");qr.href=Xt.createObjectURL(Yr),qr.download=or,Or(qr)}(0,He.useEffect)(()=>{ar()},[ar]),(0,He.useEffect)(()=>{gr.current&&!Dr&&Promise.all([Xe.e(8909),Xe.e(5028)]).then(Xe.bind(Xe,71448)).then(or=>{try{Ge=or,$t.current.instance=Ge.editor.create(gr.current,{value:te,language:$e(ue),theme:Ee,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Nt||!1}},we);const Ut=$t.current.instance;let qr=[...Ce.BH._menuItems].find(qt=>qt[0]._debugName=="EditorContext")[1],Et=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kt=(qt,Rt)=>{var rr,mr;let hr=qt._first;do Rt.includes((mr=(rr=hr.element)==null?void 0:rr.command)==null?void 0:mr.id)&&qt._remove(hr);while(hr=hr.next)};if(ht(Ut,Ge),setTimeout(()=>{ar(),$t.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{vr(mt||"educoder.txt",Ut.getValue())}})},500),$t.current.subscription=Ut.onDidChangeModelContent(qt=>{$r.current?clearTimeout(nn.current):(ar(),lt(Ut.getValue(),qt)),nn.current=setTimeout(()=>{$r.current=!1},500)}),window.Monaco||re(Ge,$e(ue)),dt&&(kt(qr,Et),gr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",wr),window.removeEventListener("paste",wr),window.addEventListener("keydown",wr),window.addEventListener("paste",wr)),window.Monaco=Ge,Pe&&Ut.onDidBlurEditorWidget(()=>{Pe(Ut.getValue())}),St&&Ut.onDidFocusEditorText(()=>{dt&&ot(),St(Ut.getValue())}),dt){ot();try{Ut.onDidPaste(qt=>{const Rt=Ut.getSelection(),rr=$t.current.pastePos||{},mr=new Ge.Range(rr.startLineNumber||Rt.endLineNumber,rr.startColumn||Rt.endColumn,rr.endLineNumber||Rt.endLineNumber,rr.endColumn||Rt.endColumn);Ut.executeEdits("",[{range:qt.range,text:""}])})}catch(qt){}}let fr=hn();return At&&typeof At=="string"&&new ve(At,Ut,Ge),fn(!0),()=>{const qt=$t.current.instance;qt.dispose();const Rt=qt.getModel();Rt&&Rt.dispose(),$t.current.subscription&&$t.current.subscription.dispose(),fr.unobserve(gr.current)}}catch(Ut){}})},[]),(0,He.useEffect)(()=>{if($t.current.instance&&Dr)return document.addEventListener("keydown",Mt,!1),()=>{document.removeEventListener("keydown",Mt)}},[qe,Dr]),(0,He.useEffect)(()=>{let or=$t.current.instance;if(or&&Dr){let Ut=$e(ue);Ge.editor.setModelLanguage(or.getModel(),Ut)}},[ue,Dr]),(0,He.useEffect)(()=>{$t.current.instance&&Dr&&Ge.editor.setTheme(Ee)},[Ee,Dr]),(0,He.useEffect)(()=>{let or=$t.current.instance;Ar.current=Fe,or&&Dr&&(or.updateOptions(Ve({},Fe)),setTimeout(()=>{or.getModel().updateOptions(Ve({},Fe))},200))},[JSON.stringify(Fe),Dr]),(0,He.useEffect)(()=>{let or=$t.current.instance;or&&Dr&&or.layout()},[Le,_e,Dr]);const[Pr,dr]=(0,He.useState)(tt(Le)),[Cr,Lr]=(0,He.useState)(tt(_e)),Xr=it(Ve({},Re),{width:Pr,height:Cr,position:"relative"});return He.createElement("div",{className:"my-monaco-editor",ref:gr,style:Xr},Ue&&He.createElement(ye.CopyToClipboard,{text:te,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},He.createElement(Me.Z,{title:"\u590D\u5236\u4EE3\u7801"},He.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},He.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ct({width:st="100%",height:Ye="100%",original:Le,modified:_e,language:te,options:ue={}}){const Re=(0,He.useRef)(),[Fe,we]=(0,He.useState)(null);function Ee(nt){let dt;return Re.current&&(dt=new xt.Z(lt=>{for(let ht of lt)(ht.target.offsetHeight>0||ht.target.offsetWidth>0)&&nt.layout()}),dt.observe(Re.current)),dt}(0,He.useEffect)(()=>(Re.current&&Promise.all([Xe.e(8909),Xe.e(9404)]).then(Xe.bind(Xe,2550)).then(nt=>{Ge=nt;const dt=Ge.editor.createDiffEditor(Re.current,it(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},ue),{wordWrap:!0}));we(dt);let lt=Ee(dt);return()=>{dt.dispose();const ht=dt.getModel();ht&&ht.dispose(),lt.unobserve(Re.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,He.useEffect)(()=>{Fe&&Fe.setModel({original:Ge.editor.createModel(Le,te),modified:Ge.editor.createModel(_e,te)})},[Le,_e,te,Fe]);const Pe=tt(st),Ue=tt(Ye),qe={width:Pe,height:Ue};return He.createElement("div",{className:"my-diff-editor",ref:Re,style:qe})}},929:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return E}});var He={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"},xt=Xe(29787),y=Xe(25399),De=Xe(60242),xe=Xe(92310),x=Xe.n(xe),z=Xe(49661),oe=Xe(57884),se=Xe(34055),ee=Xe(59301),E=({className:ie,dataSource:re=[],col:le=4,right:ce,bottom:he=23,precision:ge=0,wrapWidth:be=1200,trackEventItems:me,loading:ve,onRemove:Ce=()=>{},isCurrent:Te=!0,showProgress:Me=!1,showAlias:ke=!1})=>{const de=Math.floor((be-(le-1)*ce)/le),ye=[{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(xt.Z,{spinning:ve},ee.createElement("div",{className:x()(He.list,ie)},!!(re!=null&&re.length)&&(re==null?void 0:re.map((Se,Oe)=>{var Ne,Ae,je,Ze,ze,Ve;const{name:it,id:Ie,identifier:We,featured:tt,school_name:rt,image_url:et,excellent:Ke,is_plan:$e}=Se;return ee.createElement("div",{key:Ie,className:Te&&Me?He.wrapisCurrent:He.wrap,style:{width:de,marginRight:(1+Oe)%le===0?0:ce+ge,marginBottom:he}},ee.createElement("a",{className:He.li,onClick:Ge=>{Ge.preventDefault(),Ge.stopPropagation(),me&&(0,z.L9)([me]),(0,z.xg)(`/paths/${We}`)}},ee.createElement("div",{className:He.img},ee.createElement("img",{className:He.cover,src:`${et}`}),Te&&(0,se.bg)()&&(Se==null?void 0:Se.studying)&&ee.createElement("div",{className:`${He.movebq} user-path-items`,onClick:Ge=>{Ge.stopPropagation(),Ce(Se)}},ee.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ee.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ne=Se==null?void 0:Se.subject_tags)==null?void 0:Ne.map((Ge,ot)=>{var Je,ct;if(ot===0){const Ye=(Je=ye.find(Le=>Le.name==Ge))==null?void 0:Je.swimg;return ee.createElement("img",{className:He.sign,src:Ye,style:{left:"-4px"}})}const st=(ct=ye.find(Ye=>Ye.name==Ge))==null?void 0:ct.ptimg;return ee.createElement("img",{className:He.sign,src:st,style:{left:`${48+52*(ot-1)+2*ot}px`}})}),ee.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Se==null?void 0:Se.excellent)&&ee.createElement("div",{className:He.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ee.createElement("div",{className:He.name},ee.createElement(y.Z,{title:ke&&(Se!=null&&Se.excellent_alias_name)?ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${it}`,ee.createElement("br",null),ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):it},ee.createElement("span",{className:He.e},ke&&(Se==null?void 0:Se.excellent_alias_name)||it))),Te&&Me&&((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(De.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((je=Se==null?void 0:Se.progress)==null?void 0:je.my_score)/((Ze=Se==null?void 0:Se.progress)==null?void 0:Ze.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ze=Se==null?void 0:Se.progress)==null?void 0:ze.my_score,"/",(Ve=Se==null?void 0:Se.progress)==null?void 0:Ve.all_score),(!Te||!Me)&&ee.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${rt}`},ee.createElement("div",{className:He.unit},ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),rt)),(!Te||!Me)&&ee.createElement("div",{className:He.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(oe.Z,null)))}},71360:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{jL:function(){return xe},w9:function(){return tt},QD:function(){return Ct},cQ:function(){return ze.Z},op:function(){return lt},O5:function(){return jr},_b:function(){return Ht},t7:function(){return ge},Gi:function(){return ot},YG:function(){return $e},qp:function(){return fe},vr:function(){return Ot},qE:function(){return gt},Je:function(){return ve},wb:function(){return Ze},cq:function(){return _e},tp:function(){return re}});var He=Xe(59301),xt={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,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",xe=({dataSource:Dt=[],img:jt,imgWidth:Mt=346,title:ar,sunTitle:Or,bannerExtraContent:wr})=>He.createElement("div",{className:xt.banner},He.createElement("div",{className:xt.content},He.createElement("aside",null,He.createElement("p",null,He.createElement("b",null,ar),He.createElement("span",null,Or)),Dt.length>0&&He.createElement("div",{className:xt.btns},Dt.map((vr,Pr)=>He.createElement("div",{key:Pr,onClick:vr.click},vr.name,vr.sign?He.createElement("img",{src:y,width:39}):null))),wr),jt&&He.createElement("img",{style:{marginTop:33,marginRight:38},src:jt,width:Mt}))),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=Xe(92310),oe=Xe.n(z),se=Xe(89392),fe=({dataSource:Dt=[],value:jt,onChange:Mt,onTitleChange:ar,className:Or,title:wr,titleWidth:vr=41,style:Pr={},fontColor:dr="#6A7283",showCount:Cr})=>{const[Lr,Xr]=(0,He.useState)(0),[or,Ut]=(0,He.useState)(!1),Xt=(0,He.useRef)(null),Yr=(0,He.useRef)(null);return(0,He.useEffect)(()=>{var qr;Dt.length!==0&&(((qr=Xt==null?void 0:Xt.current)==null?void 0:qr.clientHeight)>97?Xr(1):Xr(0)),Dt.length===0&&Xr(0),Ut(!1)},[Dt]),He.createElement("div",{className:oe()(x.row,Or),style:Pr},He.createElement("div",{onClick:(0,se.throttle)(()=>ar==null?void 0:ar(),2e3),style:{width:vr,marginTop:or?12:4},className:`${x.title} ${ar?"current":""}`},wr),He.createElement("div",{className:or?`${x.tagsWrap} ${x.tagsBorderWrap}`:x.tagsWrap},He.createElement("div",{className:x.bar,ref:Yr,style:Lr>0?{height:Lr===1?97:"auto",overflow:Lr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},He.createElement("div",{className:x.tag,ref:Xt},Dt==null?void 0:Dt.map(qr=>He.createElement("span",{onClick:()=>Mt(qr.id),key:qr.id,style:{color:dr},className:jt===qr.id?x.active:""},He.createElement("span",{title:qr.name,className:x.name},qr.name),!!Cr&&He.createElement("span",{className:x.num},qr.count))))),!!Lr&&He.createElement(He.Fragment,null,Lr===1?He.createElement("div",{onClick:()=>{var qr;Xr(2),((qr=Xt==null?void 0:Xt.current)==null?void 0:qr.clientHeight)>245?Ut(!0):Ut(!1)},className:x.action},"\u5C55\u5F00",He.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):He.createElement("div",{onClick:()=>{Yr.current.scrollTop=0,Xr(1),Ut(!1)},className:x.action},"\u6536\u8D77",He.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:Dt=[],value:jt,onChange:Mt,className:ar,style:Or={}})=>He.createElement("div",{style:Or,className:oe()(E.tabs,ar)},Dt.map(wr=>He.createElement("span",{onClick:()=>Mt(wr.id),className:jt===wr.id?E.active:"",key:wr.id},wr.name))),le={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"},ce=Xe(37568),ge=({dataSource:Dt=[],value:jt="",onChange:Mt,onInputChange:ar=()=>{},className:Or,style:wr={},placeholder:vr,allowClear:Pr=!1})=>{var dr;const[Cr,Lr]=(0,He.useState)(""),[Xr,or]=(0,He.useState)("");(0,He.useEffect)(()=>{var Yr;let qr=jt;(Yr=JSON.stringify(jt))!=null&&Yr.includes("{")&&(Lr(jt.id),qr=jt.value||"");try{or(decodeURIComponent(qr||""))}catch(Et){or(decodeURIComponent(qr||""))}},[jt]);const Ut=()=>{Mt(encodeURIComponent(Xr),Cr||null)},Xt=Yr=>{Yr!==Cr&&(Lr(Yr),Mt(encodeURIComponent(Xr),Yr))};return He.createElement("div",{className:oe()(le.input,Or),style:wr},!!Dt.length&&He.createElement("div",{className:le.dropdown},He.createElement("div",{className:le.text},(dr=Dt.find(Yr=>Yr.id===Cr))==null?void 0:dr.name,He.createElement("i",{className:"iconfont icon-zhankai4"}),He.createElement("b",{className:le.b1}),He.createElement("b",{className:le.b2})),He.createElement("div",{className:le.menu},Dt.map((Yr,qr)=>He.createElement("div",{key:qr,onClick:()=>Xt(Yr.id)},Yr.name)))),He.createElement(ce.default,{onPressEnter:Ut,value:Xr,onChange:Yr=>{or(Yr.target.value),ar(encodeURIComponent(Yr.target.value),Cr||null)},bordered:!1,placeholder:vr}),He.createElement("i",{onClick:Ut,className:"iconfont icon-sousuo9 font14 pl10 current"}))},be={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"},ve=({value:Dt,onChange:jt,className:Mt,total:ar,pageSize:Or,style:wr={}})=>{const vr=Dt<2,Pr=Dt>=Math.ceil(ar/Or);return ar<=Or?He.createElement(He.Fragment,null):He.createElement("div",{className:oe()(be.quickPager,Mt),style:wr},He.createElement("div",{onClick:()=>{vr||jt(Dt-1,"prev")},className:vr?be.disabled:""},"\u4E0A\u4E00\u9875"),He.createElement("div",{onClick:()=>{Pr||jt(Dt+1,"next")},className:Pr?be.disabled:""},"\u4E0B\u4E00\u9875"))},Ce={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=Xe(29787),Me=Xe(25399),ke=Xe(58018),de=Xe(90524),ye=Xe(49661),Se=Xe(96908),Oe=Xe(57177),Ne=Xe(81378),Ae=Xe(57884),Ze=({className:Dt,dataSource:jt=[],col:Mt=4,right:ar,bottom:Or=23,precision:wr=0,wrapWidth:vr=1200,trackEventItems:Pr,loading:dr})=>{const Cr=Math.floor((vr-(Mt-1)*ar)/Mt);return He.createElement(Te.Z,{spinning:dr},He.createElement("div",{className:oe()(Ce.list,Dt)},!!jt.length&&jt.map((Lr,Xr)=>{const{name:or,id:Ut,identifier:Xt,power:Yr,cover_image_id:qr,pic:Et}=Lr;return He.createElement("div",{className:Ce.wrap,key:Ut,style:{width:Cr,marginRight:(1+Xr)%Mt===0?0:ar+wr,marginBottom:Or}},He.createElement("a",{target:"_blank",href:`/shixuns/${Xt}/challenges`,className:Ce.li,onClick:kt=>{kt.preventDefault(),Pr&&(0,ye.L9)([Pr]),Yr&&(0,ye.xg)(`/shixuns/${Xt}/challenges`)}},He.createElement("div",{className:Ce.img},He.createElement("img",{className:Ce.cover,src:`${Et}`}),Lr.is_jupyter&&He.createElement("img",{className:Ce.sign,src:Se}),Lr.is_jupyter_lab&&He.createElement("img",{className:Ce.sign,src:Oe}),Lr.is_unity_3d&&He.createElement("img",{className:Ce.sign,src:Ne})),He.createElement("div",{className:Ce.name},He.createElement(Me.Z,{title:or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},He.createElement("span",{className:Ce.e},or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),He.createElement("div",{className:Ce.tags},He.createElement(Me.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),He.createElement("span",null,Lr.challenges_count))),!!Lr.myshixuns_count&&He.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),He.createElement("span",null,Lr.myshixuns_count))),He.createElement(Me.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},He.createElement("span",null,He.createElement("span",null,Lr.level))),He.createElement("div",{className:Ce.rate},He.createElement(ke.Z,{allowHalf:!0,disabled:!0,defaultValue:Lr.score_info}),He.createElement("span",null,"\xA0",Lr.score_info?`${Lr.score_info}\u5206`:"5\u5206")))),!Yr&&He.createElement("div",{className:Ce.lockWrap},He.createElement("img",{src:`${de.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),He.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!jt.length&&He.createElement(Ae.Z,null)))},ze=Xe(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"},it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ie=Xe(59301),tt=({className:Dt,dataSource:jt=[],col:Mt=4,right:ar,bottom:Or=23,precision:wr=0,wrapWidth:vr=1200,trackEventItems:Pr,loading:dr,handleVery:Cr=()=>!0})=>{const Lr=Math.floor((vr-(Mt-1)*ar)/Mt);return Ie.createElement(Te.Z,{spinning:dr},Ie.createElement("div",{className:oe()(Ve.list,Dt)},!!jt.length&&jt.map((Xr,or)=>{const{subject_identifier:Ut,id:Xt,identifier:Yr,power:qr}=Xr,Et=Xr.is_public!=0&&Xr.is_public;return Ie.createElement("div",{className:Ve.wrap,key:Xt,style:{width:Lr,marginRight:(1+or)%Mt===0?0:ar+wr,marginBottom:Or}},Ie.createElement("a",{className:Ve.li,onClick:kt=>{kt.preventDefault(),Cr(Xr==null?void 0:Xr.first_category_url)&&(Pr&&(0,ye.L9)([Pr]),(0,ye.xg)(Xr.first_category_url))}},Ie.createElement("div",{className:Ve.top},Ie.createElement(Me.Z,{title:Xr.name},Ie.createElement("div",{className:Ve.name},Xr.name)),Ie.createElement("img",{className:Ve.img,src:de.Z.IMG_SERVER+"/images/"+Xr.avatar_url}),Ie.createElement("div",{className:Ve.text,title:Xr.creator},Xr.creator),Ut&&Ie.createElement("div",{className:Ve.btns},Ie.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ie.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Et&&Ie.createElement("div",{className:Ve.sign},"\u516C\u5F00")),Ie.createElement("div",{className:Ve.bottom},Xr.visits>0&&Ie.createElement(Me.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-liulanyan"}),Ie.createElement("span",null,Xr.visits))),Xr.course_members_count>0&&Ie.createElement(Me.Z,{title:"\u6210\u5458",placement:"bottom"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan"}),Xr.course_members_count)),Xr.tasks_count>0&&Ie.createElement(Me.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zuoye"}),Xr.tasks_count)),Xr.is_end?Ie.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ie.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Xr.is_accessible&&Ie.createElement("div",{className:Ve.lockWrap},Ie.createElement("img",{src:`${de.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ie.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!jt.length&&Ie.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=Xe(76560),$e=({dataSource:Dt=[],value:jt,onChange:Mt,className:ar,style:Or={},tabBarExtraContent:wr})=>He.createElement("div",{className:oe()(rt.tabs,ar),style:Or},He.createElement("div",{className:rt.tabsWrap},Dt.map((vr,Pr)=>!(vr!=null&&vr.hide)&&He.createElement("aside",{className:rt.tab,onClick:()=>{Mt(vr.id),vr.link&&et.history.push(vr.link)},key:Pr},He.createElement("div",{className:jt===vr.id?rt.active:""},vr.name),(vr==null?void 0:vr.resetCount)==null&&(vr==null?void 0:vr.total)!==void 0&&He.createElement("span",null,"\uFF08",vr==null?void 0:vr.total,"\uFF09"),(vr==null?void 0:vr.resetCount)!==void 0&&(vr==null?void 0:vr.total)!==void 0&&He.createElement(Me.Z,{title:(vr==null?void 0:vr.tip)!=null?vr==null?void 0:vr.tip:""},He.createElement("span",{style:{color:"#9096A3"}},"\uFF08",He.createElement("span",{style:{color:"#000"}},vr==null?void 0:vr.resetCount),"/",He.createElement("span",null,vr==null?void 0:vr.total),"\uFF09"))))),He.createElement("div",{className:rt.tabBar},wr)),ot=({className:Dt,style:jt={},children:Mt})=>He.createElement("div",{className:oe()(Dt),style:jt},Mt),Je={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"},ct=Xe(75727),st=Xe(93041);const Ye=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var _e=({sortValue:Dt,dropValue:jt,className:Mt,onSort:ar,onDrop:Or,dataSource:wr=Ye})=>{var vr;return He.createElement("div",{className:oe()(Je.orderWrap,Mt)},He.createElement(ct.Z,{dropdownRender:()=>He.createElement(st.default,null,wr.map((Pr,dr)=>He.createElement(st.default.Item,{key:dr,onClick:()=>Or(Pr.id)},Pr.name)))},He.createElement("span",{className:Je.orderTextWrap},(vr=wr.find(Pr=>jt===Pr.id))==null?void 0:vr.name)),He.createElement("span",{className:Je.orderIconWrap},He.createElement("span",{className:Je.orderAsc},He.createElement("i",{className:Dt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Je.cursorPointer} ${Je.active}`:`iconfont icon-sanjiaoxing-up font12 ${Je.cursorPointer}`,onClick:()=>ar(Dt==="asc"?"desc":"asc")})),He.createElement("span",{className:Je.orderDesc},He.createElement("i",{className:Dt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Je.cursorPointer} ${Je.active}`:`iconfont icon-sanjiaoxing-down font12 ${Je.cursorPointer}`,onClick:()=>ar(Dt==="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"},ue=Xe(99571),Re=Object.defineProperty,Fe=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Pe=(Dt,jt,Mt)=>jt in Dt?Re(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,Ue=(Dt,jt)=>{for(var Mt in jt||(jt={}))we.call(jt,Mt)&&Pe(Dt,Mt,jt[Mt]);if(Fe)for(var Mt of Fe(jt))Ee.call(jt,Mt)&&Pe(Dt,Mt,jt[Mt]);return Dt},qe=(Dt,jt)=>{var Mt={};for(var ar in Dt)we.call(Dt,ar)&&jt.indexOf(ar)<0&&(Mt[ar]=Dt[ar]);if(Dt!=null&&Fe)for(var ar of Fe(Dt))jt.indexOf(ar)<0&&Ee.call(Dt,ar)&&(Mt[ar]=Dt[ar]);return Mt},nt=(Dt,jt,Mt)=>new Promise((ar,Or)=>{var wr=dr=>{try{Pr(Mt.next(dr))}catch(Cr){Or(Cr)}},vr=dr=>{try{Pr(Mt.throw(dr))}catch(Cr){Or(Cr)}},Pr=dr=>dr.done?ar(dr.value):Promise.resolve(dr.value).then(wr,vr);Pr((Mt=Mt.apply(Dt,jt)).next())}),lt=Dt=>{var jt=Dt,{className:Mt,style:ar,children:Or,loading:wr=!1,openLoading:vr,onClick:Pr=()=>{},size:dr="middle",shape:Cr="round"}=jt,Lr=qe(jt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Xr,or]=(0,He.useState)(!1);return He.createElement(ue.ZP,Ue({onClick:(0,se.throttle)(Ut=>nt(void 0,null,function*(){vr&&or(!0);try{yield Pr(Ut)}catch(Xt){console.log("error",Xt)}vr&&or(!1)}),2e3,{leading:!0,trailing:!1}),className:oe()(te.btn,te[`${dr}-${Cr}`],Mt),style:ar,size:dr,shape:Cr,loading:Xr||wr},Lr),Or)},ht={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"},gt=({className:Dt,style:jt,children:Mt=null,onClick:ar,title:Or})=>He.createElement("div",{className:oe()(ht.head,Dt),style:jt},He.createElement("span",{className:"primary-hover",onClick:ar},He.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),He.createElement("b",{title:Or},Or),He.createElement("div",{className:ht.node},Mt)),yt={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"},Ct=({confirmShow:Dt=!0,confirmTitle:jt,confirmClick:Mt,cancelShow:ar=!0,cancelTitle:Or,cancelClick:wr,className:vr,style:Pr,confirmLoading:dr=!1})=>He.createElement("div",{className:oe()(yt.btns,vr),style:Pr},Dt&&He.createElement(ue.ZP,{loading:dr,onClick:Mt,type:"primary",className:yt.confirm},jt),ar&&He.createElement(ue.ZP,{onClick:wr,className:yt.cancel},Or)),wt={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"},Ot=({className:Dt,style:jt={},LeftContent:Mt,children:ar,RightContent:Or})=>He.createElement("div",{className:oe()(wt.fixedBottom,Dt),style:jt},He.createElement("div",{className:wt.wrap},He.createElement("div",{className:wt.left},Mt),He.createElement("div",{className:wt.center},ar),He.createElement("div",{className:wt.right},Or))),At={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"},Ht=({className:Dt,style:jt={},dataSource:Mt=[]})=>He.createElement("div",{className:oe()(At.crumbs,Dt),style:jt},Mt.map((ar,Or)=>Or<Mt.length-1?He.createElement(He.Fragment,{key:Or},ar.path||ar.onClick?He.createElement("span",{className:At.hover,onClick:ar!=null&&ar.onClick?ar.onClick:()=>et.history.push(ar.path)},ar.name):He.createElement("span",null,ar.name),He.createElement("span",null,"\xA0",">","\xA0")):He.createElement("span",{key:Or,style:{color:"#5F6368"}},ar.name))),gr=Xe(11938),$t=Object.defineProperty,Ar=Object.defineProperties,er=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,dn=(Dt,jt,Mt)=>jt in Dt?$t(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,tn=(Dt,jt)=>{for(var Mt in jt||(jt={}))$r.call(jt,Mt)&&dn(Dt,Mt,jt[Mt]);if(Ir)for(var Mt of Ir(jt))nn.call(jt,Mt)&&dn(Dt,Mt,jt[Mt]);return Dt},Dr=(Dt,jt)=>Ar(Dt,er(jt)),fn=(Dt,jt)=>{var Mt={};for(var ar in Dt)$r.call(Dt,ar)&&jt.indexOf(ar)<0&&(Mt[ar]=Dt[ar]);if(Dt!=null&&Ir)for(var ar of Ir(Dt))jt.indexOf(ar)<0&&nn.call(Dt,ar)&&(Mt[ar]=Dt[ar]);return Mt};const{Countdown:hn}=gr.default;var jr=Dt=>{var jt=Dt,{onChange:Mt}=jt,ar=fn(jt,["onChange"]);const[Or,wr]=(0,He.useState)(null);(0,He.useEffect)(()=>{typeof Or=="number"&&Or>=0&&Mt(Or)},[Or]);const vr=Pr=>{const dr=Math.floor(Pr/1e3);wr(dr)};return He.createElement(hn,Dr(tn({},ar),{onChange:vr}))}},17904:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return xt}});var He=Xe(59301);function xt(y,De){const xe=(0,He.useRef)();(0,He.useEffect)(()=>{xe.current=y}),(0,He.useEffect)(()=>{function x(){xe.current()}if(De!==null){let z=setInterval(x,De);return()=>clearInterval(z)}},[De])}},97e3:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return je}});var He=Xe(59301),xt=Xe(37568),y=Xe(28284),De=Xe(6767),xe=Xe(62957),x=Xe(29787),z=Xe(14566),oe=Xe(25399),se=Xe(60242),ee=Xe(47889),fe={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},E=Xe(82093),ie=Xe(49661),re=Xe(25992),le=Xe(1012),ce=Xe(47257),he=Xe.n(ce),ge=Xe(16573),be=Xe(71360),me=Xe(34055),ve=Xe(76560),Ce=Xe(59301),Te=Object.defineProperty,Me=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ye=(Ze,ze,Ve)=>ze in Ze?Te(Ze,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ze[ze]=Ve,Se=(Ze,ze)=>{for(var Ve in ze||(ze={}))ke.call(ze,Ve)&&ye(Ze,Ve,ze[Ve]);if(Me)for(var Ve of Me(ze))de.call(ze,Ve)&&ye(Ze,Ve,ze[Ve]);return Ze},Oe=(Ze,ze,Ve)=>new Promise((it,Ie)=>{var We=et=>{try{rt(Ve.next(et))}catch(Ke){Ie(Ke)}},tt=et=>{try{rt(Ve.throw(et))}catch(Ke){Ie(Ke)}},rt=et=>et.done?it(et.value):Promise.resolve(et.value).then(We,tt);rt((Ve=Ve.apply(Ze,ze)).next())});const Ne=xt.default.TextArea,Ae=({dataSetInfo:Ze,attachmentInfo:ze,visible:Ve,user:it,dispatch:Ie,onClose:We=()=>{},onSuccess:tt=()=>{}})=>{var rt,et;const[Ke,$e]=(0,He.useState)([]),[Ge,ot]=(0,He.useState)(!1),[Je,ct]=(0,He.useState)(!1),[st]=y.default.useForm(),[Ye,Le]=(0,He.useState)([]),[_e,te]=(0,He.useState)({}),ue=(0,He.useRef)([]);(0,He.useEffect)(()=>{if(Ve){if(Ze){const{title:lt,is_public:ht,desc:St,attachments:gt,data_set_tags:yt}=Ze||{},mt=gt.map(wt=>({id:String(Math.random()).slice(-6),name:wt.title,response:{attachment_id:wt.id},size:wt.size,description:wt.description||"",percent:100,status:"done"}));$e(mt),Le(yt);const Ct={title:lt,is_public:ht,desc:St};st.setFieldsValue(Ct)}if(ze){const lt=ze.map(ht=>({id:String(Math.random()).slice(-6),name:ht.title,response:{attachment_id:ht.id},size:ht.size,description:ht.description||"",percent:100,status:"done"}));$e(lt)}Re()}},[Ve]),(0,He.useEffect)(()=>{ue.current=Ke},[Ke]),(0,He.useEffect)(()=>{Ke!=null&&Ke.length?st.setFields([{name:"attachments",errors:[]}]):st.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Ke.length]),(0,He.useEffect)(()=>{Ye!=null&&Ye.length?st.setFields([{name:"tag_ids",errors:[]}]):st.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Ye.length]);const Re=()=>Oe(void 0,null,function*(){ct(!0);const lt=yield(0,E.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});lt.status===0&&(te(lt==null?void 0:lt.data),ct(!1))}),Fe={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:lt=>Oe(void 0,null,function*(){var ht,St,gt,yt,mt,Ct;if(((yt=(gt=(St=(ht=lt.name)==null?void 0:ht.split("."))==null?void 0:St.slice(0,-1))==null?void 0:gt.join("."))==null?void 0:yt.length)>60)return De.ZP.warning(`\u300A${lt.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([..._e.data_set_filenames,...ue.current.map(Ht=>Ht.name)].includes(lt.name))return De.ZP.warning(`\u300A${lt.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const pt=lt.size/1024/1024/1024;let Ot=_e==null?void 0:_e.data_sets_filesize;if(ue.current.forEach(Ht=>{Ot+=Ht==null?void 0:Ht.size}),Ot=Ot/1024/1024/1024,(0,me.Ny)()){if(pt>50)return De.ZP.warning(`\u300A${lt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(pt>2)return De.ZP.warning(`\u300A${lt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(Ot+pt>((mt=it==null?void 0:it.userInfo)==null?void 0:mt.cloud_space)&&!(_e!=null&&_e.current_user_no_limit))return De.ZP.warning(`\u300A${lt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(Ct=it==null?void 0:it.userInfo)==null?void 0:Ct.cloud_space}GB)`),Promise.reject();const Nt={id:String(Math.random()).slice(-6),name:lt.name,size:lt.size,file:lt,description:"",percent:0,status:"uploading"};return Pe(Nt,{login:_e==null?void 0:_e.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),$e(Ht=>[...Ht,Nt]),Promise.reject()})},we=lt=>Oe(void 0,null,function*(){var ht,St,gt;const yt=ue.current.find(mt=>mt.name===lt.name);(ht=yt==null?void 0:yt.response)!=null&&ht.attachment_id&&(yield(0,E.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(St=yt==null?void 0:yt.response)==null?void 0:St.attachment_id}})),yt!=null&&yt.client&&((gt=yt==null?void 0:yt.client)==null||gt.cancel()),$e(mt=>mt.filter(Ct=>Ct.name!==lt.name))}),Ee=()=>{var lt;(lt=ue.current)==null||lt.forEach(ht=>{var St;ht!=null&&ht.client&&((St=ht==null?void 0:ht.client)==null||St.cancel())})};console.log(Ke,"fileList1");const Pe=(lt,ht)=>Oe(void 0,null,function*(){var St,gt,yt,mt,Ct,wt,pt,Ot,At;ht.file_name=lt.name;const Nt=lt.name,Ht=yield(0,E.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((Ht==null?void 0:Ht.status)!==0){$e(er=>(er[er.findIndex(Ir=>Ir.name===Nt)].status="error",[...er])),De.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ht.data=JSON.parse((0,re.pe)(Ht.data));const gr=new(he())({endpoint:(St=Ht==null?void 0:Ht.data)==null?void 0:St.end_point,region:(gt=Ht==null?void 0:Ht.data)==null?void 0:gt.region,accessKeyId:(yt=Ht==null?void 0:Ht.data)==null?void 0:yt.access_key_id,accessKeySecret:(mt=Ht==null?void 0:Ht.data)==null?void 0:mt.access_key_secret,bucket:(Ct=Ht==null?void 0:Ht.data)==null?void 0:Ct.bucket,stsToken:(wt=Ht==null?void 0:Ht.data)==null?void 0:wt.security_token}),$t=lt.name.split(".");$t.pop();const Ar=ht.realFileName?$t.join("."):(0,le.Z)();gr.multipartUpload(`datasets/${ht==null?void 0:ht.login}/${Ar}${Nt.indexOf(".")>-1?"."+Nt.split(".").pop():""}`,new Blob([lt.file],{type:lt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(er,Ir,$r)=>{console.log("\u8FDB\u5EA6",er,Ir,$r),$e(nn=>{const dn=nn.findIndex(tn=>tn.name===Nt);return nn[dn].client=gr,nn[dn].percent=er*100,nn[dn].checkpoint=Ir,[...nn]})},checkpoint:(Ot=ue.current[(pt=ue.current)==null?void 0:pt.findIndex(er=>er.name===Nt)])==null?void 0:Ot.checkpoint,callback:{customValue:{id:Nt+""},url:(At=Ht==null?void 0:Ht.data)==null?void 0:At.callback_url,host:Ht==null?void 0:Ht.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,E.rz)(ht)}}).then(function(er){$e(Ir=>{var $r,nn,dn;const tn=Ir.findIndex(fn=>fn.name===Nt);let Dr="done";return(($r=er.data)==null?void 0:$r.status)===0?Ir[tn].response=(nn=er.data)==null?void 0:nn.data:(De.ZP.warning((dn=er.data)==null?void 0:dn.message),Dr="error"),Ir[tn].status=Dr,[...Ir]})}).catch(function(er){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",er),(er==null?void 0:er.name)!=="cancel"&&$e(Ir=>{const $r=Ir.findIndex(nn=>nn.name===Nt);return Ir[$r].status="error",[...Ir]})})}),Ue=lt=>(lt=lt||"",lt=String(lt),lt=lt.replace(/\s+/g,""),lt),qe=()=>Oe(void 0,null,function*(){var lt;const ht=st.getFieldsValue(),{title:St,is_public:gt,desc:yt}=ht,mt=[];if(Ue(St)||mt.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),Ke!=null&&Ke.length||mt.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),Ye!=null&&Ye.length||mt.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),mt.length){st.setFields(mt);return}const Ct=Ke.map(At=>{var Nt;return{attachment_id:(Nt=At.response)==null?void 0:Nt.attachment_id,description:At.description}});ot(!0);const wt=(0,ie.TG)(),pt={title:ht.title,attachments:Ct,tag_ids:Ye.map(At=>At.id),is_public:gt,desc:yt,homework_common_id:wt||void 0};let Ot;Ze?Ot=yield(0,E.ZP)(`/api/data_sets/${Ze==null?void 0:Ze.id}.json`,{method:"put",body:pt}):Ot=yield(0,E.ZP)("/api/data_sets.json",{method:"post",body:pt}),Ot.status===0&&(De.ZP.success("\u64CD\u4F5C\u6210\u529F"),tt((lt=Ot==null?void 0:Ot.data)==null?void 0:lt.data_set_id),Ie({type:"user/getUserInfo"})),ot(!1)}),nt=lt=>{Le(lt)},dt=Ke.some(lt=>lt.status==="uploading");return console.log("fileList",Ke),Ce.createElement(xe.default,{destroyOnClose:!0,confirmLoading:Ge,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:dt},title:Ze?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(dt){xe.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{We()}});return}We()},okText:"\u786E\u5B9A",onOk:qe,open:Ve,afterClose:()=>{$e([]),Le([]),ot(!1),ct(!1),Ee(),st.resetFields()}},Ce.createElement(x.Z,{spinning:Je},!(_e!=null&&_e.current_user_no_limit)&&!Je&&Ce.createElement("div",{className:fe.prompt},Ce.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",Ce.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},(rt=it==null?void 0:it.userInfo)==null?void 0:rt.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",Ce.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((_e==null?void 0:_e.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),Ce.createElement(y.default,{form:st,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},Ce.createElement(y.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},Ce.createElement(xt.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),Ce.createElement(y.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},Ce.createElement("div",{style:{position:"relative"}},Ce.createElement(z.default,Se({},Fe),Ce.createElement(be.op,{style:{borderRadius:2}},Ce.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),Ce.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},Ce.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",(0,me.Ny)()?50:2,"G"),Ce.createElement("div",null,"2.",_e!=null&&_e.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${(et=it==null?void 0:it.userInfo)==null?void 0:et.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),Ce.createElement("div",{className:fe.box},Ke.map(lt=>Ce.createElement("div",{key:lt.id,className:fe.row},Ce.createElement("div",{className:fe.icon},lt.status==="done"&&Ce.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),lt.status==="error"&&Ce.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),Ce.createElement("div",{style:{width:176}},Ce.createElement(oe.Z,{title:lt==null?void 0:lt.name},Ce.createElement("div",{style:{color:lt.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,ie.tP)(lt==null?void 0:lt.name,9))),lt.status==="uploading"&&Ce.createElement(se.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:lt.percent,showInfo:!1,size:[168,4]})),Ce.createElement("i",{onClick:()=>we(lt),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),Ce.createElement(xt.default,{value:lt.description,onChange:ht=>{$e(St=>{const gt=St.findIndex(yt=>yt.name===lt.name);return St[gt].description=ht.target.value,[...St]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),Ce.createElement(y.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},Ce.createElement(ge.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:nt,tags:Ye})),Ce.createElement(y.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},Ce.createElement(ee.ZP.Group,null,Ce.createElement(ee.ZP,{value:1},"\u662F"),Ce.createElement(ee.ZP,{value:0},"\u5426"))),Ce.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),Ce.createElement(y.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},Ce.createElement(Ne,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var je=(0,ve.connect)(({user:Ze,dispatch:ze})=>({user:Ze,dispatch:ze}))(Ae)},25469:function(lr,Gt,Xe){"use strict";Xe.r(Gt),Xe.d(Gt,{default:function(){return jr}});var He=Xe(59301),xt=Xe(76560),y=Xe(29787),De=Xe(91882),xe=Xe(25399),x=Xe(62957),z=Xe(62673),oe=Xe(6767),se=Xe(75727),ee=Xe(47889),fe=Xe(54172),E={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},ie=Xe(90524),re={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},le=Xe(2978),ce=Xe(38394),he=Xe(28284),ge=Xe(37568),be=Xe(14566),me=Xe(60242),ve=Xe(67298),Ce=Xe(61186),Te=Xe.n(Ce),Me=Xe(49661),ke=Xe(79809),de=Xe(82093),ye=Xe(47257),Se=Xe.n(ye),Oe=Xe(25992),Ne=Xe(1012),Ae=Xe(34055),je=Xe(59301),Ze=Object.defineProperty,ze=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,tt=(Dt,jt,Mt)=>jt in Dt?Ze(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,rt=(Dt,jt)=>{for(var Mt in jt||(jt={}))Ie.call(jt,Mt)&&tt(Dt,Mt,jt[Mt]);if(it)for(var Mt of it(jt))We.call(jt,Mt)&&tt(Dt,Mt,jt[Mt]);return Dt},et=(Dt,jt)=>ze(Dt,Ve(jt)),Ke=(Dt,jt,Mt)=>new Promise((ar,Or)=>{var wr=dr=>{try{Pr(Mt.next(dr))}catch(Cr){Or(Cr)}},vr=dr=>{try{Pr(Mt.throw(dr))}catch(Cr){Or(Cr)}},Pr=dr=>dr.done?ar(dr.value):Promise.resolve(dr.value).then(wr,vr);Pr((Mt=Mt.apply(Dt,jt)).next())});const $e=({polls:Dt,globalSetting:jt,loading:Mt,dispatch:ar,user:Or,dataSetInfo:wr,indexType:vr,getInfo:Pr})=>{const dr=(0,xt.useParams)(),[Cr,Lr]=(0,He.useState)(!1),[Xr,or]=(0,He.useState)(0),Ut=(0,He.useRef)(null),Xt=(0,He.useRef)(null),[Yr,qr]=(0,He.useState)(""),[Et,kt]=(0,He.useState)(""),[fr]=he.default.useForm(),[qt,Rt]=(0,He.useState)([]),rr=(0,He.useRef)([]),[mr,hr]=(0,He.useState)(!1),[ir,Lt]=(0,He.useState)(!1),[br,nr]=(0,He.useState)(""),Jr=qt.some(Er=>Er.status==="uploading"),[yr,Nr]=(0,He.useState)(!1),[Zr,an]=(0,He.useState)([]),[un,Cn]=(0,He.useState)(!1),[Wn,Rn]=(0,He.useState)(0),[pn,rn]=(0,He.useState)({page:1,limit:10,type:"",id:""}),zn=(Er,_r)=>Ke(void 0,null,function*(){Cn(!0);const pr=yield(0,ve.iw)({container_type:Er||(pn==null?void 0:pn.type),container_id:_r||(pn==null?void 0:pn.id),page:pn.page,limit:pn.limit});an(pr==null?void 0:pr.data),Rn(pr==null?void 0:pr.total_count),Cn(!1)});(0,He.useEffect)(()=>{var Er;((Er=Ut==null?void 0:Ut.current)==null?void 0:Er.clientHeight)>80?or(1):or(0)},[Yr]),(0,He.useEffect)(()=>{rr.current=qt},[qt]),(0,He.useEffect)(()=>{qr(wr==null?void 0:wr.introduce),kt(wr==null?void 0:wr.introduce)},[wr==null?void 0:wr.introduce]);const Jn={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:qt==null?void 0:qt.map(Er=>Er.file),beforeUpload:Er=>Ke(void 0,null,function*(){var _r,pr,Fr,kr,Hr;if(((kr=(Fr=(pr=(_r=Er.name)==null?void 0:_r.split("."))==null?void 0:pr.slice(0,-1))==null?void 0:Fr.join("."))==null?void 0:kr.length)>60)return oe.ZP.warning(`\u300A${Er.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...rr.current.map(In=>In.name)].includes(Er.name))return oe.ZP.warning(`\u300A${Er.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();if(Er.size/1024/1024/1024>2)return oe.ZP.warning(`\u300A${Er.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const _n={id:String(Math.random()).slice(-6),name:Er.name,size:Er.size,file:Er,description:"",percent:0,status:"uploading"};return Gn(_n,{login:(Hr=Or==null?void 0:Or.userInfo)==null?void 0:Hr.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Rt(In=>[...In,_n]),Promise.reject()})},Un=Er=>Ke(void 0,null,function*(){var _r,pr,Fr;const kr=rr.current.find(Hr=>Hr.name===Er.name);(_r=kr==null?void 0:kr.response)!=null&&_r.attachment_id&&(yield(0,de.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(pr=kr==null?void 0:kr.response)==null?void 0:pr.attachment_id}})),kr!=null&&kr.client&&((Fr=kr==null?void 0:kr.client)==null||Fr.cancel()),Rt(Hr=>Hr.filter(mn=>mn.name!==Er.name))}),Vn=()=>{var Er;(Er=rr.current)==null||Er.forEach(_r=>{var pr;_r!=null&&_r.client&&((pr=_r==null?void 0:_r.client)==null||pr.cancel())})},Gn=(Er,_r)=>Ke(void 0,null,function*(){var pr,Fr,kr,Hr,mn,On,_n,In,Qn;_r.file_name=Er.name;const vt=Er.name,Bt=yield(0,de.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((Bt==null?void 0:Bt.status)!==0){Rt(Qt=>(Qt[Qt.findIndex(ur=>ur.name===vt)].status="error",[...Qt])),oe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Bt.data=JSON.parse((0,Oe.pe)(Bt.data));const Ft=new(Se())({endpoint:(pr=Bt==null?void 0:Bt.data)==null?void 0:pr.end_point,region:(Fr=Bt==null?void 0:Bt.data)==null?void 0:Fr.region,accessKeyId:(kr=Bt==null?void 0:Bt.data)==null?void 0:kr.access_key_id,accessKeySecret:(Hr=Bt==null?void 0:Bt.data)==null?void 0:Hr.access_key_secret,bucket:(mn=Bt==null?void 0:Bt.data)==null?void 0:mn.bucket,stsToken:(On=Bt==null?void 0:Bt.data)==null?void 0:On.security_token}),zt=Er.name.split(".");zt.pop();const Jt=_r.realFileName?zt.join("."):(0,Ne.Z)();Ft.multipartUpload(`datasets/${_r==null?void 0:_r.login}/${Jt}${vt.indexOf(".")>-1?"."+vt.split(".").pop():""}`,new Blob([Er.file],{type:Er.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Qt,ur,sr)=>{console.log("\u8FDB\u5EA6",Qt,ur,sr),console.log("client--",Ft),Rt(tr=>{const It=tr.findIndex(Vt=>Vt.name===vt);return It!==-1&&(tr[It].client=Ft,tr[It].percent=Qt*100,tr[It].checkpoint=ur),[...tr]})},checkpoint:(In=rr.current[(_n=rr.current)==null?void 0:_n.findIndex(Qt=>Qt.name===vt)])==null?void 0:In.checkpoint,callback:{customValue:{id:vt+""},url:(Qn=Bt==null?void 0:Bt.data)==null?void 0:Qn.callback_url,host:Bt==null?void 0:Bt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,de.rz)(_r)}}).then(function(Qt){Rt(ur=>{var sr,tr,It;const Vt=ur.findIndex(_t=>_t.name===vt);let Pt="done";return Vt!==-1&&(((sr=Qt.data)==null?void 0:sr.status)===0?ur[Vt].response=(tr=Qt.data)==null?void 0:tr.data:(oe.ZP.warning((It=Qt.data)==null?void 0:It.message),Pt="error"),ur[Vt].status=Pt),[...ur]})}).catch(function(Qt){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Qt),(Qt==null?void 0:Qt.name)!=="cancel"&&Rt(ur=>{const sr=ur.findIndex(tr=>tr.name===vt);return sr!==-1&&(ur[sr].status="error"),[...ur]})})});return je.createElement("div",{className:re.content},!Cr&&!Yr&&vr&&je.createElement("div",{className:re.introduceNoData,onClick:()=>{Lr(!0)}},je.createElement("div",{className:re.introduceAdd},je.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),je.createElement("div",{className:re.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!Cr&&Yr&&je.createElement("div",{className:re.introduceContent},je.createElement("div",{className:re.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",vr&&je.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Lr(!0)}})),je.createElement("div",{className:re.introContentWrap},je.createElement("div",null,je.createElement("div",{ref:Xt,style:Xr>0?{height:Xr===1?80:"auto",overflow:Xr===1?"hidden":"auto"}:{paddingRight:0}},je.createElement("div",{ref:Ut},je.createElement(ce.Z,{value:Yr,style:{fontSize:"14px"}}))),!!Xr&&je.createElement(He.Fragment,null,Xr===1?je.createElement("div",{onClick:()=>{or(2)},className:re.action},"\u5C55\u5F00",je.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):je.createElement("div",{onClick:()=>{or(1)},className:re.action},"\u6536\u8D77",je.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),Cr&&je.createElement("div",{style:{marginTop:"30px"}},je.createElement(le.Z,{watch:!0,onChange:Er=>{kt(Er)},defaultValue:Et,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),je.createElement("div",{className:re.introduceButton},je.createElement("div",{className:re.close,onClick:Er=>{Er.stopPropagation(),Lr(!1)}},"\u53D6\u6D88"),je.createElement("div",{className:re.submit,onClick:Er=>{Er.stopPropagation(),(0,ve.R2)({id:dr==null?void 0:dr.id,introduce:Et}).then(_r=>{(_r==null?void 0:_r.status)==0&&(oe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Lr(!1),Pr(!0))})}},"\u786E\u8BA4"))),je.createElement("div",{className:re.fileTable},je.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),vr&&je.createElement("div",{className:re.addBtn,onClick:()=>{hr(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),je.createElement(fe.default,{dataSource:wr==null?void 0:wr.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:Er=>je.createElement("span",{style:{color:"#666666"}},Er?Te()(Er).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u4E0B\u8F7D\u6570",align:"center",dataIndex:"downloads",ellipsis:!0,render:(Er,_r)=>je.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Ke(void 0,null,function*(){var pr;((0,Ae.Ny)()||((pr=Or==null?void 0:Or.userInfo)==null?void 0:pr.login)==="mfflo3p2e")&&(Nr(!0),pn.type=_r==null?void 0:_r.container_type,pn.id=_r==null?void 0:_r.container_id,pn.page=1,pn.limit=10,rn(rt({},pn)),yield zn(_r==null?void 0:_r.container_type,_r==null?void 0:_r.container_id))})},Er||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:vr?130:60,render:(Er,_r,pr)=>je.createElement("span",{style:{color:"#3061D0"}},je.createElement("div",{style:{display:"flex"}},je.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>Ke(void 0,null,function*(){yield(0,Me.Nd)(_r.title,_r==null?void 0:_r.download_url),yield(0,ve.SG)({id:_r==null?void 0:_r.id}),Pr()})},"\u4E0B\u8F7D"),vr&&je.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var Fr,kr,Hr,mn;let On=(kr=_r==null?void 0:_r.title)==null?void 0:kr.substring(((Fr=_r==null?void 0:_r.title)==null?void 0:Fr.lastIndexOf("."))+1);fr.setFieldsValue({title:(mn=_r==null?void 0:_r.title)==null?void 0:mn.substring(0,(Hr=_r==null?void 0:_r.title)==null?void 0:Hr.lastIndexOf(".")),description:_r==null?void 0:_r.description}),x.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:je.createElement("div",null,je.createElement(he.default,{form:fr,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},je.createElement(he.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},je.createElement(ge.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:je.createElement("span",null,".",On)})),je.createElement(he.default.Item,{label:"\u5907\u6CE8",name:"description"},je.createElement(ke.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>Ke(void 0,null,function*(){yield fr.validateFields(),(0,ve.A0)({id:dr==null?void 0:dr.id,attachment_id:_r.id,filename:fr.getFieldValue("title")+"."+On,description:fr.getFieldValue("description")}).then(_n=>{(_n==null?void 0:_n.status)==0&&(oe.ZP.success("\u7F16\u8F91\u6210\u529F"),Pr())})})})}},"\u7F16\u8F91"),vr&&je.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{x.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>Ke(void 0,null,function*(){(0,ve.Il)({attachment_id:_r==null?void 0:_r.id}).then(Fr=>{(Fr==null?void 0:Fr.status)==0&&(oe.ZP.success("\u5220\u9664\u6210\u529F"),ar({type:"user/getUserInfo"}),Pr(!0))})})})}},"\u5220\u9664")))}]}),je.createElement(x.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:mr,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:ir,disabled:Jr},width:"1000px",onOk:()=>Ke(void 0,null,function*(){const Er=qt.map(pr=>{var Fr;return{attachment_id:(Fr=pr.response)==null?void 0:Fr.attachment_id,description:br}});if(qt.length===0){oe.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}Lt(!0);const _r=yield(0,de.ZP)(`/api/data_sets/${dr==null?void 0:dr.id}/upload_attachments.json`,{method:"post",body:{attachments:Er}});(_r==null?void 0:_r.status)==0&&(oe.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Pr(),hr(!1),ar({type:"user/getUserInfo"})),Lt(!1)}),onCancel:()=>{if(Jr){x.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{hr(!1)}});return}hr(!1)},afterClose:()=>{Rt([]),nr(""),Lt(!1),Vn()}},je.createElement("div",{className:re.wrap},je.createElement("div",{className:"mb10"},je.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",je.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),je.createElement("div",null,je.createElement(be.default.Dragger,et(rt({},Jn),{height:300}),je.createElement("div",null,je.createElement("i",{className:`iconfont icon-shangchuan font50 ${re.colorBlue}`})),je.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",je.createElement("span",{className:`${re.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),je.createElement("div",{className:re.box},qt.map(Er=>je.createElement("div",{key:Er.id,className:re.row},je.createElement("div",{style:{display:"flex",alignItems:"center"}},je.createElement("div",{className:re.icon},Er.status==="done"&&je.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),Er.status==="error"&&je.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),je.createElement("div",{style:{flex:1}},je.createElement(xe.Z,{title:Er==null?void 0:Er.name},je.createElement("div",{style:{width:"100%",color:Er.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Me.tP)(Er==null?void 0:Er.name,9))),Er.status==="uploading"&&je.createElement(me.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:Er.percent,showInfo:!1,style:{width:"900px"}}))),je.createElement("i",{onClick:()=>Un(Er),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),je.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),je.createElement("div",null,je.createElement(ge.default,{allowClear:!0,value:br,onChange:Er=>{nr(Er.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),je.createElement(x.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:yr,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{Nr(!1)},footer:null},je.createElement("div",null,je.createElement(fe.default,{dataSource:Zr,scroll:{y:47*6},className:"mt10 mb10",loading:un,pagination:{total:Wn||0,onChange:(Er,_r)=>Ke(void 0,null,function*(){pn.page=Er,pn.limit=_r,rn(rt({},pn)),yield zn()}),onShowSizeChange:(Er,_r)=>Ke(void 0,null,function*(){pn.page=1,pn.limit=_r,rn(rt({},pn)),yield zn()}),current:pn==null?void 0:pn.page,pageSize:pn==null?void 0:pn.limit,showTotal:Er=>je.createElement(je.Fragment,null,"\u5171",je.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},Er),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:Er=>je.createElement("span",null,Er||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:Er=>je.createElement("span",null,Er||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:Er=>je.createElement("span",null,Er||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:Er=>je.createElement("span",{style:{color:"#666666"}},Er?Te()(Er).format("YYYY-MM-DD"):"--")}]}))))};var Ge=(0,xt.connect)(({polls:Dt,loading:jt,user:Mt,globalSetting:ar})=>({polls:Dt,globalSetting:ar,user:Mt,loading:jt.effects}))($e),ot=Xe(26227),Je=Xe(77019),ct=Xe(5269),st=Xe(99571),Ye={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},Le=Xe(14195),_e=Xe(59301),te=Object.defineProperty,ue=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Pe=(Dt,jt,Mt)=>jt in Dt?te(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,Ue=(Dt,jt)=>{for(var Mt in jt||(jt={}))we.call(jt,Mt)&&Pe(Dt,Mt,jt[Mt]);if(Fe)for(var Mt of Fe(jt))Ee.call(jt,Mt)&&Pe(Dt,Mt,jt[Mt]);return Dt},qe=(Dt,jt)=>ue(Dt,Re(jt)),nt=(Dt,jt,Mt)=>new Promise((ar,Or)=>{var wr=dr=>{try{Pr(Mt.next(dr))}catch(Cr){Or(Cr)}},vr=dr=>{try{Pr(Mt.throw(dr))}catch(Cr){Or(Cr)}},Pr=dr=>dr.done?ar(dr.value):Promise.resolve(dr.value).then(wr,vr);Pr((Mt=Mt.apply(Dt,jt)).next())});Te().locale("ZH-cn");function dt({user:Dt,vlist:jt=[],dispatch:Mt,params:ar,id:Or,memo_replies:wr,forumsDetail:vr}){return _e.createElement("aside",{className:Ye.comment},jt.map(function(Pr,dr){var Cr,Lr;return _e.createElement(Je.Z,{key:dr,className:Ye.commentItem},_e.createElement(ct.Z,{span:24},_e.createElement(Je.Z,null,_e.createElement(ct.Z,{flex:"1"},_e.createElement("a",{href:`/users/${Pr.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Pr==null?void 0:Pr.username),_e.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Pr.time)),(Pr.can_delete||Pr.user_id===((Cr=Dt.userInfo)==null?void 0:Cr.user_id)||Pr.user_login===((Lr=Dt.userInfo)==null?void 0:Lr.login))&&_e.createElement(ct.Z,{className:"forums-comment-delete",style:{display:"none"}},_e.createElement(xe.Z,{title:"\u5220\u9664"},_e.createElement(ot.Z,{className:"current",onClick:()=>{x.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:_e.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>nt(this,null,function*(){const Xr=yield(0,Le.sW)({id:Pr.id,memo_type:"data_set"}),or=wr.find(Ut=>Ut.id===Or).children.filter(Ut=>Ut.id!==Pr.id);wr.find(Ut=>Ut.id===Or).children=or,Mt({type:"forumsDetail/setForumsDetailData",payload:qe(Ue({},vr.forumsDetailData),{memo_replies:[...wr],memo_type:"data_set"})})})})}}))))),_e.createElement(ct.Z,null,_e.createElement(ce.Z,{value:Pr.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var lt=dt,ht=Xe(59301),St=Object.defineProperty,gt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,pt=(Dt,jt,Mt)=>jt in Dt?St(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,Ot=(Dt,jt)=>{for(var Mt in jt||(jt={}))Ct.call(jt,Mt)&&pt(Dt,Mt,jt[Mt]);if(mt)for(var Mt of mt(jt))wt.call(jt,Mt)&&pt(Dt,Mt,jt[Mt]);return Dt},At=(Dt,jt)=>gt(Dt,yt(jt)),Nt=(Dt,jt,Mt)=>new Promise((ar,Or)=>{var wr=dr=>{try{Pr(Mt.next(dr))}catch(Cr){Or(Cr)}},vr=dr=>{try{Pr(Mt.throw(dr))}catch(Cr){Or(Cr)}},Pr=dr=>dr.done?ar(dr.value):Promise.resolve(dr.value).then(wr,vr);Pr((Mt=Mt.apply(Dt,jt)).next())});Te().locale("ZH-cn");const Ht=({user:Dt,forumsDetail:jt,globalSetting:Mt,loading:ar,dispatch:Or,handleClick:wr,memoId:vr},Pr)=>{const{memo:dr,memo_replies:Cr}=jt.forumsDetailData||{},Lr=(0,xt.useParams)(),[Xr,or]=(0,He.useState)(""),[Ut,Xt]=(0,He.useState)(""),[Yr,qr]=(0,He.useState)(-1),[Et,kt]=(0,He.useState)(!1),[fr,qt]=(0,He.useState)(!1),[Rt,rr]=(0,He.useState)(1);(0,He.useEffect)(()=>{kt((dr==null?void 0:dr.reply_for_memo_count)>10)},[dr==null?void 0:dr.reply_for_memo_count]),(0,He.useEffect)(()=>{Or({type:"forumsDetail/getForumsDetailData",payload:{id:vr,memo_type:"data_set"}})},[]);const mr=()=>Nt(void 0,null,function*(){var ir;const Lt=Rt+1;rr(Lt);const br=yield(0,Le.z5)({id:vr,page:Lt,memo_type:"data_set"});br!=null&&br.memo_replies&&(Or({type:"forumsDetail/setForumsDetailData",payload:At(Ot({},jt.forumsDetailData),{memo_replies:[...Cr,...br.memo_replies]})}),kt(((ir=br.memo_replies)==null?void 0:ir.length)===10))}),hr=ir=>{var Lt,br,nr,Jr;return At(Ot({},ir),{image_url:(Lt=Dt.userInfo)==null?void 0:Lt.image_url,children:[],user_id:(br=Dt.userInfo)==null?void 0:br.user_id,user_login:(nr=Dt.userInfo)==null?void 0:nr.login,username:(Jr=Dt.userInfo)==null?void 0:Jr.username,time:`${(0,Me.li)((new Date().getTime()-new Date(ir.created_at).getTime())/1e3)}\u524D`})};return ht.createElement("section",{className:Ye.wrap},!!(Cr!=null&&Cr.length)&&ht.createElement("aside",{className:Ye.content},ht.createElement("aside",{className:Ye.replyList},Cr==null?void 0:Cr.map(function(ir,Lt){var br,nr,Jr;return ht.createElement(Je.Z,{gutter:[12,12],key:Lt},ht.createElement(ct.Z,{flex:"40px"},ht.createElement("a",{href:`/users/${ir.user_login}`,target:"_blank"},ht.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${ie.Z.IMG_SERVER}/images/${ir==null?void 0:ir.image_url}`}))),ht.createElement(ct.Z,{flex:"1"},ht.createElement(Je.Z,{align:"middle",className:Ye.commentParItem},ht.createElement(ct.Z,{span:24},ht.createElement(Je.Z,null,ht.createElement(ct.Z,{flex:"1"},ht.createElement("a",{href:`/users/${ir.user_login}`,target:"_blank"},ht.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},ir==null?void 0:ir.username)),ht.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},ir.time)),(ir.can_delete||ir.user_id===((br=Dt.userInfo)==null?void 0:br.user_id)||ir.user_login===((nr=Dt.userInfo)==null?void 0:nr.login))&&ht.createElement(ct.Z,{className:"forums-comment-par-delete",style:{display:"none"}},ht.createElement(xe.Z,{title:"\u5220\u9664"},ht.createElement(ot.Z,{className:"current",onClick:()=>{x.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ht.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Nt(this,null,function*(){const yr=yield(0,Le.sW)({id:ir.id,memo_type:"data_set"}),Nr=Cr.filter(Zr=>Zr.id!==ir.id);Or({type:"forumsDetail/setForumsDetailData",payload:At(Ot({},jt.forumsDetailData),{memo_replies:[...Nr],memo_type:"data_set"})})})})}}))))),ht.createElement(ct.Z,{span:24,style:{marginTop:"5px"}},ht.createElement("div",{onClick:wr},ht.createElement(ce.Z,{value:ir.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Jr=ir==null?void 0:ir.children)!=null&&Jr.length)&&ht.createElement(lt,{user:Dt,id:ir==null?void 0:ir.id,vlist:ir==null?void 0:ir.children,dispatch:Or,params:Lr,memo_replies:Cr,forumsDetail:jt}),ht.createElement(ct.Z,{span:24,className:"mt5 c-light-black"},Yr===Lt?ht.createElement("aside",null,ht.createElement(le.Z,{onChange:yr=>{Xt(yr)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),ht.createElement(Je.Z,null,ht.createElement(ct.Z,{span:24,className:"tr"},ht.createElement(st.ZP,{type:"primary",size:"middle",onClick:()=>Nt(this,null,function*(){if(Ut==="")oe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const yr=yield(0,Le.ts)({parent_id:ir.id,content:Ut,memo_type:"data_set"});Xt(null),yr&&(qr(-1),Cr.find(Nr=>Nr.id===yr.parent_id).children.push(hr(yr)),Or({type:"forumsDetail/setForumsDetailData",payload:At(Ot({},jt.forumsDetailData),{memo:At(Ot({},dr),{reply_for_memo_count:(dr==null?void 0:dr.reply_for_memo_count)+1}),memo_replies:[...Cr],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):ht.createElement("div",{className:"tr",style:{textAlign:"left"}},ht.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>qr(Lt)}),ht.createElement(xe.Z,{title:ir.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ht.createElement("span",{className:ir.user_praise?"c-orange":"c-gery-888"},ht.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>Nt(this,null,function*(){const yr=yield(0,Le.vL)({id:ir.id,container_type:"Memo",type:ir.user_praise?0:1,memo_type:"data_set"});(yr==null?void 0:yr.praise_count)>=0&&(Cr.find(Nr=>Nr.id===ir.id).user_praise=!ir.user_praise,Cr.find(Nr=>Nr.id===ir.id).praise_count=yr==null?void 0:yr.praise_count,Or({type:"forumsDetail/setForumsDetailData",payload:At(Ot({},jt.forumsDetailData),{memo_replies:[...Cr],memo_type:"data_set"})}))})}),ir.praise_count>0?ir.praise_count:"")))))))}))),Et&&ht.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},ht.createElement(Je.Z,{justify:"space-between"},ht.createElement(ct.Z,null),ht.createElement(ct.Z,null,Et&&ht.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:mr},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",ht.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),ht.createElement("aside",{className:Ye.reply},ht.createElement(le.Z,{onBlur:()=>qt(!1),isFocus:fr,defaultValue:Xr,id:"writeForumsReviewId",onChange:ir=>{or(ir)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ht.createElement(Je.Z,null,ht.createElement(ct.Z,{flex:"1"}),ht.createElement(ct.Z,null,ht.createElement("div",{className:Ye.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>Nt(void 0,null,function*(){if(Xr==="")oe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const ir=yield(0,Le.ts)({parent_id:dr==null?void 0:dr.id,content:Xr,memo_type:"data_set"});or(null),ir&&Or({type:"forumsDetail/setForumsDetailData",payload:At(Ot({},jt.forumsDetailData),{memo:At(Ot({},dr),{reply_for_memo_count:(dr==null?void 0:dr.reply_for_memo_count)+1}),memo_replies:[hr(ir),...Cr],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var gr=(0,xt.connect)(({user:Dt,forumsDetail:jt,loading:Mt,globalSetting:ar})=>({user:Dt,forumsDetail:jt,globalSetting:ar,loading:Mt.models.forumsDetail}),null,null,{forwardRef:!0})((0,He.forwardRef)(Ht)),$t=Xe(71360),Ar=Xe(97e3),er=Xe(59301),Ir=Object.defineProperty,$r=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,dn=Object.prototype.propertyIsEnumerable,tn=(Dt,jt,Mt)=>jt in Dt?Ir(Dt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Dt[jt]=Mt,Dr=(Dt,jt)=>{for(var Mt in jt||(jt={}))nn.call(jt,Mt)&&tn(Dt,Mt,jt[Mt]);if($r)for(var Mt of $r(jt))dn.call(jt,Mt)&&tn(Dt,Mt,jt[Mt]);return Dt},fn=(Dt,jt,Mt)=>new Promise((ar,Or)=>{var wr=dr=>{try{Pr(Mt.next(dr))}catch(Cr){Or(Cr)}},vr=dr=>{try{Pr(Mt.throw(dr))}catch(Cr){Or(Cr)}},Pr=dr=>dr.done?ar(dr.value):Promise.resolve(dr.value).then(wr,vr);Pr((Mt=Mt.apply(Dt,jt)).next())});let hn={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const Rr=({polls:Dt,globalSetting:jt,loading:Mt,dispatch:ar,user:Or})=>{var wr,vr,Pr;const dr=(0,xt.useParams)(),[Cr]=(0,xt.useSearchParams)(),[Lr,Xr]=(0,He.useState)(!1),[or,Ut]=(0,He.useState)(1),[Xt,Yr]=(0,He.useState)(null),[qr,Et]=(0,He.useState)(""),[kt,fr]=(0,He.useState)(),[qt,Rt]=(0,He.useState)(1),[rr,mr]=(0,He.useState)(1),hr=(0,He.useRef)([]),[ir,Lt]=(0,He.useState)([]),[br,nr]=(0,He.useState)(!1),[Jr,yr]=(0,He.useState)(!1),[Nr,Zr]=(0,He.useState)(!1),[an,un]=(0,He.useState)([]),[Cn,Wn]=(0,He.useState)(!1),[Rn,pn]=(0,He.useState)(0),[rn,zn]=(0,He.useState)({page:1,limit:10}),Jn=()=>fn(void 0,null,function*(){Wn(!0);const pr=yield(0,ve.iw)({container_type:Xt==null?void 0:Xt.container_type,container_id:Xt==null?void 0:Xt.container_id,page:rn==null?void 0:rn.page,limit:rn==null?void 0:rn.limit});(pr==null?void 0:pr.status)==0&&(un(pr==null?void 0:pr.data),pn(pr==null?void 0:pr.total_count),Wn(!1))});(0,He.useEffect)(()=>{Gn(),(0,de.ZP)("/api/teach_group_shares.json",{method:"get"}).then(pr=>{(pr==null?void 0:pr.status)==0&&Lt(pr==null?void 0:pr.groups)})},[]),(0,He.useEffect)(()=>{or==2&&Vn()},[or,qt]);const Un=(pr,Fr)=>(pr=Math.max(pr,0),Fr=Math.max(Fr,1),Math.ceil(pr/Fr)),Vn=()=>{(0,ve.Ce)({id:dr==null?void 0:dr.id,page:qt,limit:16}).then(pr=>{var Fr,kr;(pr==null?void 0:pr.status)==0&&(fr((Fr=pr==null?void 0:pr.data)==null?void 0:Fr.shixuns),mr(Un((kr=pr==null?void 0:pr.data)==null?void 0:kr.count,16)))})},Gn=(pr=!1)=>{yr(!0),(0,ve.Ru)(dr==null?void 0:dr.id).then(Fr=>{var kr,Hr;(Fr==null?void 0:Fr.status)==0&&(Yr(Fr==null?void 0:Fr.data),Xr((0,Ae.Ny)()||((kr=Fr==null?void 0:Fr.data)==null?void 0:kr.is_creator)),hr.current=(Hr=Fr==null?void 0:Fr.data)==null?void 0:Hr.share_group_ids,pr&&Et(new Date),yr(!1))})},Er=()=>{nr(!1)},_r=()=>{Gn(),nr(!1)};return er.createElement(y.Z,{spinning:Jr},er.createElement("section",{className:E.bg},Xt&&er.createElement(er.Fragment,null,er.createElement("div",{className:"edu-container"},er.createElement("aside",{className:"mt10"},er.createElement(De.Z,{separator:">"},er.createElement(De.Z.Item,null,er.createElement(xt.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),er.createElement(De.Z.Item,null,er.createElement(xt.Link,{to:`/dataset?tabId=${Cr.get("tabId")}`},hn[Cr.get("tabId")])),er.createElement(De.Z.Item,null,Xt==null?void 0:Xt.title))),er.createElement("aside",{className:E.wrap},er.createElement("div",{className:E.leftContent,style:{width:Lr?"78%":"87%"}},er.createElement("div",{className:E.header},er.createElement("div",{className:E.headerBack,onClick:()=>{xt.history.push(`/dataset?tabId=${Cr.get("tabId")}`)}},er.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),er.createElement("div",{className:E.title},Xt==null?void 0:Xt.title),er.createElement("div",{className:E.time},Xt==null?void 0:Xt.create_at)),er.createElement("div",{className:E.introduction},Xt==null?void 0:Xt.desc),er.createElement("div",{className:E.bottom},((wr=Xt==null?void 0:Xt.user_info)==null?void 0:wr.image_url)&&er.createElement("img",{className:E.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${ie.Z.IMG_SERVER}/images/${(vr=Xt==null?void 0:Xt.user_info)==null?void 0:vr.image_url}`}),er.createElement("div",{className:E.user_name},Xt==null?void 0:Xt.user_info_name),(Pr=Xt==null?void 0:Xt.data_set_tags)==null?void 0:Pr.map((pr,Fr)=>{var kr;return Fr<3?er.createElement("div",{key:Fr,className:E.tags_name},pr==null?void 0:pr.tag_name):Fr==3?er.createElement(xe.Z,{key:Fr,title:(kr=Xt==null?void 0:Xt.data_set_tags)==null?void 0:kr.map((Hr,mn)=>{var On;if(mn>2)return(Hr==null?void 0:Hr.tag_name)+(mn===((On=Xt==null?void 0:Xt.data_set_tags)==null?void 0:On.length)-1?"":"\u3001")}).join("")},er.createElement("div",{key:Fr,className:E.tags_name},"...")):null}),er.createElement("div",{className:E.buttonList},er.createElement(xe.Z,{title:`\u5F15\u7528\u6570\uFF1A${Xt==null?void 0:Xt.used_count}`},er.createElement("div",{className:`${E.buttonItem} current`},er.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),Xt==null?void 0:Xt.used_count)),er.createElement(xe.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${Xt==null?void 0:Xt.visited_count}`},er.createElement("div",{className:`${E.buttonItem} current`,onClick:()=>fn(void 0,null,function*(){var pr;((0,Ae.Ny)()||((pr=Or==null?void 0:Or.userInfo)==null?void 0:pr.login)==="mfflo3p2e")&&(Zr(!0),rn.page=1,rn.limit=10,zn(Dr({},rn)),yield Jn())})},er.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),Xt==null?void 0:Xt.visited_count)),er.createElement(xe.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${Xt==null?void 0:Xt.comment_count}`},er.createElement("div",{className:`${E.buttonItem} current`},er.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),Xt==null?void 0:Xt.comment_count))))),er.createElement("div",{className:E.rightContent,style:{width:Lr?"22%":"13%"}},Lr?er.createElement("div",{style:{display:"flex",marginLeft:"auto"}},er.createElement("div",{className:E.share,onClick:()=>fn(void 0,null,function*(){x.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:er.createElement("div",{className:`font14 ${E.overflow}`},er.createElement("div",{className:E.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),er.createElement(z.default.Group,{style:{marginTop:"10px"},defaultValue:Xt==null?void 0:Xt.share_group_ids,onChange:pr=>{hr.current=pr}},ir==null?void 0:ir.map(pr=>er.createElement(z.default,{key:pr==null?void 0:pr.group_id,value:pr==null?void 0:pr.group_id},pr==null?void 0:pr.name)))),onOk:()=>{(0,ve.l5)({ids:[Xt==null?void 0:Xt.id],clazz:"DataSet",group_ids:hr.current}).then(pr=>{(pr==null?void 0:pr.status)==0&&(oe.ZP.success("\u5171\u4EAB\u6210\u529F"),Gn())})}})})},"\u5171\u4EAB"),er.createElement("div",{className:E.publicStyle,onClick:()=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(Xt==null?void 0:Xt.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(Xt==null?void 0:Xt.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>fn(void 0,null,function*(){let pr;switch(Xt==null?void 0:Xt.public_status){case 0:pr=(0,ve.To)(Xt==null?void 0:Xt.id);break;case 1:pr=(0,ve.a6)(Xt==null?void 0:Xt.id);break;case 2:pr=(0,ve.Dx)(Xt==null?void 0:Xt.id);break;default:return}pr.then(Fr=>{(Fr==null?void 0:Fr.status)===0&&(oe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Gn())})})})}},(Xt==null?void 0:Xt.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(Xt==null?void 0:Xt.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),er.createElement(se.Z,{menu:{items:[{label:er.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{nr(!0)}},{label:er.createElement("div",{onClick:()=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return fn(this,null,function*(){(0,ve.pP)(Xt==null?void 0:Xt.id).then(pr=>{(pr==null?void 0:pr.status)==0&&(oe.ZP.success("\u5220\u9664\u6210\u529F"),xt.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},er.createElement("div",{className:E.more},er.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):er.createElement("div",{className:Xt!=null&&Xt.current_user_is_collect?E.collectActiveStyle:E.collectStyle,onClick:()=>{let pr;Xt!=null&&Xt.current_user_is_collect?pr=(0,ve.R9)({container_id:Xt==null?void 0:Xt.id,container_type:"DataSet"}):pr=(0,ve.nW)({container_id:Xt==null?void 0:Xt.id,container_type:"DataSet"}),pr.then(Fr=>{(Fr==null?void 0:Fr.status)===0&&Gn()})}},er.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",Xt==null?void 0:Xt.collect_count))),er.createElement("div",{className:E.content},er.createElement("div",{style:{display:"flex",alignItems:"center"}},er.createElement(ee.ZP.Group,{className:E.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:pr=>{var Fr;Ut((Fr=pr==null?void 0:pr.target)==null?void 0:Fr.value)},value:or}),er.createElement("div",{className:E.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${dr==null?void 0:dr.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),or==1&&er.createElement(Ge,{dataSetInfo:Xt,getInfo:Gn,key:qr,indexType:Lr}),or==2&&er.createElement("div",null,er.createElement("div",{className:E.shixunTooltip},er.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),er.createElement($t.wb,{dataSource:kt,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),rr>1&&er.createElement("div",{className:E.pageStyle},er.createElement("div",{className:qt==1?E.pageUnCan:E.pageCan,style:{marginRight:"10px"},onClick:()=>{qt>1&&Rt(qt-1)}},"\u4E0A\u4E00\u9875"),er.createElement("div",{className:qt==rr?E.pageUnCan:E.pageCan,style:{marginLeft:"10px"},onClick:()=>{qt<rr&&Rt(qt+1)}},"\u4E0B\u4E00\u9875"))),or==3&&er.createElement(gr,{memoId:Xt==null?void 0:Xt.memo_id})))),er.createElement(Ar.Z,{dataSetInfo:Xt,visible:br,onClose:Er,onSuccess:_r}),er.createElement(x.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Nr,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{Zr(!1)},footer:null},er.createElement("div",null,er.createElement(fe.default,{dataSource:an,loading:Cn,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:Rn||0,onChange:(pr,Fr)=>{rn.page=pr,rn.limit=Fr,zn(Dr({},rn)),Jn()},current:rn==null?void 0:rn.page,pageSize:rn==null?void 0:rn.limit,showTotal:pr=>er.createElement(er.Fragment,null,"\u5171",er.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},pr),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:pr=>er.createElement("span",null,pr||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:pr=>er.createElement("span",null,pr||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:pr=>er.createElement("span",null,pr||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:pr=>er.createElement("span",{style:{color:"#666666"}},pr?Te()(pr).format("YYYY-MM-DD"):"--")}]})))))};var jr=(0,xt.connect)(({polls:Dt,loading:jt,user:Mt,globalSetting:ar})=>({polls:Dt,globalSetting:ar,user:Mt,loading:jt.effects}))(Rr)},16573:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return fe}});var He=Xe(59301),xt=Xe(76560),y=Xe(82326),De=Xe(29787),xe=Xe(6767),x={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},z=Xe(67298),oe=Xe(59301),se=(E,ie,re)=>new Promise((le,ce)=>{var he=me=>{try{be(re.next(me))}catch(ve){ce(ve)}},ge=me=>{try{be(re.throw(me))}catch(ve){ce(ve)}},be=me=>me.done?le(me.value):Promise.resolve(me.value).then(he,ge);be((re=re.apply(E,ie)).next())});const ee=({user:E,width:ie,selectWidth:re,tags:le,getDataSet:ce,placeholder:he="\u5168\u90E8\u6807\u7B7E",isTagsValue:ge=!1})=>{const[be,me]=(0,He.useState)([]),[ve,Ce]=(0,He.useState)([]),[Te,Me]=(0,He.useState)(!1),ke=(0,He.useRef)(null);(0,He.useEffect)(()=>{de()},[]);const de=()=>se(void 0,null,function*(){Me(!0),yield(0,z.bj)({}).then(Se=>{(Se==null?void 0:Se.status)==0&&me(Se==null?void 0:Se.data)}),Me(!1)}),ye=le==null?void 0:le.map(Se=>Se.tag_name).join("\u3001");return oe.createElement(y.default,{onFocus:()=>{Ce(le)},ref:ke,style:{width:re?re+"px":300},placeholder:(le==null?void 0:le.length)>0?ge?oe.createElement("span",{className:"c-grey-333"},ye):`\u5DF2\u9009\u4E2D${le==null?void 0:le.length}\u4E2A\u6807\u7B7E`:he,size:"large",dropdownStyle:{width:ie+"px",zIndex:1e3},className:x.selectStyle,dropdownRender:()=>oe.createElement("div",{className:x.selectList,style:{width:ie+"px"}},oe.createElement("div",{className:x.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),oe.createElement(De.Z,{spinning:Te},oe.createElement("div",{className:x.selectContent},be==null?void 0:be.map((Se,Oe)=>{var Ne;return oe.createElement("aside",{key:Oe},oe.createElement("div",{className:x.contentTitle,style:{marginTop:Oe>0?"20px":"0"}},Se==null?void 0:Se.tag_type_cn),oe.createElement("div",{className:x.contentTags},(Ne=Se==null?void 0:Se.child)==null?void 0:Ne.map((Ae,je)=>{var Ze;return oe.createElement("div",{key:je,className:(Ze=ve==null?void 0:ve.map(ze=>ze==null?void 0:ze.id))!=null&&Ze.includes(Ae==null?void 0:Ae.id)?x.tagNameActive:x.tagName,onClick:()=>{var ze;(ze=ve==null?void 0:ve.map(Ve=>Ve==null?void 0:Ve.id))!=null&&ze.includes(Ae==null?void 0:Ae.id)?Ce(ve.filter(Ve=>(Ve==null?void 0:Ve.id)!=(Ae==null?void 0:Ae.id))):(ve==null?void 0:ve.length)<5?Ce([...ve,Ae]):xe.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},Ae==null?void 0:Ae.tag_name)})))}))),oe.createElement("div",{className:x.activeStyle},oe.createElement("div",{className:x.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),oe.createElement("div",{className:x.activeValue,style:{width:ie-120+"px"}},ve==null?void 0:ve.map((Se,Oe)=>oe.createElement("div",{key:Oe,className:x.activeItem},Se==null?void 0:Se.tag_name,oe.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{Ce(ve.filter(Ne=>(Ne==null?void 0:Ne.id)!==(Se==null?void 0:Se.id)))}}))))),oe.createElement("div",{style:{display:"flex",marginBottom:"20px"}},oe.createElement("div",{className:x.activeClose,onClick:Se=>{Se.stopPropagation(),ce([...le]),Ce([]),setTimeout(()=>{ke.current&&ke.current.blur()},10)}},"\u53D6\u6D88"),oe.createElement("div",{className:x.activeSubmit,onClick:Se=>{Se.stopPropagation(),ce([...ve]),Ce([]),setTimeout(()=>{ke.current&&ke.current.blur()},10)}},"\u786E\u8BA4")))})};var fe=(0,xt.connect)(({user:E})=>({user:E}))(ee)},67298:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{A0:function(){return Te},Ce:function(){return ge},Dx:function(){return E},Il:function(){return Ce},R2:function(){return he},R9:function(){return le},Ru:function(){return ce},SG:function(){return ke},To:function(){return fe},_S:function(){return ee},a6:function(){return ie},bj:function(){return se},iw:function(){return Me},l5:function(){return ve},nW:function(){return re},pP:function(){return me},pi:function(){return be}});var He=Xe(82093),xt=Object.defineProperty,y=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,x=(de,ye,Se)=>ye in de?xt(de,ye,{enumerable:!0,configurable:!0,writable:!0,value:Se}):de[ye]=Se,z=(de,ye)=>{for(var Se in ye||(ye={}))De.call(ye,Se)&&x(de,Se,ye[Se]);if(y)for(var Se of y(ye))xe.call(ye,Se)&&x(de,Se,ye[Se]);return de},oe=(de,ye,Se)=>new Promise((Oe,Ne)=>{var Ae=ze=>{try{Ze(Se.next(ze))}catch(Ve){Ne(Ve)}},je=ze=>{try{Ze(Se.throw(ze))}catch(Ve){Ne(Ve)}},Ze=ze=>ze.done?Oe(ze.value):Promise.resolve(ze.value).then(Ae,je);Ze((Se=Se.apply(de,ye)).next())});function se(de){return oe(this,null,function*(){return(0,He.ZP)("/api/data_sets/tags.json",{method:"get",params:z({},de)})})}function ee(de){return oe(this,null,function*(){return(0,He.ZP)("/api/data_sets.json",{method:"get",params:z({},de)})})}function fe(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de}/apply_public.json`,{method:"post"})})}function E(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de}/revoke_apply_public.json`,{method:"post"})})}function ie(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de}/cancel_public.json`,{method:"post"})})}function re(de){return oe(this,null,function*(){return(0,He.ZP)("/api/collections.json",{method:"post",body:z({},de)})})}function le(de){return oe(this,null,function*(){return(0,He.ZP)("/api/collections/cancel.json",{method:"delete",body:z({},de)})})}function ce(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de}.json`,{method:"get"})})}function he(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de==null?void 0:de.id}/edit_introduce.json`,{method:"put",body:z({},de)})})}function ge(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de==null?void 0:de.id}/used_shixuns.json`,{method:"get",params:z({},de)})})}function be(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/shixuns/${de}/data_sets_list.json`,{method:"get"})})}function me(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de}/delete.json`,{method:"delete"})})}function ve(de){return oe(this,null,function*(){return(0,He.ZP)("/api/teach_group_shares.json",{method:"post",body:z({},de)})})}function Ce(de){return oe(this,null,function*(){return(0,He.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:z({},de)})})}function Te(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/data_sets/${de==null?void 0:de.id}/edit_file_info.json`,{method:"put",body:z({},de)})})}function Me(de){return oe(this,null,function*(){return(0,He.ZP)("/api/visit_logs.json",{method:"get",params:z({},de)})})}function ke(de){return oe(this,null,function*(){return(0,He.ZP)(`/api/attachments/${de==null?void 0:de.id}/update_download.json`,{method:"get"})})}},90290:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{AL:function(){return ve},Iy:function(){return fe},Qv:function(){return re},ez:function(){return me},jb:function(){return E}});var He=Xe(32834),xt=Xe.n(He),y=Xe(11690),De=Xe.n(y);let xe=1;function x(de,ye){const Se=de.match(/^(\s+)(?:```)/);if(Se===null)return ye;const Oe=Se[1];return ye.split(`
`).map(Ne=>{const Ae=Ne.match(/^\s+/);if(Ae===null)return Ne;const[je]=Ae;return je.length>=Oe.length?Ne.slice(Oe.length):Ne}).join(`
`)}let z=[],oe=["<ul>"];const se=new(xt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function fe(){z.length=0,oe=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ie(de,ye,Se,Oe){if(ye>=de.length||de[ye].level<=Se)return ye;var Ne=de[ye];Oe.push("<li><a href='#"+xe+Ne.anchor+"'>"+Ne.text+"</a>"),ye++;var Ae=[];return ye=ie(de,ye,Ne.level,Ae),Ae.length>0&&(Oe.push("<ul>"),Ae.forEach(function(je){Oe.push(je)}),Oe.push("</ul>")),Oe.push("</li>"),ye=ie(de,ye,Se,Oe),ye}function re(){return ie(z,0,0,oe),oe.push("</ul>"),oe.join("")}const le={heading(de){const ye=ee.exec(de);if(xe+=1,ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences(de){const ye=this.rules.block.fences.exec(de);if(ye){const Se=ye[0];let Oe=x(Se,ye[3]||"");const Ne=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(Ne)>=0){const Ae=ge(),je=Oe;Oe=Ae,be[Ae]={type:"block",expression:je}}return{type:"code",raw:Se,lang:Ne,text:Oe}}}},ce=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const ge=()=>`__special_katext_id_${he++}__`;let be={};function me(){return be}function ve(){he=0,be={}}function Ce(de){return de=de.replace(ce,(ye,Se)=>{const Oe=ge();return be[Oe]={type:"inline",expression:Se},Oe}),de}const Te=se.listitem;se.listitem=function(de){return Te(Ce(de))};const Me=se.paragraph;se.paragraph=function(de){return Me(Ce(de))};const ke=se.tablecell;se.tablecell=function(de,ye){return ke(Ce(de),ye)},se.code=function(de,ye,Se){const Oe=(ye||"").match(/\S*/)[0];return Oe?["latex","katex","math"].indexOf(Oe)>=0?`<p class='editormd-tex'>${de}</p>`:`<pre class="prettyprint linenums"><code class="language-${ye}">${Se?de:(0,y.escape)(de,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Se?de:(0,y.escape)(de,!0))+"</code></pre>"},se.heading=function(de,ye,Se){let Oe=this.options.headerPrefix+Se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:Oe,level:ye,text:de}),"<h"+ye+' id="'+xe+Oe+'">'+de+"</h"+ye+">"},xt().setOptions({silent:!0,gfm:!0,pedantic:!1}),xt().use({tokenizer:le,renderer:se}),Gt.ZP=xt()},47257:function(lr){(function(Gt){(function(Xe){if(1)lr.exports=Xe();else var He})(function(){var Xe,He,xt;return function(){function y(De,xe,x){function z(ee,fe){if(!xe[ee]){if(!De[ee]){var E=void 0;if(!fe&&E)return require(ee,!0);if(oe)return oe(ee,!0);var ie=new Error("Cannot find module '"+ee+"'");throw ie.code="MODULE_NOT_FOUND",ie}var re=xe[ee]={exports:{}};De[ee][0].call(re.exports,function(le){var ce=De[ee][1][le];return z(ce||le)},re,re.exports,y,De,xe,x)}return xe[ee].exports}for(var oe=void 0,se=0;se<x.length;se++)z(x[se]);return z}return y}()({1:[function(y,De,xe){"use strict";var x=y("./browser/client");x.Buffer=y("buffer").Buffer,x.urllib=y("../shims/xhr"),x.version=y("./browser/version").version,De.exports=x},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=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 se=y("assert"),ee=y("../common/utils/checkBucketName"),fe=ee.checkBucketName,E=xe;function ie(le){return Array.isArray?Array.isArray(le):Object.prototype.toString.call(le)==="[object Array]"}function re(le){return le?ie(le)?le:[le]:[]}E.useBucket=function(ce){return fe(ce),this.options.bucket=ce,this},E.setBucket=function(ce){return fe(ce),this.options.bucket=ce,this},E.getBucket=function(){return this.options.bucket},E.deleteBucket=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return me=this._bucketRequestParams("DELETE",ge,"",be),Te.next=3,this.request(me);case 3:if(ve=Te.sent,!(ve.status===200||ve.status===204)){Te.next=6;break}return Te.abrupt("return",{res:ve.res});case 6:return Te.next=8,this.requestError(ve);case 8:throw Te.sent;case 9:case"end":return Te.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.putBucketACL=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be,me){var ve,Ce;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ve=this._bucketRequestParams("PUT",ge,"acl",me),ve.headers={"x-oss-acl":be},ve.successStatuses=[200],Me.next=5,this.request(ve);case 5:return Ce=Me.sent,Me.abrupt("return",{bucket:Ce.headers.location&&Ce.headers.location.substring(1)||null,res:Ce.res});case 7:case"end":return Me.stop()}},he,this)}));function ce(he,ge,be){return le.apply(this,arguments)}return ce}(),E.getBucketACL=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return me=this._bucketRequestParams("GET",ge,"acl",be),me.successStatuses=[200],me.xmlResponse=!0,Te.next=5,this.request(me);case 5:return ve=Te.sent,Te.abrupt("return",{acl:ve.data.AccessControlList.Grant,owner:{id:ve.data.Owner.ID,displayName:ve.data.Owner.DisplayName},res:ve.res});case 7:case"end":return Te.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.putBucketLogging=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be,me){var ve,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ve=this._bucketRequestParams("PUT",ge,"logging",me),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(ge,`</TargetBucket>
`),be&&(Ce+="<TargetPrefix>".concat(be,`</TargetPrefix>
`)),Ce+=`</LoggingEnabled>
</BucketLoggingStatus>`,ve.content=Ce,ve.mime="xml",ve.successStatuses=[200],ke.next=9,this.request(ve);case 9:return Te=ke.sent,ke.abrupt("return",{res:Te.res});case 11:case"end":return ke.stop()}},he,this)}));function ce(he,ge,be){return le.apply(this,arguments)}return ce}(),E.getBucketLogging=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve,Ce;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return me=this._bucketRequestParams("GET",ge,"logging",be),me.successStatuses=[200],me.xmlResponse=!0,Me.next=5,this.request(me);case 5:return ve=Me.sent,Ce=ve.data.LoggingEnabled,Me.abrupt("return",{enable:!!Ce,prefix:Ce&&Ce.TargetPrefix||null,res:ve.res});case 8:case"end":return Me.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.deleteBucketLogging=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return me=this._bucketRequestParams("DELETE",ge,"logging",be),me.successStatuses=[204,200],Te.next=4,this.request(me);case 4:return ve=Te.sent,Te.abrupt("return",{res:ve.res});case 6:case"end":return Te.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.putBucketCORS=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be,me){var ve,Ce,Te,Me,ke,de,ye,Se,Oe,Ne;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:for(be=be||[],se(be.length,"rules is required"),be.forEach(function(Ze){se(Ze.allowedOrigin,"allowedOrigin is required"),se(Ze.allowedMethod,"allowedMethod is required")}),ve=this._bucketRequestParams("PUT",ge,"cors",me),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Te=function(ze){Ce+="<AllowedOrigin>".concat(ze,"</AllowedOrigin>")},Me=function(ze){Ce+="<AllowedMethod>".concat(ze,"</AllowedMethod>")},ke=function(ze){Ce+="<AllowedHeader>".concat(ze,"</AllowedHeader>")},de=function(ze){Ce+="<ExposeHeader>".concat(ze,"</ExposeHeader>")},ye=0,Se=be.length;ye<Se;ye++)Oe=be[ye],Ce+="<CORSRule>",re(Oe.allowedOrigin).forEach(Te),re(Oe.allowedMethod).forEach(Me),re(Oe.allowedHeader).forEach(ke),re(Oe.exposeHeader).forEach(de),Oe.maxAgeSeconds&&(Ce+="<MaxAgeSeconds>".concat(Oe.maxAgeSeconds,"</MaxAgeSeconds>")),Ce+="</CORSRule>";return Ce+="</CORSConfiguration>",ve.content=Ce,ve.mime="xml",ve.successStatuses=[200],je.next=16,this.request(ve);case 16:return Ne=je.sent,je.abrupt("return",{res:Ne.res});case 18:case"end":return je.stop()}},he,this)}));function ce(he,ge,be){return le.apply(this,arguments)}return ce}(),E.getBucketCORS=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return me=this._bucketRequestParams("GET",ge,"cors",be),me.successStatuses=[200],me.xmlResponse=!0,ke.next=5,this.request(me);case 5:return ve=ke.sent,Ce=[],ve.data&&ve.data.CORSRule&&(Te=ve.data.CORSRule,ie(Te)||(Te=[Te]),Te.forEach(function(de){var ye={};Object.keys(de).forEach(function(Se){ye[Se.slice(0,1).toLowerCase()+Se.slice(1,Se.length)]=de[Se]}),Ce.push(ye)})),ke.abrupt("return",{rules:Ce,res:ve.res});case 9:case"end":return ke.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.deleteBucketCORS=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return me=this._bucketRequestParams("DELETE",ge,"cors",be),me.successStatuses=[204],Te.next=4,this.request(me);case 4:return ve=Te.sent,Te.abrupt("return",{res:ve.res});case 6:case"end":return Te.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.putBucketReferer=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be,me,ve){var Ce,Te,Me,ke;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(Ce=this._bucketRequestParams("PUT",ge,"referer",ve),Te=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Te+=" <AllowEmptyReferer>".concat(be?"true":"false",`</AllowEmptyReferer>
`),me&&me.length>0){for(Te+=` <RefererList>
`,Me=0;Me<me.length;Me++)Te+=" <Referer>".concat(me[Me],`</Referer>
`);Te+=` </RefererList>
`}else Te+=` <RefererList />
`;return Te+="</RefererConfiguration>",Ce.content=Te,Ce.mime="xml",Ce.successStatuses=[200],ye.next=10,this.request(Ce);case 10:return ke=ye.sent,ye.abrupt("return",{res:ke.res});case 12:case"end":return ye.stop()}},he,this)}));function ce(he,ge,be,me){return le.apply(this,arguments)}return ce}(),E.getBucketReferer=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){var me,ve,Ce;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return me=this._bucketRequestParams("GET",ge,"referer",be),me.successStatuses=[200],me.xmlResponse=!0,Me.next=5,this.request(me);case 5:return ve=Me.sent,Ce=ve.data.RefererList.Referer||null,Ce&&(ie(Ce)||(Ce=[Ce])),Me.abrupt("return",{allowEmpty:ve.data.AllowEmptyReferer==="true",referers:Ce,res:ve.res});case 9:case"end":return Me.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E.deleteBucketReferer=function(){var le=(0,oe.default)(z.default.mark(function he(ge,be){return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.next=2,this.putBucketReferer(ge,!0,null,be);case 2:return ve.abrupt("return",ve.sent);case 3:case"end":return ve.stop()}},he,this)}));function ce(he,ge){return le.apply(this,arguments)}return ce}(),E._bucketRequestParams=function(ce,he,ge,be){return{method:ce,bucket:he,subres:ge,timeout:be&&be.timeout,ctx:be&&be.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,De,xe){(function(x,z){(function(){"use strict";var oe=y("@babel/runtime/helpers/interopRequireDefault"),se=oe(y("@babel/runtime/regenerator")),ee=oe(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 fe=y("debug")("ali-oss"),E=y("xml2js"),ie=y("agentkeepalive"),re=y("merge-descriptors"),le=y("platform"),ce=y("utility"),he=y("urllib"),ge=y("./version"),be=y("bowser"),me=y("../common/signUtils"),ve=y("../common/client/initOptions"),Ce=y("../common/utils/createRequest"),Te=Ce.createRequest,Me=y("../common/utils/encoder"),ke=Me.encoder,de=y("../common/client/getReqUrl"),ye=de.getReqUrl,Se=y("../common/utils/setSTSToken"),Oe=Se.setSTSToken,Ne=y("../common/utils/retry"),Ae=Ne.retry,je=y("../common/utils/isFunction"),Ze=je.isFunction,ze=new ie;function Ve(){var et=le.name,Ke=le.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&Ke.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function it(){return location&&location.protocol==="https:"}function Ie(et,Ke){if(Ve(),!(this instanceof Ie))return new Ie(et,Ke);et&&et.inited?this.options=et:this.options=Ie.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=he,this.agent=this.options.agent||ze),this.ctx=Ke,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}De.exports=Ie,Ie.initOptions=function(Ke){Ke.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var $e=Object.assign({secure:it(),useFetch:!1},Ke);return ve($e)};var We=Ie.prototype;We.debug=fe,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(Ke){return this.debug("authorization stringToSign: %s",Ke,"info"),me.computeSignature(this.options.accessKeySecret,Ke,this.options.headerEncoding)},We._getReqUrl=ye,We.authorization=function(Ke,$e,Ge,ot){var Je=me.buildCanonicalString(Ke.toUpperCase(),$e,{headers:ot,parameters:Ge});return me.authorization(this.options.accessKeyId,this.options.accessKeySecret,Je,this.options.headerEncoding)},We.request=function(){var et=(0,ee.default)(se.default.mark(function Ke($e){var Ge=this;return se.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!this.options.retryMax){Je.next=6;break}return Je.next=3,Ae(tt.bind(this),this.options.retryMax,{errorHandler:function(st){var Ye=function(_e){if($e.stream)return!1;var te=[-1,-2].includes(_e.status),ue=Ge.options.requestErrorRetryHandle||function(){return!0};return te&&ue(_e)};return!!Ye(st)}})($e);case 3:return Je.abrupt("return",Je.sent);case 6:return Je.abrupt("return",tt.call(this,$e));case 7:case"end":return Je.stop()}},Ke,this)}));return function(Ke){return et.apply(this,arguments)}}();function tt(et){return rt.apply(this,arguments)}function rt(){return rt=(0,ee.default)(se.default.mark(function et(Ke){var $e,Ge,ot,Je,ct,st;return se.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!(this.options.stsToken&&Ze(this.options.refreshSTSToken))){Le.next=3;break}return Le.next=3,Oe.call(this);case 3:return $e=Te.call(this,Ke),this.options.useFetch||($e.params.mode="disable-fetch"),Je=!!Ke.stream,Le.prev=6,Le.next=9,this.urllib.request($e.url,$e.params);case 9:Ge=Le.sent,this.debug("response %s %s, got %s, headers: %j",Ke.method,$e.url,Ge.status,Ge.headers,"info"),Le.next=16;break;case 13:Le.prev=13,Le.t0=Le.catch(6),ot=Le.t0;case 16:if(!(Ge&&Ke.successStatuses&&Ke.successStatuses.indexOf(Ge.status)===-1)){Le.next=28;break}return Le.next=19,this.requestError(Ge);case 19:if(ct=Le.sent,!(ct.code==="RequestTimeTooSkewed"&&!Je)){Le.next=25;break}return this.options.amendTimeSkewed=+new Date(ct.serverTime)-new Date,Le.next=24,this.request(Ke);case 24:return Le.abrupt("return",Le.sent);case 25:ct.params=Ke,Le.next=32;break;case 28:if(!ot){Le.next=32;break}return Le.next=31,this.requestError(ot);case 31:ct=Le.sent;case 32:if(!ct){Le.next=34;break}throw ct;case 34:if(!Ke.xmlResponse){Le.next=39;break}return Le.next=37,this.parseXML(Ge.data);case 37:st=Le.sent,Ge.data=st;case 39:return Le.abrupt("return",Ge);case 40:case"end":return Le.stop()}},et,this,[[6,13]])})),rt.apply(this,arguments)}We._getResource=function(Ke){var $e="/";return Ke.bucket&&($e+="".concat(Ke.bucket,"/")),Ke.object&&($e+=ke(Ke.object,this.options.headerEncoding)),$e},We._escape=function(Ke){return ce.encodeURIComponent(Ke).replace(/%2F/g,"/")},We._getUserAgent=function(){var Ke=z&&z.browser?"js":"nodejs",$e="aliyun-sdk-".concat(Ke,"/").concat(ge.version),Ge=le.description;return!Ge&&z&&(Ge="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat($e," ").concat(Ge))},We._checkUserAgent=function(Ke){var $e=Ke.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return $e},We.checkBrowserAndVersion=function(Ke,$e){return be.name===Ke&&be.version.split(".")[0]===$e},We.parseXML=function(Ke){return new Promise(function($e,Ge){x.isBuffer(Ke)&&(Ke=Ke.toString()),E.parseString(Ke,{explicitRoot:!1,explicitArray:!1},function(ot,Je){ot?Ge(ot):$e(Je)})})},We.requestError=function(){var et=(0,ee.default)(se.default.mark(function $e(Ge){var ot,Je,ct,st;return se.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(ot=null,!(!Ge.data||!Ge.data.length)){Le.next=5;break}Ge.status===-1||Ge.status===-2?(ot=new Error(Ge.message),ot.name=Ge.name,ot.status=Ge.status,ot.code=Ge.name):(Ge.status===404?(ot=new Error("Object not exists"),ot.name="NoSuchKeyError",ot.status=404,ot.code="NoSuchKey"):Ge.status===412?(ot=new Error("Pre condition failed"),ot.name="PreconditionFailedError",ot.status=412,ot.code="PreconditionFailed"):(ot=new Error("Unknow error, status: ".concat(Ge.status)),ot.name="UnknownError",ot.status=Ge.status),ot.requestId=Ge.headers["x-oss-request-id"],ot.host=""),Le.next=32;break;case 5:return Je=String(Ge.data),this.debug("request response error data: %s",Je,"error"),Le.prev=7,Le.next=10,this.parseXML(Je);case 10:if(Le.t0=Le.sent,Le.t0){Le.next=13;break}Le.t0={};case 13:ct=Le.t0,Le.next=23;break;case 16:return Le.prev=16,Le.t1=Le.catch(7),this.debug(Je,"error"),Le.t1.message+=`
raw xml: `.concat(Je),Le.t1.status=Ge.status,Le.t1.requestId=Ge.headers["x-oss-request-id"],Le.abrupt("return",Le.t1);case 23:st=ct.Message||"unknow request error, status: ".concat(Ge.status),ct.Condition&&(st+=" (condition: ".concat(ct.Condition,")")),ot=new Error(st),ot.name=ct.Code?"".concat(ct.Code,"Error"):"UnknownError",ot.status=Ge.status,ot.code=ct.Code,ot.requestId=ct.RequestId,ot.hostId=ct.HostId,ot.serverTime=ct.ServerTime;case 32:return this.debug("generate error %j",ot,"error"),Le.abrupt("return",ot);case 34:case"end":return Le.stop()}},$e,this,[[7,16]])}));function Ke($e){return et.apply(this,arguments)}return Ke}()}).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,De,xe){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=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 se=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),fe=y("path"),E=y("mime"),ie=y("copy-to"),re=y("../common/utils/isBlob"),le=re.isBlob,ce=y("../common/utils/isFile"),he=ce.isFile,ge=y("../common/utils/isBuffer"),be=ge.isBuffer,me=xe;me.multipartUpload=function(){var ke=(0,se.default)(oe.default.mark(function ye(Se,Oe){var Ne,Ae,je,Ze,ze,Ve,it,Ie,We,tt=arguments;return oe.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Ne=tt.length>2&&tt[2]!==void 0?tt[2]:{},this.resetCancelFlag(),Ne.disabledMD5=Ne.disabledMD5===void 0?!0:!!Ne.disabledMD5,!(Ne.checkpoint&&Ne.checkpoint.uploadId)){et.next=8;break}return Oe&&he(Oe)&&(Ne.checkpoint.file=Oe),et.next=7,this._resumeMultipart(Ne.checkpoint,Ne);case 7:return et.abrupt("return",et.sent);case 8:return Ae=102400,Ne.mime||(he(Oe)?Ne.mime=E.getType(fe.extname(Oe.name)):le(Oe)?Ne.mime=Oe.type:be(Oe)?Ne.mime="":Ne.mime=E.getType(fe.extname(Oe))),Ne.headers=Ne.headers||{},this._convertMetaToHeaders(Ne.meta,Ne.headers),et.next=14,this._getFileSize(Oe);case 14:if(je=et.sent,!(je<Ae)){et.next=26;break}return Ne.contentLength=je,et.next=19,this.put(Se,Oe,Ne);case 19:if(Ze=et.sent,!(Ne&&Ne.progress)){et.next=23;break}return et.next=23,Ne.progress(1);case 23:return ze={res:Ze.res,bucket:this.options.bucket,name:Se,etag:Ze.res.headers.etag},(Ne.headers&&Ne.headers["x-oss-callback"]||Ne.callback)&&(ze.data=Ze.data),et.abrupt("return",ze);case 26:if(!(Ne.partSize&&parseInt(Ne.partSize,10)!==Ne.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ne.partSize&&Ne.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,Ne);case 32:if(Ve=et.sent,it=Ve.uploadId,Ie=this._getPartSize(je,Ne.partSize),We={file:Oe,name:Se,fileSize:je,partSize:Ie,uploadId:it,doneParts:[]},!(Ne&&Ne.progress)){et.next=39;break}return et.next=39,Ne.progress(0,We,Ve.res);case 39:return et.next=41,this._resumeMultipart(We,Ne);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},ye,this)}));function de(ye,Se){return ke.apply(this,arguments)}return de}(),me._resumeMultipart=function(){var ke=(0,se.default)(oe.default.mark(function ye(Se,Oe){var Ne,Ae,je,Ze,ze,Ve,it,Ie,We,tt,rt,et,Ke,$e,Ge,ot,Je,ct,st;return oe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Ne=this,!this.isCancel()){Le.next=3;break}throw this._makeCancelEvent();case 3:return Ae=Se.file,je=Se.fileSize,Ze=Se.partSize,ze=Se.uploadId,Ve=Se.doneParts,it=Se.name,Ie=[],Ve.length>0&&ie(Ve).to(Ie),We=this._divideParts(je,Ze),tt=We.length,rt=!1,et=function(te,ue){return new Promise(function(){var Re=(0,se.default)(oe.default.mark(function Fe(we,Ee){var Pe,Ue,qe,nt,dt;return oe.default.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:if(ht.prev=0,te.isCancel()){ht.next=29;break}return Pe=We[ue-1],ht.next=5,te._createBuffer(Ae,Pe.start,Pe.end);case 5:return Ue=ht.sent,qe={content:Ue,size:Pe.end-Pe.start},ht.prev=7,ht.next=10,te._uploadPart(it,ze,ue,qe,Oe);case 10:nt=ht.sent,ht.next=18;break;case 13:if(ht.prev=13,ht.t0=ht.catch(7),ht.t0.status!==404){ht.next=17;break}throw te._makeAbortEvent();case 17:throw ht.t0;case 18:if(!(!te.isCancel()&&!rt)){ht.next=26;break}if(Se.doneParts.push({number:ue,etag:nt.res.headers.etag}),!Oe.progress){ht.next=23;break}return ht.next=23,Oe.progress(Ve.length/(tt+1),Se,nt.res);case 23:we({number:ue,etag:nt.res.headers.etag}),ht.next=27;break;case 26:we();case 27:ht.next=30;break;case 29:we();case 30:ht.next=41;break;case 32:ht.prev=32,ht.t1=ht.catch(0),dt=new Error,dt.name=ht.t1.name,dt.message=ht.t1.message,dt.stack=ht.t1.stack,dt.partNum=ue,ie(ht.t1).to(dt),Ee(dt);case 41:case"end":return ht.stop()}},Fe,null,[[0,32],[7,13]])}));return function(Fe,we){return Re.apply(this,arguments)}}())},Ke=Array.from(new Array(tt),function(_e,te){return te+1}),$e=Ie.map(function(_e){return _e.number}),Ge=Ke.filter(function(_e){return $e.indexOf(_e)<0}),ot=5,Je=Oe.parallel||ot,Le.next=17,this._parallel(Ge,Je,function(_e){return new Promise(function(te,ue){et(Ne,_e).then(function(Re){Re&&Ie.push(Re),te()}).catch(function(Re){ue(Re)})})});case 17:if(ct=Le.sent,rt=!0,st=ct.find(function(_e){return _e.name==="abort"}),!st){Le.next=22;break}throw st;case 22:if(!this.isCancel()){Le.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(ct&&ct.length>0)){Le.next=28;break}throw ct[0].message="Failed to upload some parts with error: ".concat(ct[0].toString()," part_num: ").concat(ct[0].partNum),ct[0];case 28:return Le.next=30,this.completeMultipartUpload(it,ze,Ie,Oe);case 30:return Le.abrupt("return",Le.sent);case 31:case"end":return Le.stop()}},ye,this)}));function de(ye,Se){return ke.apply(this,arguments)}return de}(),me._getFileSize=function(){var ke=(0,se.default)(oe.default.mark(function ye(Se){return oe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!be(Se)){Ne.next=4;break}return Ne.abrupt("return",Se.length);case 4:if(!(le(Se)||he(Se))){Ne.next=6;break}return Ne.abrupt("return",Se.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ne.stop()}},ye)}));function de(ye){return ke.apply(this,arguments)}return de}();var ve=y("stream"),Ce=ve.Readable;function Te(ke,de){if(!(this instanceof Te))return new Te(ke,de);Ce.call(this,de),this.file=ke,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Te,Ce),Te.prototype.readFileAndPush=function(de){if(this.fileBuffer)for(var ye=!0;ye&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Se=this.start,Oe=Se+de;Oe=Oe>this.fileBuffer.length?this.fileBuffer.length:Oe,this.start=Oe,ye=this.push(this.fileBuffer.slice(Se,Oe))}},Te.prototype._read=function(de){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 ye=16*1024;de=de||ye;var Se=this;this.reader.onload=function(Ne){Se.fileBuffer=x.from(new Uint8Array(Ne.target.result)),Se.file=null,Se.readFileAndPush(de)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(de)};function Me(ke){return ke.arrayBuffer?ke.arrayBuffer():new Promise(function(de,ye){var Se=new FileReader;Se.onload=function(Oe){de(Oe.target.result)},Se.onerror=function(Oe){ye(Oe)},Se.readAsArrayBuffer(ke)})}me._createBuffer=function(){var ke=(0,se.default)(oe.default.mark(function ye(Se,Oe,Ne){var Ae,je;return oe.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(!(le(Se)||he(Se))){ze.next=8;break}return Ae=Se.slice(Oe,Ne),ze.next=4,Me(Ae);case 4:return je=ze.sent,ze.abrupt("return",x.from(je));case 8:if(!be(Se)){ze.next=12;break}return ze.abrupt("return",Se.subarray(Oe,Ne));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return ze.stop()}},ye)}));function de(ye,Se,Oe){return ke.apply(this,arguments)}return de}(),me._getPartSize=function(de,ye){var Se=1e4,Oe=1*1024*1024;ye||(ye=Oe);var Ne=Math.ceil(de/Se);return ye<Ne&&(ye=Ne,console.warn("partSize has been set to ".concat(ye,", because the partSize you provided causes partNumber to be greater than 10,000"))),ye},me._divideParts=function(de,ye){for(var Se=Math.ceil(de/ye),Oe=[],Ne=0;Ne<Se;Ne++){var Ae=ye*Ne,je=Math.min(Ae+ye,de);Oe.push({start:Ae,end:je})}return Oe}}).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,De,xe){"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")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("fs"),ee=y("copy-to"),fe=y("path"),E=y("mime"),ie=y("../common/callback"),re=y("merge-descriptors"),le=y("../common/utils/isBlob"),ce=le.isBlob,he=y("../common/utils/isFile"),ge=he.isFile,be=y("../common/utils/isBuffer"),me=be.isBuffer,ve=y("../common/utils/obj2xml"),Ce=ve.obj2xml,Te=xe;Te.append=function(){var Me=(0,oe.default)(z.default.mark(function de(ye,Se,Oe){var Ne;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Oe=Oe||{},Oe.position===void 0&&(Oe.position="0"),Oe.subres={append:"",position:Oe.position},Oe.method="POST",je.next=6,this.put(ye,Se,Oe);case 6:return Ne=je.sent,Ne.nextAppendPosition=Ne.res.headers["x-oss-next-append-position"],je.abrupt("return",Ne);case 9:case"end":return je.stop()}},de,this)}));function ke(de,ye,Se){return Me.apply(this,arguments)}return ke}(),Te.put=function(){var Me=(0,oe.default)(z.default.mark(function de(ye,Se,Oe){var Ne,Ae,je,Ze,ze;return z.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(Oe=Oe||{},Oe.disabledMD5=Oe.disabledMD5===void 0?!0:!!Oe.disabledMD5,Oe.headers=Oe.headers||{},ye=this._objectName(ye),!me(Se)){it.next=8;break}Ne=Se,it.next=19;break;case 8:if(!(ce(Se)||ge(Se))){it.next=18;break}return Oe.mime||(ge(Se)?Oe.mime=E.getType(fe.extname(Se.name)):Oe.mime=Se.type),it.next=12,this._createBuffer(Se,0,Se.size);case 12:return Ne=it.sent,it.next=15,this._getFileSize(Se);case 15:Oe.contentLength=it.sent,it.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Oe.meta,Oe.headers),Ae=Oe.method||"PUT",je=this._objectRequestParams(Ae,ye,Oe),ie.encodeCallback(je,Oe),je.mime=Oe.mime,je.disabledMD5=Oe.disabledMD5,je.content=Ne,je.successStatuses=[200],it.next=29,this.request(je);case 29:return Ze=it.sent,ze={name:ye,url:this._objectUrl(ye),res:Ze.res},je.headers&&je.headers["x-oss-callback"]&&(ze.data=JSON.parse(Ze.data.toString())),it.abrupt("return",ze);case 33:case"end":return it.stop()}},de,this)}));function ke(de,ye,Se){return Me.apply(this,arguments)}return ke}(),Te.putStream=function(){var Me=(0,oe.default)(z.default.mark(function de(ye,Se,Oe){var Ne,Ae,je,Ze;return z.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Oe=Oe||{},Oe.headers=Oe.headers||{},ye=this._objectName(ye),Oe.contentLength?Oe.headers["Content-Length"]=Oe.contentLength:Oe.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Oe.meta,Oe.headers),Ne=Oe.method||"PUT",Ae=this._objectRequestParams(Ne,ye,Oe),ie.encodeCallback(Ae,Oe),Ae.mime=Oe.mime,Ae.stream=Se,Ae.successStatuses=[200],Ve.next=13,this.request(Ae);case 13:return je=Ve.sent,Ze={name:ye,url:this._objectUrl(ye),res:je.res},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ze.data=JSON.parse(je.data.toString())),Ve.abrupt("return",Ze);case 17:case"end":return Ve.stop()}},de,this)}));function ke(de,ye,Se){return Me.apply(this,arguments)}return ke}(),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 Me=(0,oe.default)(z.default.mark(function de(ye,Se,Oe){var Ne;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,this.copy(ye,ye,{meta:Se||{},timeout:Oe&&Oe.timeout,ctx:Oe&&Oe.ctx});case 2:return Ne=je.sent,je.abrupt("return",Ne);case 4:case"end":return je.stop()}},de,this)}));function ke(de,ye,Se){return Me.apply(this,arguments)}return ke}(),Te.list=function(){var Me=(0,oe.default)(z.default.mark(function de(ye,Se){var Oe,Ne,Ae,je,Ze;return z.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Oe=this._objectRequestParams("GET","",Se),Oe.query=ye,Oe.xmlResponse=!0,Oe.successStatuses=[200],Ve.next=6,this.request(Oe);case 6:return Ne=Ve.sent,Ae=Ne.data.Contents||[],je=this,Ae&&(Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(it){return{name:it.Key,url:je._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:{id:it.Owner.ID,displayName:it.Owner.DisplayName}}})),Ze=Ne.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(it){return it.Prefix})),Ve.abrupt("return",{res:Ne.res,objects:Ae,prefixes:Ze,nextMarker:Ne.data.NextMarker||null,isTruncated:Ne.data.IsTruncated==="true"});case 13:case"end":return Ve.stop()}},de,this)}));function ke(de,ye){return Me.apply(this,arguments)}return ke}(),Te.listV2=function(){var Me=(0,oe.default)(z.default.mark(function de(ye){var Se,Oe,Ne,Ae,je,Ze,ze,Ve=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Se=Ve.length>1&&Ve[1]!==void 0?Ve[1]:{},Oe=ye["continuation-token"]||ye.continuationToken,Oe&&(Se.subres=Object.assign({"continuation-token":Oe},Se.subres)),Ne=this._objectRequestParams("GET","",Se),Ne.query=Object.assign({"list-type":2},ye),delete Ne.query["continuation-token"],delete Ne.query.continuationToken,Ne.xmlResponse=!0,Ne.successStatuses=[200],Ie.next=11,this.request(Ne);case 11:return Ae=Ie.sent,je=Ae.data.Contents||[],Ze=this,je&&(Array.isArray(je)||(je=[je]),je=je.map(function(We){var tt=null;return We.Owner&&(tt={id:We.Owner.ID,displayName:We.Owner.DisplayName}),{name:We.Key,url:Ze._objectUrl(We.Key),lastModified:We.LastModified,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:tt}})),ze=Ae.data.CommonPrefixes||null,ze&&(Array.isArray(ze)||(ze=[ze]),ze=ze.map(function(We){return We.Prefix})),Ie.abrupt("return",{res:Ae.res,objects:je,prefixes:ze,isTruncated:Ae.data.IsTruncated==="true",keyCount:+Ae.data.KeyCount,continuationToken:Ae.data.ContinuationToken||null,nextContinuationToken:Ae.data.NextContinuationToken||null});case 18:case"end":return Ie.stop()}},de,this)}));function ke(de){return Me.apply(this,arguments)}return ke}(),Te.restore=function(){var Me=(0,oe.default)(z.default.mark(function de(ye){var Se,Oe,Ne,Ae,je=arguments;return z.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return Se=je.length>1&&je[1]!==void 0?je[1]:{type:"Archive"},Se=Se||{},Se.subres=Object.assign({restore:""},Se.subres),Se.versionId&&(Se.subres.versionId=Se.versionId),Oe=this._objectRequestParams("POST",ye,Se),Se.type==="ColdArchive"&&(Ne={RestoreRequest:{Days:Se.Days?Se.Days:2,JobParameters:{Tier:Se.JobParameters?Se.JobParameters:"Standard"}}},Oe.content=Ce(Ne,{headers:!0}),Oe.mime="xml"),Oe.successStatuses=[202],ze.next=9,this.request(Oe);case 9:return Ae=ze.sent,ze.abrupt("return",{res:Ae.res});case 11:case"end":return ze.stop()}},de,this)}));function ke(de){return Me.apply(this,arguments)}return ke}(),Te._objectUrl=function(ke){return this._getReqUrl({bucket:this.options.bucket,object:ke})},Te._objectRequestParams=function(ke,de,ye){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");ye=ye||{},de=this._objectName(de);var Se={object:de,bucket:this.options.bucket,method:ke,subres:ye&&ye.subres,timeout:ye&&ye.timeout,ctx:ye&&ye.ctx};return ye.headers&&(Se.headers={},ee(ye.headers).to(Se.headers)),Se},Te._objectName=function(ke){return ke.replace(/^\/+/,"")},Te._convertMetaToHeaders=function(ke,de){ke&&Object.keys(ke).forEach(function(ye){de["x-oss-meta-".concat(ye)]=ke[ye]})},Te._deleteFileSafe=function(ke){var de=this;return new Promise(function(ye){se.exists(ke,function(Se){Se?se.unlink(ke,function(Oe){Oe&&de.debug("unlink %j error: %s",ke,Oe,"error"),ye()}):ye()})})}},{"../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,De,xe){"use strict";xe.version="6.18.1"},{}],7:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.abortBucketWorm=void 0;var se=y("../utils/checkBucketName");function ee(E,ie){return fe.apply(this,arguments)}function fe(){return fe=(0,oe.default)(z.default.mark(function E(ie,re){var le,ce;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return se.checkBucketName(ie),le=this._bucketRequestParams("DELETE",ie,"worm",re),ge.next=4,this.request(le);case 4:return ce=ge.sent,ge.abrupt("return",{res:ce.res,status:ce.status});case 6:case"end":return ge.stop()}},E,this)})),fe.apply(this,arguments)}xe.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.completeBucketWorm=void 0;var se=y("../utils/checkBucketName");function ee(E,ie,re){return fe.apply(this,arguments)}function fe(){return fe=(0,oe.default)(z.default.mark(function E(ie,re,le){var ce,he;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return se.checkBucketName(ie),ce=this._bucketRequestParams("POST",ie,{wormId:re},le),be.next=4,this.request(ce);case 4:return he=be.sent,be.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return be.stop()}},E,this)})),fe.apply(this,arguments)}xe.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.deleteBucketInventory=void 0;var se=y("../utils/checkBucketName");function ee(E,ie){return fe.apply(this,arguments)}function fe(){return fe=(0,oe.default)(z.default.mark(function E(ie,re){var le,ce,he,ge,be=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return le=be.length>2&&be[2]!==void 0?be[2]:{},ce=Object.assign({inventory:"",inventoryId:re},le.subres),se.checkBucketName(ie),he=this._bucketRequestParams("DELETE",ie,ce,le),he.successStatuses=[204],ve.next=7,this.request(he);case 7:return ge=ve.sent,ve.abrupt("return",{status:ge.status,res:ge.res});case 9:case"end":return ve.stop()}},E,this)})),fe.apply(this,arguments)}xe.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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=xe;fe.deleteBucketLifecycle=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce){var he,ge;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ee(le),he=this._bucketRequestParams("DELETE",le,"lifecycle",ce),he.successStatuses=[204],me.next=5,this.request(he);case 5:return ge=me.sent,me.abrupt("return",{res:ge.res});case 7:case"end":return me.stop()}},re,this)}));function ie(re,le){return E.apply(this,arguments)}return ie}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=xe;fe.deleteBucketWebsite=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce){var he,ge;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ee(le),he=this._bucketRequestParams("DELETE",le,"website",ce),he.successStatuses=[204],me.next=5,this.request(he);case 5:return ge=me.sent,me.abrupt("return",{res:ge.res});case 7:case"end":return me.stop()}},re,this)}));function ie(re,le){return E.apply(this,arguments)}return ie}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.extendBucketWorm=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function fe(ie,re,le,ce){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function ie(re,le,ce,he){var ge,be,me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return se.checkBucketName(re),ge=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:le},he),be={ExtendWormConfiguration:{RetentionPeriodInDays:ce}},ge.mime="xml",ge.content=ee.obj2xml(be,{headers:!0}),ge.successStatuses=[200],Ce.next=8,this.request(ge);case 8:return me=Ce.sent,Ce.abrupt("return",{res:me.res,status:me.status});case 10:case"end":return Ce.stop()}},ie,this)})),E.apply(this,arguments)}xe.extendBucketWorm=fe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.getBucketInventory=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function fe(ie,re){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function ie(re,le){var ce,he,ge,be,me=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ce=me.length>2&&me[2]!==void 0?me[2]:{},he=Object.assign({inventory:"",inventoryId:le},ce.subres),se.checkBucketName(re),ge=this._bucketRequestParams("GET",re,he,ce),ge.successStatuses=[200],ge.xmlResponse=!0,Ce.next=8,this.request(ge);case 8:return be=Ce.sent,Ce.abrupt("return",{status:be.status,res:be.res,inventory:ee.formatInventoryConfig(be.data)});case 10:case"end":return Ce.stop()}},ie,this)})),E.apply(this,arguments)}xe.getBucketInventory=fe},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=y("../utils/isArray"),E=fe.isArray,ie=y("../utils/formatObjKey"),re=ie.formatObjKey,le=xe;le.getBucketLifecycle=function(){var ce=(0,oe.default)(z.default.mark(function ge(be,me){var ve,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ee(be),ve=this._bucketRequestParams("GET",be,"lifecycle",me),ve.successStatuses=[200],ve.xmlResponse=!0,ke.next=6,this.request(ve);case 6:return Ce=ke.sent,Te=Ce.data.Rule||null,Te&&(E(Te)||(Te=[Te]),Te=Te.map(function(de){return de.ID&&(de.id=de.ID,delete de.ID),de.Tag&&!E(de.Tag)&&(de.Tag=[de.Tag]),re(de,"firstLowerCase")})),ke.abrupt("return",{rules:Te,res:Ce.res});case 10:case"end":return ke.stop()}},ge,this)}));function he(ge,be){return ce.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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=xe;fe.getBucketVersioning=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce){var he,ge,be;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee(le),he=this._bucketRequestParams("GET",le,"versioning",ce),he.xmlResponse=!0,he.successStatuses=[200],ve.next=6,this.request(he);case 6:return ge=ve.sent,be=ge.data.Status,ve.abrupt("return",{status:ge.status,versionStatus:be,res:ge.res});case 9:case"end":return ve.stop()}},re,this)}));function ie(re,le){return E.apply(this,arguments)}return ie}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=y("../utils/isObject"),E=fe.isObject,ie=xe;ie.getBucketWebsite=function(){var re=(0,oe.default)(z.default.mark(function ce(he,ge){var be,me,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee(he),be=this._bucketRequestParams("GET",he,"website",ge),be.successStatuses=[200],be.xmlResponse=!0,Te.next=6,this.request(be);case 6:return me=Te.sent,ve=[],me.data.RoutingRules&&me.data.RoutingRules.RoutingRule&&(E(me.data.RoutingRules.RoutingRule)?ve=[me.data.RoutingRules.RoutingRule]:ve=me.data.RoutingRules.RoutingRule),Te.abrupt("return",{index:me.data.IndexDocument&&me.data.IndexDocument.Suffix||"",supportSubDir:me.data.IndexDocument&&me.data.IndexDocument.SupportSubDir||"false",type:me.data.IndexDocument&&me.data.IndexDocument.Type,routingRules:ve,error:me.data.ErrorDocument&&me.data.ErrorDocument.Key||null,res:me.res});case 10:case"end":return Te.stop()}},ce,this)}));function le(ce,he){return re.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.getBucketWorm=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function fe(ie,re){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function ie(re,le){var ce,he;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return se.checkBucketName(re),ce=this._bucketRequestParams("GET",re,"worm",le),ce.successStatuses=[200],ce.xmlResponse=!0,be.next=6,this.request(ce);case 6:return he=be.sent,ee.dataFix(he.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),be.abrupt("return",Object.assign(Object.assign({},he.data),{res:he.res,status:he.status}));case 9:case"end":return be.stop()}},ie,this)})),E.apply(this,arguments)}xe.getBucketWorm=fe},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.initiateBucketWorm=void 0;var se=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function fe(ie,re,le){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function ie(re,le,ce){var he,ge,be;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee.checkBucketName(re),he=this._bucketRequestParams("POST",re,"worm",ce),ge={InitiateWormConfiguration:{RetentionPeriodInDays:le}},he.mime="xml",he.content=se.obj2xml(ge,{headers:!0}),he.successStatuses=[200],ve.next=8,this.request(he);case 8:return be=ve.sent,ve.abrupt("return",{res:be.res,wormId:be.res.headers["x-oss-worm-id"],status:be.status});case 10:case"end":return ve.stop()}},ie,this)})),E.apply(this,arguments)}xe.initiateBucketWorm=fe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.listBucketInventory=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function fe(ie){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function ie(re){var le,ce,he,ge,be,me,ve,Ce,Te=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return le=Te.length>1&&Te[1]!==void 0?Te[1]:{},ce=le.continuationToken,he=Object.assign({inventory:""},ce&&{"continuation-token":ce},le.subres),se.checkBucketName(re),ge=this._bucketRequestParams("GET",re,he,le),ge.successStatuses=[200],ge.xmlResponse=!0,ke.next=9,this.request(ge);case 9:return be=ke.sent,me=be.data,ve=be.res,Ce=be.status,ke.abrupt("return",{isTruncated:me.IsTruncated==="true",nextContinuationToken:me.NextContinuationToken,inventoryList:ee.formatInventoryConfig(me.InventoryConfiguration,!0),status:Ce,res:ve});case 12:case"end":return ke.stop()}},ie,this)})),E.apply(this,arguments)}xe.listBucketInventory=fe},{"../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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.putBucketInventory=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function fe(ie,re){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function ie(re,le){var ce,he,ge,be,me,ve,Ce,Te,Me,ke,de,ye=arguments;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ce=ye.length>2&&ye[2]!==void 0?ye[2]:{},he=Object.assign({inventory:"",inventoryId:le.id},ce.subres),se.checkBucketName(re),ge=le.OSSBucketDestination,be=le.optionalFields,me=le.includedObjectVersions,ve="acs:oss:::",Ce="acs:ram::".concat(ge.accountId,":role/"),Te={InventoryConfiguration:{Id:le.id,IsEnabled:le.isEnabled,Filter:{Prefix:le.prefix||""},Destination:{OSSBucketDestination:{Format:ge.format,AccountId:ge.accountId,RoleArn:"".concat(Ce).concat(ge.rolename),Bucket:"".concat(ve).concat(ge.bucket),Prefix:ge.prefix||"",Encryption:ge.encryption||""}},Schedule:{Frequency:le.frequency},IncludedObjectVersions:me,OptionalFields:{Field:(be==null?void 0:be.field)||[]}}},Me=ee.obj2xml(Te,{headers:!0,firstUpperCase:!0}),ke=this._bucketRequestParams("PUT",re,he,ce),ke.successStatuses=[200],ke.mime="xml",ke.content=Me,Oe.next=14,this.request(ke);case 14:return de=Oe.sent,Oe.abrupt("return",{status:de.status,res:de.res});case 16:case"end":return Oe.stop()}},ie,this)})),E.apply(this,arguments)}xe.putBucketInventory=fe},{"../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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=y("../utils/isArray"),E=fe.isArray,ie=y("../utils/deepCopy"),re=ie.deepCopy,le=y("../utils/isObject"),ce=le.isObject,he=y("../utils/obj2xml"),ge=he.obj2xml,be=y("../utils/checkObjectTag"),me=be.checkObjectTag,ve=y("../utils/getStrBytesCount"),Ce=ve.getStrBytesCount,Te=xe;Te.putBucketLifecycle=function(){var Se=(0,oe.default)(z.default.mark(function Ne(Ae,je,Ze){var ze,Ve,it,Ie,We;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ee(Ae),E(je)){rt.next=3;break}throw new Error("rules must be Array");case 3:return ze=this._bucketRequestParams("PUT",Ae,"lifecycle",Ze),Ve=[],it={LifecycleConfiguration:{Rule:Ve}},je.forEach(function(et){Me(et),ye(et),et.id&&(et.ID=et.id,delete et.id),Ve.push(et)}),Ie=ge(it,{headers:!0,firstUpperCase:!0}),ze.content=Ie,ze.mime="xml",ze.successStatuses=[200],rt.next=13,this.request(ze);case 13:return We=rt.sent,rt.abrupt("return",{res:We.res});case 15:case"end":return rt.stop()}},Ne,this)}));function Oe(Ne,Ae,je){return Se.apply(this,arguments)}return Oe}();function Me(Se){Se.days&&(Se.expiration={days:Se.days}),Se.date&&(Se.expiration={createdBeforeDate:Se.date})}function ke(Se,Oe){var Ne=Se.days,Ae=Se.createdBeforeDate;if(!Ne&&!Ae)throw new Error("".concat(Oe," must includes days or createdBeforeDate"));if(Ne&&!/^[1-9][0-9]*$/.test(Ne))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 de(Se){if(!E(Se)&&!ce(Se))throw new Error("tag must be Object or Array");Se=ce(Se)?[Se]:Se;var Oe={},Ne=re(Se);Ne.forEach(function(Ae){Oe[Ae.key]=Ae.value}),me(Oe)}function ye(Se){if(Se.id&&Ce(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");ke(Se.transition,"Transition")}if(Se.expiration){if(!Se.expiration.expiredObjectDeleteMarker)ke(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&&ke(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");de(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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=y("../utils/obj2xml"),E=fe.obj2xml,ie=xe;ie.putBucketVersioning=function(){var re=(0,oe.default)(z.default.mark(function ce(he,ge){var be,me,ve,Ce,Te=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(be=Te.length>2&&Te[2]!==void 0?Te[2]:{},ee(he),["Enabled","Suspended"].includes(ge)){ke.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return me=this._bucketRequestParams("PUT",he,"versioning",be),ve={VersioningConfiguration:{Status:ge}},me.mime="xml",me.content=E(ve,{headers:!0}),ke.next=10,this.request(me);case 10:return Ce=ke.sent,ke.abrupt("return",{res:Ce.res,status:Ce.status});case 12:case"end":return ke.stop()}},ce,this)}));function le(ce,he){return re.apply(this,arguments)}return le}()},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=y("../utils/obj2xml"),E=fe.obj2xml,ie=y("../utils/isArray"),re=ie.isArray,le=xe;le.putBucketWebsite=function(){var ce=(0,oe.default)(z.default.mark(function ge(be){var me,ve,Ce,Te,Me,ke,de,ye=arguments;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(me=ye.length>1&&ye[1]!==void 0?ye[1]:{},ve=ye.length>2?ye[2]:void 0,ee(be),Ce=this._bucketRequestParams("PUT",be,"website",ve),Te={Suffix:me.index||"index.html"},Me={IndexDocument:Te},ke={WebsiteConfiguration:Me},me.supportSubDir&&(Te.SupportSubDir=me.supportSubDir),me.type&&(Te.Type=me.type),me.error&&(Me.ErrorDocument={Key:me.error}),me.routingRules===void 0){Oe.next=14;break}if(re(me.routingRules)){Oe.next=13;break}throw new Error("RoutingRules must be Array");case 13:Me.RoutingRules={RoutingRule:me.routingRules};case 14:return ke=E(ke),Ce.content=ke,Ce.mime="xml",Ce.successStatuses=[200],Oe.next=20,this.request(Ce);case 20:return de=Oe.sent,Oe.abrupt("return",{res:de.res});case 22:case"end":return Oe.stop()}},ge,this)}));function he(ge){return ce.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,De,xe){(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"),xe.encodeCallback=function(oe,se){if(oe.headers=oe.headers||{},!Object.prototype.hasOwnProperty.call(oe.headers,"x-oss-callback")&&se.callback){var ee={callbackUrl:encodeURI(se.callback.url),callbackBody:se.callback.body};se.callback.host&&(ee.callbackHost=se.callback.host),se.callback.contentType&&(ee.callbackBodyType=se.callback.contentType);var fe=x.from(JSON.stringify(ee)).toString("base64");if(oe.headers["x-oss-callback"]=fe,se.callback.customValue){var E={};Object.keys(se.callback.customValue).forEach(function(ie){E["x:".concat(ie)]=se.callback.customValue[ie].toString()}),oe.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,De,xe){"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(xe,"__esModule",{value:!0}),xe.getReqUrl=void 0;var z=x(y("copy-to")),oe=x(y("url")),se=x(y("merge-descriptors")),ee=x(y("is-type-of")),fe=y("../utils/isIP"),E=y("../utils/checkConfigValid");function ie(re){var le={},ce=this.options.cname;E.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(le),re.bucket&&!ce&&!fe.isIP(le.hostname)&&!this.options.sldEnable&&(le.host="".concat(re.bucket,".").concat(le.host));var he="/";re.bucket&&this.options.sldEnable&&(he+="".concat(re.bucket,"/")),re.object&&(he+=this._escape(re.object).replace(/\+/g,"%2B")),le.pathname=he;var ge={};if(re.query&&se.default(ge,re.query),re.subres){var be={};ee.default.string(re.subres)?be[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(me){be[me]=""}):be=re.subres,se.default(ge,be)}return le.query=ge,oe.default.format(le)}xe.getReqUrl=ie},{"../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,De,xe){"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"),oe=y("../utils/checkBucketName"),se=oe.checkBucketName,ee=y("../utils/setRegion"),fe=ee.setRegion,E=y("../utils/checkConfigValid"),ie=E.checkConfigValid;function re(le,ce){ie(le,"endpoint");var he=z.parse(le);if(he.protocol||(he=z.parse("http".concat(ce?"s":"","://").concat(le))),he.protocol!=="http:"&&he.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return he}De.exports=function(le){if(!le||!le.accessKeyId||!le.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");le.stsToken&&!le.refreshSTSToken&&!le.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),le.bucket&&se(le.bucket);var ce=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},le);if(ce.accessKeyId=ce.accessKeyId.trim(),ce.accessKeySecret=ce.accessKeySecret.trim(),ce.timeout&&(ce.timeout=x(ce.timeout)),ce.endpoint)ce.endpoint=re(ce.endpoint,ce.secure);else if(ce.region)ce.endpoint=fe(ce.region,ce.internal,ce.secure);else throw new Error("require options.endpoint or options.region");return ce.inited=!0,ce}},{"../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,De,xe){"use strict";var x=y("merge-descriptors"),z=xe;x(z,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,fe=y("querystring"),E=y("js-base64"),ie=E.Base64.encode,re=xe;re.processObjectSave=function(){var ce=(0,oe.default)(z.default.mark(function ge(be,me,ve,Ce){var Te,Me,ke,de;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return le(be,"sourceObject"),le(me,"targetObject"),le(ve,"process"),me=this._objectName(me),Ce&&ee(Ce),Te=this._objectRequestParams("POST",be,{subres:"x-oss-process"}),Me=Ce?",b_".concat(ie(Ce)):"",me=ie(me),ke={"x-oss-process":"".concat(ve,"|sys/saveas,o_").concat(me).concat(Me)},Te.content=fe.stringify(ke),Se.next=12,this.request(Te);case 12:return de=Se.sent,Se.abrupt("return",{res:de.res,status:de.res.status});case 14:case"end":return Se.stop()}},ge,this)}));function he(ge,be,me,ve){return ce.apply(this,arguments)}return he}();function le(ce,he){if(!ce)throw new Error("".concat(he," is required"));if(typeof ce!="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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),fe=xe;fe.uploadPartCopy=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce,he,ge,be){var me,ve,Ce,Te,Me,ke=arguments;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return me=ke.length>5&&ke[5]!==void 0?ke[5]:{},me.headers=me.headers||{},ve=me.versionId||me.subres&&me.subres.versionId||null,ve?Ce="/".concat(be.sourceBucketName,"/").concat(encodeURIComponent(be.sourceKey),"?versionId=").concat(ve):Ce="/".concat(be.sourceBucketName,"/").concat(encodeURIComponent(be.sourceKey)),me.headers["x-oss-copy-source"]=Ce,ge&&(me.headers["x-oss-copy-source-range"]="bytes=".concat(ge)),me.subres={partNumber:he,uploadId:ce},Te=this._objectRequestParams("PUT",le,me),Te.mime=me.mime,Te.successStatuses=[200],ye.next=12,this.request(Te);case 12:return Me=ye.sent,ye.abrupt("return",{name:le,etag:Me.res.headers.etag,res:Me.res});case 14:case"end":return ye.stop()}},re,this)}));function ie(re,le,ce,he,ge){return E.apply(this,arguments)}return ie}(),fe.multipartUploadCopy=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce){var he,ge,be,me,ve,Ce,Te,Me,ke,de,ye,Se,Oe=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return he=Oe.length>2&&Oe[2]!==void 0?Oe[2]:{},this.resetCancelFlag(),ge=he.versionId,be=ge===void 0?null:ge,me={versionId:be},Ae.next=6,this._getObjectMeta(ce.sourceBucketName,ce.sourceKey,me);case 6:if(ve=Ae.sent,Ce=ve.res.headers["content-length"],ce.startOffset=ce.startOffset||0,ce.endOffset=ce.endOffset||Ce,!(he.checkpoint&&he.checkpoint.uploadId)){Ae.next=14;break}return Ae.next=13,this._resumeMultipartCopy(he.checkpoint,ce,he);case 13:return Ae.abrupt("return",Ae.sent);case 14:if(Te=102400,Me=ce.endOffset-ce.startOffset,!(Me<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(le,he);case 22:if(ke=Ae.sent,de=ke.uploadId,ye=this._getPartSize(Me,he.partSize),Se={name:le,copySize:Me,partSize:ye,uploadId:de,doneParts:[]},!(he&&he.progress)){Ae.next=29;break}return Ae.next=29,he.progress(0,Se,ke.res);case 29:return Ae.next=31,this._resumeMultipartCopy(Se,ce,he);case 31:return Ae.abrupt("return",Ae.sent);case 32:case"end":return Ae.stop()}},re,this)}));function ie(re,le){return E.apply(this,arguments)}return ie}(),fe._resumeMultipartCopy=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce,he){var ge,be,me,ve,Ce,Te,Me,ke,de,ye,Se,Oe,Ne,Ae,je,Ze,ze,Ve,it,Ie,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(ge=he.versionId,be=ge===void 0?null:ge,me={versionId:be},ve=le.copySize,Ce=le.partSize,Te=le.uploadId,Me=le.doneParts,ke=le.name,de=this._divideMultipartCopyParts(ve,Ce,ce.startOffset),ye=de.length,Se={headers:{}},he.copyheaders&&ee(he.copyheaders).to(Se.headers),be&&ee(me).to(Se),Oe=function(Ke,$e,Ge){return new Promise(function(){var ot=(0,oe.default)(z.default.mark(function Je(ct,st){var Ye,Le,_e;return z.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(ue.prev=0,Ke.isCancel()){ue.next=22;break}return Ye=de[$e-1],Le="".concat(Ye.start,"-").concat(Ye.end-1),ue.prev=4,ue.next=7,Ke.uploadPartCopy(ke,Te,$e,Le,Ge,Se);case 7:_e=ue.sent,ue.next=15;break;case 10:if(ue.prev=10,ue.t0=ue.catch(4),ue.t0.status!==404){ue.next=14;break}throw Ke._makeAbortEvent();case 14:throw ue.t0;case 15:if(Ke.isCancel()){ue.next=22;break}if(se("content-range ".concat(_e.res.headers["content-range"])),Me.push({number:$e,etag:_e.res.headers.etag}),le.doneParts=Me,!(he&&he.progress)){ue.next=22;break}return ue.next=22,he.progress(Me.length/ye,le,_e.res);case 22:ct(),ue.next=29;break;case 25:ue.prev=25,ue.t1=ue.catch(0),ue.t1.partNum=$e,st(ue.t1);case 29:case"end":return ue.stop()}},Je,null,[[0,25],[4,10]])}));return function(Je,ct){return ot.apply(this,arguments)}}())},Ne=Array.from(new Array(ye),function(et,Ke){return Ke+1}),Ae=Me.map(function(et){return et.number}),je=Ne.filter(function(et){return Ae.indexOf(et)<0}),Ze=5,ze=he.parallel||Ze,!(this.checkBrowserAndVersion("Internet Explorer","10")||ze===1)){rt.next=28;break}Ve=0;case 18:if(!(Ve<je.length)){rt.next=26;break}if(!this.isCancel()){rt.next=21;break}throw this._makeCancelEvent();case 21:return rt.next=23,Oe(this,je[Ve],ce);case 23:Ve++,rt.next=18;break;case 26:rt.next=40;break;case 28:return rt.next=30,this._parallelNode(je,ze,Oe,ce);case 30:if(it=rt.sent,Ie=it.find(function(et){return et.name==="abort"}),!Ie){rt.next=34;break}throw Ie;case 34:if(!this.isCancel()){rt.next=36;break}throw this._makeCancelEvent();case 36:if(!(it&&it.length>0)){rt.next=40;break}throw We=it[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(ke,Te,Me,he);case 42:return rt.abrupt("return",rt.sent);case 43:case"end":return rt.stop()}},re,this)}));function ie(re,le,ce){return E.apply(this,arguments)}return ie}(),fe._divideMultipartCopyParts=function(ie,re,le){for(var ce=Math.ceil(ie/re),he=[],ge=0;ge<ce;ge++){var be=re*ge+le,me=Math.min(be+re,ie+le);he.push({start:be,end:me})}return he},fe._getObjectMeta=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce,he){var ge,be;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ge=this.getBucket(),this.setBucket(le),ve.next=4,this.head(ce,he);case 4:return be=ve.sent,this.setBucket(ge),ve.abrupt("return",be);case 7:case"end":return ve.stop()}},re,this)}));function ie(re,le,ce){return E.apply(this,arguments)}return ie}()},{"@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,De,xe){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=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 se=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),fe=y("./callback"),E=y("./utils/deepCopy"),ie=E.deepCopyWith,re=y("./utils/isBuffer"),le=re.isBuffer,ce=y("./utils/omit"),he=ce.omit,ge=xe;ge.listUploads=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te){var Me,ke,de,ye;return oe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Te=Te||{},Me={},ee(Te).to(Me),Me.subres="uploads",ke=this._objectRequestParams("GET","",Me),ke.query=Ce,ke.xmlResponse=!0,ke.successStatuses=[200],Oe.next=10,this.request(ke);case 10:return de=Oe.sent,ye=de.data.Upload||[],Array.isArray(ye)||(ye=[ye]),ye=ye.map(function(Ne){return{name:Ne.Key,uploadId:Ne.UploadId,initiated:Ne.Initiated}}),Oe.abrupt("return",{res:de.res,uploads:ye,bucket:de.data.Bucket,nextKeyMarker:de.data.NextKeyMarker,nextUploadIdMarker:de.data.NextUploadIdMarker,isTruncated:de.data.IsTruncated==="true"});case 15:case"end":return Oe.stop()}},ve,this)}));function me(ve,Ce){return be.apply(this,arguments)}return me}(),ge.listParts=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te,Me,ke){var de,ye,Se;return oe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ke=ke||{},de={},ee(ke).to(de),de.subres={uploadId:Te},ye=this._objectRequestParams("GET",Ce,de),ye.query=Me,ye.xmlResponse=!0,ye.successStatuses=[200],Ne.next=10,this.request(ye);case 10:return Se=Ne.sent,Ne.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 Ne.stop()}},ve,this)}));function me(ve,Ce,Te,Me){return be.apply(this,arguments)}return me}(),ge.abortMultipartUpload=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te,Me){var ke,de,ye;return oe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return this._stop(),Me=Me||{},ke={},ee(Me).to(ke),ke.subres={uploadId:Te},de=this._objectRequestParams("DELETE",Ce,ke),de.successStatuses=[204],Oe.next=9,this.request(de);case 9:return ye=Oe.sent,Oe.abrupt("return",{res:ye.res});case 11:case"end":return Oe.stop()}},ve,this)}));function me(ve,Ce,Te){return be.apply(this,arguments)}return me}(),ge.initMultipartUpload=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te){var Me,ke,de;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Te=Te||{},Me={},ee(Te).to(Me),Me.headers=Me.headers||{},this._convertMetaToHeaders(Te.meta,Me.headers),Me.subres="uploads",ke=this._objectRequestParams("POST",Ce,Me),ke.mime=Te.mime,ke.xmlResponse=!0,ke.successStatuses=[200],Se.next=12,this.request(ke);case 12:return de=Se.sent,Se.abrupt("return",{res:de.res,bucket:de.data.Bucket,name:de.data.Key,uploadId:de.data.UploadId});case 14:case"end":return Se.stop()}},ve,this)}));function me(ve,Ce){return be.apply(this,arguments)}return me}(),ge.uploadPart=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te,Me,ke,de,ye,Se){var Oe,Ne;return oe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Oe={size:ye-de},Ne=x&&x.browser,!Ne){je.next=8;break}return je.next=5,this._createBuffer(ke,de,ye);case 5:Oe.content=je.sent,je.next=11;break;case 8:return je.next=10,this._createStream(ke,de,ye);case 10:Oe.stream=je.sent;case 11:return je.next=13,this._uploadPart(Ce,Te,Me,Oe,Se);case 13:return je.abrupt("return",je.sent);case 14:case"end":return je.stop()}},ve,this)}));function me(ve,Ce,Te,Me,ke,de,ye){return be.apply(this,arguments)}return me}(),ge.completeMultipartUpload=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te,Me,ke){var de,ye,Se,Oe,Ne,Ae,je,Ze;return oe.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:for(de=Me.concat().sort(function(it,Ie){return it.number-Ie.number}).filter(function(it,Ie,We){return!Ie||it.number!==We[Ie-1].number}),ye=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Se=0;Se<de.length;Se++)Oe=de[Se],ye+=`<Part>
`,ye+="<PartNumber>".concat(Oe.number,`</PartNumber>
`),ye+="<ETag>".concat(Oe.etag,`</ETag>
`),ye+=`</Part>
`;return ye+="</CompleteMultipartUpload>",ke=ke||{},Ne={},Ne=ie(ke,function(it){if(le(it))return null}),Ne.subres={uploadId:Te},Ne.headers=he(Ne.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ae=this._objectRequestParams("POST",Ce,Ne),fe.encodeCallback(Ae,Ne),Ae.mime="xml",Ae.content=ye,Ae.headers&&Ae.headers["x-oss-callback"]||(Ae.xmlResponse=!0),Ae.successStatuses=[200],Ve.next=17,this.request(Ae);case 17:if(je=Ve.sent,!ke.progress){Ve.next=21;break}return Ve.next=21,ke.progress(1,null,je.res);case 21:return Ze={res:je.res,bucket:Ae.bucket,name:Ce,etag:je.res.headers.etag},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ze.data=JSON.parse(je.data.toString())),Ve.abrupt("return",Ze);case 24:case"end":return Ve.stop()}},ve,this)}));function me(ve,Ce,Te,Me){return be.apply(this,arguments)}return me}(),ge._uploadPart=function(){var be=(0,se.default)(oe.default.mark(function ve(Ce,Te,Me,ke,de){var ye,Se,Oe,Ne;return oe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return de=de||{},ye={},ee(de).to(ye),ye.headers=ye.headers||{},ye.headers["Content-Length"]=ke.size,ye.headers=he(ye.headers,["x-oss-server-side-encryption"]),ye.subres={partNumber:Me,uploadId:Te},Se=this._objectRequestParams("PUT",Ce,ye),Se.mime=ye.mime,Oe=x&&x.browser,Oe?Se.content=ke.content:Se.stream=ke.stream,Se.successStatuses=[200],Se.disabledMD5=de.disabledMD5,je.next=15,this.request(Se);case 15:if(Ne=je.sent,Ne.res.headers.etag){je.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 ke.stream&&(ke.stream=null,Se.stream=null),je.abrupt("return",{name:Ce,etag:Ne.res.headers.etag,res:Ne.res});case 20:case"end":return je.stop()}},ve,this)}));function me(ve,Ce,Te,Me,ke){return be.apply(this,arguments)}return me}()}).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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("url"),ee=y("utility"),fe=y("copy-to"),E=y("../../common/signUtils"),ie=y("../utils/isIP"),re=ie.isIP,le=y("../utils/setSTSToken"),ce=le.setSTSToken,he=y("../utils/isFunction"),ge=he.isFunction,be=xe;be.asyncSignatureUrl=function(){var me=(0,oe.default)(z.default.mark(function Ce(Te,Me){var ke,de,ye,Se,Oe;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(Me=Me||{},Te=this._objectName(Te),Me.method=Me.method||"GET",ke=ee.timestamp()+(Me.expires||1800),de={bucket:this.options.bucket,object:Te},ye=this._getResource(de),!(this.options.stsToken&&ge(this.options.refreshSTSToken))){Ae.next=11;break}return Ae.next=11,ce.call(this);case 11:return this.options.stsToken&&(Me["security-token"]=this.options.stsToken),Se=E._signatureForURL(this.options.accessKeySecret,Me,ye,ke),Oe=se.parse(this._getReqUrl(de)),Oe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ke,Signature:Se.Signature},fe(Se.subResource).to(Oe.query),Ae.abrupt("return",Oe.format());case 17:case"end":return Ae.stop()}},Ce,this)}));function ve(Ce,Te){return me.apply(this,arguments)}return ve}()},{"../../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,De,xe){"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 oe=x(y("@babel/runtime/helpers/typeof")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),fe=ee.checkBucketName,E=xe,ie=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];E.copy=function(){var re=(0,se.default)(z.default.mark(function ce(he,ge,be,me){var ve,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return(0,oe.default)(be)==="object"&&(me=be),me=me||{},me.headers=me.headers||{},Object.keys(me.headers).forEach(function(de){me.headers["x-oss-copy-source-".concat(de.toLowerCase())]=me.headers[de]}),(me.meta||Object.keys(me.headers).find(function(de){return ie.includes(de.toLowerCase())}))&&(me.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(me.meta,me.headers),ge=this._getSourceName(ge,be),me.versionId&&(ge="".concat(ge,"?versionId=").concat(me.versionId)),me.headers["x-oss-copy-source"]=ge,ve=this._objectRequestParams("PUT",he,me),ve.xmlResponse=!0,ve.successStatuses=[200,304],ke.next=14,this.request(ve);case 14:return Ce=ke.sent,Te=Ce.data,Te&&(Te={etag:Te.ETag,lastModified:Te.LastModified}),ke.abrupt("return",{data:Te,res:Ce.res});case 18:case"end":return ke.stop()}},ce,this)}));function le(ce,he,ge,be){return re.apply(this,arguments)}return le}(),E._getSourceName=function(le,ce){return typeof ce=="string"?le=this._objectName(le):le[0]!=="/"?ce=this.options.bucket:(ce=le.replace(/\/(.+?)(\/.*)/,"$1"),le=le.replace(/(\/.+?\/)(.*)/,"$2")),fe(ce),le=encodeURIComponent(le),le="/".concat(ce,"/").concat(le),le}},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.delete=function(){var ee=(0,oe.default)(z.default.mark(function E(ie){var re,le,ce,he=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.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),le=this._objectRequestParams("DELETE",ie,re),le.successStatuses=[204],be.next=7,this.request(le);case 7:return ce=be.sent,be.abrupt("return",{res:ce.res});case 9:case"end":return be.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("utility"),ee=y("../utils/obj2xml"),fe=ee.obj2xml,E=xe;E.deleteMulti=function(){var ie=(0,oe.default)(z.default.mark(function le(ce){var he,ge,be,me,ve,Ce,Te,Me,ke,de,ye,Se,Oe,Ne=arguments;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(he=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},ge=[],!(!ce||!ce.length)){je.next=4;break}throw new Error("names is required");case 4:for(be=0;be<ce.length;be++)me={},typeof ce[be]=="string"?me.Key=se.escape(this._objectName(ce[be])):(ve=ce[be],Ce=ve.key,Te=ve.versionId,me.Key=se.escape(this._objectName(Ce)),me.VersionId=Te),ge.push(me);return Me={Delete:{Quiet:!!he.quiet,Object:ge}},ke=fe(Me,{headers:!0}),he.subres=Object.assign({delete:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),de=this._objectRequestParams("POST","",he),de.mime="xml",de.content=ke,de.xmlResponse=!0,de.successStatuses=[200],je.next=16,this.request(de);case 16:return ye=je.sent,Se=ye.data,Oe=Se&&Se.Deleted||null,Oe&&(Array.isArray(Oe)||(Oe=[Oe])),je.abrupt("return",{res:ye.res,deleted:Oe||[]});case 21:case"end":return je.stop()}},le,this)}));function re(le){return ie.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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.deleteObjectTagging=function(){var ee=(0,oe.default)(z.default.mark(function E(ie){var re,le,ce,he=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.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),ie=this._objectName(ie),le=this._objectRequestParams("DELETE",ie,re),le.successStatuses=[204],be.next=8,this.request(le);case 8:return ce=be.sent,be.abrupt("return",{status:ce.status,res:ce.res});case 10:case"end":return be.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"use strict";y("core-js/modules/es.array.concat.js");var x=y("url"),z=y("../utils/isIP"),oe=z.isIP,se=xe;se.generateObjectUrl=function(fe,E){if(oe(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 ie=x.parse(E),re=this.options.bucket;ie.hostname="".concat(re,".").concat(ie.hostname),ie.host="".concat(re,".").concat(ie.host),E=ie.format()}return E+this._escape(this._objectName(fe))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,De,xe){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),fe=y("is-type-of"),E=xe;E.get=function(){var ie=(0,se.default)(oe.default.mark(function le(ce,he){var ge,be,me,ve,Ce,Te,Me,ke,de=arguments;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ge=de.length>2&&de[2]!==void 0?de[2]:{},be=null,me=!1,fe.writableStream(he)?be=he:fe.string(he)?(be=ee.createWriteStream(he),me=!0):ge=he,ge=ge||{},ve=x&&x.browser,Ce=ge.responseCacheControl===null?"":"no-cache",Te=ve&&Ce?{"response-cache-control":Ce}:{},ge.subres=Object.assign(Te,ge.subres),ge.versionId&&(ge.subres.versionId=ge.versionId),ge.process&&(ge.subres["x-oss-process"]=ge.process),Se.prev=11,ke=this._objectRequestParams("GET",ce,ge),ke.writeStream=be,ke.successStatuses=[200,206,304],Se.next=17,this.request(ke);case 17:Me=Se.sent,me&&be.destroy(),Se.next=28;break;case 21:if(Se.prev=21,Se.t0=Se.catch(11),!me){Se.next=27;break}return be.destroy(),Se.next=27,this._deleteFileSafe(he);case 27:throw Se.t0;case 28:return Se.abrupt("return",{res:Me.res,content:Me.data});case 29:case"end":return Se.stop()}},le,this,[[11,21]])}));function re(le,ce){return ie.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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.getACL=function(){var ee=(0,oe.default)(z.default.mark(function E(ie){var re,le,ce,he=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.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),ie=this._objectName(ie),le=this._objectRequestParams("GET",ie,re),le.successStatuses=[200],le.xmlResponse=!0,be.next=9,this.request(le);case 9:return ce=be.sent,be.abrupt("return",{acl:ce.data.AccessControlList.Grant,owner:{id:ce.data.Owner.ID,displayName:ce.data.Owner.DisplayName},res:ce.res});case 11:case"end":return be.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe,ee=y("../utils/isObject"),fe=ee.isObject,E=y("../utils/isArray"),ie=E.isArray;se.getBucketVersions=re,se.listObjectVersions=re;function re(){return le.apply(this,arguments)}function le(){return le=(0,oe.default)(z.default.mark(function ge(){var be,me,ve,Ce,Te,Me,ke,de,ye=arguments;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(be=ye.length>0&&ye[0]!==void 0?ye[0]:{},me=ye.length>1&&ye[1]!==void 0?ye[1]:{},!(be.versionIdMarker&&be.keyMarker===void 0)){Oe.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return me.subres=Object.assign({versions:""},me.subres),me.versionId&&(me.subres.versionId=me.versionId),ve=this._objectRequestParams("GET","",me),ve.xmlResponse=!0,ve.successStatuses=[200],ve.query=he(be),Oe.next=12,this.request(ve);case 12:return Ce=Oe.sent,Te=Ce.data.Version||[],Me=Ce.data.DeleteMarker||[],ke=this,Te&&(Array.isArray(Te)||(Te=[Te]),Te=Te.map(function(Ne){return{name:Ne.Key,url:ke._objectUrl(Ne.Key),lastModified:Ne.LastModified,isLatest:Ne.IsLatest==="true",versionId:Ne.VersionId,etag:Ne.ETag,type:Ne.Type,size:Number(Ne.Size),storageClass:Ne.StorageClass,owner:{id:Ne.Owner.ID,displayName:Ne.Owner.DisplayName}}})),Me&&(ie(Me)||(Me=[Me]),Me=Me.map(function(Ne){return{name:Ne.Key,lastModified:Ne.LastModified,versionId:Ne.VersionId,owner:{id:Ne.Owner.ID,displayName:Ne.Owner.DisplayName}}})),de=Ce.data.CommonPrefixes||null,de&&(ie(de)||(de=[de]),de=de.map(function(Ne){return Ne.Prefix})),Oe.abrupt("return",{res:Ce.res,objects:Te,deleteMarker:Me,prefixes:de,nextMarker:Ce.data.NextKeyMarker||null,NextVersionIdMarker:Ce.data.NextVersionIdMarker||null,nextKeyMarker:Ce.data.NextKeyMarker||null,nextVersionIdMarker:Ce.data.NextVersionIdMarker||null,isTruncated:Ce.data.IsTruncated==="true"});case 21:case"end":return Oe.stop()}},ge,this)})),le.apply(this,arguments)}function ce(ge){return ge.replace(/([A-Z])/g,"-$1").toLowerCase()}function he(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},be={};return fe(ge)&&Object.keys(ge).forEach(function(me){be[ce(me)]=ge[me]}),be}},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.getObjectMeta=function(){var ee=(0,oe.default)(z.default.mark(function E(ie,re){var le,ce;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return re=re||{},ie=this._objectName(ie),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),le=this._objectRequestParams("HEAD",ie,re),le.successStatuses=[200],ge.next=8,this.request(le);case 8:return ce=ge.sent,ge.abrupt("return",{status:ce.status,res:ce.res});case 10:case"end":return ge.stop()}},E,this)}));function fe(E,ie){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe,ee=y("../utils/isObject"),fe=ee.isObject;se.getObjectTagging=function(){var E=(0,oe.default)(z.default.mark(function re(le){var ce,he,ge,be,me,ve,Ce=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ce=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ce.subres=Object.assign({tagging:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),le=this._objectName(le),he=this._objectRequestParams("GET",le,ce),he.successStatuses=[200],Me.next=8,this.request(he);case 8:return ge=Me.sent,Me.next=11,this.parseXML(ge.data);case 11:return be=Me.sent,me=be.TagSet.Tag,me=me&&fe(me)?[me]:me||[],ve={},me.forEach(function(ke){ve[ke.Key]=ke.Value}),Me.abrupt("return",{status:ge.status,res:ge.res,tag:ve});case 17:case"end":return Me.stop()}},re,this)}));function ie(re){return E.apply(this,arguments)}return ie}()},{"../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,De,xe){"use strict";var x=y("../utils/isIP"),z=x.isIP,oe=xe;oe.getObjectUrl=function(ee,fe){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return fe?fe[fe.length-1]!=="/"&&(fe+="/"):fe=this.options.endpoint.format(),fe+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.getSymlink=function(){var ee=(0,oe.default)(z.default.mark(function E(ie){var re,le,ce,he,ge=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ge.length>1&&ge[1]!==void 0?ge[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ie=this._objectName(ie),le=this._objectRequestParams("GET",ie,re),le.successStatuses=[200],me.next=8,this.request(le);case 8:return ce=me.sent,he=ce.res.headers["x-oss-symlink-target"],me.abrupt("return",{targetName:decodeURIComponent(he),res:ce.res});case 11:case"end":return me.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkEnv"),ee=se.checkEnv,fe=xe;fe.head=function(){var E=(0,oe.default)(z.default.mark(function re(le){var ce,he,ge,be,me=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ce=me.length>1&&me[1]!==void 0?me[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"),ce.subres=Object.assign({},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),he=this._objectRequestParams("HEAD",le,ce),he.successStatuses=[200,304],Ce.next=8,this.request(he);case 8:return ge=Ce.sent,be={meta:null,res:ge.res,status:ge.status},ge.status===200&&Object.keys(ge.headers).forEach(function(Te){Te.indexOf("x-oss-meta-")===0&&(be.meta||(be.meta={}),be.meta[Te.substring(11)]=ge.headers[Te])}),Ce.abrupt("return",be);case 12:case"end":return Ce.stop()}},re,this)}));function ie(re){return E.apply(this,arguments)}return ie}()},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.putACL=function(){var ee=(0,oe.default)(z.default.mark(function E(ie,re,le){var ce,he;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return le=le||{},le.subres=Object.assign({acl:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),le.headers=le.headers||{},le.headers["x-oss-object-acl"]=re,ie=this._objectName(ie),ce=this._objectRequestParams("PUT",ie,le),ce.successStatuses=[200],be.next=10,this.request(ce);case 10:return he=be.sent,be.abrupt("return",{res:he.res});case 12:case"end":return be.stop()}},E,this)}));function fe(E,ie,re){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/obj2xml"),ee=se.obj2xml,fe=y("../utils/checkObjectTag"),E=fe.checkObjectTag,ie=xe;ie.putObjectTagging=function(){var re=(0,oe.default)(z.default.mark(function ce(he,ge){var be,me,ve,Ce,Te=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return be=Te.length>2&&Te[2]!==void 0?Te[2]:{},E(ge),be.subres=Object.assign({tagging:""},be.subres),be.versionId&&(be.subres.versionId=be.versionId),he=this._objectName(he),me=this._objectRequestParams("PUT",he,be),me.successStatuses=[200],ge=Object.keys(ge).map(function(de){return{Key:de,Value:ge[de]}}),ve={Tagging:{TagSet:{Tag:ge}}},me.mime="xml",me.content=ee(ve),ke.next=13,this.request(me);case 13:return Ce=ke.sent,ke.abrupt("return",{res:Ce.res,status:Ce.status});case 15:case"end":return ke.stop()}},ce,this)}));function le(ce,he){return re.apply(this,arguments)}return le}()},{"../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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=xe;se.putSymlink=function(){var ee=(0,oe.default)(z.default.mark(function E(ie,re,le){var ce,he;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return le=le||{},le.headers=le.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(le.meta,le.headers),le.headers["x-oss-symlink-target"]=re,le.subres=Object.assign({symlink:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),le.storageClass&&(le.headers["x-oss-storage-class"]=le.storageClass),ie=this._objectName(ie),ce=this._objectRequestParams("PUT",ie,le),ce.successStatuses=[200],be.next=13,this.request(ce);case 13:return he=be.sent,be.abrupt("return",{res:he.res});case 15:case"end":return be.stop()}},E,this)}));function fe(E,ie,re){return ee.apply(this,arguments)}return fe}()},{"@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,De,xe){"use strict";var x=y("url"),z=y("utility"),oe=y("copy-to"),se=y("../../common/signUtils"),ee=y("../utils/isIP"),fe=ee.isIP,E=xe;E.signatureUrl=function(re,le){if(fe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");le=le||{},re=this._objectName(re),le.method=le.method||"GET";var ce=z.timestamp()+(le.expires||1800),he={bucket:this.options.bucket,object:re},ge=this._getResource(he);this.options.stsToken&&(le["security-token"]=this.options.stsToken);var be=se._signatureForURL(this.options.accessKeySecret,le,ge,ce),me=x.parse(this._getReqUrl(he));return me.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ce,Signature:be.Signature},oe(be.subResource).to(me.query),me.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator")),se=y("./utils/isArray"),ee=se.isArray,fe=xe;fe._parallelNode=function(){var E=(0,oe.default)(z.default.mark(function re(le,ce,he,ge){var be,me,ve,Ce,Te,Me,ke,de;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:be=this,me=[],ve=[],Ce=le.length/ce,Te=le.length%ce,Me=Te===0?Ce:(le.length-Te)/ce+1,ke=1,de=0;case 8:if(!(de<le.length)){Se.next=26;break}if(!be.isCancel()){Se.next=11;break}return Se.abrupt("break",26);case 11:if(ge?ve.push(he(be,le[de],ge)):ve.push(he(be,le[de])),!(ve.length===ce||ke===Me&&de===le.length-1)){Se.next=23;break}return Se.prev=13,ke+=1,Se.next=17,Promise.all(ve);case 17:Se.next=22;break;case 19:Se.prev=19,Se.t0=Se.catch(13),me.push(Se.t0);case 22:ve=[];case 23:de++,Se.next=8;break;case 26:return Se.abrupt("return",me);case 27:case"end":return Se.stop()}},re,this,[[13,19]])}));function ie(re,le,ce,he){return E.apply(this,arguments)}return ie}(),fe._parallel=function(ie,re,le){var ce=this;return new Promise(function(he){var ge=[];if(re<=0||!ie){he(ge);return}function be(Se){return function(){if(Se===null)throw new Error("Callback was already called.");var Oe=Se;Se=null;for(var Ne=arguments.length,Ae=new Array(Ne),je=0;je<Ne;je++)Ae[je]=arguments[je];Oe.apply(this,Ae)}}function me(Se){var Oe=-1,Ne=Se.length;return function(){return++Oe<Ne&&!ce.isCancel()?{value:Se[Oe],key:Oe}:null}}var ve=me(ie),Ce=!1,Te=0,Me=!1;function ke(Se){Te-=1,Se?(Ce=!0,ge.push(Se),he(ge)):Ce&&Te<=0?(Ce=!0,he(ge)):Me||(ce.isCancel()?he(ge):ye())}function de(Se,Oe){le(Se).then(function(Ne){Oe(null,Ne)}).catch(function(Ne){Oe(Ne)})}function ye(){for(Me=!0;Te<re&&!Ce&&!ce.isCancel();){var Se=ve();if(Se===null||ge.length>0){Ce=!0,Te<=0&&he(ge);return}Te+=1,de(Se.value,be(ke))}Me=!1}ye()})},fe.cancel=function(ie){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var le={name:"cancel",message:"cancel"};re.destroy(le)}}),this.multipartUploadStreams=[],ie&&this.abortMultipartUpload(ie.name,ie.uploadId,ie.options)},fe.isCancel=function(){return this.options.cancelFlag},fe.resetCancelFlag=function(){this.options.cancelFlag=!1},fe._stop=function(){this.options.cancelFlag=!0},fe._makeCancelEvent=function(){var ie={status:0,name:"cancel"};return ie},fe._makeAbortEvent=function(){var ie={status:0,name:"abort",message:"upload task has been abort"};return ie}},{"./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,De,xe){(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"),oe=y("is-type-of"),se=y("./utils/lowercaseKeyHeader"),ee=se.lowercaseKeyHeader;xe.buildCanonicalizedResource=function(E,ie){var re="".concat(E),le="?";if(oe.string(ie)&&ie.trim()!=="")re+=le+ie;else if(oe.array(ie))ie.sort(),re+=le+ie.join("&");else if(ie){var ce=function(be,me){return be[0]>me[0]?1:be[0]<me[0]?-1:0},he=function(be){re+=le+be,(ie[be]||ie[be]===0)&&(re+="=".concat(ie[be])),le="&"};Object.keys(ie).sort(ce).forEach(he)}return re},xe.buildCanonicalString=function(E,ie,re,le){re=re||{};var ce=ee(re.headers),he="x-oss-",ge=[],be={},me=[E.toUpperCase(),ce["content-md5"]||"",ce["content-type"],le||ce["x-oss-date"]];return Object.keys(ce).forEach(function(ve){var Ce=ve.toLowerCase();Ce.indexOf(he)===0&&(be[Ce]=String(ce[ve]).trim())}),Object.keys(be).sort().forEach(function(ve){ge.push("".concat(ve,":").concat(be[ve]))}),me=me.concat(ge),me.push(this.buildCanonicalizedResource(ie,re.parameters)),me.join(`
`)},xe.computeSignature=function(E,ie){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",le=z.createHmac("sha1",E);return le.update(x.from(ie,re)).digest("base64")},xe.authorization=function(E,ie,re,le){return"OSS ".concat(E,":").concat(this.computeSignature(ie,re,le))},xe._signatureForURL=function(E){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,le=arguments.length>3?arguments[3]:void 0,ce=arguments.length>4?arguments[4]:void 0,he={},ge=ie.subResource,be=ge===void 0?{}:ge;if(ie.process){var me="x-oss-process";be[me]=ie.process}if(ie.trafficLimit){var ve="x-oss-traffic-limit";be[ve]=ie.trafficLimit}if(ie.response&&Object.keys(ie.response).forEach(function(ke){var de="response-".concat(ke.toLowerCase());be[de]=ie.response[ke]}),Object.keys(ie).forEach(function(ke){var de=ke.toLowerCase(),ye=ie[ke];de.indexOf("x-oss-")===0?he[de]=ye:(de.indexOf("content-md5")===0||de.indexOf("content-type")===0)&&(he[ke]=ye)}),Object.prototype.hasOwnProperty.call(ie,"security-token")&&(be["security-token"]=ie["security-token"]),Object.prototype.hasOwnProperty.call(ie,"callback")){var Ce={callbackUrl:encodeURI(ie.callback.url),callbackBody:ie.callback.body};if(ie.callback.host&&(Ce.callbackHost=ie.callback.host),ie.callback.contentType&&(Ce.callbackBodyType=ie.callback.contentType),be.callback=x.from(JSON.stringify(Ce)).toString("base64"),ie.callback.customValue){var Te={};Object.keys(ie.callback.customValue).forEach(function(ke){Te["x:".concat(ke)]=ie.callback.customValue[ke]}),be["callback-var"]=x.from(JSON.stringify(Te)).toString("base64")}}var Me=this.buildCanonicalString(ie.method,re,{headers:he,parameters:be},le.toString());return{Signature:this.computeSignature(E,Me,ce),subResource:be}}}).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,De,xe){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkBucketName=void 0,xe.checkBucketName=function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!oe.test(x))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,De,xe){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkConfigValid=void 0;var x={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(oe){return typeof oe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(oe):oe.host?/^[a-zA-Z0-9._:/-]+$/.test(oe.host):!1}xe.checkConfigValid=function(oe,se){if(x[se]){var ee=!0;if(x[se]instanceof Function?ee=x[se](oe):ee=x[se].test(oe),!ee)throw new Error("The ".concat(se," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,De,xe){(function(x){(function(){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkEnv=void 0;function z(oe){x.browser&&console.warn(oe)}xe.checkEnv=z}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,De,xe){"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(xe,"__esModule",{value:!0}),xe.checkObjectTag=void 0;var x=y("./checkValid"),z=x.checkValid,oe=y("./isObject"),se=oe.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 (/)"}],fe={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(ie){if(!se(ie))throw new Error("tag must be Object");var re=Object.entries(ie);if(re.length>10)throw new Error("maximum of 10 tags for a object");var le=["key","value"];re.forEach(function(ce){ce.forEach(function(he,ge){z(he,fe[le[ge]])})})}xe.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,De,xe){"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(xe,"__esModule",{value:!0}),xe.checkValid=void 0;function x(z,oe){oe.forEach(function(se){if(se.validator)se.validator(z);else if(se.pattern&&!se.pattern.test(z))throw new Error(se.msg)})}xe.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,De,xe){(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(xe,"__esModule",{value:!0}),xe.createRequest=void 0;var z=y("./../../../shims/crypto/crypto.js"),oe=y("debug")("ali-oss"),se=y("mime"),ee=y("dateformat"),fe=y("copy-to"),E=y("path"),ie=y("./encoder"),re=ie.encoder,le=y("./isIP"),ce=le.isIP,he=y("./setRegion"),ge=he.setRegion,be=y("../client/getReqUrl"),me=be.getReqUrl,ve=y("./isDingTalk"),Ce=ve.isDingTalk;function Te(de,ye){return de[ye]||de[ye.toLowerCase()]}function Me(de,ye){delete de[ye],delete de[ye.toLowerCase()]}function ke(de){var ye=new Date;this.options.amendTimeSkewed&&(ye=+new Date+this.options.amendTimeSkewed);var Se={"x-oss-date":ee(ye,"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),fe(de.headers).to(Se),Te(Se,"Content-Type")||(de.mime&&de.mime.indexOf("/")>0?Se["Content-Type"]=de.mime:Ce()?Se["Content-Type"]="application/octet-stream":Se["Content-Type"]=se.getType(de.mime||E.extname(de.object||""))),Te(Se,"Content-Type")||Me(Se,"Content-Type"),de.content&&(de.disabledMD5||(!de.headers||!de.headers["Content-MD5"]?Se["Content-MD5"]=z.createHash("md5").update(x.from(de.content,"utf8")).digest("base64"):Se["Content-MD5"]=de.headers["Content-MD5"]),Se["Content-Length"]||(Se["Content-Length"]=de.content.length));var Oe=Object.prototype.hasOwnProperty;for(var Ne in Se)Se[Ne]&&Oe.call(Se,Ne)&&(Se[Ne]=re(String(Se[Ne]),this.options.headerEncoding));var Ae=this._getResource(de);if(Se.authorization=this.authorization(de.method,Ae,de.subres,Se,this.options.headerEncoding),ce(this.options.endpoint.hostname)){var je=this.options,Ze=je.region,ze=je.internal,Ve=je.secure,it=ge(Ze,ze,Ve);Se.host="".concat(de.bucket,".").concat(it.host)}var Ie=me.bind(this)(de);oe("request %s %s, with headers %j, !!stream: %s",de.method,Ie,Se,!!de.stream);var We=de.timeout||this.options.timeout,tt={method:de.method,content:de.content,stream:de.stream,headers:Se,timeout:We,writeStream:de.writeStream,customResponse:de.customResponse,ctx:de.ctx||this.ctx};return this.agent&&(tt.agent=this.agent),this.httpsAgent&&(tt.httpsAgent=this.httpsAgent),tt.enableProxy=!!this.options.enableProxy,tt.proxy=this.options.proxy?this.options.proxy:null,{url:Ie,params:tt}}xe.createRequest=ke}).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,De,xe){"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(xe,"__esModule",{value:!0}),xe.dataFix=void 0;var x=y("./isObject"),z=["true","TRUE","1",1],oe=["false","FALSE","0",0];function se(E,ie,re){if(x.isObject(E)){var le=ie.remove,ce=le===void 0?[]:le,he=ie.rename,ge=he===void 0?{}:he,be=ie.camel,me=be===void 0?[]:be,ve=ie.bool,Ce=ve===void 0?[]:ve,Te=ie.lowerFirst,Me=Te===void 0?!1:Te;return ce.forEach(function(ke){return delete E[ke]}),Object.entries(ge).forEach(function(ke){E[ke[0]]&&(E[ke[1]]||(E[ke[1]]=E[ke[0]],delete E[ke[0]]))}),me.forEach(function(ke){if(E[ke]){var de=ke.replace(/^(.)/,function(ye){return ye.toLowerCase()}).replace(/-(\w)/g,function(ye,Se){return Se.toUpperCase()});E[de]||(E[de]=E[ke])}}),Ce.forEach(function(ke){E[ke]=ee(E[ke])}),typeof re=="function"&&re(E),fe(E,Me),se}}xe.dataFix=se;function ee(E){return E?z.includes(E)?!0:oe.includes(E)?!1:E:!1}function fe(E,ie){ie&&Object.keys(E).forEach(function(re){var le=re.replace(/^\w/,function(ce){return ce.toLowerCase()});typeof E[le]=="undefined"&&(E[le]=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,De,xe){"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(xe,"__esModule",{value:!0}),xe.deepCopyWith=xe.deepCopy=void 0;var oe=y("./isBuffer");xe.deepCopy=function(se){if(se===null||(0,z.default)(se)!=="object")return se;if(oe.isBuffer(se))return se.slice();var ee=Array.isArray(se)?[]:{};return Object.keys(se).forEach(function(fe){ee[fe]=xe.deepCopy(se[fe])}),ee},xe.deepCopyWith=function(se,ee){function fe(E,ie,re){var le=ee(E,ie,re);if(le!==void 0)return le;if(E===null||(0,z.default)(E)!=="object")return E;if(oe.isBuffer(E))return E.slice();var ce=Array.isArray(E)?[]:{};return Object.keys(E).forEach(function(he){ce[he]=fe(E[he],he,E)}),ce}return ee?fe(se,"",null):xe.deepCopy(se)}},{"./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,De,xe){(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(xe,"__esModule",{value:!0}),xe.encoder=void 0;function z(oe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return se==="utf-8"?oe:x.from(oe).toString("latin1")}xe.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,De,xe){"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(xe,"__esModule",{value:!0}),xe.formatInventoryConfig=void 0;var x=y("../utils/dataFix"),z=y("../utils/isObject"),oe=y("../utils/isArray"),se=y("../utils/formatObjKey");function ee(E){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ie&&z.isObject(E)&&(E=[E]),oe.isArray(E)?E=E.map(fe):E=fe(E),E}xe.formatInventoryConfig=ee;function fe(E){return x.dataFix(E,{bool:["IsEnabled"]},function(ie){var re,le;ie.prefix=ie.Filter.Prefix,delete ie.Filter,ie.OSSBucketDestination=ie.Destination.OSSBucketDestination,ie.OSSBucketDestination.rolename=ie.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ie.OSSBucketDestination.RoleArn,ie.OSSBucketDestination.bucket=ie.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ie.OSSBucketDestination.Bucket,delete ie.Destination,ie.frequency=ie.Schedule.Frequency,delete ie.Schedule.Frequency,!((re=ie==null?void 0:ie.OptionalFields)===null||re===void 0)&&re.Field&&!oe.isArray((le=ie.OptionalFields)===null||le===void 0?void 0:le.Field)&&(ie.OptionalFields.Field=[ie.OptionalFields.Field])}),E=se.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,De,xe){"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(xe,"__esModule",{value:!0}),xe.formatObjKey=void 0;function oe(ee,fe,E){if(ee===null||(0,z.default)(ee)!=="object")return ee;var ie;if(Array.isArray(ee)){ie=[];for(var re=0;re<ee.length;re++)ie.push(oe(ee[re],fe,E))}else ie={},Object.keys(ee).forEach(function(le){ie[se(le,fe,E)]=oe(ee[le],fe,E)});return ie}xe.formatObjKey=oe;function se(ee,fe,E){return E&&E.exclude&&E.exclude.includes(ee)||(fe==="firstUpperCase"?ee=ee.replace(/^./,function(ie){return ie.toUpperCase()}):fe==="firstLowerCase"&&(ee=ee.replace(/^./,function(ie){return ie.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,De,xe){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.getStrBytesCount=void 0;function x(z){for(var oe=0,se=0;se<z.length;se++){var ee=z.charAt(se);/^[\u00-\uff]$/.test(ee)?oe+=1:oe+=2}return oe}xe.getStrBytesCount=x},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,De,xe){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isArray=void 0,xe.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,De,xe){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isBlob=void 0;function x(z){return typeof Blob!="undefined"&&z instanceof Blob}xe.isBlob=x},{}],65:[function(y,De,xe){(function(x){(function(){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isBuffer=void 0;function z(oe){return x.isBuffer(oe)}xe.isBuffer=z}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,De,xe){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isDingTalk=void 0;function z(){return!!(x.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}xe.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,De,xe){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isFile=void 0,xe.isFile=function(x){return typeof File!="undefined"&&x instanceof File}},{}],68:[function(y,De,xe){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isFunction=void 0,xe.isFunction=function(x){return typeof x=="function"}},{}],69:[function(y,De,xe){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isIP=void 0,xe.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}$/,oe=/^\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)||oe.test(x)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,De,xe){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isObject=void 0,xe.isObject=function(x){return Object.prototype.toString.call(x)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,De,xe){"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(xe,"__esModule",{value:!0}),xe.lowercaseKeyHeader=void 0;var x=y("./isObject");function z(oe){var se={};return x.isObject(oe)&&Object.keys(oe).forEach(function(ee){se[ee.toLowerCase()]=oe[ee]}),se}xe.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,De,xe){"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(xe,"__esModule",{value:!0}),xe.obj2xml=void 0;var x=y("./formatObjKey");function z(se){return Object.prototype.toString.call(se).replace(/(.*? |])/g,"").toLowerCase()}function oe(se,ee){var fe="";return ee&&ee.headers&&(fe=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(se=x.formatObjKey(se,"firstUpperCase")),z(se)==="object"?Object.keys(se).forEach(function(E){z(se[E])!=="undefined"&&z(se[E])!=="null"&&(z(se[E])==="string"||z(se[E])==="number"?fe+="<".concat(E,">").concat(se[E],"</").concat(E,">"):z(se[E])==="object"?fe+="<".concat(E,">").concat(oe(se[E]),"</").concat(E,">"):z(se[E])==="array"?fe+=se[E].map(function(ie){return"<".concat(E,">").concat(oe(ie),"</").concat(E,">")}).join(""):fe+="<".concat(E,">").concat(se[E].toString(),"</").concat(E,">"))}):fe+=se.toString(),fe}xe.obj2xml=oe},{"./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,De,xe){"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,fe){var E=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!E){if(Array.isArray(ee)||(E=z(ee))||fe&&ee&&typeof ee.length=="number"){E&&(ee=E);var ie=0,re=function(){};return{s:re,n:function(){return ie>=ee.length?{done:!0}:{done:!1,value:ee[ie++]}},e:function(be){throw be},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 le=!0,ce=!1,he;return{s:function(){E=E.call(ee)},n:function(){var be=E.next();return le=be.done,be},e:function(be){ce=!0,he=be},f:function(){try{!le&&E.return!=null&&E.return()}finally{if(ce)throw he}}}}function z(ee,fe){if(ee){if(typeof ee=="string")return oe(ee,fe);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 oe(ee,fe)}}function oe(ee,fe){(fe==null||fe>ee.length)&&(fe=ee.length);for(var E=0,ie=new Array(fe);E<fe;E++)ie[E]=ee[E];return ie}Object.defineProperty(xe,"__esModule",{value:!0}),xe.omit=void 0;function se(ee,fe){var E=Object.assign({},ee),ie=x(fe),re;try{for(ie.s();!(re=ie.n()).done;){var le=re.value;delete E[le]}}catch(ce){ie.e(ce)}finally{ie.f()}return E}xe.omit=se},{"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,De,xe){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.retry=void 0;function x(z,oe){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,fe=se.retryDelay,E=fe===void 0?500:fe,ie=se.errorHandler,re=ie===void 0?function(){return!0}:ie,le=function ce(){for(var he=arguments.length,ge=new Array(he),be=0;be<he;be++)ge[be]=arguments[be];return new Promise(function(me,ve){z.apply(void 0,ge).then(function(Ce){ee=0,me(Ce)}).catch(function(Ce){ee<oe&&re(Ce)?(ee++,setTimeout(function(){me(ce.apply(void 0,ge))},E)):(ee=0,ve(Ce))})})};return le}xe.retry=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,De,xe){"use strict";var x=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(xe,"__esModule",{value:!0}),xe.setRegion=void 0;var z=x(y("url")),oe=y("./checkConfigValid");function se(ee){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;oe.checkConfigValid(ee,"region");var ie=E?"https://":"http://",re=fe?"-internal.aliyuncs.com":".aliyuncs.com",le="vpc100-oss-cn-";return ee.substr(0,le.length)===le&&(re=".aliyuncs.com"),z.default.parse(ie+ee+re)}xe.setRegion=se},{"./checkConfigValid":52,url:472}],76:[function(y,De,xe){"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 oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkCredentials=xe.setSTSToken=void 0;var se=y("./formatObjKey");function ee(){return fe.apply(this,arguments)}function fe(){return fe=(0,oe.default)(z.default.mark(function ie(){var re,le;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:le=he.sent,le=se.formatObjKey(le,"firstLowerCase"),le.securityToken&&(le.stsToken=le.securityToken),E(le),Object.assign(this.options,le);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()}},ie,this)})),fe.apply(this,arguments)}xe.setSTSToken=ee;function E(ie){var re=["accessKeySecret","accessKeyId","stsToken"],le=Object.keys(ie);re.forEach(function(ce){if(!le.find(function(he){return he===ce}))throw Error("refreshSTSToken must return contains ".concat(ce))})}xe.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,De,xe){function x(oe,se,ee,fe,E,ie,re){try{var le=oe[ie](re),ce=le.value}catch(he){ee(he);return}le.done?se(ce):Promise.resolve(ce).then(fe,E)}function z(oe){return function(){var se=this,ee=arguments;return new Promise(function(fe,E){var ie=oe.apply(se,ee);function re(ce){x(ie,fe,E,re,le,"next",ce)}function le(ce){x(ie,fe,E,re,le,"throw",ce)}re(void 0)})}}De.exports=z,De.exports.__esModule=!0,De.exports.default=De.exports},{}],78:[function(y,De,xe){function x(z){return z&&z.__esModule?z:{default:z}}De.exports=x,De.exports.__esModule=!0,De.exports.default=De.exports},{}],79:[function(y,De,xe){function x(z){"@babel/helpers - typeof";return De.exports=x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},De.exports.__esModule=!0,De.exports.default=De.exports,x(z)}De.exports=x,De.exports.__esModule=!0,De.exports.default=De.exports},{}],80:[function(y,De,xe){De.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,De,xe){De.exports=x,De.exports.HttpsAgent=x;function x(){}},{}],82:[function(y,De,xe){(function(x){(function(){"use strict";var z=y("object-assign");function oe(Ze,ze){if(Ze===ze)return 0;for(var Ve=Ze.length,it=ze.length,Ie=0,We=Math.min(Ve,it);Ie<We;++Ie)if(Ze[Ie]!==ze[Ie]){Ve=Ze[Ie],it=ze[Ie];break}return Ve<it?-1:it<Ve?1:0}function se(Ze){return x.Buffer&&typeof x.Buffer.isBuffer=="function"?x.Buffer.isBuffer(Ze):!!(Ze!=null&&Ze._isBuffer)}var ee=y("util/"),fe=Object.prototype.hasOwnProperty,E=Array.prototype.slice,ie=function(){return function(){}.name==="foo"}();function re(Ze){return Object.prototype.toString.call(Ze)}function le(Ze){return se(Ze)||typeof x.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ze):Ze?!!(Ze instanceof DataView||Ze.buffer&&Ze.buffer instanceof ArrayBuffer):!1}var ce=De.exports=Te,he=/\s*function\s+([^\(\s]*)\s*/;function ge(Ze){if(ee.isFunction(Ze)){if(ie)return Ze.name;var ze=Ze.toString(),Ve=ze.match(he);return Ve&&Ve[1]}}ce.AssertionError=function(ze){this.name="AssertionError",this.actual=ze.actual,this.expected=ze.expected,this.operator=ze.operator,ze.message?(this.message=ze.message,this.generatedMessage=!1):(this.message=ve(this),this.generatedMessage=!0);var Ve=ze.stackStartFunction||Ce;if(Error.captureStackTrace)Error.captureStackTrace(this,Ve);else{var it=new Error;if(it.stack){var Ie=it.stack,We=ge(Ve),tt=Ie.indexOf(`
`+We);if(tt>=0){var rt=Ie.indexOf(`
`,tt+1);Ie=Ie.substring(rt+1)}this.stack=Ie}}},ee.inherits(ce.AssertionError,Error);function be(Ze,ze){return typeof Ze=="string"?Ze.length<ze?Ze:Ze.slice(0,ze):Ze}function me(Ze){if(ie||!ee.isFunction(Ze))return ee.inspect(Ze);var ze=ge(Ze),Ve=ze?": "+ze:"";return"[Function"+Ve+"]"}function ve(Ze){return be(me(Ze.actual),128)+" "+Ze.operator+" "+be(me(Ze.expected),128)}function Ce(Ze,ze,Ve,it,Ie){throw new ce.AssertionError({message:Ve,actual:Ze,expected:ze,operator:it,stackStartFunction:Ie})}ce.fail=Ce;function Te(Ze,ze){Ze||Ce(Ze,!0,ze,"==",ce.ok)}ce.ok=Te,ce.equal=function(ze,Ve,it){ze!=Ve&&Ce(ze,Ve,it,"==",ce.equal)},ce.notEqual=function(ze,Ve,it){ze==Ve&&Ce(ze,Ve,it,"!=",ce.notEqual)},ce.deepEqual=function(ze,Ve,it){Me(ze,Ve,!1)||Ce(ze,Ve,it,"deepEqual",ce.deepEqual)},ce.deepStrictEqual=function(ze,Ve,it){Me(ze,Ve,!0)||Ce(ze,Ve,it,"deepStrictEqual",ce.deepStrictEqual)};function Me(Ze,ze,Ve,it){if(Ze===ze)return!0;if(se(Ze)&&se(ze))return oe(Ze,ze)===0;if(ee.isDate(Ze)&&ee.isDate(ze))return Ze.getTime()===ze.getTime();if(ee.isRegExp(Ze)&&ee.isRegExp(ze))return Ze.source===ze.source&&Ze.global===ze.global&&Ze.multiline===ze.multiline&&Ze.lastIndex===ze.lastIndex&&Ze.ignoreCase===ze.ignoreCase;if((Ze===null||typeof Ze!="object")&&(ze===null||typeof ze!="object"))return Ve?Ze===ze:Ze==ze;if(le(Ze)&&le(ze)&&re(Ze)===re(ze)&&!(Ze instanceof Float32Array||Ze instanceof Float64Array))return oe(new Uint8Array(Ze.buffer),new Uint8Array(ze.buffer))===0;if(se(Ze)!==se(ze))return!1;it=it||{actual:[],expected:[]};var Ie=it.actual.indexOf(Ze);return Ie!==-1&&Ie===it.expected.indexOf(ze)?!0:(it.actual.push(Ze),it.expected.push(ze),de(Ze,ze,Ve,it))}function ke(Ze){return Object.prototype.toString.call(Ze)=="[object Arguments]"}function de(Ze,ze,Ve,it){if(Ze==null||ze===null||ze===void 0)return!1;if(ee.isPrimitive(Ze)||ee.isPrimitive(ze))return Ze===ze;if(Ve&&Object.getPrototypeOf(Ze)!==Object.getPrototypeOf(ze))return!1;var Ie=ke(Ze),We=ke(ze);if(Ie&&!We||!Ie&&We)return!1;if(Ie)return Ze=E.call(Ze),ze=E.call(ze),Me(Ze,ze,Ve);var tt=je(Ze),rt=je(ze),et,Ke;if(tt.length!==rt.length)return!1;for(tt.sort(),rt.sort(),Ke=tt.length-1;Ke>=0;Ke--)if(tt[Ke]!==rt[Ke])return!1;for(Ke=tt.length-1;Ke>=0;Ke--)if(et=tt[Ke],!Me(Ze[et],ze[et],Ve,it))return!1;return!0}ce.notDeepEqual=function(ze,Ve,it){Me(ze,Ve,!1)&&Ce(ze,Ve,it,"notDeepEqual",ce.notDeepEqual)},ce.notDeepStrictEqual=ye;function ye(Ze,ze,Ve){Me(Ze,ze,!0)&&Ce(Ze,ze,Ve,"notDeepStrictEqual",ye)}ce.strictEqual=function(ze,Ve,it){ze!==Ve&&Ce(ze,Ve,it,"===",ce.strictEqual)},ce.notStrictEqual=function(ze,Ve,it){ze===Ve&&Ce(ze,Ve,it,"!==",ce.notStrictEqual)};function Se(Ze,ze){if(!Ze||!ze)return!1;if(Object.prototype.toString.call(ze)=="[object RegExp]")return ze.test(Ze);try{if(Ze instanceof ze)return!0}catch(Ve){}return Error.isPrototypeOf(ze)?!1:ze.call({},Ze)===!0}function Oe(Ze){var ze;try{Ze()}catch(Ve){ze=Ve}return ze}function Ne(Ze,ze,Ve,it){var Ie;if(typeof ze!="function")throw new TypeError('"block" argument must be a function');typeof Ve=="string"&&(it=Ve,Ve=null),Ie=Oe(ze),it=(Ve&&Ve.name?" ("+Ve.name+").":".")+(it?" "+it:"."),Ze&&!Ie&&Ce(Ie,Ve,"Missing expected exception"+it);var We=typeof it=="string",tt=!Ze&&ee.isError(Ie),rt=!Ze&&Ie&&!Ve;if((tt&&We&&Se(Ie,Ve)||rt)&&Ce(Ie,Ve,"Got unwanted exception"+it),Ze&&Ie&&Ve&&!Se(Ie,Ve)||!Ze&&Ie)throw Ie}ce.throws=function(Ze,ze,Ve){Ne(!0,Ze,ze,Ve)},ce.doesNotThrow=function(Ze,ze,Ve){Ne(!1,Ze,ze,Ve)},ce.ifError=function(Ze){if(Ze)throw Ze};function Ae(Ze,ze){Ze||Ce(Ze,!0,ze,"==",Ae)}ce.strict=z(Ae,ce,{equal:ce.strictEqual,deepEqual:ce.deepStrictEqual,notEqual:ce.notStrictEqual,notDeepEqual:ce.notDeepStrictEqual}),ce.strict.strict=ce.strict;var je=Object.keys||function(Ze){var ze=[];for(var Ve in Ze)fe.call(Ze,Ve)&&ze.push(Ve);return ze}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,De,xe){typeof Object.create=="function"?De.exports=function(z,oe){z.super_=oe,z.prototype=Object.create(oe.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:De.exports=function(z,oe){z.super_=oe;var se=function(){};se.prototype=oe.prototype,z.prototype=new se,z.prototype.constructor=z}},{}],84:[function(y,De,xe){De.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(y,De,xe){(function(x,z){(function(){var oe=/%[sdj%]/g;xe.format=function(rt){if(!de(rt)){for(var et=[],Ke=0;Ke<arguments.length;Ke++)et.push(fe(arguments[Ke]));return et.join(" ")}for(var Ke=1,$e=arguments,Ge=$e.length,ot=String(rt).replace(oe,function(ct){if(ct==="%%")return"%";if(Ke>=Ge)return ct;switch(ct){case"%s":return String($e[Ke++]);case"%d":return Number($e[Ke++]);case"%j":try{return JSON.stringify($e[Ke++])}catch(st){return"[Circular]"}default:return ct}}),Je=$e[Ke];Ke<Ge;Je=$e[++Ke])Te(Je)||!Ne(Je)?ot+=" "+Je:ot+=" "+fe(Je);return ot},xe.deprecate=function(rt,et){if(Se(z.process))return function(){return xe.deprecate(rt,et).apply(this,arguments)};if(x.noDeprecation===!0)return rt;var Ke=!1;function $e(){if(!Ke){if(x.throwDeprecation)throw new Error(et);x.traceDeprecation?console.trace(et):console.error(et),Ke=!0}return rt.apply(this,arguments)}return $e};var se={},ee;xe.debuglog=function(rt){if(Se(ee)&&(ee=x.env.NODE_DEBUG||""),rt=rt.toUpperCase(),!se[rt])if(new RegExp("\\b"+rt+"\\b","i").test(ee)){var et=x.pid;se[rt]=function(){var Ke=xe.format.apply(xe,arguments);console.error("%s %d: %s",rt,et,Ke)}}else se[rt]=function(){};return se[rt]};function fe(rt,et){var Ke={seen:[],stylize:ie};return arguments.length>=3&&(Ke.depth=arguments[2]),arguments.length>=4&&(Ke.colors=arguments[3]),Ce(et)?Ke.showHidden=et:et&&xe._extend(Ke,et),Se(Ke.showHidden)&&(Ke.showHidden=!1),Se(Ke.depth)&&(Ke.depth=2),Se(Ke.colors)&&(Ke.colors=!1),Se(Ke.customInspect)&&(Ke.customInspect=!0),Ke.colors&&(Ke.stylize=E),le(Ke,rt,Ke.depth)}xe.inspect=fe,fe.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]},fe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(rt,et){var Ke=fe.styles[et];return Ke?"\x1B["+fe.colors[Ke][0]+"m"+rt+"\x1B["+fe.colors[Ke][1]+"m":rt}function ie(rt,et){return rt}function re(rt){var et={};return rt.forEach(function(Ke,$e){et[Ke]=!0}),et}function le(rt,et,Ke){if(rt.customInspect&&et&&Ze(et.inspect)&&et.inspect!==xe.inspect&&!(et.constructor&&et.constructor.prototype===et)){var $e=et.inspect(Ke,rt);return de($e)||($e=le(rt,$e,Ke)),$e}var Ge=ce(rt,et);if(Ge)return Ge;var ot=Object.keys(et),Je=re(ot);if(rt.showHidden&&(ot=Object.getOwnPropertyNames(et)),je(et)&&(ot.indexOf("message")>=0||ot.indexOf("description")>=0))return he(et);if(ot.length===0){if(Ze(et)){var ct=et.name?": "+et.name:"";return rt.stylize("[Function"+ct+"]","special")}if(Oe(et))return rt.stylize(RegExp.prototype.toString.call(et),"regexp");if(Ae(et))return rt.stylize(Date.prototype.toString.call(et),"date");if(je(et))return he(et)}var st="",Ye=!1,Le=["{","}"];if(ve(et)&&(Ye=!0,Le=["[","]"]),Ze(et)){var _e=et.name?": "+et.name:"";st=" [Function"+_e+"]"}if(Oe(et)&&(st=" "+RegExp.prototype.toString.call(et)),Ae(et)&&(st=" "+Date.prototype.toUTCString.call(et)),je(et)&&(st=" "+he(et)),ot.length===0&&(!Ye||et.length==0))return Le[0]+st+Le[1];if(Ke<0)return Oe(et)?rt.stylize(RegExp.prototype.toString.call(et),"regexp"):rt.stylize("[Object]","special");rt.seen.push(et);var te;return Ye?te=ge(rt,et,Ke,Je,ot):te=ot.map(function(ue){return be(rt,et,Ke,Je,ue,Ye)}),rt.seen.pop(),me(te,st,Le)}function ce(rt,et){if(Se(et))return rt.stylize("undefined","undefined");if(de(et)){var Ke="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(Ke,"string")}if(ke(et))return rt.stylize(""+et,"number");if(Ce(et))return rt.stylize(""+et,"boolean");if(Te(et))return rt.stylize("null","null")}function he(rt){return"["+Error.prototype.toString.call(rt)+"]"}function ge(rt,et,Ke,$e,Ge){for(var ot=[],Je=0,ct=et.length;Je<ct;++Je)tt(et,String(Je))?ot.push(be(rt,et,Ke,$e,String(Je),!0)):ot.push("");return Ge.forEach(function(st){st.match(/^\d+$/)||ot.push(be(rt,et,Ke,$e,st,!0))}),ot}function be(rt,et,Ke,$e,Ge,ot){var Je,ct,st;if(st=Object.getOwnPropertyDescriptor(et,Ge)||{value:et[Ge]},st.get?st.set?ct=rt.stylize("[Getter/Setter]","special"):ct=rt.stylize("[Getter]","special"):st.set&&(ct=rt.stylize("[Setter]","special")),tt($e,Ge)||(Je="["+Ge+"]"),ct||(rt.seen.indexOf(st.value)<0?(Te(Ke)?ct=le(rt,st.value,null):ct=le(rt,st.value,Ke-1),ct.indexOf(`
`)>-1&&(ot?ct=ct.split(`
`).map(function(Ye){return" "+Ye}).join(`
`).substr(2):ct=`
`+ct.split(`
`).map(function(Ye){return" "+Ye}).join(`
`))):ct=rt.stylize("[Circular]","special")),Se(Je)){if(ot&&Ge.match(/^\d+$/))return ct;Je=JSON.stringify(""+Ge),Je.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Je=Je.substr(1,Je.length-2),Je=rt.stylize(Je,"name")):(Je=Je.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Je=rt.stylize(Je,"string"))}return Je+": "+ct}function me(rt,et,Ke){var $e=0,Ge=rt.reduce(function(ot,Je){return $e++,Je.indexOf(`
`)>=0&&$e++,ot+Je.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ge>60?Ke[0]+(et===""?"":et+`
`)+" "+rt.join(`,
`)+" "+Ke[1]:Ke[0]+et+" "+rt.join(", ")+" "+Ke[1]}function ve(rt){return Array.isArray(rt)}xe.isArray=ve;function Ce(rt){return typeof rt=="boolean"}xe.isBoolean=Ce;function Te(rt){return rt===null}xe.isNull=Te;function Me(rt){return rt==null}xe.isNullOrUndefined=Me;function ke(rt){return typeof rt=="number"}xe.isNumber=ke;function de(rt){return typeof rt=="string"}xe.isString=de;function ye(rt){return typeof rt=="symbol"}xe.isSymbol=ye;function Se(rt){return rt===void 0}xe.isUndefined=Se;function Oe(rt){return Ne(rt)&&Ve(rt)==="[object RegExp]"}xe.isRegExp=Oe;function Ne(rt){return typeof rt=="object"&&rt!==null}xe.isObject=Ne;function Ae(rt){return Ne(rt)&&Ve(rt)==="[object Date]"}xe.isDate=Ae;function je(rt){return Ne(rt)&&(Ve(rt)==="[object Error]"||rt instanceof Error)}xe.isError=je;function Ze(rt){return typeof rt=="function"}xe.isFunction=Ze;function ze(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}xe.isPrimitive=ze,xe.isBuffer=y("./support/isBuffer");function Ve(rt){return Object.prototype.toString.call(rt)}function it(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var Ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function We(){var rt=new Date,et=[it(rt.getHours()),it(rt.getMinutes()),it(rt.getSeconds())].join(":");return[rt.getDate(),Ie[rt.getMonth()],et].join(" ")}xe.log=function(){console.log("%s - %s",We(),xe.format.apply(xe,arguments))},xe.inherits=y("inherits"),xe._extend=function(rt,et){if(!et||!Ne(et))return rt;for(var Ke=Object.keys(et),$e=Ke.length;$e--;)rt[Ke[$e]]=et[Ke[$e]];return rt};function tt(rt,et){return Object.prototype.hasOwnProperty.call(rt,et)}}).call(this)}).call(this,y("_process"),typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,De,xe){(function(x){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],oe=typeof globalThis=="undefined"?x:globalThis;De.exports=function(){for(var ee=[],fe=0;fe<z.length;fe++)typeof oe[z[fe]]=="function"&&(ee[ee.length]=z[fe]);return ee}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,De,xe){"use strict";xe.byteLength=ie,xe.toByteArray=le,xe.fromByteArray=ge;for(var x=[],z=[],oe=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,fe=se.length;ee<fe;++ee)x[ee]=se[ee],z[se.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function E(be){var me=be.length;if(me%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ve=be.indexOf("=");ve===-1&&(ve=me);var Ce=ve===me?0:4-ve%4;return[ve,Ce]}function ie(be){var me=E(be),ve=me[0],Ce=me[1];return(ve+Ce)*3/4-Ce}function re(be,me,ve){return(me+ve)*3/4-ve}function le(be){var me,ve=E(be),Ce=ve[0],Te=ve[1],Me=new oe(re(be,Ce,Te)),ke=0,de=Te>0?Ce-4:Ce,ye;for(ye=0;ye<de;ye+=4)me=z[be.charCodeAt(ye)]<<18|z[be.charCodeAt(ye+1)]<<12|z[be.charCodeAt(ye+2)]<<6|z[be.charCodeAt(ye+3)],Me[ke++]=me>>16&255,Me[ke++]=me>>8&255,Me[ke++]=me&255;return Te===2&&(me=z[be.charCodeAt(ye)]<<2|z[be.charCodeAt(ye+1)]>>4,Me[ke++]=me&255),Te===1&&(me=z[be.charCodeAt(ye)]<<10|z[be.charCodeAt(ye+1)]<<4|z[be.charCodeAt(ye+2)]>>2,Me[ke++]=me>>8&255,Me[ke++]=me&255),Me}function ce(be){return x[be>>18&63]+x[be>>12&63]+x[be>>6&63]+x[be&63]}function he(be,me,ve){for(var Ce,Te=[],Me=me;Me<ve;Me+=3)Ce=(be[Me]<<16&16711680)+(be[Me+1]<<8&65280)+(be[Me+2]&255),Te.push(ce(Ce));return Te.join("")}function ge(be){for(var me,ve=be.length,Ce=ve%3,Te=[],Me=16383,ke=0,de=ve-Ce;ke<de;ke+=Me)Te.push(he(be,ke,ke+Me>de?de:ke+Me));return Ce===1?(me=be[ve-1],Te.push(x[me>>2]+x[me<<4&63]+"==")):Ce===2&&(me=(be[ve-2]<<8)+be[ve-1],Te.push(x[me>>10]+x[me>>4&63]+x[me<<2&63]+"=")),Te.join("")}},{}],88:[function(y,De,xe){(function(x,z,oe){typeof De!="undefined"&&De.exports?De.exports=oe():typeof Xe=="function"&&Xe.amd?Xe(z,oe):x[z]=oe()})(this,"bowser",function(){var x=!0;function z(re){function le(et){var Ke=re.match(et);return Ke&&Ke.length>1&&Ke[1]||""}function ce(et){var Ke=re.match(et);return Ke&&Ke.length>1&&Ke[2]||""}var he=le(/(ipod|iphone|ipad)/i).toLowerCase(),ge=/like android/i.test(re),be=!ge&&/android/i.test(re),me=/nexus\s*[0-6]\s*/i.test(re),ve=!me&&/nexus\s*[0-9]+/i.test(re),Ce=/CrOS/.test(re),Te=/silk/i.test(re),Me=/sailfish/i.test(re),ke=/tizen/i.test(re),de=/(web|hpw)(o|0)s/i.test(re),ye=/windows phone/i.test(re),Se=/SamsungBrowser/i.test(re),Oe=!ye&&/windows/i.test(re),Ne=!he&&!Te&&/macintosh/i.test(re),Ae=!be&&!Me&&!ke&&!de&&/linux/i.test(re),je=ce(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ze=le(/version\/(\d+(\.\d+)?)/i),ze=/tablet/i.test(re)&&!/tablet pc/i.test(re),Ve=!ze&&/[^-]mobi/i.test(re),it=/xbox/i.test(re),Ie;/opera/i.test(re)?Ie={name:"Opera",opera:x,version:Ze||le(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?Ie={name:"Opera",opera:x,version:le(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ze}:/SamsungBrowser/i.test(re)?Ie={name:"Samsung Internet for Android",samsungBrowser:x,version:Ze||le(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?Ie={name:"NAVER Whale browser",whale:x,version:le(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?Ie={name:"MZ Browser",mzbrowser:x,version:le(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?Ie={name:"Opera Coast",coast:x,version:Ze||le(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?Ie={name:"Focus",focus:x,version:le(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?Ie={name:"Yandex Browser",yandexbrowser:x,version:Ze||le(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?Ie={name:"UC Browser",ucbrowser:x,version:le(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?Ie={name:"Maxthon",maxthon:x,version:le(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?Ie={name:"Epiphany",epiphany:x,version:le(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?Ie={name:"Puffin",puffin:x,version:le(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?Ie={name:"Sleipnir",sleipnir:x,version:le(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?Ie={name:"K-Meleon",kMeleon:x,version:le(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:ye?(Ie={name:"Windows Phone",osname:"Windows Phone",windowsphone:x},je?(Ie.msedge=x,Ie.version=je):(Ie.msie=x,Ie.version=le(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?Ie={name:"Internet Explorer",msie:x,version:le(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ce?Ie={name:"Chrome",osname:"Chrome OS",chromeos:x,chromeBook:x,chrome:x,version:le(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?Ie={name:"Microsoft Edge",msedge:x,version:je}:/vivaldi/i.test(re)?Ie={name:"Vivaldi",vivaldi:x,version:le(/vivaldi\/(\d+(\.\d+)?)/i)||Ze}:Me?Ie={name:"Sailfish",osname:"Sailfish OS",sailfish:x,version:le(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?Ie={name:"SeaMonkey",seamonkey:x,version:le(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(Ie={name:"Firefox",firefox:x,version:le(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(Ie.firefoxos=x,Ie.osname="Firefox OS")):Te?Ie={name:"Amazon Silk",silk:x,version:le(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?Ie={name:"PhantomJS",phantom:x,version:le(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?Ie={name:"SlimerJS",slimer:x,version:le(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?Ie={name:"BlackBerry",osname:"BlackBerry OS",blackberry:x,version:Ze||le(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:de?(Ie={name:"WebOS",osname:"WebOS",webos:x,version:Ze||le(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(Ie.touchpad=x)):/bada/i.test(re)?Ie={name:"Bada",osname:"Bada",bada:x,version:le(/dolfin\/(\d+(\.\d+)?)/i)}:ke?Ie={name:"Tizen",osname:"Tizen",tizen:x,version:le(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ze}:/qupzilla/i.test(re)?Ie={name:"QupZilla",qupzilla:x,version:le(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ze}:/chromium/i.test(re)?Ie={name:"Chromium",chromium:x,version:le(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ze}:/chrome|crios|crmo/i.test(re)?Ie={name:"Chrome",chrome:x,version:le(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:be?Ie={name:"Android",version:Ze}:/safari|applewebkit/i.test(re)?(Ie={name:"Safari",safari:x},Ze&&(Ie.version=Ze)):he?(Ie={name:he=="iphone"?"iPhone":he=="ipad"?"iPad":"iPod"},Ze&&(Ie.version=Ze)):/googlebot/i.test(re)?Ie={name:"Googlebot",googlebot:x,version:le(/googlebot\/(\d+(\.\d+))/i)||Ze}:Ie={name:le(/^(.*)\/(.*) /),version:ce(/^(.*)\/(.*) /)},!Ie.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(Ie.name=Ie.name||"Blink",Ie.blink=x):(Ie.name=Ie.name||"Webkit",Ie.webkit=x),!Ie.version&&Ze&&(Ie.version=Ze)):!Ie.opera&&/gecko\//i.test(re)&&(Ie.name=Ie.name||"Gecko",Ie.gecko=x,Ie.version=Ie.version||le(/gecko\/(\d+(\.\d+)?)/i)),!Ie.windowsphone&&(be||Ie.silk)?(Ie.android=x,Ie.osname="Android"):!Ie.windowsphone&&he?(Ie[he]=x,Ie.ios=x,Ie.osname="iOS"):Ne?(Ie.mac=x,Ie.osname="macOS"):it?(Ie.xbox=x,Ie.osname="Xbox"):Oe?(Ie.windows=x,Ie.osname="Windows"):Ae&&(Ie.linux=x,Ie.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 tt="";Ie.windows?tt=We(le(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ie.windowsphone?tt=le(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ie.mac?(tt=le(/Mac OS X (\d+([_\.\s]\d+)*)/i),tt=tt.replace(/[_\s]/g,".")):he?(tt=le(/os (\d+([_\s]\d+)*) like mac os x/i),tt=tt.replace(/[_\s]/g,".")):be?tt=le(/android[ \/-](\d+(\.\d+)*)/i):Ie.webos?tt=le(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ie.blackberry?tt=le(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ie.bada?tt=le(/bada\/(\d+(\.\d+)*)/i):Ie.tizen&&(tt=le(/tizen[\/\s](\d+(\.\d+)*)/i)),tt&&(Ie.osversion=tt);var rt=!Ie.windows&&tt.split(".")[0];return ze||ve||he=="ipad"||be&&(rt==3||rt>=4&&!Ve)||Ie.silk?Ie.tablet=x:(Ve||he=="iphone"||he=="ipod"||be||me||Ie.blackberry||Ie.webos||Ie.bada)&&(Ie.mobile=x),Ie.msedge||Ie.msie&&Ie.version>=10||Ie.yandexbrowser&&Ie.version>=15||Ie.vivaldi&&Ie.version>=1||Ie.chrome&&Ie.version>=20||Ie.samsungBrowser&&Ie.version>=4||Ie.whale&&fe([Ie.version,"1.0"])===1||Ie.mzbrowser&&fe([Ie.version,"6.0"])===1||Ie.focus&&fe([Ie.version,"1.0"])===1||Ie.firefox&&Ie.version>=20||Ie.safari&&Ie.version>=6||Ie.opera&&Ie.version>=10||Ie.ios&&Ie.osversion&&Ie.osversion.split(".")[0]>=6||Ie.blackberry&&Ie.version>=10.1||Ie.chromium&&Ie.version>=20?Ie.a=x:Ie.msie&&Ie.version<10||Ie.chrome&&Ie.version<20||Ie.firefox&&Ie.version<20||Ie.safari&&Ie.version<6||Ie.opera&&Ie.version<10||Ie.ios&&Ie.osversion&&Ie.osversion.split(".")[0]<6||Ie.chromium&&Ie.version<20?Ie.c=x:Ie.x=x,Ie}var oe=z(typeof navigator!="undefined"&&navigator.userAgent||"");oe.test=function(re){for(var le=0;le<re.length;++le){var ce=re[le];if(typeof ce=="string"&&ce in oe)return!0}return!1};function se(re){return re.split(".").length}function ee(re,le){var ce=[],he;if(Array.prototype.map)return Array.prototype.map.call(re,le);for(he=0;he<re.length;he++)ce.push(le(re[he]));return ce}function fe(re){for(var le=Math.max(se(re[0]),se(re[1])),ce=ee(re,function(he){var ge=le-se(he);return he=he+new Array(ge+1).join(".0"),ee(he.split("."),function(be){return new Array(20-be.length).join("0")+be}).reverse()});--le>=0;){if(ce[0][le]>ce[1][le])return 1;if(ce[0][le]===ce[1][le]){if(le===0)return 0}else return-1}}function E(re,le,ce){var he=oe;typeof le=="string"&&(ce=le,le=void 0),le===void 0&&(le=!1),ce&&(he=z(ce));var ge=""+he.version;for(var be in re)if(re.hasOwnProperty(be)&&he[be]){if(typeof re[be]!="string")throw new Error("Browser version in the minVersion map should be a string: "+be+": "+String(re));return fe([ge,re[be]])<0}return le}function ie(re,le,ce){return!E(re,le,ce)}return oe.isUnsupportedBrowser=E,oe.compareVersions=fe,oe.check=ie,oe._detect=z,oe.detect=z,oe})},{}],89:[function(y,De,xe){},{}],90:[function(y,De,xe){(function(x){(function(){"use strict";var z=y("base64-js"),oe=y("ieee754");xe.Buffer=E,xe.SlowBuffer=Ce,xe.INSPECT_MAX_BYTES=50;var se=2147483647;xe.kMaxLength=se,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 Ee=new Uint8Array(1);return Ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ee.foo()===42}catch(Pe){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 fe(Ee){if(Ee>se)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');var Pe=new Uint8Array(Ee);return Pe.__proto__=E.prototype,Pe}function E(Ee,Pe,Ue){if(typeof Ee=="number"){if(typeof Pe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ce(Ee)}return ie(Ee,Pe,Ue)}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 ie(Ee,Pe,Ue){if(typeof Ee=="string")return he(Ee,Pe);if(ArrayBuffer.isView(Ee))return ge(Ee);if(Ee==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if(Fe(Ee,ArrayBuffer)||Ee&&Fe(Ee.buffer,ArrayBuffer))return be(Ee,Pe,Ue);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var qe=Ee.valueOf&&Ee.valueOf();if(qe!=null&&qe!==Ee)return E.from(qe,Pe,Ue);var nt=me(Ee);if(nt)return nt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return E.from(Ee[Symbol.toPrimitive]("string"),Pe,Ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}E.from=function(Ee,Pe,Ue){return ie(Ee,Pe,Ue)},E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array;function re(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function le(Ee,Pe,Ue){return re(Ee),Ee<=0?fe(Ee):Pe!==void 0?typeof Ue=="string"?fe(Ee).fill(Pe,Ue):fe(Ee).fill(Pe):fe(Ee)}E.alloc=function(Ee,Pe,Ue){return le(Ee,Pe,Ue)};function ce(Ee){return re(Ee),fe(Ee<0?0:ve(Ee)|0)}E.allocUnsafe=function(Ee){return ce(Ee)},E.allocUnsafeSlow=function(Ee){return ce(Ee)};function he(Ee,Pe){if((typeof Pe!="string"||Pe==="")&&(Pe="utf8"),!E.isEncoding(Pe))throw new TypeError("Unknown encoding: "+Pe);var Ue=Te(Ee,Pe)|0,qe=fe(Ue),nt=qe.write(Ee,Pe);return nt!==Ue&&(qe=qe.slice(0,nt)),qe}function ge(Ee){for(var Pe=Ee.length<0?0:ve(Ee.length)|0,Ue=fe(Pe),qe=0;qe<Pe;qe+=1)Ue[qe]=Ee[qe]&255;return Ue}function be(Ee,Pe,Ue){if(Pe<0||Ee.byteLength<Pe)throw new RangeError('"offset" is outside of buffer bounds');if(Ee.byteLength<Pe+(Ue||0))throw new RangeError('"length" is outside of buffer bounds');var qe;return Pe===void 0&&Ue===void 0?qe=new Uint8Array(Ee):Ue===void 0?qe=new Uint8Array(Ee,Pe):qe=new Uint8Array(Ee,Pe,Ue),qe.__proto__=E.prototype,qe}function me(Ee){if(E.isBuffer(Ee)){var Pe=ve(Ee.length)|0,Ue=fe(Pe);return Ue.length===0||Ee.copy(Ue,0,0,Pe),Ue}if(Ee.length!==void 0)return typeof Ee.length!="number"||we(Ee.length)?fe(0):ge(Ee);if(Ee.type==="Buffer"&&Array.isArray(Ee.data))return ge(Ee.data)}function ve(Ee){if(Ee>=se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+se.toString(16)+" bytes");return Ee|0}function Ce(Ee){return+Ee!=Ee&&(Ee=0),E.alloc(+Ee)}E.isBuffer=function(Pe){return Pe!=null&&Pe._isBuffer===!0&&Pe!==E.prototype},E.compare=function(Pe,Ue){if(Fe(Pe,Uint8Array)&&(Pe=E.from(Pe,Pe.offset,Pe.byteLength)),Fe(Ue,Uint8Array)&&(Ue=E.from(Ue,Ue.offset,Ue.byteLength)),!E.isBuffer(Pe)||!E.isBuffer(Ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Pe===Ue)return 0;for(var qe=Pe.length,nt=Ue.length,dt=0,lt=Math.min(qe,nt);dt<lt;++dt)if(Pe[dt]!==Ue[dt]){qe=Pe[dt],nt=Ue[dt];break}return qe<nt?-1:nt<qe?1:0},E.isEncoding=function(Pe){switch(String(Pe).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(Pe,Ue){if(!Array.isArray(Pe))throw new TypeError('"list" argument must be an Array of Buffers');if(Pe.length===0)return E.alloc(0);var qe;if(Ue===void 0)for(Ue=0,qe=0;qe<Pe.length;++qe)Ue+=Pe[qe].length;var nt=E.allocUnsafe(Ue),dt=0;for(qe=0;qe<Pe.length;++qe){var lt=Pe[qe];if(Fe(lt,Uint8Array)&&(lt=E.from(lt)),!E.isBuffer(lt))throw new TypeError('"list" argument must be an Array of Buffers');lt.copy(nt,dt),dt+=lt.length}return nt};function Te(Ee,Pe){if(E.isBuffer(Ee))return Ee.length;if(ArrayBuffer.isView(Ee)||Fe(Ee,ArrayBuffer))return Ee.byteLength;if(typeof Ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ee);var Ue=Ee.length,qe=arguments.length>2&&arguments[2]===!0;if(!qe&&Ue===0)return 0;for(var nt=!1;;)switch(Pe){case"ascii":case"latin1":case"binary":return Ue;case"utf8":case"utf-8":return Le(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue*2;case"hex":return Ue>>>1;case"base64":return ue(Ee).length;default:if(nt)return qe?-1:Le(Ee).length;Pe=(""+Pe).toLowerCase(),nt=!0}}E.byteLength=Te;function Me(Ee,Pe,Ue){var qe=!1;if((Pe===void 0||Pe<0)&&(Pe=0),Pe>this.length||((Ue===void 0||Ue>this.length)&&(Ue=this.length),Ue<=0)||(Ue>>>=0,Pe>>>=0,Ue<=Pe))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return rt(this,Pe,Ue);case"utf8":case"utf-8":return Ve(this,Pe,Ue);case"ascii":return We(this,Pe,Ue);case"latin1":case"binary":return tt(this,Pe,Ue);case"base64":return ze(this,Pe,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Pe,Ue);default:if(qe)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),qe=!0}}E.prototype._isBuffer=!0;function ke(Ee,Pe,Ue){var qe=Ee[Pe];Ee[Pe]=Ee[Ue],Ee[Ue]=qe}E.prototype.swap16=function(){var Pe=this.length;if(Pe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ue=0;Ue<Pe;Ue+=2)ke(this,Ue,Ue+1);return this},E.prototype.swap32=function(){var Pe=this.length;if(Pe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ue=0;Ue<Pe;Ue+=4)ke(this,Ue,Ue+3),ke(this,Ue+1,Ue+2);return this},E.prototype.swap64=function(){var Pe=this.length;if(Pe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ue=0;Ue<Pe;Ue+=8)ke(this,Ue,Ue+7),ke(this,Ue+1,Ue+6),ke(this,Ue+2,Ue+5),ke(this,Ue+3,Ue+4);return this},E.prototype.toString=function(){var Pe=this.length;return Pe===0?"":arguments.length===0?Ve(this,0,Pe):Me.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(Pe){if(!E.isBuffer(Pe))throw new TypeError("Argument must be a Buffer");return this===Pe?!0:E.compare(this,Pe)===0},E.prototype.inspect=function(){var Pe="",Ue=xe.INSPECT_MAX_BYTES;return Pe=this.toString("hex",0,Ue).replace(/(.{2})/g,"$1 ").trim(),this.length>Ue&&(Pe+=" ... "),"<Buffer "+Pe+">"},E.prototype.compare=function(Pe,Ue,qe,nt,dt){if(Fe(Pe,Uint8Array)&&(Pe=E.from(Pe,Pe.offset,Pe.byteLength)),!E.isBuffer(Pe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Pe);if(Ue===void 0&&(Ue=0),qe===void 0&&(qe=Pe?Pe.length:0),nt===void 0&&(nt=0),dt===void 0&&(dt=this.length),Ue<0||qe>Pe.length||nt<0||dt>this.length)throw new RangeError("out of range index");if(nt>=dt&&Ue>=qe)return 0;if(nt>=dt)return-1;if(Ue>=qe)return 1;if(Ue>>>=0,qe>>>=0,nt>>>=0,dt>>>=0,this===Pe)return 0;for(var lt=dt-nt,ht=qe-Ue,St=Math.min(lt,ht),gt=this.slice(nt,dt),yt=Pe.slice(Ue,qe),mt=0;mt<St;++mt)if(gt[mt]!==yt[mt]){lt=gt[mt],ht=yt[mt];break}return lt<ht?-1:ht<lt?1:0};function de(Ee,Pe,Ue,qe,nt){if(Ee.length===0)return-1;if(typeof Ue=="string"?(qe=Ue,Ue=0):Ue>2147483647?Ue=2147483647:Ue<-2147483648&&(Ue=-2147483648),Ue=+Ue,we(Ue)&&(Ue=nt?0:Ee.length-1),Ue<0&&(Ue=Ee.length+Ue),Ue>=Ee.length){if(nt)return-1;Ue=Ee.length-1}else if(Ue<0)if(nt)Ue=0;else return-1;if(typeof Pe=="string"&&(Pe=E.from(Pe,qe)),E.isBuffer(Pe))return Pe.length===0?-1:ye(Ee,Pe,Ue,qe,nt);if(typeof Pe=="number")return Pe=Pe&255,typeof Uint8Array.prototype.indexOf=="function"?nt?Uint8Array.prototype.indexOf.call(Ee,Pe,Ue):Uint8Array.prototype.lastIndexOf.call(Ee,Pe,Ue):ye(Ee,[Pe],Ue,qe,nt);throw new TypeError("val must be string, number or Buffer")}function ye(Ee,Pe,Ue,qe,nt){var dt=1,lt=Ee.length,ht=Pe.length;if(qe!==void 0&&(qe=String(qe).toLowerCase(),qe==="ucs2"||qe==="ucs-2"||qe==="utf16le"||qe==="utf-16le")){if(Ee.length<2||Pe.length<2)return-1;dt=2,lt/=2,ht/=2,Ue/=2}function St(wt,pt){return dt===1?wt[pt]:wt.readUInt16BE(pt*dt)}var gt;if(nt){var yt=-1;for(gt=Ue;gt<lt;gt++)if(St(Ee,gt)===St(Pe,yt===-1?0:gt-yt)){if(yt===-1&&(yt=gt),gt-yt+1===ht)return yt*dt}else yt!==-1&&(gt-=gt-yt),yt=-1}else for(Ue+ht>lt&&(Ue=lt-ht),gt=Ue;gt>=0;gt--){for(var mt=!0,Ct=0;Ct<ht;Ct++)if(St(Ee,gt+Ct)!==St(Pe,Ct)){mt=!1;break}if(mt)return gt}return-1}E.prototype.includes=function(Pe,Ue,qe){return this.indexOf(Pe,Ue,qe)!==-1},E.prototype.indexOf=function(Pe,Ue,qe){return de(this,Pe,Ue,qe,!0)},E.prototype.lastIndexOf=function(Pe,Ue,qe){return de(this,Pe,Ue,qe,!1)};function Se(Ee,Pe,Ue,qe){Ue=Number(Ue)||0;var nt=Ee.length-Ue;qe?(qe=Number(qe),qe>nt&&(qe=nt)):qe=nt;var dt=Pe.length;qe>dt/2&&(qe=dt/2);for(var lt=0;lt<qe;++lt){var ht=parseInt(Pe.substr(lt*2,2),16);if(we(ht))return lt;Ee[Ue+lt]=ht}return lt}function Oe(Ee,Pe,Ue,qe){return Re(Le(Pe,Ee.length-Ue),Ee,Ue,qe)}function Ne(Ee,Pe,Ue,qe){return Re(_e(Pe),Ee,Ue,qe)}function Ae(Ee,Pe,Ue,qe){return Ne(Ee,Pe,Ue,qe)}function je(Ee,Pe,Ue,qe){return Re(ue(Pe),Ee,Ue,qe)}function Ze(Ee,Pe,Ue,qe){return Re(te(Pe,Ee.length-Ue),Ee,Ue,qe)}E.prototype.write=function(Pe,Ue,qe,nt){if(Ue===void 0)nt="utf8",qe=this.length,Ue=0;else if(qe===void 0&&typeof Ue=="string")nt=Ue,qe=this.length,Ue=0;else if(isFinite(Ue))Ue=Ue>>>0,isFinite(qe)?(qe=qe>>>0,nt===void 0&&(nt="utf8")):(nt=qe,qe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var dt=this.length-Ue;if((qe===void 0||qe>dt)&&(qe=dt),Pe.length>0&&(qe<0||Ue<0)||Ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var lt=!1;;)switch(nt){case"hex":return Se(this,Pe,Ue,qe);case"utf8":case"utf-8":return Oe(this,Pe,Ue,qe);case"ascii":return Ne(this,Pe,Ue,qe);case"latin1":case"binary":return Ae(this,Pe,Ue,qe);case"base64":return je(this,Pe,Ue,qe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,Pe,Ue,qe);default:if(lt)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),lt=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ze(Ee,Pe,Ue){return Pe===0&&Ue===Ee.length?z.fromByteArray(Ee):z.fromByteArray(Ee.slice(Pe,Ue))}function Ve(Ee,Pe,Ue){Ue=Math.min(Ee.length,Ue);for(var qe=[],nt=Pe;nt<Ue;){var dt=Ee[nt],lt=null,ht=dt>239?4:dt>223?3:dt>191?2:1;if(nt+ht<=Ue){var St,gt,yt,mt;switch(ht){case 1:dt<128&&(lt=dt);break;case 2:St=Ee[nt+1],(St&192)===128&&(mt=(dt&31)<<6|St&63,mt>127&&(lt=mt));break;case 3:St=Ee[nt+1],gt=Ee[nt+2],(St&192)===128&&(gt&192)===128&&(mt=(dt&15)<<12|(St&63)<<6|gt&63,mt>2047&&(mt<55296||mt>57343)&&(lt=mt));break;case 4:St=Ee[nt+1],gt=Ee[nt+2],yt=Ee[nt+3],(St&192)===128&&(gt&192)===128&&(yt&192)===128&&(mt=(dt&15)<<18|(St&63)<<12|(gt&63)<<6|yt&63,mt>65535&&mt<1114112&&(lt=mt))}}lt===null?(lt=65533,ht=1):lt>65535&&(lt-=65536,qe.push(lt>>>10&1023|55296),lt=56320|lt&1023),qe.push(lt),nt+=ht}return Ie(qe)}var it=4096;function Ie(Ee){var Pe=Ee.length;if(Pe<=it)return String.fromCharCode.apply(String,Ee);for(var Ue="",qe=0;qe<Pe;)Ue+=String.fromCharCode.apply(String,Ee.slice(qe,qe+=it));return Ue}function We(Ee,Pe,Ue){var qe="";Ue=Math.min(Ee.length,Ue);for(var nt=Pe;nt<Ue;++nt)qe+=String.fromCharCode(Ee[nt]&127);return qe}function tt(Ee,Pe,Ue){var qe="";Ue=Math.min(Ee.length,Ue);for(var nt=Pe;nt<Ue;++nt)qe+=String.fromCharCode(Ee[nt]);return qe}function rt(Ee,Pe,Ue){var qe=Ee.length;(!Pe||Pe<0)&&(Pe=0),(!Ue||Ue<0||Ue>qe)&&(Ue=qe);for(var nt="",dt=Pe;dt<Ue;++dt)nt+=Ye(Ee[dt]);return nt}function et(Ee,Pe,Ue){for(var qe=Ee.slice(Pe,Ue),nt="",dt=0;dt<qe.length;dt+=2)nt+=String.fromCharCode(qe[dt]+qe[dt+1]*256);return nt}E.prototype.slice=function(Pe,Ue){var qe=this.length;Pe=~~Pe,Ue=Ue===void 0?qe:~~Ue,Pe<0?(Pe+=qe,Pe<0&&(Pe=0)):Pe>qe&&(Pe=qe),Ue<0?(Ue+=qe,Ue<0&&(Ue=0)):Ue>qe&&(Ue=qe),Ue<Pe&&(Ue=Pe);var nt=this.subarray(Pe,Ue);return nt.__proto__=E.prototype,nt};function Ke(Ee,Pe,Ue){if(Ee%1!==0||Ee<0)throw new RangeError("offset is not uint");if(Ee+Pe>Ue)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(Pe,Ue,qe){Pe=Pe>>>0,Ue=Ue>>>0,qe||Ke(Pe,Ue,this.length);for(var nt=this[Pe],dt=1,lt=0;++lt<Ue&&(dt*=256);)nt+=this[Pe+lt]*dt;return nt},E.prototype.readUIntBE=function(Pe,Ue,qe){Pe=Pe>>>0,Ue=Ue>>>0,qe||Ke(Pe,Ue,this.length);for(var nt=this[Pe+--Ue],dt=1;Ue>0&&(dt*=256);)nt+=this[Pe+--Ue]*dt;return nt},E.prototype.readUInt8=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,1,this.length),this[Pe]},E.prototype.readUInt16LE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,2,this.length),this[Pe]|this[Pe+1]<<8},E.prototype.readUInt16BE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,2,this.length),this[Pe]<<8|this[Pe+1]},E.prototype.readUInt32LE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,4,this.length),(this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16)+this[Pe+3]*16777216},E.prototype.readUInt32BE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,4,this.length),this[Pe]*16777216+(this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3])},E.prototype.readIntLE=function(Pe,Ue,qe){Pe=Pe>>>0,Ue=Ue>>>0,qe||Ke(Pe,Ue,this.length);for(var nt=this[Pe],dt=1,lt=0;++lt<Ue&&(dt*=256);)nt+=this[Pe+lt]*dt;return dt*=128,nt>=dt&&(nt-=Math.pow(2,8*Ue)),nt},E.prototype.readIntBE=function(Pe,Ue,qe){Pe=Pe>>>0,Ue=Ue>>>0,qe||Ke(Pe,Ue,this.length);for(var nt=Ue,dt=1,lt=this[Pe+--nt];nt>0&&(dt*=256);)lt+=this[Pe+--nt]*dt;return dt*=128,lt>=dt&&(lt-=Math.pow(2,8*Ue)),lt},E.prototype.readInt8=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,1,this.length),this[Pe]&128?(255-this[Pe]+1)*-1:this[Pe]},E.prototype.readInt16LE=function(Pe,Ue){Pe=Pe>>>0,Ue||Ke(Pe,2,this.length);var qe=this[Pe]|this[Pe+1]<<8;return qe&32768?qe|4294901760:qe},E.prototype.readInt16BE=function(Pe,Ue){Pe=Pe>>>0,Ue||Ke(Pe,2,this.length);var qe=this[Pe+1]|this[Pe]<<8;return qe&32768?qe|4294901760:qe},E.prototype.readInt32LE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,4,this.length),this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16|this[Pe+3]<<24},E.prototype.readInt32BE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,4,this.length),this[Pe]<<24|this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3]},E.prototype.readFloatLE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,4,this.length),oe.read(this,Pe,!0,23,4)},E.prototype.readFloatBE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,4,this.length),oe.read(this,Pe,!1,23,4)},E.prototype.readDoubleLE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,8,this.length),oe.read(this,Pe,!0,52,8)},E.prototype.readDoubleBE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Ke(Pe,8,this.length),oe.read(this,Pe,!1,52,8)};function $e(Ee,Pe,Ue,qe,nt,dt){if(!E.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pe>nt||Pe<dt)throw new RangeError('"value" argument is out of bounds');if(Ue+qe>Ee.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(Pe,Ue,qe,nt){if(Pe=+Pe,Ue=Ue>>>0,qe=qe>>>0,!nt){var dt=Math.pow(2,8*qe)-1;$e(this,Pe,Ue,qe,dt,0)}var lt=1,ht=0;for(this[Ue]=Pe&255;++ht<qe&&(lt*=256);)this[Ue+ht]=Pe/lt&255;return Ue+qe},E.prototype.writeUIntBE=function(Pe,Ue,qe,nt){if(Pe=+Pe,Ue=Ue>>>0,qe=qe>>>0,!nt){var dt=Math.pow(2,8*qe)-1;$e(this,Pe,Ue,qe,dt,0)}var lt=qe-1,ht=1;for(this[Ue+lt]=Pe&255;--lt>=0&&(ht*=256);)this[Ue+lt]=Pe/ht&255;return Ue+qe},E.prototype.writeUInt8=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,1,255,0),this[Ue]=Pe&255,Ue+1},E.prototype.writeUInt16LE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,2,65535,0),this[Ue]=Pe&255,this[Ue+1]=Pe>>>8,Ue+2},E.prototype.writeUInt16BE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,2,65535,0),this[Ue]=Pe>>>8,this[Ue+1]=Pe&255,Ue+2},E.prototype.writeUInt32LE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,4,4294967295,0),this[Ue+3]=Pe>>>24,this[Ue+2]=Pe>>>16,this[Ue+1]=Pe>>>8,this[Ue]=Pe&255,Ue+4},E.prototype.writeUInt32BE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,4,4294967295,0),this[Ue]=Pe>>>24,this[Ue+1]=Pe>>>16,this[Ue+2]=Pe>>>8,this[Ue+3]=Pe&255,Ue+4},E.prototype.writeIntLE=function(Pe,Ue,qe,nt){if(Pe=+Pe,Ue=Ue>>>0,!nt){var dt=Math.pow(2,8*qe-1);$e(this,Pe,Ue,qe,dt-1,-dt)}var lt=0,ht=1,St=0;for(this[Ue]=Pe&255;++lt<qe&&(ht*=256);)Pe<0&&St===0&&this[Ue+lt-1]!==0&&(St=1),this[Ue+lt]=(Pe/ht>>0)-St&255;return Ue+qe},E.prototype.writeIntBE=function(Pe,Ue,qe,nt){if(Pe=+Pe,Ue=Ue>>>0,!nt){var dt=Math.pow(2,8*qe-1);$e(this,Pe,Ue,qe,dt-1,-dt)}var lt=qe-1,ht=1,St=0;for(this[Ue+lt]=Pe&255;--lt>=0&&(ht*=256);)Pe<0&&St===0&&this[Ue+lt+1]!==0&&(St=1),this[Ue+lt]=(Pe/ht>>0)-St&255;return Ue+qe},E.prototype.writeInt8=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,1,127,-128),Pe<0&&(Pe=255+Pe+1),this[Ue]=Pe&255,Ue+1},E.prototype.writeInt16LE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,2,32767,-32768),this[Ue]=Pe&255,this[Ue+1]=Pe>>>8,Ue+2},E.prototype.writeInt16BE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,2,32767,-32768),this[Ue]=Pe>>>8,this[Ue+1]=Pe&255,Ue+2},E.prototype.writeInt32LE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,4,2147483647,-2147483648),this[Ue]=Pe&255,this[Ue+1]=Pe>>>8,this[Ue+2]=Pe>>>16,this[Ue+3]=Pe>>>24,Ue+4},E.prototype.writeInt32BE=function(Pe,Ue,qe){return Pe=+Pe,Ue=Ue>>>0,qe||$e(this,Pe,Ue,4,2147483647,-2147483648),Pe<0&&(Pe=4294967295+Pe+1),this[Ue]=Pe>>>24,this[Ue+1]=Pe>>>16,this[Ue+2]=Pe>>>8,this[Ue+3]=Pe&255,Ue+4};function Ge(Ee,Pe,Ue,qe,nt,dt){if(Ue+qe>Ee.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("Index out of range")}function ot(Ee,Pe,Ue,qe,nt){return Pe=+Pe,Ue=Ue>>>0,nt||Ge(Ee,Pe,Ue,4,34028234663852886e22,-34028234663852886e22),oe.write(Ee,Pe,Ue,qe,23,4),Ue+4}E.prototype.writeFloatLE=function(Pe,Ue,qe){return ot(this,Pe,Ue,!0,qe)},E.prototype.writeFloatBE=function(Pe,Ue,qe){return ot(this,Pe,Ue,!1,qe)};function Je(Ee,Pe,Ue,qe,nt){return Pe=+Pe,Ue=Ue>>>0,nt||Ge(Ee,Pe,Ue,8,17976931348623157e292,-17976931348623157e292),oe.write(Ee,Pe,Ue,qe,52,8),Ue+8}E.prototype.writeDoubleLE=function(Pe,Ue,qe){return Je(this,Pe,Ue,!0,qe)},E.prototype.writeDoubleBE=function(Pe,Ue,qe){return Je(this,Pe,Ue,!1,qe)},E.prototype.copy=function(Pe,Ue,qe,nt){if(!E.isBuffer(Pe))throw new TypeError("argument should be a Buffer");if(qe||(qe=0),!nt&&nt!==0&&(nt=this.length),Ue>=Pe.length&&(Ue=Pe.length),Ue||(Ue=0),nt>0&&nt<qe&&(nt=qe),nt===qe||Pe.length===0||this.length===0)return 0;if(Ue<0)throw new RangeError("targetStart out of bounds");if(qe<0||qe>=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),Pe.length-Ue<nt-qe&&(nt=Pe.length-Ue+qe);var dt=nt-qe;if(this===Pe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ue,qe,nt);else if(this===Pe&&qe<Ue&&Ue<nt)for(var lt=dt-1;lt>=0;--lt)Pe[lt+Ue]=this[lt+qe];else Uint8Array.prototype.set.call(Pe,this.subarray(qe,nt),Ue);return dt},E.prototype.fill=function(Pe,Ue,qe,nt){if(typeof Pe=="string"){if(typeof Ue=="string"?(nt=Ue,Ue=0,qe=this.length):typeof qe=="string"&&(nt=qe,qe=this.length),nt!==void 0&&typeof nt!="string")throw new TypeError("encoding must be a string");if(typeof nt=="string"&&!E.isEncoding(nt))throw new TypeError("Unknown encoding: "+nt);if(Pe.length===1){var dt=Pe.charCodeAt(0);(nt==="utf8"&&dt<128||nt==="latin1")&&(Pe=dt)}}else typeof Pe=="number"&&(Pe=Pe&255);if(Ue<0||this.length<Ue||this.length<qe)throw new RangeError("Out of range index");if(qe<=Ue)return this;Ue=Ue>>>0,qe=qe===void 0?this.length:qe>>>0,Pe||(Pe=0);var lt;if(typeof Pe=="number")for(lt=Ue;lt<qe;++lt)this[lt]=Pe;else{var ht=E.isBuffer(Pe)?Pe:E.from(Pe,nt),St=ht.length;if(St===0)throw new TypeError('The value "'+Pe+'" is invalid for argument "value"');for(lt=0;lt<qe-Ue;++lt)this[lt+Ue]=ht[lt%St]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function st(Ee){if(Ee=Ee.split("=")[0],Ee=Ee.trim().replace(ct,""),Ee.length<2)return"";for(;Ee.length%4!==0;)Ee=Ee+"=";return Ee}function Ye(Ee){return Ee<16?"0"+Ee.toString(16):Ee.toString(16)}function Le(Ee,Pe){Pe=Pe||1/0;for(var Ue,qe=Ee.length,nt=null,dt=[],lt=0;lt<qe;++lt){if(Ue=Ee.charCodeAt(lt),Ue>55295&&Ue<57344){if(!nt){if(Ue>56319){(Pe-=3)>-1&&dt.push(239,191,189);continue}else if(lt+1===qe){(Pe-=3)>-1&&dt.push(239,191,189);continue}nt=Ue;continue}if(Ue<56320){(Pe-=3)>-1&&dt.push(239,191,189),nt=Ue;continue}Ue=(nt-55296<<10|Ue-56320)+65536}else nt&&(Pe-=3)>-1&&dt.push(239,191,189);if(nt=null,Ue<128){if((Pe-=1)<0)break;dt.push(Ue)}else if(Ue<2048){if((Pe-=2)<0)break;dt.push(Ue>>6|192,Ue&63|128)}else if(Ue<65536){if((Pe-=3)<0)break;dt.push(Ue>>12|224,Ue>>6&63|128,Ue&63|128)}else if(Ue<1114112){if((Pe-=4)<0)break;dt.push(Ue>>18|240,Ue>>12&63|128,Ue>>6&63|128,Ue&63|128)}else throw new Error("Invalid code point")}return dt}function _e(Ee){for(var Pe=[],Ue=0;Ue<Ee.length;++Ue)Pe.push(Ee.charCodeAt(Ue)&255);return Pe}function te(Ee,Pe){for(var Ue,qe,nt,dt=[],lt=0;lt<Ee.length&&!((Pe-=2)<0);++lt)Ue=Ee.charCodeAt(lt),qe=Ue>>8,nt=Ue%256,dt.push(nt),dt.push(qe);return dt}function ue(Ee){return z.toByteArray(st(Ee))}function Re(Ee,Pe,Ue,qe){for(var nt=0;nt<qe&&!(nt+Ue>=Pe.length||nt>=Ee.length);++nt)Pe[nt+Ue]=Ee[nt];return nt}function Fe(Ee,Pe){return Ee instanceof Pe||Ee!=null&&Ee.constructor!=null&&Ee.constructor.name!=null&&Ee.constructor.name===Pe.name}function we(Ee){return Ee!==Ee}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,De,xe){De.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,De,xe){"use strict";var x=y("get-intrinsic"),z=y("./"),oe=z(x("String.prototype.indexOf"));De.exports=function(ee,fe){var E=x(ee,!!fe);return typeof E=="function"&&oe(ee,".prototype.")>-1?z(E):E}},{"./":93,"get-intrinsic":348}],93:[function(y,De,xe){"use strict";var x=y("function-bind"),z=y("get-intrinsic"),oe=z("%Function.prototype.apply%"),se=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||x.call(se,oe),fe=z("%Object.getOwnPropertyDescriptor%",!0),E=z("%Object.defineProperty%",!0),ie=z("%Math.max%");if(E)try{E({},"a",{value:1})}catch(le){E=null}De.exports=function(ce){var he=ee(x,se,arguments);if(fe&&E){var ge=fe(he,"length");ge.configurable&&E(he,"length",{value:1+ie(0,ce.length-(arguments.length-1))})}return he};var re=function(){return ee(x,oe,arguments)};E?E(De.exports,"apply",{value:re}):De.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(y,De,xe){"use strict";var x=Array.prototype.slice;De.exports=z;function z(se,ee){if(!(this instanceof z))return new z(se,ee);this.src=se,this._withAccess=ee}z.prototype.withAccess=function(se){return this._withAccess=se!==!1,this},z.prototype.pick=function(se){return Array.isArray(se)||(se=x.call(arguments)),se.length&&(this.keys=se),this},z.prototype.to=function(se){if(se=se||{},!this.src)return se;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var fe=0;fe<ee.length;fe++)E=ee[fe],se[E]===void 0&&(se[E]=this.src[E]);return se}for(var fe=0;fe<ee.length;fe++){var E=ee[fe];if(oe(se,E)){var ie=this.src.__lookupGetter__(E),re=this.src.__lookupSetter__(E);ie&&se.__defineGetter__(E,ie),re&&se.__defineSetter__(E,re),!ie&&!re&&(se[E]=this.src[E])}}return se},z.prototype.toCover=function(se){for(var ee=this.keys||Object.keys(this.src),fe=0;fe<ee.length;fe++){var E=ee[fe];delete se[E];var ie=this.src.__lookupGetter__(E),re=this.src.__lookupSetter__(E);ie&&se.__defineGetter__(E,ie),re&&se.__defineSetter__(E,re),!ie&&!re&&(se[E]=this.src[E])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(se){var ee={};return this.to(ee),this.src=se,this.to(ee),this.src=ee,this};function oe(se,ee){return se[ee]===void 0&&se.__lookupGetter__(ee)===void 0&&se.__lookupSetter__(ee)===void 0}},{}],95:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/try-to-string"),se=x.TypeError;De.exports=function(ee){if(z(ee))return ee;throw se(oe(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-constructor"),oe=y("../internals/try-to-string"),se=x.TypeError;De.exports=function(ee){if(z(ee))return ee;throw se(oe(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=x.String,se=x.TypeError;De.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw se("Can't set "+oe(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,De,xe){var x=y("../internals/well-known-symbol"),z=y("../internals/object-create"),oe=y("../internals/object-define-property"),se=x("unscopables"),ee=Array.prototype;ee[se]==null&&oe.f(ee,se,{configurable:!0,value:z(null)}),De.exports=function(fe){ee[se][fe]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,De,xe){"use strict";var x=y("../internals/string-multibyte").charAt;De.exports=function(z,oe,se){return oe+(se?x(z,oe).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/object-is-prototype-of"),oe=x.TypeError;De.exports=function(se,ee){if(z(ee,se))return se;throw oe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-object"),oe=x.String,se=x.TypeError;De.exports=function(ee){if(z(ee))return ee;throw se(oe(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,De,xe){De.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-native"),z=y("../internals/descriptors"),oe=y("../internals/global"),se=y("../internals/is-callable"),ee=y("../internals/is-object"),fe=y("../internals/has-own-property"),E=y("../internals/classof"),ie=y("../internals/try-to-string"),re=y("../internals/create-non-enumerable-property"),le=y("../internals/redefine"),ce=y("../internals/object-define-property").f,he=y("../internals/object-is-prototype-of"),ge=y("../internals/object-get-prototype-of"),be=y("../internals/object-set-prototype-of"),me=y("../internals/well-known-symbol"),ve=y("../internals/uid"),Ce=oe.Int8Array,Te=Ce&&Ce.prototype,Me=oe.Uint8ClampedArray,ke=Me&&Me.prototype,de=Ce&&ge(Ce),ye=Te&&ge(Te),Se=Object.prototype,Oe=oe.TypeError,Ne=me("toStringTag"),Ae=ve("TYPED_ARRAY_TAG"),je=ve("TYPED_ARRAY_CONSTRUCTOR"),Ze=x&&!!be&&E(oe.opera)!=="Opera",ze=!1,Ve,it,Ie,We={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},tt={BigInt64Array:8,BigUint64Array:8},rt=function(ct){if(!ee(ct))return!1;var st=E(ct);return st==="DataView"||fe(We,st)||fe(tt,st)},et=function(Je){if(!ee(Je))return!1;var ct=E(Je);return fe(We,ct)||fe(tt,ct)},Ke=function(Je){if(et(Je))return Je;throw Oe("Target is not a typed array")},$e=function(Je){if(se(Je)&&(!be||he(de,Je)))return Je;throw Oe(ie(Je)+" is not a typed array constructor")},Ge=function(Je,ct,st,Ye){if(z){if(st)for(var Le in We){var _e=oe[Le];if(_e&&fe(_e.prototype,Je))try{delete _e.prototype[Je]}catch(te){try{_e.prototype[Je]=ct}catch(ue){}}}(!ye[Je]||st)&&le(ye,Je,st?ct:Ze&&Te[Je]||ct,Ye)}},ot=function(Je,ct,st){var Ye,Le;if(z){if(be){if(st){for(Ye in We)if(Le=oe[Ye],Le&&fe(Le,Je))try{delete Le[Je]}catch(_e){}}if(!de[Je]||st)try{return le(de,Je,st?ct:Ze&&de[Je]||ct)}catch(_e){}else return}for(Ye in We)Le=oe[Ye],Le&&(!Le[Je]||st)&&le(Le,Je,ct)}};for(Ve in We)it=oe[Ve],Ie=it&&it.prototype,Ie?re(Ie,je,it):Ze=!1;for(Ve in tt)it=oe[Ve],Ie=it&&it.prototype,Ie&&re(Ie,je,it);if((!Ze||!se(de)||de===Function.prototype)&&(de=function(){throw Oe("Incorrect invocation")},Ze))for(Ve in We)oe[Ve]&&be(oe[Ve],de);if((!Ze||!ye||ye===Se)&&(ye=de.prototype,Ze))for(Ve in We)oe[Ve]&&be(oe[Ve].prototype,ye);if(Ze&&ge(ke)!==ye&&be(ke,ye),z&&!fe(ye,Ne)){ze=!0,ce(ye,Ne,{get:function(){return ee(this)?this[Ae]:void 0}});for(Ve in We)oe[Ve]&&re(oe[Ve],Ae,Ve)}De.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ze,TYPED_ARRAY_CONSTRUCTOR:je,TYPED_ARRAY_TAG:ze&&Ae,aTypedArray:Ke,aTypedArrayConstructor:$e,exportTypedArrayMethod:Ge,exportTypedArrayStaticMethod:ot,isView:rt,isTypedArray:et,TypedArray:de,TypedArrayPrototype:ye}},{"../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,De,xe){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/descriptors"),se=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),fe=y("../internals/create-non-enumerable-property"),E=y("../internals/redefine-all"),ie=y("../internals/fails"),re=y("../internals/an-instance"),le=y("../internals/to-integer-or-infinity"),ce=y("../internals/to-length"),he=y("../internals/to-index"),ge=y("../internals/ieee754"),be=y("../internals/object-get-prototype-of"),me=y("../internals/object-set-prototype-of"),ve=y("../internals/object-get-own-property-names").f,Ce=y("../internals/object-define-property").f,Te=y("../internals/array-fill"),Me=y("../internals/array-slice-simple"),ke=y("../internals/set-to-string-tag"),de=y("../internals/internal-state"),ye=ee.PROPER,Se=ee.CONFIGURABLE,Oe=de.get,Ne=de.set,Ae="ArrayBuffer",je="DataView",Ze="prototype",ze="Wrong length",Ve="Wrong index",it=x[Ae],Ie=it,We=Ie&&Ie[Ze],tt=x[je],rt=tt&&tt[Ze],et=Object.prototype,Ke=x.Array,$e=x.RangeError,Ge=z(Te),ot=z([].reverse),Je=ge.pack,ct=ge.unpack,st=function(lt){return[lt&255]},Ye=function(lt){return[lt&255,lt>>8&255]},Le=function(lt){return[lt&255,lt>>8&255,lt>>16&255,lt>>24&255]},_e=function(lt){return lt[3]<<24|lt[2]<<16|lt[1]<<8|lt[0]},te=function(lt){return Je(lt,23,4)},ue=function(lt){return Je(lt,52,8)},Re=function(lt,ht){Ce(lt[Ze],ht,{get:function(){return Oe(this)[ht]}})},Fe=function(lt,ht,St,gt){var yt=he(St),mt=Oe(lt);if(yt+ht>mt.byteLength)throw $e(Ve);var Ct=Oe(mt.buffer).bytes,wt=yt+mt.byteOffset,pt=Me(Ct,wt,wt+ht);return gt?pt:ot(pt)},we=function(lt,ht,St,gt,yt,mt){var Ct=he(St),wt=Oe(lt);if(Ct+ht>wt.byteLength)throw $e(Ve);for(var pt=Oe(wt.buffer).bytes,Ot=Ct+wt.byteOffset,At=gt(+yt),Nt=0;Nt<ht;Nt++)pt[Ot+Nt]=At[mt?Nt:ht-Nt-1]};if(!se)Ie=function(ht){re(this,We);var St=he(ht);Ne(this,{bytes:Ge(Ke(St),0),byteLength:St}),oe||(this.byteLength=St)},We=Ie[Ze],tt=function(ht,St,gt){re(this,rt),re(ht,We);var yt=Oe(ht).byteLength,mt=le(St);if(mt<0||mt>yt)throw $e("Wrong offset");if(gt=gt===void 0?yt-mt:ce(gt),mt+gt>yt)throw $e(ze);Ne(this,{buffer:ht,byteLength:gt,byteOffset:mt}),oe||(this.buffer=ht,this.byteLength=gt,this.byteOffset=mt)},rt=tt[Ze],oe&&(Re(Ie,"byteLength"),Re(tt,"buffer"),Re(tt,"byteLength"),Re(tt,"byteOffset")),E(rt,{getInt8:function(ht){return Fe(this,1,ht)[0]<<24>>24},getUint8:function(ht){return Fe(this,1,ht)[0]},getInt16:function(ht){var St=Fe(this,2,ht,arguments.length>1?arguments[1]:void 0);return(St[1]<<8|St[0])<<16>>16},getUint16:function(ht){var St=Fe(this,2,ht,arguments.length>1?arguments[1]:void 0);return St[1]<<8|St[0]},getInt32:function(ht){return _e(Fe(this,4,ht,arguments.length>1?arguments[1]:void 0))},getUint32:function(ht){return _e(Fe(this,4,ht,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ht){return ct(Fe(this,4,ht,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ht){return ct(Fe(this,8,ht,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ht,St){we(this,1,ht,st,St)},setUint8:function(ht,St){we(this,1,ht,st,St)},setInt16:function(ht,St){we(this,2,ht,Ye,St,arguments.length>2?arguments[2]:void 0)},setUint16:function(ht,St){we(this,2,ht,Ye,St,arguments.length>2?arguments[2]:void 0)},setInt32:function(ht,St){we(this,4,ht,Le,St,arguments.length>2?arguments[2]:void 0)},setUint32:function(ht,St){we(this,4,ht,Le,St,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ht,St){we(this,4,ht,te,St,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ht,St){we(this,8,ht,ue,St,arguments.length>2?arguments[2]:void 0)}});else{var Ee=ye&&it.name!==Ae;if(!ie(function(){it(1)})||!ie(function(){new it(-1)})||ie(function(){return new it,new it(1.5),new it(NaN),Ee&&!Se})){Ie=function(ht){return re(this,We),new it(he(ht))},Ie[Ze]=We;for(var Pe=ve(it),Ue=0,qe;Pe.length>Ue;)(qe=Pe[Ue++])in Ie||fe(Ie,qe,it[qe]);We.constructor=Ie}else Ee&&Se&&fe(it,"name",Ae);me&&be(rt)!==et&&me(rt,et);var nt=new tt(new Ie(2)),dt=z(rt.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),(nt.getInt8(0)||!nt.getInt8(1))&&E(rt,{setInt8:function(ht,St){dt(this,ht,St<<24>>24)},setUint8:function(ht,St){dt(this,ht,St<<24>>24)}},{unsafe:!0})}ke(Ie,Ae),ke(tt,je),De.exports={ArrayBuffer:Ie,DataView:tt}},{"../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,De,xe){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),se=Math.min;De.exports=[].copyWithin||function(fe,E){var ie=x(this),re=oe(ie),le=z(fe,re),ce=z(E,re),he=arguments.length>2?arguments[2]:void 0,ge=se((he===void 0?re:z(he,re))-ce,re-le),be=1;for(ce<le&&le<ce+ge&&(be=-1,ce+=ge-1,le+=ge-1);ge-- >0;)ce in ie?ie[le]=ie[ce]:delete ie[le],le+=be,ce+=be;return ie}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,De,xe){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like");De.exports=function(ee){for(var fe=x(this),E=oe(fe),ie=arguments.length,re=z(ie>1?arguments[1]:void 0,E),le=ie>2?arguments[2]:void 0,ce=le===void 0?E:z(le,E);ce>re;)fe[re++]=ee;return fe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,De,xe){"use strict";var x=y("../internals/array-iteration").forEach,z=y("../internals/array-method-is-strict"),oe=z("forEach");De.exports=oe?[].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,De,xe){var x=y("../internals/length-of-array-like");De.exports=function(z,oe){for(var se=0,ee=x(oe),fe=new z(ee);ee>se;)fe[se]=oe[se++];return fe}},{"../internals/length-of-array-like":188}],109:[function(y,De,xe){"use strict";var x=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/function-call"),se=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),fe=y("../internals/is-array-iterator-method"),E=y("../internals/is-constructor"),ie=y("../internals/length-of-array-like"),re=y("../internals/create-property"),le=y("../internals/get-iterator"),ce=y("../internals/get-iterator-method"),he=x.Array;De.exports=function(be){var me=se(be),ve=E(this),Ce=arguments.length,Te=Ce>1?arguments[1]:void 0,Me=Te!==void 0;Me&&(Te=z(Te,Ce>2?arguments[2]:void 0));var ke=ce(me),de=0,ye,Se,Oe,Ne,Ae,je;if(ke&&!(this==he&&fe(ke)))for(Ne=le(me,ke),Ae=Ne.next,Se=ve?new this:[];!(Oe=oe(Ae,Ne)).done;de++)je=Me?ee(Ne,Te,[Oe.value,de],!0):Oe.value,re(Se,de,je);else for(ye=ie(me),Se=ve?new this(ye):he(ye);ye>de;de++)je=Me?Te(me[de],de):me[de],re(Se,de,je);return Se.length=de,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,De,xe){var x=y("../internals/to-indexed-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),se=function(ee){return function(fe,E,ie){var re=x(fe),le=oe(re),ce=z(ie,le),he;if(ee&&E!=E){for(;le>ce;)if(he=re[ce++],he!=he)return!0}else for(;le>ce;ce++)if((ee||ce in re)&&re[ce]===E)return ee||ce||0;return!ee&&-1}};De.exports={includes:se(!0),indexOf:se(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,De,xe){var x=y("../internals/function-bind-context"),z=y("../internals/function-uncurry-this"),oe=y("../internals/indexed-object"),se=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),fe=y("../internals/array-species-create"),E=z([].push),ie=function(re){var le=re==1,ce=re==2,he=re==3,ge=re==4,be=re==6,me=re==7,ve=re==5||be;return function(Ce,Te,Me,ke){for(var de=se(Ce),ye=oe(de),Se=x(Te,Me),Oe=ee(ye),Ne=0,Ae=ke||fe,je=le?Ae(Ce,Oe):ce||me?Ae(Ce,0):void 0,Ze,ze;Oe>Ne;Ne++)if((ve||Ne in ye)&&(Ze=ye[Ne],ze=Se(Ze,Ne,de),re))if(le)je[Ne]=ze;else if(ze)switch(re){case 3:return!0;case 5:return Ze;case 6:return Ne;case 2:E(je,Ze)}else switch(re){case 4:return!1;case 7:E(je,Ze)}return be?-1:he||ge?ge:je}};De.exports={forEach:ie(0),map:ie(1),filter:ie(2),some:ie(3),every:ie(4),find:ie(5),findIndex:ie(6),filterReject:ie(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,De,xe){"use strict";var x=y("../internals/function-apply"),z=y("../internals/to-indexed-object"),oe=y("../internals/to-integer-or-infinity"),se=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),fe=Math.min,E=[].lastIndexOf,ie=!!E&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),le=ie||!re;De.exports=le?function(he){if(ie)return x(E,this,arguments)||0;var ge=z(this),be=se(ge),me=be-1;for(arguments.length>1&&(me=fe(me,oe(arguments[1]))),me<0&&(me=be+me);me>=0;me--)if(me in ge&&ge[me]===he)return me||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,De,xe){var x=y("../internals/fails"),z=y("../internals/well-known-symbol"),oe=y("../internals/engine-v8-version"),se=z("species");De.exports=function(ee){return oe>=51||!x(function(){var fe=[],E=fe.constructor={};return E[se]=function(){return{foo:1}},fe[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,De,xe){"use strict";var x=y("../internals/fails");De.exports=function(z,oe){var se=[][z];return!!se&&x(function(){se.call(null,oe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/a-callable"),oe=y("../internals/to-object"),se=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),fe=x.TypeError,E=function(ie){return function(re,le,ce,he){z(le);var ge=oe(re),be=se(ge),me=ee(ge),ve=ie?me-1:0,Ce=ie?-1:1;if(ce<2)for(;;){if(ve in be){he=be[ve],ve+=Ce;break}if(ve+=Ce,ie?ve<0:me<=ve)throw fe("Reduce of empty array with no initial value")}for(;ie?ve>=0:me>ve;ve+=Ce)ve in be&&(he=le(he,be[ve],ve,ge));return he}};De.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,De,xe){var x=y("../internals/global"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),se=y("../internals/create-property"),ee=x.Array,fe=Math.max;De.exports=function(E,ie,re){for(var le=oe(E),ce=z(ie,le),he=z(re===void 0?le:re,le),ge=ee(fe(he-ce,0)),be=0;ce<he;ce++,be++)se(ge,be,E[ce]);return ge.length=be,ge}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,De,xe){var x=y("../internals/function-uncurry-this");De.exports=x([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,De,xe){var x=y("../internals/array-slice-simple"),z=Math.floor,oe=function(fe,E){var ie=fe.length,re=z(ie/2);return ie<8?se(fe,E):ee(fe,oe(x(fe,0,re),E),oe(x(fe,re),E),E)},se=function(fe,E){for(var ie=fe.length,re=1,le,ce;re<ie;){for(ce=re,le=fe[re];ce&&E(fe[ce-1],le)>0;)fe[ce]=fe[--ce];ce!==re++&&(fe[ce]=le)}return fe},ee=function(fe,E,ie,re){for(var le=E.length,ce=ie.length,he=0,ge=0;he<le||ge<ce;)fe[he+ge]=he<le&&ge<ce?re(E[he],ie[ge])<=0?E[he++]:ie[ge++]:he<le?E[he++]:ie[ge++];return fe};De.exports=oe},{"../internals/array-slice-simple":116}],119:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-array"),oe=y("../internals/is-constructor"),se=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),fe=ee("species"),E=x.Array;De.exports=function(ie){var re;return z(ie)&&(re=ie.constructor,oe(re)&&(re===E||z(re.prototype))?re=void 0:se(re)&&(re=re[fe],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,De,xe){var x=y("../internals/array-species-constructor");De.exports=function(z,oe){return new(x(z))(oe===0?0:oe)}},{"../internals/array-species-constructor":119}],121:[function(y,De,xe){var x=y("../internals/an-object"),z=y("../internals/iterator-close");De.exports=function(oe,se,ee,fe){try{return fe?se(x(ee)[0],ee[1]):se(ee)}catch(E){z(oe,"throw",E)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,De,xe){var x=y("../internals/well-known-symbol"),z=x("iterator"),oe=!1;try{var se=0,ee={next:function(){return{done:!!se++}},return:function(){oe=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(fe){}De.exports=function(fe,E){if(!E&&!oe)return!1;var ie=!1;try{var re={};re[z]=function(){return{next:function(){return{done:ie=!0}}}},fe(re)}catch(le){}return ie}},{"../internals/well-known-symbol":268}],123:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=x({}.toString),oe=x("".slice);De.exports=function(se){return oe(z(se),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/to-string-tag-support"),oe=y("../internals/is-callable"),se=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),fe=ee("toStringTag"),E=x.Object,ie=se(function(){return arguments}())=="Arguments",re=function(le,ce){try{return le[ce]}catch(he){}};De.exports=z?se:function(le){var ce,he,ge;return le===void 0?"Undefined":le===null?"Null":typeof(he=re(ce=E(le),fe))=="string"?he:ie?se(ce):(ge=se(ce))=="Object"&&oe(ce.callee)?"Arguments":ge}},{"../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,De,xe){var x=y("../internals/has-own-property"),z=y("../internals/own-keys"),oe=y("../internals/object-get-own-property-descriptor"),se=y("../internals/object-define-property");De.exports=function(ee,fe,E){for(var ie=z(fe),re=se.f,le=oe.f,ce=0;ce<ie.length;ce++){var he=ie[ce];!x(ee,he)&&!(E&&x(E,he))&&re(ee,he,le(fe,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,De,xe){var x=y("../internals/well-known-symbol"),z=x("match");De.exports=function(oe){var se=/./;try{"/./"[oe](se)}catch(ee){try{return se[z]=!1,"/./"[oe](se)}catch(fe){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,De,xe){var x=y("../internals/fails");De.exports=!x(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(y,De,xe){"use strict";var x=y("../internals/iterators-core").IteratorPrototype,z=y("../internals/object-create"),oe=y("../internals/create-property-descriptor"),se=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),fe=function(){return this};De.exports=function(E,ie,re,le){var ce=ie+" Iterator";return E.prototype=z(x,{next:oe(+!le,re)}),se(E,ce,!1,!0),ee[ce]=fe,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,De,xe){var x=y("../internals/descriptors"),z=y("../internals/object-define-property"),oe=y("../internals/create-property-descriptor");De.exports=x?function(se,ee,fe){return z.f(se,ee,oe(1,fe))}:function(se,ee,fe){return se[ee]=fe,se}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,De,xe){De.exports=function(x,z){return{enumerable:!(x&1),configurable:!(x&2),writable:!(x&4),value:z}}},{}],131:[function(y,De,xe){"use strict";var x=y("../internals/to-property-key"),z=y("../internals/object-define-property"),oe=y("../internals/create-property-descriptor");De.exports=function(se,ee,fe){var E=x(ee);E in se?z.f(se,E,oe(0,fe)):se[E]=fe}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/is-pure"),se=y("../internals/function-name"),ee=y("../internals/is-callable"),fe=y("../internals/create-iterator-constructor"),E=y("../internals/object-get-prototype-of"),ie=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),le=y("../internals/create-non-enumerable-property"),ce=y("../internals/redefine"),he=y("../internals/well-known-symbol"),ge=y("../internals/iterators"),be=y("../internals/iterators-core"),me=se.PROPER,ve=se.CONFIGURABLE,Ce=be.IteratorPrototype,Te=be.BUGGY_SAFARI_ITERATORS,Me=he("iterator"),ke="keys",de="values",ye="entries",Se=function(){return this};De.exports=function(Oe,Ne,Ae,je,Ze,ze,Ve){fe(Ae,Ne,je);var it=function(Je){if(Je===Ze&&et)return et;if(!Te&&Je in tt)return tt[Je];switch(Je){case ke:return function(){return new Ae(this,Je)};case de:return function(){return new Ae(this,Je)};case ye:return function(){return new Ae(this,Je)}}return function(){return new Ae(this)}},Ie=Ne+" Iterator",We=!1,tt=Oe.prototype,rt=tt[Me]||tt["@@iterator"]||Ze&&tt[Ze],et=!Te&&rt||it(Ze),Ke=Ne=="Array"&&tt.entries||rt,$e,Ge,ot;if(Ke&&($e=E(Ke.call(new Oe)),$e!==Object.prototype&&$e.next&&(!oe&&E($e)!==Ce&&(ie?ie($e,Ce):ee($e[Me])||ce($e,Me,Se)),re($e,Ie,!0,!0),oe&&(ge[Ie]=Se))),me&&Ze==de&&rt&&rt.name!==de&&(!oe&&ve?le(tt,"name",de):(We=!0,et=function(){return z(rt,this)})),Ze)if(Ge={values:it(de),keys:ze?et:it(ke),entries:it(ye)},Ve)for(ot in Ge)(Te||We||!(ot in tt))&&ce(tt,ot,Ge[ot]);else x({target:Ne,proto:!0,forced:Te||We},Ge);return(!oe||Ve)&&tt[Me]!==et&&ce(tt,Me,et,{name:Ze}),ge[Ne]=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,De,xe){var x=y("../internals/path"),z=y("../internals/has-own-property"),oe=y("../internals/well-known-symbol-wrapped"),se=y("../internals/object-define-property").f;De.exports=function(ee){var fe=x.Symbol||(x.Symbol={});z(fe,ee)||se(fe,ee,{value:oe.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,De,xe){var x=y("../internals/fails");De.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-object"),oe=x.document,se=z(oe)&&z(oe.createElement);De.exports=function(ee){return se?oe.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,De,xe){De.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,De,xe){var x=y("../internals/document-create-element"),z=x("span").classList,oe=z&&z.constructor&&z.constructor.prototype;De.exports=oe===Object.prototype?void 0:oe},{"../internals/document-create-element":135}],138:[function(y,De,xe){var x=y("../internals/engine-user-agent"),z=x.match(/firefox\/(\d+)/i);De.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(y,De,xe){De.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,De,xe){var x=y("../internals/engine-user-agent");De.exports=/MSIE|Trident/.test(x)},{"../internals/engine-user-agent":145}],141:[function(y,De,xe){var x=y("../internals/engine-user-agent"),z=y("../internals/global");De.exports=/ipad|iphone|ipod/i.test(x)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,De,xe){var x=y("../internals/engine-user-agent");De.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(x)},{"../internals/engine-user-agent":145}],143:[function(y,De,xe){var x=y("../internals/classof-raw"),z=y("../internals/global");De.exports=x(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,De,xe){var x=y("../internals/engine-user-agent");De.exports=/web0s(?!.*chrome)/i.test(x)},{"../internals/engine-user-agent":145}],145:[function(y,De,xe){var x=y("../internals/get-built-in");De.exports=x("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/engine-user-agent"),oe=x.process,se=x.Deno,ee=oe&&oe.versions||se&&se.version,fe=ee&&ee.v8,E,ie;fe&&(E=fe.split("."),ie=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!ie&&z&&(E=z.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=z.match(/Chrome\/(\d+)/),E&&(ie=+E[1]))),De.exports=ie},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,De,xe){var x=y("../internals/engine-user-agent"),z=x.match(/AppleWebKit\/(\d+)\./);De.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(y,De,xe){De.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/object-get-own-property-descriptor").f,oe=y("../internals/create-non-enumerable-property"),se=y("../internals/redefine"),ee=y("../internals/set-global"),fe=y("../internals/copy-constructor-properties"),E=y("../internals/is-forced");De.exports=function(ie,re){var le=ie.target,ce=ie.global,he=ie.stat,ge,be,me,ve,Ce,Te;if(ce?be=x:he?be=x[le]||ee(le,{}):be=(x[le]||{}).prototype,be)for(me in re){if(Ce=re[me],ie.noTargetGet?(Te=z(be,me),ve=Te&&Te.value):ve=be[me],ge=E(ce?me:le+(he?".":"#")+me,ie.forced),!ge&&ve!==void 0){if(typeof Ce==typeof ve)continue;fe(Ce,ve)}(ie.sham||ve&&ve.sham)&&oe(Ce,"sham",!0),se(be,me,Ce,ie)}}},{"../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,De,xe){De.exports=function(x){try{return!!x()}catch(z){return!0}}},{}],151:[function(y,De,xe){"use strict";y("../modules/es.regexp.exec");var x=y("../internals/function-uncurry-this"),z=y("../internals/redefine"),oe=y("../internals/regexp-exec"),se=y("../internals/fails"),ee=y("../internals/well-known-symbol"),fe=y("../internals/create-non-enumerable-property"),E=ee("species"),ie=RegExp.prototype;De.exports=function(re,le,ce,he){var ge=ee(re),be=!se(function(){var Te={};return Te[ge]=function(){return 7},""[re](Te)!=7}),me=be&&!se(function(){var Te=!1,Me=/a/;return re==="split"&&(Me={},Me.constructor={},Me.constructor[E]=function(){return Me},Me.flags="",Me[ge]=/./[ge]),Me.exec=function(){return Te=!0,null},Me[ge](""),!Te});if(!be||!me||ce){var ve=x(/./[ge]),Ce=le(ge,""[re],function(Te,Me,ke,de,ye){var Se=x(Te),Oe=Me.exec;return Oe===oe||Oe===ie.exec?be&&!ye?{done:!0,value:ve(Me,ke,de)}:{done:!0,value:Se(ke,Me,de)}:{done:!1}});z(String.prototype,re,Ce[0]),z(ie,ge,Ce[1])}he&&fe(ie[ge],"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,De,xe){var x=y("../internals/function-bind-native"),z=Function.prototype,oe=z.apply,se=z.call;De.exports=typeof Reflect=="object"&&Reflect.apply||(x?se.bind(oe):function(){return se.apply(oe,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/a-callable"),oe=y("../internals/function-bind-native"),se=x(x.bind);De.exports=function(ee,fe){return z(ee),fe===void 0?ee:oe?se(ee,fe):function(){return ee.apply(fe,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,De,xe){var x=y("../internals/fails");De.exports=!x(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,De,xe){var x=y("../internals/function-bind-native"),z=Function.prototype.call;De.exports=x?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,De,xe){var x=y("../internals/descriptors"),z=y("../internals/has-own-property"),oe=Function.prototype,se=x&&Object.getOwnPropertyDescriptor,ee=z(oe,"name"),fe=ee&&function(){}.name==="something",E=ee&&(!x||x&&se(oe,"name").configurable);De.exports={EXISTS:ee,PROPER:fe,CONFIGURABLE:E}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,De,xe){var x=y("../internals/function-bind-native"),z=Function.prototype,oe=z.bind,se=z.call,ee=x&&oe.bind(se,se);De.exports=x?function(fe){return fe&&ee(fe)}:function(fe){return fe&&function(){return se.apply(fe,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=function(se){return z(se)?se:void 0};De.exports=function(se,ee){return arguments.length<2?oe(x[se]):x[se]&&x[se][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,De,xe){var x=y("../internals/classof"),z=y("../internals/get-method"),oe=y("../internals/iterators"),se=y("../internals/well-known-symbol"),ee=se("iterator");De.exports=function(fe){if(fe!=null)return z(fe,ee)||z(fe,"@@iterator")||oe[x(fe)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),se=y("../internals/an-object"),ee=y("../internals/try-to-string"),fe=y("../internals/get-iterator-method"),E=x.TypeError;De.exports=function(ie,re){var le=arguments.length<2?fe(ie):re;if(oe(le))return se(z(le,ie));throw E(ee(ie)+" 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,De,xe){var x=y("../internals/a-callable");De.exports=function(z,oe){var se=z[oe];return se==null?void 0:x(se)}},{"../internals/a-callable":95}],162:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),oe=Math.floor,se=x("".charAt),ee=x("".replace),fe=x("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ie=/\$([$&'`]|\d{1,2})/g;De.exports=function(re,le,ce,he,ge,be){var me=ce+re.length,ve=he.length,Ce=ie;return ge!==void 0&&(ge=z(ge),Ce=E),ee(be,Ce,function(Te,Me){var ke;switch(se(Me,0)){case"$":return"$";case"&":return re;case"`":return fe(le,0,ce);case"'":return fe(le,me);case"<":ke=ge[fe(Me,1,-1)];break;default:var de=+Me;if(de===0)return Te;if(de>ve){var ye=oe(de/10);return ye===0?Te:ye<=ve?he[ye-1]===void 0?se(Me,1):he[ye-1]+se(Me,1):Te}ke=he[de-1]}return ke===void 0?"":ke})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,De,xe){(function(x){(function(){var z=function(oe){return oe&&oe.Math==Math&&oe};De.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 Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),oe=x({}.hasOwnProperty);De.exports=Object.hasOwn||function(ee,fe){return oe(z(ee),fe)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,De,xe){De.exports={}},{}],166:[function(y,De,xe){var x=y("../internals/global");De.exports=function(z,oe){var se=x.console;se&&se.error&&(arguments.length==1?se.error(z):se.error(z,oe))}},{"../internals/global":163}],167:[function(y,De,xe){var x=y("../internals/get-built-in");De.exports=x("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,De,xe){var x=y("../internals/descriptors"),z=y("../internals/fails"),oe=y("../internals/document-create-element");De.exports=!x&&!z(function(){return Object.defineProperty(oe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,De,xe){var x=y("../internals/global"),z=x.Array,oe=Math.abs,se=Math.pow,ee=Math.floor,fe=Math.log,E=Math.LN2,ie=function(le,ce,he){var ge=z(he),be=he*8-ce-1,me=(1<<be)-1,ve=me>>1,Ce=ce===23?se(2,-24)-se(2,-77):0,Te=le<0||le===0&&1/le<0?1:0,Me=0,ke,de,ye;for(le=oe(le),le!=le||le===1/0?(de=le!=le?1:0,ke=me):(ke=ee(fe(le)/E),ye=se(2,-ke),le*ye<1&&(ke--,ye*=2),ke+ve>=1?le+=Ce/ye:le+=Ce*se(2,1-ve),le*ye>=2&&(ke++,ye/=2),ke+ve>=me?(de=0,ke=me):ke+ve>=1?(de=(le*ye-1)*se(2,ce),ke=ke+ve):(de=le*se(2,ve-1)*se(2,ce),ke=0));ce>=8;)ge[Me++]=de&255,de/=256,ce-=8;for(ke=ke<<ce|de,be+=ce;be>0;)ge[Me++]=ke&255,ke/=256,be-=8;return ge[--Me]|=Te*128,ge},re=function(le,ce){var he=le.length,ge=he*8-ce-1,be=(1<<ge)-1,me=be>>1,ve=ge-7,Ce=he-1,Te=le[Ce--],Me=Te&127,ke;for(Te>>=7;ve>0;)Me=Me*256+le[Ce--],ve-=8;for(ke=Me&(1<<-ve)-1,Me>>=-ve,ve+=ce;ve>0;)ke=ke*256+le[Ce--],ve-=8;if(Me===0)Me=1-me;else{if(Me===be)return ke?NaN:Te?-1/0:1/0;ke=ke+se(2,ce),Me=Me-me}return(Te?-1:1)*ke*se(2,Me-ce)};De.exports={pack:ie,unpack:re}},{"../internals/global":163}],170:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),se=y("../internals/classof-raw"),ee=x.Object,fe=z("".split);De.exports=oe(function(){return!ee("z").propertyIsEnumerable(0)})?function(E){return se(E)=="String"?fe(E,""):ee(E)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,De,xe){var x=y("../internals/is-callable"),z=y("../internals/is-object"),oe=y("../internals/object-set-prototype-of");De.exports=function(se,ee,fe){var E,ie;return oe&&x(E=ee.constructor)&&E!==fe&&z(ie=E.prototype)&&ie!==fe.prototype&&oe(se,ie),se}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/is-callable"),oe=y("../internals/shared-store"),se=x(Function.toString);z(oe.inspectSource)||(oe.inspectSource=function(ee){return se(ee)}),De.exports=oe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,De,xe){var x=y("../internals/native-weak-map"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),se=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),fe=y("../internals/has-own-property"),E=y("../internals/shared-store"),ie=y("../internals/shared-key"),re=y("../internals/hidden-keys"),le="Object already initialized",ce=z.TypeError,he=z.WeakMap,ge,be,me,ve=function(Se){return me(Se)?be(Se):ge(Se,{})},Ce=function(Se){return function(Oe){var Ne;if(!se(Oe)||(Ne=be(Oe)).type!==Se)throw ce("Incompatible receiver, "+Se+" required");return Ne}};if(x||E.state){var Te=E.state||(E.state=new he),Me=oe(Te.get),ke=oe(Te.has),de=oe(Te.set);ge=function(Se,Oe){if(ke(Te,Se))throw new ce(le);return Oe.facade=Se,de(Te,Se,Oe),Oe},be=function(Se){return Me(Te,Se)||{}},me=function(Se){return ke(Te,Se)}}else{var ye=ie("state");re[ye]=!0,ge=function(Se,Oe){if(fe(Se,ye))throw new ce(le);return Oe.facade=Se,ee(Se,ye,Oe),Oe},be=function(Se){return fe(Se,ye)?Se[ye]:{}},me=function(Se){return fe(Se,ye)}}De.exports={set:ge,get:be,has:me,enforce:ve,getterFor:Ce}},{"../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,De,xe){var x=y("../internals/well-known-symbol"),z=y("../internals/iterators"),oe=x("iterator"),se=Array.prototype;De.exports=function(ee){return ee!==void 0&&(z.Array===ee||se[oe]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,De,xe){var x=y("../internals/classof-raw");De.exports=Array.isArray||function(oe){return x(oe)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,De,xe){De.exports=function(x){return typeof x=="function"}},{}],177:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/fails"),oe=y("../internals/is-callable"),se=y("../internals/classof"),ee=y("../internals/get-built-in"),fe=y("../internals/inspect-source"),E=function(){},ie=[],re=ee("Reflect","construct"),le=/^\s*(?:class|function)\b/,ce=x(le.exec),he=!le.exec(E),ge=function(ve){if(!oe(ve))return!1;try{return re(E,ie,ve),!0}catch(Ce){return!1}},be=function(ve){if(!oe(ve))return!1;switch(se(ve)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return he||!!ce(le,fe(ve))}catch(Ce){return!0}};be.sham=!0,De.exports=!re||z(function(){var me;return ge(ge.call)||!ge(Object)||!ge(function(){me=!0})||me})?be:ge},{"../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,De,xe){var x=y("../internals/fails"),z=y("../internals/is-callable"),oe=/#|\.prototype\./,se=function(re,le){var ce=fe[ee(re)];return ce==ie?!0:ce==E?!1:z(le)?x(le):!!le},ee=se.normalize=function(re){return String(re).replace(oe,".").toLowerCase()},fe=se.data={},E=se.NATIVE="N",ie=se.POLYFILL="P";De.exports=se},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,De,xe){var x=y("../internals/is-object"),z=Math.floor;De.exports=Number.isInteger||function(se){return!x(se)&&isFinite(se)&&z(se)===se}},{"../internals/is-object":180}],180:[function(y,De,xe){var x=y("../internals/is-callable");De.exports=function(z){return typeof z=="object"?z!==null:x(z)}},{"../internals/is-callable":176}],181:[function(y,De,xe){De.exports=!1},{}],182:[function(y,De,xe){var x=y("../internals/is-object"),z=y("../internals/classof-raw"),oe=y("../internals/well-known-symbol"),se=oe("match");De.exports=function(ee){var fe;return x(ee)&&((fe=ee[se])!==void 0?!!fe:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/get-built-in"),oe=y("../internals/is-callable"),se=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),fe=x.Object;De.exports=ee?function(E){return typeof E=="symbol"}:function(E){var ie=z("Symbol");return oe(ie)&&se(ie.prototype,fe(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,De,xe){var x=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/function-call"),se=y("../internals/an-object"),ee=y("../internals/try-to-string"),fe=y("../internals/is-array-iterator-method"),E=y("../internals/length-of-array-like"),ie=y("../internals/object-is-prototype-of"),re=y("../internals/get-iterator"),le=y("../internals/get-iterator-method"),ce=y("../internals/iterator-close"),he=x.TypeError,ge=function(me,ve){this.stopped=me,this.result=ve},be=ge.prototype;De.exports=function(me,ve,Ce){var Te=Ce&&Ce.that,Me=!!(Ce&&Ce.AS_ENTRIES),ke=!!(Ce&&Ce.IS_ITERATOR),de=!!(Ce&&Ce.INTERRUPTED),ye=z(ve,Te),Se,Oe,Ne,Ae,je,Ze,ze,Ve=function(Ie){return Se&&ce(Se,"normal",Ie),new ge(!0,Ie)},it=function(Ie){return Me?(se(Ie),de?ye(Ie[0],Ie[1],Ve):ye(Ie[0],Ie[1])):de?ye(Ie,Ve):ye(Ie)};if(ke)Se=me;else{if(Oe=le(me),!Oe)throw he(ee(me)+" is not iterable");if(fe(Oe)){for(Ne=0,Ae=E(me);Ae>Ne;Ne++)if(je=it(me[Ne]),je&&ie(be,je))return je;return new ge(!1)}Se=re(me,Oe)}for(Ze=Se.next;!(ze=oe(Ze,Se)).done;){try{je=it(ze.value)}catch(Ie){ce(Se,"throw",Ie)}if(typeof je=="object"&&je&&ie(be,je))return je}return new ge(!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,De,xe){var x=y("../internals/function-call"),z=y("../internals/an-object"),oe=y("../internals/get-method");De.exports=function(se,ee,fe){var E,ie;z(se);try{if(E=oe(se,"return"),!E){if(ee==="throw")throw fe;return fe}E=x(E,se)}catch(re){ie=!0,E=re}if(ee==="throw")throw fe;if(ie)throw E;return z(E),fe}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,De,xe){"use strict";var x=y("../internals/fails"),z=y("../internals/is-callable"),oe=y("../internals/object-create"),se=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),fe=y("../internals/well-known-symbol"),E=y("../internals/is-pure"),ie=fe("iterator"),re=!1,le,ce,he;[].keys&&(he=[].keys(),"next"in he?(ce=se(se(he)),ce!==Object.prototype&&(le=ce)):re=!0);var ge=le==null||x(function(){var be={};return le[ie].call(be)!==be});ge?le={}:E&&(le=oe(le)),z(le[ie])||ee(le,ie,function(){return this}),De.exports={IteratorPrototype:le,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,De,xe){arguments[4][165][0].apply(xe,arguments)},{dup:165}],188:[function(y,De,xe){var x=y("../internals/to-length");De.exports=function(z){return x(z.length)}},{"../internals/to-length":249}],189:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/object-get-own-property-descriptor").f,se=y("../internals/task").set,ee=y("../internals/engine-is-ios"),fe=y("../internals/engine-is-ios-pebble"),E=y("../internals/engine-is-webos-webkit"),ie=y("../internals/engine-is-node"),re=x.MutationObserver||x.WebKitMutationObserver,le=x.document,ce=x.process,he=x.Promise,ge=oe(x,"queueMicrotask"),be=ge&&ge.value,me,ve,Ce,Te,Me,ke,de,ye;be||(me=function(){var Se,Oe;for(ie&&(Se=ce.domain)&&Se.exit();ve;){Oe=ve.fn,ve=ve.next;try{Oe()}catch(Ne){throw ve?Te():Ce=void 0,Ne}}Ce=void 0,Se&&Se.enter()},!ee&&!ie&&!E&&re&&le?(Me=!0,ke=le.createTextNode(""),new re(me).observe(ke,{characterData:!0}),Te=function(){ke.data=Me=!Me}):!fe&&he&&he.resolve?(de=he.resolve(void 0),de.constructor=he,ye=z(de.then,de),Te=function(){ye(me)}):ie?Te=function(){ce.nextTick(me)}:(se=z(se,x),Te=function(){se(me)})),De.exports=be||function(Se){var Oe={fn:Se,next:void 0};Ce&&(Ce.next=Oe),ve||(ve=Oe,Te()),Ce=Oe}},{"../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,De,xe){var x=y("../internals/native-symbol");De.exports=x&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,De,xe){var x=y("../internals/engine-v8-version"),z=y("../internals/fails");De.exports=!!Object.getOwnPropertySymbols&&!z(function(){var oe=Symbol();return!String(oe)||!(Object(oe)instanceof Symbol)||!Symbol.sham&&x&&x<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/inspect-source"),se=x.WeakMap;De.exports=z(se)&&/native code/.test(oe(se))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,De,xe){"use strict";var x=y("../internals/a-callable"),z=function(oe){var se,ee;this.promise=new oe(function(fe,E){if(se!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");se=fe,ee=E}),this.resolve=x(se),this.reject=x(ee)};De.exports.f=function(oe){return new z(oe)}},{"../internals/a-callable":95}],194:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-regexp"),oe=x.TypeError;De.exports=function(se){if(z(se))throw oe("The method doesn't accept regular expressions");return se}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,De,xe){"use strict";var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),oe=y("../internals/function-call"),se=y("../internals/fails"),ee=y("../internals/object-keys"),fe=y("../internals/object-get-own-property-symbols"),E=y("../internals/object-property-is-enumerable"),ie=y("../internals/to-object"),re=y("../internals/indexed-object"),le=Object.assign,ce=Object.defineProperty,he=z([].concat);De.exports=!le||se(function(){if(x&&le({b:1},le(ce({},"a",{enumerable:!0,get:function(){ce(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ge={},be={},me=Symbol(),ve="abcdefghijklmnopqrst";return ge[me]=7,ve.split("").forEach(function(Ce){be[Ce]=Ce}),le({},ge)[me]!=7||ee(le({},be)).join("")!=ve})?function(be,me){for(var ve=ie(be),Ce=arguments.length,Te=1,Me=fe.f,ke=E.f;Ce>Te;)for(var de=re(arguments[Te++]),ye=Me?he(ee(de),Me(de)):ee(de),Se=ye.length,Oe=0,Ne;Se>Oe;)Ne=ye[Oe++],(!x||oe(ke,de,Ne))&&(ve[Ne]=de[Ne]);return ve}:le},{"../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,De,xe){var x=y("../internals/an-object"),z=y("../internals/object-define-properties"),oe=y("../internals/enum-bug-keys"),se=y("../internals/hidden-keys"),ee=y("../internals/html"),fe=y("../internals/document-create-element"),E=y("../internals/shared-key"),ie=">",re="<",le="prototype",ce="script",he=E("IE_PROTO"),ge=function(){},be=function(Me){return re+ce+ie+Me+re+"/"+ce+ie},me=function(Me){Me.write(be("")),Me.close();var ke=Me.parentWindow.Object;return Me=null,ke},ve=function(){var Me=fe("iframe"),ke="java"+ce+":",de;return Me.style.display="none",ee.appendChild(Me),Me.src=String(ke),de=Me.contentWindow.document,de.open(),de.write(be("document.F=Object")),de.close(),de.F},Ce,Te=function(){try{Ce=new ActiveXObject("htmlfile")}catch(ke){}Te=typeof document!="undefined"?document.domain&&Ce?me(Ce):ve():me(Ce);for(var Me=oe.length;Me--;)delete Te[le][oe[Me]];return Te()};se[he]=!0,De.exports=Object.create||function(ke,de){var ye;return ke!==null?(ge[le]=x(ke),ye=new ge,ge[le]=null,ye[he]=ke):ye=Te(),de===void 0?ye:z.f(ye,de)}},{"../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,De,xe){var x=y("../internals/descriptors"),z=y("../internals/v8-prototype-define-bug"),oe=y("../internals/object-define-property"),se=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),fe=y("../internals/object-keys");xe.f=x&&!z?Object.defineProperties:function(ie,re){se(ie);for(var le=ee(re),ce=fe(re),he=ce.length,ge=0,be;he>ge;)oe.f(ie,be=ce[ge++],le[be]);return ie}},{"../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,De,xe){var x=y("../internals/global"),z=y("../internals/descriptors"),oe=y("../internals/ie8-dom-define"),se=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),fe=y("../internals/to-property-key"),E=x.TypeError,ie=Object.defineProperty,re=Object.getOwnPropertyDescriptor,le="enumerable",ce="configurable",he="writable";xe.f=z?se?function(be,me,ve){if(ee(be),me=fe(me),ee(ve),typeof be=="function"&&me==="prototype"&&"value"in ve&&he in ve&&!ve[he]){var Ce=re(be,me);Ce&&Ce[he]&&(be[me]=ve.value,ve={configurable:ce in ve?ve[ce]:Ce[ce],enumerable:le in ve?ve[le]:Ce[le],writable:!1})}return ie(be,me,ve)}:ie:function(be,me,ve){if(ee(be),me=fe(me),ee(ve),oe)try{return ie(be,me,ve)}catch(Ce){}if("get"in ve||"set"in ve)throw E("Accessors not supported");return"value"in ve&&(be[me]=ve.value),be}},{"../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,De,xe){var x=y("../internals/descriptors"),z=y("../internals/function-call"),oe=y("../internals/object-property-is-enumerable"),se=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),fe=y("../internals/to-property-key"),E=y("../internals/has-own-property"),ie=y("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;xe.f=x?re:function(ce,he){if(ce=ee(ce),he=fe(he),ie)try{return re(ce,he)}catch(ge){}if(E(ce,he))return se(!z(oe.f,ce,he),ce[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,De,xe){var x=y("../internals/classof-raw"),z=y("../internals/to-indexed-object"),oe=y("../internals/object-get-own-property-names").f,se=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fe=function(E){try{return oe(E)}catch(ie){return se(ee)}};De.exports.f=function(ie){return ee&&x(ie)=="Window"?fe(ie):oe(z(ie))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,De,xe){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys"),oe=z.concat("length","prototype");xe.f=Object.getOwnPropertyNames||function(ee){return x(ee,oe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,De,xe){xe.f=Object.getOwnPropertySymbols},{}],203:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/has-own-property"),oe=y("../internals/is-callable"),se=y("../internals/to-object"),ee=y("../internals/shared-key"),fe=y("../internals/correct-prototype-getter"),E=ee("IE_PROTO"),ie=x.Object,re=ie.prototype;De.exports=fe?ie.getPrototypeOf:function(le){var ce=se(le);if(z(ce,E))return ce[E];var he=ce.constructor;return oe(he)&&ce instanceof he?he.prototype:ce instanceof ie?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,De,xe){var x=y("../internals/function-uncurry-this");De.exports=x({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),oe=y("../internals/to-indexed-object"),se=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),fe=x([].push);De.exports=function(E,ie){var re=oe(E),le=0,ce=[],he;for(he in re)!z(ee,he)&&z(re,he)&&fe(ce,he);for(;ie.length>le;)z(re,he=ie[le++])&&(~se(ce,he)||fe(ce,he));return ce}},{"../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,De,xe){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys");De.exports=Object.keys||function(se){return x(se,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,De,xe){"use strict";var x={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,oe=z&&!x.call({1:2},1);xe.f=oe?function(ee){var fe=z(this,ee);return!!fe&&fe.enumerable}:x},{}],208:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/an-object"),oe=y("../internals/a-possible-prototype");De.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var se=!1,ee={},fe;try{fe=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),fe(ee,[]),se=ee instanceof Array}catch(E){}return function(ie,re){return z(ie),oe(re),se?fe(ie,re):ie.__proto__=re,ie}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,De,xe){var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),oe=y("../internals/object-keys"),se=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,fe=z(ee),E=z([].push),ie=function(re){return function(le){for(var ce=se(le),he=oe(ce),ge=he.length,be=0,me=[],ve;ge>be;)ve=he[be++],(!x||fe(ce,ve))&&E(me,re?[ve,ce[ve]]:ce[ve]);return me}};De.exports={entries:ie(!0),values:ie(!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,De,xe){"use strict";var x=y("../internals/to-string-tag-support"),z=y("../internals/classof");De.exports=x?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/is-callable"),se=y("../internals/is-object"),ee=x.TypeError;De.exports=function(fe,E){var ie,re;if(E==="string"&&oe(ie=fe.toString)&&!se(re=z(ie,fe))||oe(ie=fe.valueOf)&&!se(re=z(ie,fe))||E!=="string"&&oe(ie=fe.toString)&&!se(re=z(ie,fe)))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,De,xe){var x=y("../internals/get-built-in"),z=y("../internals/function-uncurry-this"),oe=y("../internals/object-get-own-property-names"),se=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),fe=z([].concat);De.exports=x("Reflect","ownKeys")||function(ie){var re=oe.f(ee(ie)),le=se.f;return le?fe(re,le(ie)):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,De,xe){var x=y("../internals/global");De.exports=x},{"../internals/global":163}],214:[function(y,De,xe){De.exports=function(x){try{return{error:!1,value:x()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/promise-native-constructor"),oe=y("../internals/is-callable"),se=y("../internals/is-forced"),ee=y("../internals/inspect-source"),fe=y("../internals/well-known-symbol"),E=y("../internals/engine-is-browser"),ie=y("../internals/is-pure"),re=y("../internals/engine-v8-version"),le=z&&z.prototype,ce=fe("species"),he=!1,ge=oe(x.PromiseRejectionEvent),be=se("Promise",function(){var me=ee(z),ve=me!==String(z);if(!ve&&re===66||ie&&!(le.catch&&le.finally))return!0;if(re>=51&&/native code/.test(me))return!1;var Ce=new z(function(ke){ke(1)}),Te=function(ke){ke(function(){},function(){})},Me=Ce.constructor={};return Me[ce]=Te,he=Ce.then(function(){})instanceof Te,he?!ve&&E&&!ge:!0});De.exports={CONSTRUCTOR:be,REJECTION_EVENT:ge,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,De,xe){var x=y("../internals/global");De.exports=x.Promise},{"../internals/global":163}],217:[function(y,De,xe){var x=y("../internals/an-object"),z=y("../internals/is-object"),oe=y("../internals/new-promise-capability");De.exports=function(se,ee){if(x(se),z(ee)&&ee.constructor===se)return ee;var fe=oe.f(se),E=fe.resolve;return E(ee),fe.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,De,xe){var x=y("../internals/promise-native-constructor"),z=y("../internals/check-correctness-of-iteration"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR;De.exports=oe||!z(function(se){x.all(se).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,De,xe){var x=y("../internals/object-define-property").f;De.exports=function(z,oe,se){se in z||x(z,se,{configurable:!0,get:function(){return oe[se]},set:function(ee){oe[se]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,De,xe){var x=function(){this.head=null,this.tail=null};x.prototype={add:function(z){var oe={item:z,next:null};this.head?this.tail.next=oe:this.head=oe,this.tail=oe},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},De.exports=x},{}],221:[function(y,De,xe){var x=y("../internals/redefine");De.exports=function(z,oe,se){for(var ee in oe)x(z,ee,oe[ee],se);return z}},{"../internals/redefine":222}],222:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/has-own-property"),se=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),fe=y("../internals/inspect-source"),E=y("../internals/internal-state"),ie=y("../internals/function-name").CONFIGURABLE,re=E.get,le=E.enforce,ce=String(String).split("String");(De.exports=function(he,ge,be,me){var ve=me?!!me.unsafe:!1,Ce=me?!!me.enumerable:!1,Te=me?!!me.noTargetGet:!1,Me=me&&me.name!==void 0?me.name:ge,ke;if(z(be)&&(String(Me).slice(0,7)==="Symbol("&&(Me="["+String(Me).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oe(be,"name")||ie&&be.name!==Me)&&se(be,"name",Me),ke=le(be),ke.source||(ke.source=ce.join(typeof Me=="string"?Me:""))),he===x){Ce?he[ge]=be:ee(ge,be);return}else ve?!Te&&he[ge]&&(Ce=!0):delete he[ge];Ce?he[ge]=be:se(he,ge,be)})(Function.prototype,"toString",function(){return z(this)&&re(this).source||fe(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,De,xe){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/an-object"),se=y("../internals/is-callable"),ee=y("../internals/classof-raw"),fe=y("../internals/regexp-exec"),E=x.TypeError;De.exports=function(ie,re){var le=ie.exec;if(se(le)){var ce=z(le,ie,re);return ce!==null&&oe(ce),ce}if(ee(ie)==="RegExp")return z(fe,ie,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,De,xe){"use strict";var x=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),oe=y("../internals/to-string"),se=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),fe=y("../internals/shared"),E=y("../internals/object-create"),ie=y("../internals/internal-state").get,re=y("../internals/regexp-unsupported-dot-all"),le=y("../internals/regexp-unsupported-ncg"),ce=fe("native-string-replace",String.prototype.replace),he=RegExp.prototype.exec,ge=he,be=z("".charAt),me=z("".indexOf),ve=z("".replace),Ce=z("".slice),Te=function(){var ye=/a/,Se=/b*/g;return x(he,ye,"a"),x(he,Se,"a"),ye.lastIndex!==0||Se.lastIndex!==0}(),Me=ee.BROKEN_CARET,ke=/()??/.exec("")[1]!==void 0,de=Te||ke||Me||re||le;de&&(ge=function(Se){var Oe=this,Ne=ie(Oe),Ae=oe(Se),je=Ne.raw,Ze,ze,Ve,it,Ie,We,tt;if(je)return je.lastIndex=Oe.lastIndex,Ze=x(ge,je,Ae),Oe.lastIndex=je.lastIndex,Ze;var rt=Ne.groups,et=Me&&Oe.sticky,Ke=x(se,Oe),$e=Oe.source,Ge=0,ot=Ae;if(et&&(Ke=ve(Ke,"y",""),me(Ke,"g")===-1&&(Ke+="g"),ot=Ce(Ae,Oe.lastIndex),Oe.lastIndex>0&&(!Oe.multiline||Oe.multiline&&be(Ae,Oe.lastIndex-1)!==`
`)&&($e="(?: "+$e+")",ot=" "+ot,Ge++),ze=new RegExp("^(?:"+$e+")",Ke)),ke&&(ze=new RegExp("^"+$e+"$(?!\\s)",Ke)),Te&&(Ve=Oe.lastIndex),it=x(he,et?ze:Oe,ot),et?it?(it.input=Ce(it.input,Ge),it[0]=Ce(it[0],Ge),it.index=Oe.lastIndex,Oe.lastIndex+=it[0].length):Oe.lastIndex=0:Te&&it&&(Oe.lastIndex=Oe.global?it.index+it[0].length:Ve),ke&&it&&it.length>1&&x(ce,it[0],ze,function(){for(Ie=1;Ie<arguments.length-2;Ie++)arguments[Ie]===void 0&&(it[Ie]=void 0)}),it&&rt)for(it.groups=We=E(null),Ie=0;Ie<rt.length;Ie++)tt=rt[Ie],We[tt[0]]=it[tt[1]];return it}),De.exports=ge},{"../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,De,xe){"use strict";var x=y("../internals/an-object");De.exports=function(){var z=x(this),oe="";return z.hasIndices&&(oe+="d"),z.global&&(oe+="g"),z.ignoreCase&&(oe+="i"),z.multiline&&(oe+="m"),z.dotAll&&(oe+="s"),z.unicode&&(oe+="u"),z.sticky&&(oe+="y"),oe}},{"../internals/an-object":101}],226:[function(y,De,xe){var x=y("../internals/function-call"),z=y("../internals/has-own-property"),oe=y("../internals/object-is-prototype-of"),se=y("../internals/regexp-flags"),ee=RegExp.prototype;De.exports=function(fe){var E=fe.flags;return E===void 0&&!("flags"in ee)&&!z(fe,"flags")&&oe(ee,fe)?x(se,fe):E}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,De,xe){var x=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp,se=x(function(){var E=oe("a","y");return E.lastIndex=2,E.exec("abcd")!=null}),ee=se||x(function(){return!oe("a","y").sticky}),fe=se||x(function(){var E=oe("^r","gy");return E.lastIndex=2,E.exec("str")!=null});De.exports={BROKEN_CARET:fe,MISSED_STICKY:ee,UNSUPPORTED_Y:se}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,De,xe){var x=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp;De.exports=x(function(){var se=oe(".","s");return!(se.dotAll&&se.exec(`
`)&&se.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,De,xe){var x=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp;De.exports=x(function(){var se=oe("(?<a>b)","g");return se.exec("b").groups.a!=="b"||"b".replace(se,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,De,xe){var x=y("../internals/global"),z=x.TypeError;De.exports=function(oe){if(oe==null)throw z("Can't call method on "+oe);return oe}},{"../internals/global":163}],231:[function(y,De,xe){De.exports=Object.is||function(z,oe){return z===oe?z!==0||1/z===1/oe:z!=z&&oe!=oe}},{}],232:[function(y,De,xe){var x=y("../internals/global"),z=Object.defineProperty;De.exports=function(oe,se){try{z(x,oe,{value:se,configurable:!0,writable:!0})}catch(ee){x[oe]=se}return se}},{"../internals/global":163}],233:[function(y,De,xe){"use strict";var x=y("../internals/get-built-in"),z=y("../internals/object-define-property"),oe=y("../internals/well-known-symbol"),se=y("../internals/descriptors"),ee=oe("species");De.exports=function(fe){var E=x(fe),ie=z.f;se&&E&&!E[ee]&&ie(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,De,xe){var x=y("../internals/object-define-property").f,z=y("../internals/has-own-property"),oe=y("../internals/well-known-symbol"),se=oe("toStringTag");De.exports=function(ee,fe,E){ee&&!E&&(ee=ee.prototype),ee&&!z(ee,se)&&x(ee,se,{configurable:!0,value:fe})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,De,xe){var x=y("../internals/shared"),z=y("../internals/uid"),oe=x("keys");De.exports=function(se){return oe[se]||(oe[se]=z(se))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/set-global"),oe="__core-js_shared__",se=x[oe]||z(oe,{});De.exports=se},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,De,xe){var x=y("../internals/is-pure"),z=y("../internals/shared-store");(De.exports=function(oe,se){return z[oe]||(z[oe]=se!==void 0?se:{})})("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,De,xe){var x=y("../internals/an-object"),z=y("../internals/a-constructor"),oe=y("../internals/well-known-symbol"),se=oe("species");De.exports=function(ee,fe){var E=x(ee).constructor,ie;return E===void 0||(ie=x(E)[se])==null?fe:z(ie)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-integer-or-infinity"),oe=y("../internals/to-string"),se=y("../internals/require-object-coercible"),ee=x("".charAt),fe=x("".charCodeAt),E=x("".slice),ie=function(re){return function(le,ce){var he=oe(se(le)),ge=z(ce),be=he.length,me,ve;return ge<0||ge>=be?re?"":void 0:(me=fe(he,ge),me<55296||me>56319||ge+1===be||(ve=fe(he,ge+1))<56320||ve>57343?re?ee(he,ge):me:re?E(he,ge,ge+2):(me-55296<<10)+(ve-56320)+65536)}};De.exports={codeAt:ie(!1),charAt:ie(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,De,xe){var x=y("../internals/function-name").PROPER,z=y("../internals/fails"),oe=y("../internals/whitespaces"),se="\u200B\x85\u180E";De.exports=function(ee){return z(function(){return!!oe[ee]()||se[ee]()!==se||x&&oe[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=y("../internals/require-object-coercible"),oe=y("../internals/to-string"),se=y("../internals/whitespaces"),ee=x("".replace),fe="["+se+"]",E=RegExp("^"+fe+fe+"*"),ie=RegExp(fe+fe+"*$"),re=function(le){return function(ce){var he=oe(z(ce));return le&1&&(he=ee(he,E,"")),le&2&&(he=ee(he,ie,"")),he}};De.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,De,xe){var x=y("../internals/function-call"),z=y("../internals/get-built-in"),oe=y("../internals/well-known-symbol"),se=y("../internals/redefine");De.exports=function(){var ee=z("Symbol"),fe=ee&&ee.prototype,E=fe&&fe.valueOf,ie=oe("toPrimitive");fe&&!fe[ie]&&se(fe,ie,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,De,xe){var x=y("../internals/global"),z=y("../internals/function-apply"),oe=y("../internals/function-bind-context"),se=y("../internals/is-callable"),ee=y("../internals/has-own-property"),fe=y("../internals/fails"),E=y("../internals/html"),ie=y("../internals/array-slice"),re=y("../internals/document-create-element"),le=y("../internals/validate-arguments-length"),ce=y("../internals/engine-is-ios"),he=y("../internals/engine-is-node"),ge=x.setImmediate,be=x.clearImmediate,me=x.process,ve=x.Dispatch,Ce=x.Function,Te=x.MessageChannel,Me=x.String,ke=0,de={},ye="onreadystatechange",Se,Oe,Ne,Ae;try{Se=x.location}catch(it){}var je=function(it){if(ee(de,it)){var Ie=de[it];delete de[it],Ie()}},Ze=function(it){return function(){je(it)}},ze=function(it){je(it.data)},Ve=function(it){x.postMessage(Me(it),Se.protocol+"//"+Se.host)};(!ge||!be)&&(ge=function(Ie){le(arguments.length,1);var We=se(Ie)?Ie:Ce(Ie),tt=ie(arguments,1);return de[++ke]=function(){z(We,void 0,tt)},Oe(ke),ke},be=function(Ie){delete de[Ie]},he?Oe=function(it){me.nextTick(Ze(it))}:ve&&ve.now?Oe=function(it){ve.now(Ze(it))}:Te&&!ce?(Ne=new Te,Ae=Ne.port2,Ne.port1.onmessage=ze,Oe=oe(Ae.postMessage,Ae)):x.addEventListener&&se(x.postMessage)&&!x.importScripts&&Se&&Se.protocol!=="file:"&&!fe(Ve)?(Oe=Ve,x.addEventListener("message",ze,!1)):ye in re("script")?Oe=function(it){E.appendChild(re("script"))[ye]=function(){E.removeChild(this),je(it)}}:Oe=function(it){setTimeout(Ze(it),0)}),De.exports={set:ge,clear:be}},{"../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,De,xe){var x=y("../internals/function-uncurry-this");De.exports=x(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,De,xe){var x=y("../internals/to-integer-or-infinity"),z=Math.max,oe=Math.min;De.exports=function(se,ee){var fe=x(se);return fe<0?z(fe+ee,0):oe(fe,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),oe=y("../internals/to-length"),se=x.RangeError;De.exports=function(ee){if(ee===void 0)return 0;var fe=z(ee),E=oe(fe);if(fe!==E)throw se("Wrong length or index");return E}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,De,xe){var x=y("../internals/indexed-object"),z=y("../internals/require-object-coercible");De.exports=function(oe){return x(z(oe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,De,xe){var x=Math.ceil,z=Math.floor;De.exports=function(oe){var se=+oe;return se!==se||se===0?0:(se>0?z:x)(se)}},{}],249:[function(y,De,xe){var x=y("../internals/to-integer-or-infinity"),z=Math.min;De.exports=function(oe){return oe>0?z(x(oe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/require-object-coercible"),oe=x.Object;De.exports=function(se){return oe(z(se))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/to-positive-integer"),oe=x.RangeError;De.exports=function(se,ee){var fe=z(se);if(fe%ee)throw oe("Wrong offset");return fe}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),oe=x.RangeError;De.exports=function(se){var ee=z(se);if(ee<0)throw oe("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/is-object"),se=y("../internals/is-symbol"),ee=y("../internals/get-method"),fe=y("../internals/ordinary-to-primitive"),E=y("../internals/well-known-symbol"),ie=x.TypeError,re=E("toPrimitive");De.exports=function(le,ce){if(!oe(le)||se(le))return le;var he=ee(le,re),ge;if(he){if(ce===void 0&&(ce="default"),ge=z(he,le,ce),!oe(ge)||se(ge))return ge;throw ie("Can't convert object to primitive value")}return ce===void 0&&(ce="number"),fe(le,ce)}},{"../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,De,xe){var x=y("../internals/to-primitive"),z=y("../internals/is-symbol");De.exports=function(oe){var se=x(oe,"string");return z(se)?se:se+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,De,xe){var x=y("../internals/well-known-symbol"),z=x("toStringTag"),oe={};oe[z]="z",De.exports=String(oe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/classof"),oe=x.String;De.exports=function(se){if(z(se)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oe(se)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,De,xe){var x=y("../internals/global"),z=x.String;De.exports=function(oe){try{return z(oe)}catch(se){return"Object"}}},{"../internals/global":163}],258:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/function-call"),se=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),fe=y("../internals/array-buffer-view-core"),E=y("../internals/array-buffer"),ie=y("../internals/an-instance"),re=y("../internals/create-property-descriptor"),le=y("../internals/create-non-enumerable-property"),ce=y("../internals/is-integral-number"),he=y("../internals/to-length"),ge=y("../internals/to-index"),be=y("../internals/to-offset"),me=y("../internals/to-property-key"),ve=y("../internals/has-own-property"),Ce=y("../internals/classof"),Te=y("../internals/is-object"),Me=y("../internals/is-symbol"),ke=y("../internals/object-create"),de=y("../internals/object-is-prototype-of"),ye=y("../internals/object-set-prototype-of"),Se=y("../internals/object-get-own-property-names").f,Oe=y("../internals/typed-array-from"),Ne=y("../internals/array-iteration").forEach,Ae=y("../internals/set-species"),je=y("../internals/object-define-property"),Ze=y("../internals/object-get-own-property-descriptor"),ze=y("../internals/internal-state"),Ve=y("../internals/inherit-if-required"),it=ze.get,Ie=ze.set,We=je.f,tt=Ze.f,rt=Math.round,et=z.RangeError,Ke=E.ArrayBuffer,$e=Ke.prototype,Ge=E.DataView,ot=fe.NATIVE_ARRAY_BUFFER_VIEWS,Je=fe.TYPED_ARRAY_CONSTRUCTOR,ct=fe.TYPED_ARRAY_TAG,st=fe.TypedArray,Ye=fe.TypedArrayPrototype,Le=fe.aTypedArrayConstructor,_e=fe.isTypedArray,te="BYTES_PER_ELEMENT",ue="Wrong length",Re=function(qe,nt){Le(qe);for(var dt=0,lt=nt.length,ht=new qe(lt);lt>dt;)ht[dt]=nt[dt++];return ht},Fe=function(qe,nt){We(qe,nt,{get:function(){return it(this)[nt]}})},we=function(qe){var nt;return de($e,qe)||(nt=Ce(qe))=="ArrayBuffer"||nt=="SharedArrayBuffer"},Ee=function(qe,nt){return _e(qe)&&!Me(nt)&&nt in qe&&ce(+nt)&&nt>=0},Pe=function(nt,dt){return dt=me(dt),Ee(nt,dt)?re(2,nt[dt]):tt(nt,dt)},Ue=function(nt,dt,lt){return dt=me(dt),Ee(nt,dt)&&Te(lt)&&ve(lt,"value")&&!ve(lt,"get")&&!ve(lt,"set")&&!lt.configurable&&(!ve(lt,"writable")||lt.writable)&&(!ve(lt,"enumerable")||lt.enumerable)?(nt[dt]=lt.value,nt):We(nt,dt,lt)};se?(ot||(Ze.f=Pe,je.f=Ue,Fe(Ye,"buffer"),Fe(Ye,"byteOffset"),Fe(Ye,"byteLength"),Fe(Ye,"length")),x({target:"Object",stat:!0,forced:!ot},{getOwnPropertyDescriptor:Pe,defineProperty:Ue}),De.exports=function(qe,nt,dt){var lt=qe.match(/\d+$/)[0]/8,ht=qe+(dt?"Clamped":"")+"Array",St="get"+qe,gt="set"+qe,yt=z[ht],mt=yt,Ct=mt&&mt.prototype,wt={},pt=function(Nt,Ht){var gr=it(Nt);return gr.view[St](Ht*lt+gr.byteOffset,!0)},Ot=function(Nt,Ht,gr){var $t=it(Nt);dt&&(gr=(gr=rt(gr))<0?0:gr>255?255:gr&255),$t.view[gt](Ht*lt+$t.byteOffset,gr,!0)},At=function(Nt,Ht){We(Nt,Ht,{get:function(){return pt(this,Ht)},set:function(gr){return Ot(this,Ht,gr)},enumerable:!0})};ot?ee&&(mt=nt(function(Nt,Ht,gr,$t){return ie(Nt,Ct),Ve(function(){return Te(Ht)?we(Ht)?$t!==void 0?new yt(Ht,be(gr,lt),$t):gr!==void 0?new yt(Ht,be(gr,lt)):new yt(Ht):_e(Ht)?Re(mt,Ht):oe(Oe,mt,Ht):new yt(ge(Ht))}(),Nt,mt)}),ye&&ye(mt,st),Ne(Se(yt),function(Nt){Nt in mt||le(mt,Nt,yt[Nt])}),mt.prototype=Ct):(mt=nt(function(Nt,Ht,gr,$t){ie(Nt,Ct);var Ar=0,er=0,Ir,$r,nn;if(!Te(Ht))nn=ge(Ht),$r=nn*lt,Ir=new Ke($r);else if(we(Ht)){Ir=Ht,er=be(gr,lt);var dn=Ht.byteLength;if($t===void 0){if(dn%lt||($r=dn-er,$r<0))throw et(ue)}else if($r=he($t)*lt,$r+er>dn)throw et(ue);nn=$r/lt}else return _e(Ht)?Re(mt,Ht):oe(Oe,mt,Ht);for(Ie(Nt,{buffer:Ir,byteOffset:er,byteLength:$r,length:nn,view:new Ge(Ir)});Ar<nn;)At(Nt,Ar++)}),ye&&ye(mt,st),Ct=mt.prototype=ke(Ye)),Ct.constructor!==mt&&le(Ct,"constructor",mt),le(Ct,Je,mt),ct&&le(Ct,ct,ht),wt[ht]=mt,x({global:!0,forced:mt!=yt,sham:!ot},wt),te in mt||le(mt,te,lt),te in Ct||le(Ct,te,lt),Ae(ht)}):De.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,De,xe){var x=y("../internals/global"),z=y("../internals/fails"),oe=y("../internals/check-correctness-of-iteration"),se=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=x.ArrayBuffer,fe=x.Int8Array;De.exports=!se||!z(function(){fe(1)})||!z(function(){new fe(-1)})||!oe(function(E){new fe,new fe(null),new fe(1.5),new fe(E)},!0)||z(function(){return new fe(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,De,xe){var x=y("../internals/array-from-constructor-and-list"),z=y("../internals/typed-array-species-constructor");De.exports=function(oe,se){return x(z(oe),se)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,De,xe){var x=y("../internals/function-bind-context"),z=y("../internals/function-call"),oe=y("../internals/a-constructor"),se=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),fe=y("../internals/get-iterator"),E=y("../internals/get-iterator-method"),ie=y("../internals/is-array-iterator-method"),re=y("../internals/array-buffer-view-core").aTypedArrayConstructor;De.exports=function(ce){var he=oe(this),ge=se(ce),be=arguments.length,me=be>1?arguments[1]:void 0,ve=me!==void 0,Ce=E(ge),Te,Me,ke,de,ye,Se;if(Ce&&!ie(Ce))for(ye=fe(ge,Ce),Se=ye.next,ge=[];!(de=z(Se,ye)).done;)ge.push(de.value);for(ve&&be>2&&(me=x(me,arguments[2])),Me=ee(ge),ke=new(re(he))(Me),Te=0;Me>Te;Te++)ke[Te]=ve?me(ge[Te],Te):ge[Te];return ke}},{"../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,De,xe){var x=y("../internals/array-buffer-view-core"),z=y("../internals/species-constructor"),oe=x.TYPED_ARRAY_CONSTRUCTOR,se=x.aTypedArrayConstructor;De.exports=function(ee){return se(z(ee,ee[oe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,De,xe){var x=y("../internals/function-uncurry-this"),z=0,oe=Math.random(),se=x(1 .toString);De.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+se(++z+oe,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,De,xe){var x=y("../internals/native-symbol");De.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,De,xe){var x=y("../internals/descriptors"),z=y("../internals/fails");De.exports=x&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,De,xe){var x=y("../internals/global"),z=x.TypeError;De.exports=function(oe,se){if(oe<se)throw z("Not enough arguments");return oe}},{"../internals/global":163}],267:[function(y,De,xe){var x=y("../internals/well-known-symbol");xe.f=x},{"../internals/well-known-symbol":268}],268:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/shared"),oe=y("../internals/has-own-property"),se=y("../internals/uid"),ee=y("../internals/native-symbol"),fe=y("../internals/use-symbol-as-uid"),E=z("wks"),ie=x.Symbol,re=ie&&ie.for,le=fe?ie:ie&&ie.withoutSetter||se;De.exports=function(ce){if(!oe(E,ce)||!(ee||typeof E[ce]=="string")){var he="Symbol."+ce;ee&&oe(ie,ce)?E[ce]=ie[ce]:fe&&re?E[ce]=re(he):E[ce]=le(he)}return E[ce]}},{"../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,De,xe){De.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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/array-buffer"),se=y("../internals/set-species"),ee="ArrayBuffer",fe=oe[ee],E=z[ee];x({global:!0,forced:E!==fe},{ArrayBuffer:fe}),se(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),se=y("../internals/array-buffer"),ee=y("../internals/an-object"),fe=y("../internals/to-absolute-index"),E=y("../internals/to-length"),ie=y("../internals/species-constructor"),re=se.ArrayBuffer,le=se.DataView,ce=le.prototype,he=z(re.prototype.slice),ge=z(ce.getUint8),be=z(ce.setUint8),me=oe(function(){return!new re(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:me},{slice:function(Ce,Te){if(he&&Te===void 0)return he(ee(this),Ce);for(var Me=ee(this).byteLength,ke=fe(Ce,Me),de=fe(Te===void 0?Me:Te,Me),ye=new(ie(this,re))(E(de-ke)),Se=new le(this),Oe=new le(ye),Ne=0;ke<de;)be(Oe,Ne++,ge(Se,ke++));return ye}})},{"../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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/fails"),se=y("../internals/is-array"),ee=y("../internals/is-object"),fe=y("../internals/to-object"),E=y("../internals/length-of-array-like"),ie=y("../internals/create-property"),re=y("../internals/array-species-create"),le=y("../internals/array-method-has-species-support"),ce=y("../internals/well-known-symbol"),he=y("../internals/engine-v8-version"),ge=ce("isConcatSpreadable"),be=9007199254740991,me="Maximum allowed index exceeded",ve=z.TypeError,Ce=he>=51||!oe(function(){var de=[];return de[ge]=!1,de.concat()[0]!==de}),Te=le("concat"),Me=function(de){if(!ee(de))return!1;var ye=de[ge];return ye!==void 0?!!ye:se(de)},ke=!Ce||!Te;x({target:"Array",proto:!0,forced:ke},{concat:function(ye){var Se=fe(this),Oe=re(Se,0),Ne=0,Ae,je,Ze,ze,Ve;for(Ae=-1,Ze=arguments.length;Ae<Ze;Ae++)if(Ve=Ae===-1?Se:arguments[Ae],Me(Ve)){if(ze=E(Ve),Ne+ze>be)throw ve(me);for(je=0;je<ze;je++,Ne++)je in Ve&&ie(Oe,Ne,Ve[je])}else{if(Ne>=be)throw ve(me);ie(Oe,Ne++,Ve)}return Oe.length=Ne,Oe}})},{"../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,De,xe){var x=y("../internals/export"),z=y("../internals/array-fill"),oe=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{fill:z}),oe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").filter,oe=y("../internals/array-method-has-species-support"),se=oe("filter");x({target:"Array",proto:!0,forced:!se},{filter:function(fe){return z(this,fe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").find,oe=y("../internals/add-to-unscopables"),se="find",ee=!0;se in[]&&Array(1)[se](function(){ee=!1}),x({target:"Array",proto:!0,forced:ee},{find:function(E){return z(this,E,arguments.length>1?arguments[1]:void 0)}}),oe(se)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,De,xe){var x=y("../internals/export"),z=y("../internals/array-from"),oe=y("../internals/check-correctness-of-iteration"),se=!oe(function(ee){Array.from(ee)});x({target:"Array",stat:!0,forced:se},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/array-includes").includes,oe=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),oe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,De,xe){"use strict";var x=y("../internals/to-indexed-object"),z=y("../internals/add-to-unscopables"),oe=y("../internals/iterators"),se=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,fe=y("../internals/define-iterator"),E=y("../internals/is-pure"),ie=y("../internals/descriptors"),re="Array Iterator",le=se.set,ce=se.getterFor(re);De.exports=fe(Array,"Array",function(ge,be){le(this,{type:re,target:x(ge),index:0,kind:be})},function(){var ge=ce(this),be=ge.target,me=ge.kind,ve=ge.index++;return!be||ve>=be.length?(ge.target=void 0,{value:void 0,done:!0}):me=="keys"?{value:ve,done:!1}:me=="values"?{value:be[ve],done:!1}:{value:[ve,be[ve]],done:!1}},"values");var he=oe.Arguments=oe.Array;if(z("keys"),z("values"),z("entries"),!E&&ie&&he.name!=="values")try{ee(he,"name",{value:"values"})}catch(ge){}},{"../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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/indexed-object"),se=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),fe=z([].join),E=oe!=Object,ie=ee("join",",");x({target:"Array",proto:!0,forced:E||!ie},{join:function(le){return fe(se(this),le===void 0?",":le)}})},{"../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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").map,oe=y("../internals/array-method-has-species-support"),se=oe("map");x({target:"Array",proto:!0,forced:!se},{map:function(fe){return z(this,fe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/is-array"),se=y("../internals/is-constructor"),ee=y("../internals/is-object"),fe=y("../internals/to-absolute-index"),E=y("../internals/length-of-array-like"),ie=y("../internals/to-indexed-object"),re=y("../internals/create-property"),le=y("../internals/well-known-symbol"),ce=y("../internals/array-method-has-species-support"),he=y("../internals/array-slice"),ge=ce("slice"),be=le("species"),me=z.Array,ve=Math.max;x({target:"Array",proto:!0,forced:!ge},{slice:function(Te,Me){var ke=ie(this),de=E(ke),ye=fe(Te,de),Se=fe(Me===void 0?de:Me,de),Oe,Ne,Ae;if(oe(ke)&&(Oe=ke.constructor,se(Oe)&&(Oe===me||oe(Oe.prototype))?Oe=void 0:ee(Oe)&&(Oe=Oe[be],Oe===null&&(Oe=void 0)),Oe===me||Oe===void 0))return he(ke,ye,Se);for(Ne=new(Oe===void 0?me:Oe)(ve(Se-ye,0)),Ae=0;ye<Se;ye++,Ae++)ye in ke&&re(Ne,Ae,ke[ye]);return Ne.length=Ae,Ne}})},{"../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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/a-callable"),se=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),fe=y("../internals/to-string"),E=y("../internals/fails"),ie=y("../internals/array-sort"),re=y("../internals/array-method-is-strict"),le=y("../internals/engine-ff-version"),ce=y("../internals/engine-is-ie-or-edge"),he=y("../internals/engine-v8-version"),ge=y("../internals/engine-webkit-version"),be=[],me=z(be.sort),ve=z(be.push),Ce=E(function(){be.sort(void 0)}),Te=E(function(){be.sort(null)}),Me=re("sort"),ke=!E(function(){if(he)return he<70;if(!(le&&le>3)){if(ce)return!0;if(ge)return ge<603;var Se="",Oe,Ne,Ae,je;for(Oe=65;Oe<76;Oe++){switch(Ne=String.fromCharCode(Oe),Oe){case 66:case 69:case 70:case 72:Ae=3;break;case 68:case 71:Ae=4;break;default:Ae=2}for(je=0;je<47;je++)be.push({k:Ne+je,v:Ae})}for(be.sort(function(Ze,ze){return ze.v-Ze.v}),je=0;je<be.length;je++)Ne=be[je].k.charAt(0),Se.charAt(Se.length-1)!==Ne&&(Se+=Ne);return Se!=="DGBEFHACIJK"}}),de=Ce||!Te||!Me||!ke,ye=function(Se){return function(Oe,Ne){return Ne===void 0?-1:Oe===void 0?1:Se!==void 0?+Se(Oe,Ne)||0:fe(Oe)>fe(Ne)?1:-1}};x({target:"Array",proto:!0,forced:de},{sort:function(Oe){Oe!==void 0&&oe(Oe);var Ne=se(this);if(ke)return Oe===void 0?me(Ne):me(Ne,Oe);var Ae=[],je=ee(Ne),Ze,ze;for(ze=0;ze<je;ze++)ze in Ne&&ve(Ae,Ne[ze]);for(ie(Ae,ye(Oe)),Ze=Ae.length,ze=0;ze<Ze;)Ne[ze]=Ae[ze++];for(;ze<je;)delete Ne[ze++];return Ne}})},{"../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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/to-absolute-index"),se=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),fe=y("../internals/to-object"),E=y("../internals/array-species-create"),ie=y("../internals/create-property"),re=y("../internals/array-method-has-species-support"),le=re("splice"),ce=z.TypeError,he=Math.max,ge=Math.min,be=9007199254740991,me="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!le},{splice:function(Ce,Te){var Me=fe(this),ke=ee(Me),de=oe(Ce,ke),ye=arguments.length,Se,Oe,Ne,Ae,je,Ze;if(ye===0?Se=Oe=0:ye===1?(Se=0,Oe=ke-de):(Se=ye-2,Oe=ge(he(se(Te),0),ke-de)),ke+Se-Oe>be)throw ce(me);for(Ne=E(Me,Oe),Ae=0;Ae<Oe;Ae++)je=de+Ae,je in Me&&ie(Ne,Ae,Me[je]);if(Ne.length=Oe,Se<Oe){for(Ae=de;Ae<ke-Oe;Ae++)je=Ae+Oe,Ze=Ae+Se,je in Me?Me[Ze]=Me[je]:delete Me[Ze];for(Ae=ke;Ae>ke-Oe+Se;Ae--)delete Me[Ae-1]}else if(Se>Oe)for(Ae=ke-Oe;Ae>de;Ae--)je=Ae+Oe-1,Ze=Ae+Se-1,je in Me?Me[Ze]=Me[je]:delete Me[Ze];for(Ae=0;Ae<Se;Ae++)Me[Ae+de]=arguments[Ae+2];return Me.length=ke-Oe+Se,Ne}})},{"../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,De,xe){var x=y("../internals/descriptors"),z=y("../internals/function-name").EXISTS,oe=y("../internals/function-uncurry-this"),se=y("../internals/object-define-property").f,ee=Function.prototype,fe=oe(ee.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ie=oe(E.exec),re="name";x&&!z&&se(ee,re,{configurable:!0,get:function(){try{return ie(E,fe(this))[1]}catch(le){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,De,xe){var x=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/function-apply"),se=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),fe=y("../internals/fails"),E=y("../internals/is-array"),ie=y("../internals/is-callable"),re=y("../internals/is-object"),le=y("../internals/is-symbol"),ce=y("../internals/array-slice"),he=y("../internals/native-symbol"),ge=z("JSON","stringify"),be=ee(/./.exec),me=ee("".charAt),ve=ee("".charCodeAt),Ce=ee("".replace),Te=ee(1 .toString),Me=/[\uD800-\uDFFF]/g,ke=/^[\uD800-\uDBFF]$/,de=/^[\uDC00-\uDFFF]$/,ye=!he||fe(function(){var Ae=z("Symbol")();return ge([Ae])!="[null]"||ge({a:Ae})!="{}"||ge(Object(Ae))!="{}"}),Se=fe(function(){return ge("\uDF06\uD834")!=='"\\udf06\\ud834"'||ge("\uDEAD")!=='"\\udead"'}),Oe=function(Ae,je){var Ze=ce(arguments),ze=je;if(!(!re(je)&&Ae===void 0||le(Ae)))return E(je)||(je=function(Ve,it){if(ie(ze)&&(it=se(ze,this,Ve,it)),!le(it))return it}),Ze[1]=je,oe(ge,null,Ze)},Ne=function(Ae,je,Ze){var ze=me(Ze,je-1),Ve=me(Ze,je+1);return be(ke,Ae)&&!be(de,Ve)||be(de,Ae)&&!be(ke,ze)?"\\u"+Te(ve(Ae,0),16):Ae};ge&&x({target:"JSON",stat:!0,forced:ye||Se},{stringify:function(je,Ze,ze){var Ve=ce(arguments),it=oe(ye?Oe:ge,null,Ve);return Se&&typeof it=="string"?Ce(it,Me,Ne):it}})},{"../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,De,xe){"use strict";var x=y("../internals/descriptors"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),se=y("../internals/is-forced"),ee=y("../internals/redefine"),fe=y("../internals/has-own-property"),E=y("../internals/inherit-if-required"),ie=y("../internals/object-is-prototype-of"),re=y("../internals/is-symbol"),le=y("../internals/to-primitive"),ce=y("../internals/fails"),he=y("../internals/object-get-own-property-names").f,ge=y("../internals/object-get-own-property-descriptor").f,be=y("../internals/object-define-property").f,me=y("../internals/this-number-value"),ve=y("../internals/string-trim").trim,Ce="Number",Te=z[Ce],Me=Te.prototype,ke=z.TypeError,de=oe("".slice),ye=oe("".charCodeAt),Se=function(ze){var Ve=le(ze,"number");return typeof Ve=="bigint"?Ve:Oe(Ve)},Oe=function(ze){var Ve=le(ze,"number"),it,Ie,We,tt,rt,et,Ke,$e;if(re(Ve))throw ke("Cannot convert a Symbol value to a number");if(typeof Ve=="string"&&Ve.length>2){if(Ve=ve(Ve),it=ye(Ve,0),it===43||it===45){if(Ie=ye(Ve,2),Ie===88||Ie===120)return NaN}else if(it===48){switch(ye(Ve,1)){case 66:case 98:We=2,tt=49;break;case 79:case 111:We=8,tt=55;break;default:return+Ve}for(rt=de(Ve,2),et=rt.length,Ke=0;Ke<et;Ke++)if($e=ye(rt,Ke),$e<48||$e>tt)return NaN;return parseInt(rt,We)}}return+Ve};if(se(Ce,!Te(" 0o1")||!Te("0b1")||Te("+0x1"))){for(var Ne=function(Ve){var it=arguments.length<1?0:Te(Se(Ve)),Ie=this;return ie(Me,Ie)&&ce(function(){me(Ie)})?E(Object(it),Ie,Ne):it},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(","),je=0,Ze;Ae.length>je;je++)fe(Te,Ze=Ae[je])&&!fe(Ne,Ze)&&be(Ne,Ze,ge(Te,Ze));Ne.prototype=Me,Me.constructor=Ne,ee(z,Ce,Ne)}},{"../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,De,xe){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,De,xe){var x=y("../internals/export"),z=y("../internals/object-to-array").entries;x({target:"Object",stat:!0},{entries:function(se){return z(se)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,De,xe){var x=y("../internals/export"),z=y("../internals/native-symbol"),oe=y("../internals/fails"),se=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),fe=!z||oe(function(){se.f(1)});x({target:"Object",stat:!0,forced:fe},{getOwnPropertySymbols:function(ie){var re=se.f;return re?re(ee(ie)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,De,xe){var x=y("../internals/export"),z=y("../internals/to-object"),oe=y("../internals/object-keys"),se=y("../internals/fails"),ee=se(function(){oe(1)});x({target:"Object",stat:!0,forced:ee},{keys:function(E){return oe(z(E))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,De,xe){var x=y("../internals/to-string-tag-support"),z=y("../internals/redefine"),oe=y("../internals/object-to-string");x||z(Object.prototype,"toString",oe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),se=y("../internals/new-promise-capability"),ee=y("../internals/perform"),fe=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{all:function(re){var le=this,ce=se.f(le),he=ce.resolve,ge=ce.reject,be=ee(function(){var me=oe(le.resolve),ve=[],Ce=0,Te=1;fe(re,function(Me){var ke=Ce++,de=!1;Te++,z(me,le,Me).then(function(ye){de||(de=!0,ve[ke]=ye,--Te||he(ve))},ge)}),--Te||he(ve)});return be.error&&ge(be.value),ce.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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR,se=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),fe=y("../internals/is-callable"),E=y("../internals/redefine"),ie=se&&se.prototype;if(x({target:"Promise",proto:!0,forced:oe,real:!0},{catch:function(le){return this.then(void 0,le)}}),!z&&fe(se)){var re=ee("Promise").prototype.catch;ie.catch!==re&&E(ie,"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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),oe=y("../internals/engine-is-node"),se=y("../internals/global"),ee=y("../internals/function-call"),fe=y("../internals/redefine"),E=y("../internals/redefine-all"),ie=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),le=y("../internals/set-species"),ce=y("../internals/a-callable"),he=y("../internals/is-callable"),ge=y("../internals/is-object"),be=y("../internals/an-instance"),me=y("../internals/species-constructor"),ve=y("../internals/task").set,Ce=y("../internals/microtask"),Te=y("../internals/host-report-errors"),Me=y("../internals/perform"),ke=y("../internals/queue"),de=y("../internals/internal-state"),ye=y("../internals/promise-native-constructor"),Se=y("../internals/promise-constructor-detection"),Oe=y("../internals/new-promise-capability"),Ne="Promise",Ae=Se.CONSTRUCTOR,je=Se.REJECTION_EVENT,Ze=Se.SUBCLASSING,ze=de.getterFor(Ne),Ve=de.set,it=ye&&ye.prototype,Ie=ye,We=it,tt=se.TypeError,rt=se.document,et=se.process,Ke=Oe.f,$e=Ke,Ge=!!(rt&&rt.createEvent&&se.dispatchEvent),ot="unhandledrejection",Je="rejectionhandled",ct=0,st=1,Ye=2,Le=1,_e=2,te,ue,Re,Fe,we=function(gt){var yt;return ge(gt)&&he(yt=gt.then)?yt:!1},Ee=function(gt,yt){var mt=yt.value,Ct=yt.state==st,wt=Ct?gt.ok:gt.fail,pt=gt.resolve,Ot=gt.reject,At=gt.domain,Nt,Ht,gr;try{wt?(Ct||(yt.rejection===_e&&dt(yt),yt.rejection=Le),wt===!0?Nt=mt:(At&&At.enter(),Nt=wt(mt),At&&(At.exit(),gr=!0)),Nt===gt.promise?Ot(tt("Promise-chain cycle")):(Ht=we(Nt))?ee(Ht,Nt,pt,Ot):pt(Nt)):Ot(mt)}catch($t){At&&!gr&&At.exit(),Ot($t)}},Pe=function(gt,yt){gt.notified||(gt.notified=!0,Ce(function(){for(var mt=gt.reactions,Ct;Ct=mt.get();)Ee(Ct,gt);gt.notified=!1,yt&&!gt.rejection&&qe(gt)}))},Ue=function(gt,yt,mt){var Ct,wt;Ge?(Ct=rt.createEvent("Event"),Ct.promise=yt,Ct.reason=mt,Ct.initEvent(gt,!1,!0),se.dispatchEvent(Ct)):Ct={promise:yt,reason:mt},!je&&(wt=se["on"+gt])?wt(Ct):gt===ot&&Te("Unhandled promise rejection",mt)},qe=function(gt){ee(ve,se,function(){var yt=gt.facade,mt=gt.value,Ct=nt(gt),wt;if(Ct&&(wt=Me(function(){oe?et.emit("unhandledRejection",mt,yt):Ue(ot,yt,mt)}),gt.rejection=oe||nt(gt)?_e:Le,wt.error))throw wt.value})},nt=function(gt){return gt.rejection!==Le&&!gt.parent},dt=function(gt){ee(ve,se,function(){var yt=gt.facade;oe?et.emit("rejectionHandled",yt):Ue(Je,yt,gt.value)})},lt=function(gt,yt,mt){return function(Ct){gt(yt,Ct,mt)}},ht=function(gt,yt,mt){gt.done||(gt.done=!0,mt&&(gt=mt),gt.value=yt,gt.state=Ye,Pe(gt,!0))},St=function(gt,yt,mt){if(!gt.done){gt.done=!0,mt&&(gt=mt);try{if(gt.facade===yt)throw tt("Promise can't be resolved itself");var Ct=we(yt);Ct?Ce(function(){var wt={done:!1};try{ee(Ct,yt,lt(St,wt,gt),lt(ht,wt,gt))}catch(pt){ht(wt,pt,gt)}}):(gt.value=yt,gt.state=st,Pe(gt,!1))}catch(wt){ht({done:!1},wt,gt)}}};if(Ae&&(Ie=function(yt){be(this,We),ce(yt),ee(te,this);var mt=ze(this);try{yt(lt(St,mt),lt(ht,mt))}catch(Ct){ht(mt,Ct)}},We=Ie.prototype,te=function(yt){Ve(this,{type:Ne,done:!1,notified:!1,parent:!1,reactions:new ke,rejection:!1,state:ct,value:void 0})},te.prototype=E(We,{then:function(yt,mt){var Ct=ze(this),wt=Ke(me(this,Ie));return Ct.parent=!0,wt.ok=he(yt)?yt:!0,wt.fail=he(mt)&&mt,wt.domain=oe?et.domain:void 0,Ct.state==ct?Ct.reactions.add(wt):Ce(function(){Ee(wt,Ct)}),wt.promise}}),ue=function(){var gt=new te,yt=ze(gt);this.promise=gt,this.resolve=lt(St,yt),this.reject=lt(ht,yt)},Oe.f=Ke=function(gt){return gt===Ie||gt===Re?new ue(gt):$e(gt)},!z&&he(ye)&&it!==Object.prototype)){Fe=it.then,Ze||fe(it,"then",function(yt,mt){var Ct=this;return new Ie(function(wt,pt){ee(Fe,Ct,wt,pt)}).then(yt,mt)},{unsafe:!0});try{delete it.constructor}catch(gt){}ie&&ie(it,We)}x({global:!0,wrap:!0,forced:Ae},{Promise:Ie}),re(Ie,Ne,!1,!0),le(Ne)},{"../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,De,xe){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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),se=y("../internals/new-promise-capability"),ee=y("../internals/perform"),fe=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{race:function(re){var le=this,ce=se.f(le),he=ce.reject,ge=ee(function(){var be=oe(le.resolve);fe(re,function(me){z(be,le,me).then(ce.resolve,he)})});return ge.error&&he(ge.value),ce.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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/new-promise-capability"),se=y("../internals/promise-constructor-detection").CONSTRUCTOR;x({target:"Promise",stat:!0,forced:se},{reject:function(fe){var E=oe.f(this);return z(E.reject,void 0,fe),E.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/is-pure"),se=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,fe=y("../internals/promise-resolve"),E=z("Promise"),ie=oe&&!ee;x({target:"Promise",stat:!0,forced:oe||ee},{resolve:function(le){return fe(ie&&this===E?se:this,le)}})},{"../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,De,xe){var x=y("../internals/descriptors"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),se=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),fe=y("../internals/create-non-enumerable-property"),E=y("../internals/object-get-own-property-names").f,ie=y("../internals/object-is-prototype-of"),re=y("../internals/is-regexp"),le=y("../internals/to-string"),ce=y("../internals/regexp-get-flags"),he=y("../internals/regexp-sticky-helpers"),ge=y("../internals/proxy-accessor"),be=y("../internals/redefine"),me=y("../internals/fails"),ve=y("../internals/has-own-property"),Ce=y("../internals/internal-state").enforce,Te=y("../internals/set-species"),Me=y("../internals/well-known-symbol"),ke=y("../internals/regexp-unsupported-dot-all"),de=y("../internals/regexp-unsupported-ncg"),ye=Me("match"),Se=z.RegExp,Oe=Se.prototype,Ne=z.SyntaxError,Ae=oe(Oe.exec),je=oe("".charAt),Ze=oe("".replace),ze=oe("".indexOf),Ve=oe("".slice),it=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ie=/a/g,We=/a/g,tt=new Se(Ie)!==Ie,rt=he.MISSED_STICKY,et=he.UNSUPPORTED_Y,Ke=x&&(!tt||rt||ke||de||me(function(){return We[ye]=!1,Se(Ie)!=Ie||Se(We)==We||Se(Ie,"i")!="/a/i"})),$e=function(st){for(var Ye=st.length,Le=0,_e="",te=!1,ue;Le<=Ye;Le++){if(ue=je(st,Le),ue==="\\"){_e+=ue+je(st,++Le);continue}!te&&ue==="."?_e+="[\\s\\S]":(ue==="["?te=!0:ue==="]"&&(te=!1),_e+=ue)}return _e},Ge=function(st){for(var Ye=st.length,Le=0,_e="",te=[],ue={},Re=!1,Fe=!1,we=0,Ee="",Pe;Le<=Ye;Le++){if(Pe=je(st,Le),Pe==="\\")Pe=Pe+je(st,++Le);else if(Pe==="]")Re=!1;else if(!Re)switch(!0){case Pe==="[":Re=!0;break;case Pe==="(":Ae(it,Ve(st,Le+1))&&(Le+=2,Fe=!0),_e+=Pe,we++;continue;case(Pe===">"&&Fe):if(Ee===""||ve(ue,Ee))throw new Ne("Invalid capture group name");ue[Ee]=!0,te[te.length]=[Ee,we],Fe=!1,Ee="";continue}Fe?Ee+=Pe:_e+=Pe}return[_e,te]};if(se("RegExp",Ke)){for(var ot=function(Ye,Le){var _e=ie(Oe,this),te=re(Ye),ue=Le===void 0,Re=[],Fe=Ye,we,Ee,Pe,Ue,qe,nt;if(!_e&&te&&ue&&Ye.constructor===ot)return Ye;if((te||ie(Oe,Ye))&&(Ye=Ye.source,ue&&(Le=ce(Fe))),Ye=Ye===void 0?"":le(Ye),Le=Le===void 0?"":le(Le),Fe=Ye,ke&&"dotAll"in Ie&&(Ee=!!Le&&ze(Le,"s")>-1,Ee&&(Le=Ze(Le,/s/g,""))),we=Le,rt&&"sticky"in Ie&&(Pe=!!Le&&ze(Le,"y")>-1,Pe&&et&&(Le=Ze(Le,/y/g,""))),de&&(Ue=Ge(Ye),Ye=Ue[0],Re=Ue[1]),qe=ee(Se(Ye,Le),_e?this:Oe,ot),(Ee||Pe||Re.length)&&(nt=Ce(qe),Ee&&(nt.dotAll=!0,nt.raw=ot($e(Ye),we)),Pe&&(nt.sticky=!0),Re.length&&(nt.groups=Re)),Ye!==Fe)try{fe(qe,"source",Fe===""?"(?:)":Fe)}catch(dt){}return qe},Je=E(Se),ct=0;Je.length>ct;)ge(ot,Se,Je[ct++]);Oe.constructor=ot,ot.prototype=Oe,be(z,"RegExp",ot)}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,De,xe){"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,De,xe){"use strict";var x=y("../internals/function-name").PROPER,z=y("../internals/redefine"),oe=y("../internals/an-object"),se=y("../internals/to-string"),ee=y("../internals/fails"),fe=y("../internals/regexp-get-flags"),E="toString",ie=RegExp.prototype,re=ie[E],le=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),ce=x&&re.name!=E;(le||ce)&&z(RegExp.prototype,E,function(){var ge=oe(this),be=se(ge.source),me=se(fe(ge));return"/"+be+"/"+me},{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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/not-a-regexp"),se=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),fe=y("../internals/correct-is-regexp-logic"),E=z("".indexOf);x({target:"String",proto:!0,forced:!fe("includes")},{includes:function(re){return!!~E(ee(se(this)),ee(oe(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,De,xe){"use strict";var x=y("../internals/string-multibyte").charAt,z=y("../internals/to-string"),oe=y("../internals/internal-state"),se=y("../internals/define-iterator"),ee="String Iterator",fe=oe.set,E=oe.getterFor(ee);se(String,"String",function(ie){fe(this,{type:ee,string:z(ie),index:0})},function(){var re=E(this),le=re.string,ce=re.index,he;return ce>=le.length?{value:void 0,done:!0}:(he=x(le,ce),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,De,xe){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),oe=y("../internals/an-object"),se=y("../internals/to-length"),ee=y("../internals/to-string"),fe=y("../internals/require-object-coercible"),E=y("../internals/get-method"),ie=y("../internals/advance-string-index"),re=y("../internals/regexp-exec-abstract");z("match",function(le,ce,he){return[function(be){var me=fe(this),ve=be==null?void 0:E(be,le);return ve?x(ve,be,me):new RegExp(be)[le](ee(me))},function(ge){var be=oe(this),me=ee(ge),ve=he(ce,be,me);if(ve.done)return ve.value;if(!be.global)return re(be,me);var Ce=be.unicode;be.lastIndex=0;for(var Te=[],Me=0,ke;(ke=re(be,me))!==null;){var de=ee(ke[0]);Te[Me]=de,de===""&&(be.lastIndex=ie(me,se(be.lastIndex),Ce)),Me++}return Me===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,De,xe){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),se=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),fe=y("../internals/an-object"),E=y("../internals/is-callable"),ie=y("../internals/to-integer-or-infinity"),re=y("../internals/to-length"),le=y("../internals/to-string"),ce=y("../internals/require-object-coercible"),he=y("../internals/advance-string-index"),ge=y("../internals/get-method"),be=y("../internals/get-substitution"),me=y("../internals/regexp-exec-abstract"),ve=y("../internals/well-known-symbol"),Ce=ve("replace"),Te=Math.max,Me=Math.min,ke=oe([].concat),de=oe([].push),ye=oe("".indexOf),Se=oe("".slice),Oe=function(Ze){return Ze===void 0?Ze:String(Ze)},Ne=function(){return"a".replace(/./,"$0")==="$0"}(),Ae=function(){return/./[Ce]?/./[Ce]("a","$0")==="":!1}(),je=!ee(function(){var Ze=/./;return Ze.exec=function(){var ze=[];return ze.groups={a:"7"},ze},"".replace(Ze,"$<a>")!=="7"});se("replace",function(Ze,ze,Ve){var it=Ae?"$":"$0";return[function(We,tt){var rt=ce(this),et=We==null?void 0:ge(We,Ce);return et?z(et,We,rt,tt):z(ze,le(rt),We,tt)},function(Ie,We){var tt=fe(this),rt=le(Ie);if(typeof We=="string"&&ye(We,it)===-1&&ye(We,"$<")===-1){var et=Ve(ze,tt,rt,We);if(et.done)return et.value}var Ke=E(We);Ke||(We=le(We));var $e=tt.global;if($e){var Ge=tt.unicode;tt.lastIndex=0}for(var ot=[];;){var Je=me(tt,rt);if(Je===null||(de(ot,Je),!$e))break;var ct=le(Je[0]);ct===""&&(tt.lastIndex=he(rt,re(tt.lastIndex),Ge))}for(var st="",Ye=0,Le=0;Le<ot.length;Le++){Je=ot[Le];for(var _e=le(Je[0]),te=Te(Me(ie(Je.index),rt.length),0),ue=[],Re=1;Re<Je.length;Re++)de(ue,Oe(Je[Re]));var Fe=Je.groups;if(Ke){var we=ke([_e],ue,te,rt);Fe!==void 0&&de(we,Fe);var Ee=le(x(We,void 0,we))}else Ee=be(_e,rt,te,ue,Fe,We);te>=Ye&&(st+=Se(rt,Ye,te)+Ee,Ye=te+_e.length)}return st+Se(rt,Ye)}]},!je||!Ne||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,De,xe){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),oe=y("../internals/an-object"),se=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),fe=y("../internals/to-string"),E=y("../internals/get-method"),ie=y("../internals/regexp-exec-abstract");z("search",function(re,le,ce){return[function(ge){var be=se(this),me=ge==null?void 0:E(ge,re);return me?x(me,ge,be):new RegExp(ge)[re](fe(be))},function(he){var ge=oe(this),be=fe(he),me=ce(le,ge,be);if(me.done)return me.value;var ve=ge.lastIndex;ee(ve,0)||(ge.lastIndex=0);var Ce=ie(ge,be);return ee(ge.lastIndex,ve)||(ge.lastIndex=ve),Ce===null?-1:Ce.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,De,xe){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),se=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),fe=y("../internals/an-object"),E=y("../internals/require-object-coercible"),ie=y("../internals/species-constructor"),re=y("../internals/advance-string-index"),le=y("../internals/to-length"),ce=y("../internals/to-string"),he=y("../internals/get-method"),ge=y("../internals/array-slice-simple"),be=y("../internals/regexp-exec-abstract"),me=y("../internals/regexp-exec"),ve=y("../internals/regexp-sticky-helpers"),Ce=y("../internals/fails"),Te=ve.UNSUPPORTED_Y,Me=4294967295,ke=Math.min,de=[].push,ye=oe(/./.exec),Se=oe(de),Oe=oe("".slice),Ne=!Ce(function(){var Ae=/(?:)/,je=Ae.exec;Ae.exec=function(){return je.apply(this,arguments)};var Ze="ab".split(Ae);return Ze.length!==2||Ze[0]!=="a"||Ze[1]!=="b"});se("split",function(Ae,je,Ze){var ze;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?ze=function(Ve,it){var Ie=ce(E(this)),We=it===void 0?Me:it>>>0;if(We===0)return[];if(Ve===void 0)return[Ie];if(!ee(Ve))return z(je,Ie,Ve,We);for(var tt=[],rt=(Ve.ignoreCase?"i":"")+(Ve.multiline?"m":"")+(Ve.unicode?"u":"")+(Ve.sticky?"y":""),et=0,Ke=new RegExp(Ve.source,rt+"g"),$e,Ge,ot;($e=z(me,Ke,Ie))&&(Ge=Ke.lastIndex,!(Ge>et&&(Se(tt,Oe(Ie,et,$e.index)),$e.length>1&&$e.index<Ie.length&&x(de,tt,ge($e,1)),ot=$e[0].length,et=Ge,tt.length>=We)));)Ke.lastIndex===$e.index&&Ke.lastIndex++;return et===Ie.length?(ot||!ye(Ke,""))&&Se(tt,""):Se(tt,Oe(Ie,et)),tt.length>We?ge(tt,0,We):tt}:"0".split(void 0,0).length?ze=function(Ve,it){return Ve===void 0&&it===0?[]:z(je,this,Ve,it)}:ze=je,[function(it,Ie){var We=E(this),tt=it==null?void 0:he(it,Ae);return tt?z(tt,it,We,Ie):z(ze,ce(We),it,Ie)},function(Ve,it){var Ie=fe(this),We=ce(Ve),tt=Ze(ze,Ie,We,it,ze!==je);if(tt.done)return tt.value;var rt=ie(Ie,RegExp),et=Ie.unicode,Ke=(Ie.ignoreCase?"i":"")+(Ie.multiline?"m":"")+(Ie.unicode?"u":"")+(Te?"g":"y"),$e=new rt(Te?"^(?:"+Ie.source+")":Ie,Ke),Ge=it===void 0?Me:it>>>0;if(Ge===0)return[];if(We.length===0)return be($e,We)===null?[We]:[];for(var ot=0,Je=0,ct=[];Je<We.length;){$e.lastIndex=Te?0:Je;var st=be($e,Te?Oe(We,Je):We),Ye;if(st===null||(Ye=ke(le($e.lastIndex+(Te?Je:0)),We.length))===ot)Je=re(We,Je,et);else{if(Se(ct,Oe(We,ot,Je)),ct.length===Ge)return ct;for(var Le=1;Le<=st.length-1;Le++)if(Se(ct,st[Le]),ct.length===Ge)return ct;Je=ot=Ye}}return Se(ct,Oe(We,ot)),ct}]},!Ne,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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/string-trim").trim,oe=y("../internals/string-trim-forced");x({target:"String",proto:!0,forced:oe("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/function-call"),se=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),fe=y("../internals/descriptors"),E=y("../internals/native-symbol"),ie=y("../internals/fails"),re=y("../internals/has-own-property"),le=y("../internals/object-is-prototype-of"),ce=y("../internals/an-object"),he=y("../internals/to-indexed-object"),ge=y("../internals/to-property-key"),be=y("../internals/to-string"),me=y("../internals/create-property-descriptor"),ve=y("../internals/object-create"),Ce=y("../internals/object-keys"),Te=y("../internals/object-get-own-property-names"),Me=y("../internals/object-get-own-property-names-external"),ke=y("../internals/object-get-own-property-symbols"),de=y("../internals/object-get-own-property-descriptor"),ye=y("../internals/object-define-property"),Se=y("../internals/object-define-properties"),Oe=y("../internals/object-property-is-enumerable"),Ne=y("../internals/redefine"),Ae=y("../internals/shared"),je=y("../internals/shared-key"),Ze=y("../internals/hidden-keys"),ze=y("../internals/uid"),Ve=y("../internals/well-known-symbol"),it=y("../internals/well-known-symbol-wrapped"),Ie=y("../internals/define-well-known-symbol"),We=y("../internals/symbol-define-to-primitive"),tt=y("../internals/set-to-string-tag"),rt=y("../internals/internal-state"),et=y("../internals/array-iteration").forEach,Ke=je("hidden"),$e="Symbol",Ge="prototype",ot=rt.set,Je=rt.getterFor($e),ct=Object[Ge],st=z.Symbol,Ye=st&&st[Ge],Le=z.TypeError,_e=z.QObject,te=de.f,ue=ye.f,Re=Me.f,Fe=Oe.f,we=se([].push),Ee=Ae("symbols"),Pe=Ae("op-symbols"),Ue=Ae("wks"),qe=!_e||!_e[Ge]||!_e[Ge].findChild,nt=fe&&ie(function(){return ve(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(wt,pt,Ot){var At=te(ct,pt);At&&delete ct[pt],ue(wt,pt,Ot),At&&wt!==ct&&ue(ct,pt,At)}:ue,dt=function(wt,pt){var Ot=Ee[wt]=ve(Ye);return ot(Ot,{type:$e,tag:wt,description:pt}),fe||(Ot.description=pt),Ot},lt=function(pt,Ot,At){pt===ct&&lt(Pe,Ot,At),ce(pt);var Nt=ge(Ot);return ce(At),re(Ee,Nt)?(At.enumerable?(re(pt,Ke)&&pt[Ke][Nt]&&(pt[Ke][Nt]=!1),At=ve(At,{enumerable:me(0,!1)})):(re(pt,Ke)||ue(pt,Ke,me(1,{})),pt[Ke][Nt]=!0),nt(pt,Nt,At)):ue(pt,Nt,At)},ht=function(pt,Ot){ce(pt);var At=he(Ot),Nt=Ce(At).concat(Ct(At));return et(Nt,function(Ht){(!fe||oe(gt,At,Ht))&&lt(pt,Ht,At[Ht])}),pt},St=function(pt,Ot){return Ot===void 0?ve(pt):ht(ve(pt),Ot)},gt=function(pt){var Ot=ge(pt),At=oe(Fe,this,Ot);return this===ct&&re(Ee,Ot)&&!re(Pe,Ot)?!1:At||!re(this,Ot)||!re(Ee,Ot)||re(this,Ke)&&this[Ke][Ot]?At:!0},yt=function(pt,Ot){var At=he(pt),Nt=ge(Ot);if(!(At===ct&&re(Ee,Nt)&&!re(Pe,Nt))){var Ht=te(At,Nt);return Ht&&re(Ee,Nt)&&!(re(At,Ke)&&At[Ke][Nt])&&(Ht.enumerable=!0),Ht}},mt=function(pt){var Ot=Re(he(pt)),At=[];return et(Ot,function(Nt){!re(Ee,Nt)&&!re(Ze,Nt)&&we(At,Nt)}),At},Ct=function(wt){var pt=wt===ct,Ot=Re(pt?Pe:he(wt)),At=[];return et(Ot,function(Nt){re(Ee,Nt)&&(!pt||re(ct,Nt))&&we(At,Ee[Nt])}),At};E||(st=function(){if(le(Ye,this))throw Le("Symbol is not a constructor");var pt=!arguments.length||arguments[0]===void 0?void 0:be(arguments[0]),Ot=ze(pt),At=function(Nt){this===ct&&oe(At,Pe,Nt),re(this,Ke)&&re(this[Ke],Ot)&&(this[Ke][Ot]=!1),nt(this,Ot,me(1,Nt))};return fe&&qe&&nt(ct,Ot,{configurable:!0,set:At}),dt(Ot,pt)},Ye=st[Ge],Ne(Ye,"toString",function(){return Je(this).tag}),Ne(st,"withoutSetter",function(wt){return dt(ze(wt),wt)}),Oe.f=gt,ye.f=lt,Se.f=ht,de.f=yt,Te.f=Me.f=mt,ke.f=Ct,it.f=function(wt){return dt(Ve(wt),wt)},fe&&(ue(Ye,"description",{configurable:!0,get:function(){return Je(this).description}}),ee||Ne(ct,"propertyIsEnumerable",gt,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:st}),et(Ce(Ue),function(wt){Ie(wt)}),x({target:$e,stat:!0,forced:!E},{useSetter:function(){qe=!0},useSimple:function(){qe=!1}}),x({target:"Object",stat:!0,forced:!E,sham:!fe},{create:St,defineProperty:lt,defineProperties:ht,getOwnPropertyDescriptor:yt}),x({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:mt}),We(),tt(st,$e),Ze[Ke]=!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,De,xe){"use strict";var x=y("../internals/export"),z=y("../internals/descriptors"),oe=y("../internals/global"),se=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),fe=y("../internals/is-callable"),E=y("../internals/object-is-prototype-of"),ie=y("../internals/to-string"),re=y("../internals/object-define-property").f,le=y("../internals/copy-constructor-properties"),ce=oe.Symbol,he=ce&&ce.prototype;if(z&&fe(ce)&&(!("description"in he)||ce().description!==void 0)){var ge={},be=function(){var ye=arguments.length<1||arguments[0]===void 0?void 0:ie(arguments[0]),Se=E(he,this)?new ce(ye):ye===void 0?ce():ce(ye);return ye===""&&(ge[Se]=!0),Se};le(be,ce),be.prototype=he,he.constructor=be;var me=String(ce("test"))=="Symbol(test)",ve=se(he.toString),Ce=se(he.valueOf),Te=/^Symbol\((.*)\)[^)]+$/,Me=se("".replace),ke=se("".slice);re(he,"description",{configurable:!0,get:function(){var ye=Ce(this),Se=ve(ye);if(ee(ge,ye))return"";var Oe=me?ke(Se,7,-1):Me(Se,Te,"$1");return Oe===""?void 0:Oe}}),x({global:!0,forced:!0},{Symbol:be})}},{"../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,De,xe){var x=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/has-own-property"),se=y("../internals/to-string"),ee=y("../internals/shared"),fe=y("../internals/native-symbol-registry"),E=ee("string-to-symbol-registry"),ie=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!fe},{for:function(re){var le=se(re);if(oe(E,le))return E[le];var ce=z("Symbol")(le);return E[le]=ce,ie[ce]=le,ce}})},{"../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,De,xe){var x=y("../internals/define-well-known-symbol");x("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,De,xe){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,De,xe){var x=y("../internals/export"),z=y("../internals/has-own-property"),oe=y("../internals/is-symbol"),se=y("../internals/try-to-string"),ee=y("../internals/shared"),fe=y("../internals/native-symbol-registry"),E=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!fe},{keyFor:function(re){if(!oe(re))throw TypeError(se(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,De,xe){"use strict";var x=y("../internals/function-uncurry-this"),z=y("../internals/array-buffer-view-core"),oe=y("../internals/array-copy-within"),se=x(oe),ee=z.aTypedArray,fe=z.exportTypedArrayMethod;fe("copyWithin",function(ie,re){return se(ee(this),ie,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,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").every,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("every",function(fe){return z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-call"),oe=y("../internals/array-fill"),se=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("fill",function(E){var ie=arguments.length;return z(oe,se(this),E,ie>1?arguments[1]:void 0,ie>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").filter,oe=y("../internals/typed-array-from-species-and-list"),se=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("filter",function(E){var ie=z(se(this),E,arguments.length>1?arguments[1]:void 0);return oe(this,ie)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").findIndex,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("findIndex",function(fe){return z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").find,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("find",function(fe){return z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").forEach,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("forEach",function(fe){z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").includes,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("includes",function(fe){return z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").indexOf,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("indexOf",function(fe){return z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,De,xe){"use strict";var x=y("../internals/global"),z=y("../internals/fails"),oe=y("../internals/function-uncurry-this"),se=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),fe=y("../internals/well-known-symbol"),E=fe("iterator"),ie=x.Uint8Array,re=oe(ee.values),le=oe(ee.keys),ce=oe(ee.entries),he=se.aTypedArray,ge=se.exportTypedArrayMethod,be=ie&&ie.prototype,me=!z(function(){be[E].call([1])}),ve=!!be&&be.values&&be[E]===be.values&&be.values.name==="values",Ce=function(){return re(he(this))};ge("entries",function(){return ce(he(this))},me),ge("keys",function(){return le(he(this))},me),ge("values",Ce,me||!ve,{name:"values"}),ge(E,Ce,me||!ve,{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,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-uncurry-this"),oe=x.aTypedArray,se=x.exportTypedArrayMethod,ee=z([].join);se("join",function(E){return ee(oe(this),E)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-apply"),oe=y("../internals/array-last-index-of"),se=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("lastIndexOf",function(E){var ie=arguments.length;return z(oe,se(this),ie>1?[E,arguments[1]]:[E])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").map,oe=y("../internals/typed-array-species-constructor"),se=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("map",function(E){return z(se(this),E,arguments.length>1?arguments[1]:void 0,function(ie,re){return new(oe(ie))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").right,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("reduceRight",function(fe){var E=arguments.length;return z(oe(this),fe,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").left,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("reduce",function(fe){var E=arguments.length;return z(oe(this),fe,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=x.aTypedArray,oe=x.exportTypedArrayMethod,se=Math.floor;oe("reverse",function(){for(var fe=this,E=z(fe).length,ie=se(E/2),re=0,le;re<ie;)le=fe[re],fe[re++]=fe[--E],fe[E]=le;return fe})},{"../internals/array-buffer-view-core":103}],331:[function(y,De,xe){"use strict";var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/array-buffer-view-core"),se=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),fe=y("../internals/to-object"),E=y("../internals/fails"),ie=x.RangeError,re=x.Int8Array,le=re&&re.prototype,ce=le&&le.set,he=oe.aTypedArray,ge=oe.exportTypedArrayMethod,be=!E(function(){var ve=new Uint8ClampedArray(2);return z(ce,ve,{length:1,0:3},1),ve[1]!==3}),me=be&&oe.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var ve=new re(2);return ve.set(1),ve.set("2",1),ve[0]!==0||ve[1]!==2});ge("set",function(Ce){he(this);var Te=ee(arguments.length>1?arguments[1]:void 0,1),Me=fe(Ce);if(be)return z(ce,this,Me,Te);var ke=this.length,de=se(Me),ye=0;if(de+Te>ke)throw ie("Wrong length");for(;ye<de;)this[Te+ye]=Me[ye++]},!be||me)},{"../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,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/typed-array-species-constructor"),oe=y("../internals/fails"),se=y("../internals/array-slice"),ee=x.aTypedArray,fe=x.exportTypedArrayMethod,E=oe(function(){new Int8Array(1).slice()});fe("slice",function(re,le){for(var ce=se(ee(this),re,le),he=z(this),ge=0,be=ce.length,me=new he(be);be>ge;)me[ge]=ce[ge++];return me},E)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").some,oe=x.aTypedArray,se=x.exportTypedArrayMethod;se("some",function(fe){return z(oe(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,De,xe){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),se=y("../internals/a-callable"),ee=y("../internals/array-sort"),fe=y("../internals/array-buffer-view-core"),E=y("../internals/engine-ff-version"),ie=y("../internals/engine-is-ie-or-edge"),re=y("../internals/engine-v8-version"),le=y("../internals/engine-webkit-version"),ce=fe.aTypedArray,he=fe.exportTypedArrayMethod,ge=x.Uint16Array,be=ge&&z(ge.prototype.sort),me=!!be&&!(oe(function(){be(new ge(2),null)})&&oe(function(){be(new ge(2),{})})),ve=!!be&&!oe(function(){if(re)return re<74;if(E)return E<67;if(ie)return!0;if(le)return le<602;var Te=new ge(516),Me=Array(516),ke,de;for(ke=0;ke<516;ke++)de=ke%4,Te[ke]=515-ke,Me[ke]=ke-2*de+3;for(be(Te,function(ye,Se){return(ye/4|0)-(Se/4|0)}),ke=0;ke<516;ke++)if(Te[ke]!==Me[ke])return!0}),Ce=function(Te){return function(Me,ke){return Te!==void 0?+Te(Me,ke)||0:ke!==ke?-1:Me!==Me?1:Me===0&&ke===0?1/Me>0&&1/ke<0?1:-1:Me>ke}};he("sort",function(Me){return Me!==void 0&&se(Me),ve?be(this,Me):ee(ce(this),Ce(Me))},!ve||me)},{"../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,De,xe){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/to-length"),oe=y("../internals/to-absolute-index"),se=y("../internals/typed-array-species-constructor"),ee=x.aTypedArray,fe=x.exportTypedArrayMethod;fe("subarray",function(ie,re){var le=ee(this),ce=le.length,he=oe(ie,ce),ge=se(le);return new ge(le.buffer,le.byteOffset+he*le.BYTES_PER_ELEMENT,z((re===void 0?ce:oe(re,ce))-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,De,xe){"use strict";var x=y("../internals/global"),z=y("../internals/function-apply"),oe=y("../internals/array-buffer-view-core"),se=y("../internals/fails"),ee=y("../internals/array-slice"),fe=x.Int8Array,E=oe.aTypedArray,ie=oe.exportTypedArrayMethod,re=[].toLocaleString,le=!!fe&&se(function(){re.call(new fe(1))}),ce=se(function(){return[1,2].toLocaleString()!=new fe([1,2]).toLocaleString()})||!se(function(){fe.prototype.toLocaleString.call([1,2])});ie("toLocaleString",function(){return z(re,le?ee(E(this)):E(this),ee(arguments))},ce)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(y,De,xe){"use strict";var x=y("../internals/array-buffer-view-core").exportTypedArrayMethod,z=y("../internals/fails"),oe=y("../internals/global"),se=y("../internals/function-uncurry-this"),ee=oe.Uint8Array,fe=ee&&ee.prototype||{},E=[].toString,ie=se([].join);z(function(){E.call({})})&&(E=function(){return ie(this)});var re=fe.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,De,xe){var x=y("../internals/typed-array-constructor");x("Uint8",function(z){return function(se,ee,fe){return z(this,se,ee,fe)}})},{"../internals/typed-array-constructor":258}],339:[function(y,De,xe){var x=y("../internals/global"),z=y("../internals/dom-iterables"),oe=y("../internals/dom-token-list-prototype"),se=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),fe=function(ie){if(ie&&ie.forEach!==se)try{ee(ie,"forEach",se)}catch(re){ie.forEach=se}};for(var E in z)z[E]&&fe(x[E]&&x[E].prototype);fe(oe)},{"../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,De,xe){var x=y("../internals/global"),z=y("../internals/dom-iterables"),oe=y("../internals/dom-token-list-prototype"),se=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),fe=y("../internals/well-known-symbol"),E=fe("iterator"),ie=fe("toStringTag"),re=se.values,le=function(he,ge){if(he){if(he[E]!==re)try{ee(he,E,re)}catch(me){he[E]=re}if(he[ie]||ee(he,ie,ge),z[ge]){for(var be in se)if(he[be]!==se[be])try{ee(he,be,se[be])}catch(me){he[be]=se[be]}}}};for(var ce in z)le(x[ce]&&x[ce].prototype,ce);le(oe,"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,De,xe){function x(ve){return Array.isArray?Array.isArray(ve):me(ve)==="[object Array]"}xe.isArray=x;function z(ve){return typeof ve=="boolean"}xe.isBoolean=z;function oe(ve){return ve===null}xe.isNull=oe;function se(ve){return ve==null}xe.isNullOrUndefined=se;function ee(ve){return typeof ve=="number"}xe.isNumber=ee;function fe(ve){return typeof ve=="string"}xe.isString=fe;function E(ve){return typeof ve=="symbol"}xe.isSymbol=E;function ie(ve){return ve===void 0}xe.isUndefined=ie;function re(ve){return me(ve)==="[object RegExp]"}xe.isRegExp=re;function le(ve){return typeof ve=="object"&&ve!==null}xe.isObject=le;function ce(ve){return me(ve)==="[object Date]"}xe.isDate=ce;function he(ve){return me(ve)==="[object Error]"||ve instanceof Error}xe.isError=he;function ge(ve){return typeof ve=="function"}xe.isFunction=ge;function be(ve){return ve===null||typeof ve=="boolean"||typeof ve=="number"||typeof ve=="string"||typeof ve=="symbol"||typeof ve=="undefined"}xe.isPrimitive=be,xe.isBuffer=y("buffer").Buffer.isBuffer;function me(ve){return Object.prototype.toString.call(ve)}},{buffer:90}],342:[function(y,De,xe){(function(x){"use strict";var z=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ie=/\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(le,ce,he,ge){if(arguments.length===1&&fe(le)==="string"&&!/\d/.test(le)&&(ce=le,le=void 0),le=le||new Date,le instanceof Date||(le=new Date(le)),isNaN(le))throw TypeError("Invalid date");ce=String(z.masks[ce]||ce||z.masks.default);var be=ce.slice(0,4);(be==="UTC:"||be==="GMT:")&&(ce=ce.slice(4),he=!0,be==="GMT:"&&(ge=!0));var me=he?"getUTC":"get",ve=le[me+"Date"](),Ce=le[me+"Day"](),Te=le[me+"Month"](),Me=le[me+"FullYear"](),ke=le[me+"Hours"](),de=le[me+"Minutes"](),ye=le[me+"Seconds"](),Se=le[me+"Milliseconds"](),Oe=he?0:le.getTimezoneOffset(),Ne=se(le),Ae=ee(le),je={d:ve,dd:oe(ve),ddd:z.i18n.dayNames[Ce],dddd:z.i18n.dayNames[Ce+7],m:Te+1,mm:oe(Te+1),mmm:z.i18n.monthNames[Te],mmmm:z.i18n.monthNames[Te+12],yy:String(Me).slice(2),yyyy:Me,h:ke%12||12,hh:oe(ke%12||12),H:ke,HH:oe(ke),M:de,MM:oe(de),s:ye,ss:oe(ye),l:oe(Se,3),L:oe(Math.round(Se/10)),t:ke<12?"a":"p",tt:ke<12?"am":"pm",T:ke<12?"A":"P",TT:ke<12?"AM":"PM",Z:ge?"GMT":he?"UTC":(String(le).match(ie)||[""]).pop().replace(re,""),o:(Oe>0?"-":"+")+oe(Math.floor(Math.abs(Oe)/60)*100+Math.abs(Oe)%60,4),S:["th","st","nd","rd"][ve%10>3?0:(ve%100-ve%10!=10)*ve%10],W:Ne,N:Ae};return ce.replace(E,function(Ze){return Ze in je?je[Ze]:Ze.slice(1,Ze.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 oe(E,ie){for(E=String(E),ie=ie||2;E.length<ie;)E="0"+E;return E}function se(E){var ie=new Date(E.getFullYear(),E.getMonth(),E.getDate());ie.setDate(ie.getDate()-(ie.getDay()+6)%7+3);var re=new Date(ie.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var le=ie.getTimezoneOffset()-re.getTimezoneOffset();ie.setHours(ie.getHours()-le);var ce=(ie-re)/(864e5*7);return 1+Math.floor(ce)}function ee(E){var ie=E.getDay();return ie===0&&(ie=7),ie}function fe(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 Xe=="function"&&Xe.amd?Xe(function(){return z}):typeof xe=="object"?De.exports=z:x.dateFormat=z})(this)},{}],343:[function(y,De,xe){"use strict";var x=/["'&<>]/;De.exports=z;function z(oe){var se=""+oe,ee=x.exec(se);if(!ee)return se;var fe,E="",ie=0,re=0;for(ie=ee.index;ie<se.length;ie++){switch(se.charCodeAt(ie)){case 34:fe="&quot;";break;case 38:fe="&amp;";break;case 39:fe="&#39;";break;case 60:fe="&lt;";break;case 62:fe="&gt;";break;default:continue}re!==ie&&(E+=se.substring(re,ie)),re=ie+1,E+=fe}return re!==ie?E+se.substring(re,ie):E}},{}],344:[function(y,De,xe){"use strict";var x=typeof Reflect=="object"?Reflect:null,z=x&&typeof x.apply=="function"?x.apply:function(ye,Se,Oe){return Function.prototype.apply.call(ye,Se,Oe)},oe;x&&typeof x.ownKeys=="function"?oe=x.ownKeys:Object.getOwnPropertySymbols?oe=function(ye){return Object.getOwnPropertyNames(ye).concat(Object.getOwnPropertySymbols(ye))}:oe=function(ye){return Object.getOwnPropertyNames(ye)};function se(de){console&&console.warn&&console.warn(de)}var ee=Number.isNaN||function(ye){return ye!==ye};function fe(){fe.init.call(this)}De.exports=fe,De.exports.once=Te,fe.EventEmitter=fe,fe.prototype._events=void 0,fe.prototype._eventsCount=0,fe.prototype._maxListeners=void 0;var E=10;function ie(de){if(typeof de!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof de)}Object.defineProperty(fe,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(de){if(typeof de!="number"||de<0||ee(de))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+de+".");E=de}}),fe.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},fe.prototype.setMaxListeners=function(ye){if(typeof ye!="number"||ye<0||ee(ye))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ye+".");return this._maxListeners=ye,this};function re(de){return de._maxListeners===void 0?fe.defaultMaxListeners:de._maxListeners}fe.prototype.getMaxListeners=function(){return re(this)},fe.prototype.emit=function(ye){for(var Se=[],Oe=1;Oe<arguments.length;Oe++)Se.push(arguments[Oe]);var Ne=ye==="error",Ae=this._events;if(Ae!==void 0)Ne=Ne&&Ae.error===void 0;else if(!Ne)return!1;if(Ne){var je;if(Se.length>0&&(je=Se[0]),je instanceof Error)throw je;var Ze=new Error("Unhandled error."+(je?" ("+je.message+")":""));throw Ze.context=je,Ze}var ze=Ae[ye];if(ze===void 0)return!1;if(typeof ze=="function")z(ze,this,Se);else for(var Ve=ze.length,it=me(ze,Ve),Oe=0;Oe<Ve;++Oe)z(it[Oe],this,Se);return!0};function le(de,ye,Se,Oe){var Ne,Ae,je;if(ie(Se),Ae=de._events,Ae===void 0?(Ae=de._events=Object.create(null),de._eventsCount=0):(Ae.newListener!==void 0&&(de.emit("newListener",ye,Se.listener?Se.listener:Se),Ae=de._events),je=Ae[ye]),je===void 0)je=Ae[ye]=Se,++de._eventsCount;else if(typeof je=="function"?je=Ae[ye]=Oe?[Se,je]:[je,Se]:Oe?je.unshift(Se):je.push(Se),Ne=re(de),Ne>0&&je.length>Ne&&!je.warned){je.warned=!0;var Ze=new Error("Possible EventEmitter memory leak detected. "+je.length+" "+String(ye)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ze.name="MaxListenersExceededWarning",Ze.emitter=de,Ze.type=ye,Ze.count=je.length,se(Ze)}return de}fe.prototype.addListener=function(ye,Se){return le(this,ye,Se,!1)},fe.prototype.on=fe.prototype.addListener,fe.prototype.prependListener=function(ye,Se){return le(this,ye,Se,!0)};function ce(){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(de,ye,Se){var Oe={fired:!1,wrapFn:void 0,target:de,type:ye,listener:Se},Ne=ce.bind(Oe);return Ne.listener=Se,Oe.wrapFn=Ne,Ne}fe.prototype.once=function(ye,Se){return ie(Se),this.on(ye,he(this,ye,Se)),this},fe.prototype.prependOnceListener=function(ye,Se){return ie(Se),this.prependListener(ye,he(this,ye,Se)),this},fe.prototype.removeListener=function(ye,Se){var Oe,Ne,Ae,je,Ze;if(ie(Se),Ne=this._events,Ne===void 0)return this;if(Oe=Ne[ye],Oe===void 0)return this;if(Oe===Se||Oe.listener===Se)--this._eventsCount===0?this._events=Object.create(null):(delete Ne[ye],Ne.removeListener&&this.emit("removeListener",ye,Oe.listener||Se));else if(typeof Oe!="function"){for(Ae=-1,je=Oe.length-1;je>=0;je--)if(Oe[je]===Se||Oe[je].listener===Se){Ze=Oe[je].listener,Ae=je;break}if(Ae<0)return this;Ae===0?Oe.shift():ve(Oe,Ae),Oe.length===1&&(Ne[ye]=Oe[0]),Ne.removeListener!==void 0&&this.emit("removeListener",ye,Ze||Se)}return this},fe.prototype.off=fe.prototype.removeListener,fe.prototype.removeAllListeners=function(ye){var Se,Oe,Ne;if(Oe=this._events,Oe===void 0)return this;if(Oe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Oe[ye]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Oe[ye]),this;if(arguments.length===0){var Ae=Object.keys(Oe),je;for(Ne=0;Ne<Ae.length;++Ne)je=Ae[Ne],je!=="removeListener"&&this.removeAllListeners(je);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Se=Oe[ye],typeof Se=="function")this.removeListener(ye,Se);else if(Se!==void 0)for(Ne=Se.length-1;Ne>=0;Ne--)this.removeListener(ye,Se[Ne]);return this};function ge(de,ye,Se){var Oe=de._events;if(Oe===void 0)return[];var Ne=Oe[ye];return Ne===void 0?[]:typeof Ne=="function"?Se?[Ne.listener||Ne]:[Ne]:Se?Ce(Ne):me(Ne,Ne.length)}fe.prototype.listeners=function(ye){return ge(this,ye,!0)},fe.prototype.rawListeners=function(ye){return ge(this,ye,!1)},fe.listenerCount=function(de,ye){return typeof de.listenerCount=="function"?de.listenerCount(ye):be.call(de,ye)},fe.prototype.listenerCount=be;function be(de){var ye=this._events;if(ye!==void 0){var Se=ye[de];if(typeof Se=="function")return 1;if(Se!==void 0)return Se.length}return 0}fe.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function me(de,ye){for(var Se=new Array(ye),Oe=0;Oe<ye;++Oe)Se[Oe]=de[Oe];return Se}function ve(de,ye){for(;ye+1<de.length;ye++)de[ye]=de[ye+1];de.pop()}function Ce(de){for(var ye=new Array(de.length),Se=0;Se<ye.length;++Se)ye[Se]=de[Se].listener||de[Se];return ye}function Te(de,ye){return new Promise(function(Se,Oe){function Ne(je){de.removeListener(ye,Ae),Oe(je)}function Ae(){typeof de.removeListener=="function"&&de.removeListener("error",Ne),Se([].slice.call(arguments))}ke(de,ye,Ae,{once:!0}),ye!=="error"&&Me(de,Ne,{once:!0})})}function Me(de,ye,Se){typeof de.on=="function"&&ke(de,"error",ye,Se)}function ke(de,ye,Se,Oe){if(typeof de.on=="function")Oe.once?de.once(ye,Se):de.on(ye,Se);else if(typeof de.addEventListener=="function")de.addEventListener(ye,function Ne(Ae){Oe.once&&de.removeEventListener(ye,Ne),Se(Ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof de)}},{}],345:[function(y,De,xe){"use strict";var x=y("is-callable"),z=Object.prototype.toString,oe=Object.prototype.hasOwnProperty,se=function(re,le,ce){for(var he=0,ge=re.length;he<ge;he++)oe.call(re,he)&&(ce==null?le(re[he],he,re):le.call(ce,re[he],he,re))},ee=function(re,le,ce){for(var he=0,ge=re.length;he<ge;he++)ce==null?le(re.charAt(he),he,re):le.call(ce,re.charAt(he),he,re)},fe=function(re,le,ce){for(var he in re)oe.call(re,he)&&(ce==null?le(re[he],he,re):le.call(ce,re[he],he,re))},E=function(re,le,ce){if(!x(le))throw new TypeError("iterator must be a function");var he;arguments.length>=3&&(he=ce),z.call(re)==="[object Array]"?se(re,le,he):typeof re=="string"?ee(re,le,he):fe(re,le,he)};De.exports=E},{"is-callable":367}],346:[function(y,De,xe){"use strict";var x="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,oe=Object.prototype.toString,se="[object Function]";De.exports=function(fe){var E=this;if(typeof E!="function"||oe.call(E)!==se)throw new TypeError(x+E);for(var ie=z.call(arguments,1),re,le=function(){if(this instanceof re){var me=E.apply(this,ie.concat(z.call(arguments)));return Object(me)===me?me:this}else return E.apply(fe,ie.concat(z.call(arguments)))},ce=Math.max(0,E.length-ie.length),he=[],ge=0;ge<ce;ge++)he.push("$"+ge);if(re=Function("binder","return function ("+he.join(",")+"){ return binder.apply(this,arguments); }")(le),E.prototype){var be=function(){};be.prototype=E.prototype,re.prototype=new be,be.prototype=null}return re}},{}],347:[function(y,De,xe){"use strict";var x=y("./implementation");De.exports=Function.prototype.bind||x},{"./implementation":346}],348:[function(y,De,xe){"use strict";var x,z=SyntaxError,oe=Function,se=TypeError,ee=function(ze){try{return oe('"use strict"; return ('+ze+").constructor;")()}catch(Ve){}},fe=Object.getOwnPropertyDescriptor;if(fe)try{fe({},"")}catch(ze){fe=null}var E=function(){throw new se},ie=fe?function(){try{return arguments.callee,E}catch(ze){try{return fe(arguments,"callee").get}catch(Ve){return E}}}():E,re=y("has-symbols")(),le=y("has-proto")(),ce=Object.getPrototypeOf||(le?function(ze){return ze.__proto__}:null),he={},ge=typeof Uint8Array=="undefined"||!ce?x:ce(Uint8Array),be={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":re&&ce?ce([][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%":oe,"%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&&ce?ce(ce([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!ce?x:ce(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||!ce?x:ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&ce?ce(""[Symbol.iterator]()):x,"%Symbol%":re?Symbol:x,"%SyntaxError%":z,"%ThrowTypeError%":ie,"%TypedArray%":ge,"%TypeError%":se,"%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(ce)try{null.error}catch(ze){var me=ce(ce(ze));be["%Error.prototype%"]=me}var ve=function ze(Ve){var it;if(Ve==="%AsyncFunction%")it=ee("async function () {}");else if(Ve==="%GeneratorFunction%")it=ee("function* () {}");else if(Ve==="%AsyncGeneratorFunction%")it=ee("async function* () {}");else if(Ve==="%AsyncGenerator%"){var Ie=ze("%AsyncGeneratorFunction%");Ie&&(it=Ie.prototype)}else if(Ve==="%AsyncIteratorPrototype%"){var We=ze("%AsyncGenerator%");We&&ce&&(it=ce(We.prototype))}return be[Ve]=it,it},Ce={"%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"),Me=y("has"),ke=Te.call(Function.call,Array.prototype.concat),de=Te.call(Function.apply,Array.prototype.splice),ye=Te.call(Function.call,String.prototype.replace),Se=Te.call(Function.call,String.prototype.slice),Oe=Te.call(Function.call,RegExp.prototype.exec),Ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ae=/\\(\\)?/g,je=function(Ve){var it=Se(Ve,0,1),Ie=Se(Ve,-1);if(it==="%"&&Ie!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Ie==="%"&&it!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var We=[];return ye(Ve,Ne,function(tt,rt,et,Ke){We[We.length]=et?ye(Ke,Ae,"$1"):rt||tt}),We},Ze=function(Ve,it){var Ie=Ve,We;if(Me(Ce,Ie)&&(We=Ce[Ie],Ie="%"+We[0]+"%"),Me(be,Ie)){var tt=be[Ie];if(tt===he&&(tt=ve(Ie)),typeof tt=="undefined"&&!it)throw new se("intrinsic "+Ve+" exists, but is not available. Please file an issue!");return{alias:We,name:Ie,value:tt}}throw new z("intrinsic "+Ve+" does not exist!")};De.exports=function(Ve,it){if(typeof Ve!="string"||Ve.length===0)throw new se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof it!="boolean")throw new se('"allowMissing" argument must be a boolean');if(Oe(/^%?[^%]*%?$/,Ve)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ie=je(Ve),We=Ie.length>0?Ie[0]:"",tt=Ze("%"+We+"%",it),rt=tt.name,et=tt.value,Ke=!1,$e=tt.alias;$e&&(We=$e[0],de(Ie,ke([0,1],$e)));for(var Ge=1,ot=!0;Ge<Ie.length;Ge+=1){var Je=Ie[Ge],ct=Se(Je,0,1),st=Se(Je,-1);if((ct==='"'||ct==="'"||ct==="`"||st==='"'||st==="'"||st==="`")&&ct!==st)throw new z("property names with quotes must have matching quotes");if((Je==="constructor"||!ot)&&(Ke=!0),We+="."+Je,rt="%"+We+"%",Me(be,rt))et=be[rt];else if(et!=null){if(!(Je in et)){if(!it)throw new se("base intrinsic for "+Ve+" exists, but the property is not available.");return}if(fe&&Ge+1>=Ie.length){var Ye=fe(et,Je);ot=!!Ye,ot&&"get"in Ye&&!("originalValue"in Ye.get)?et=Ye.get:et=et[Je]}else ot=Me(et,Je),et=et[Je];ot&&!Ke&&(be[rt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,De,xe){"use strict";var x=y("get-intrinsic"),z=x("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(oe){z=null}De.exports=z},{"get-intrinsic":348}],350:[function(y,De,xe){"use strict";var x={foo:{}},z=Object;De.exports=function(){return{__proto__:x}.foo===x.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(y,De,xe){"use strict";var x=typeof Symbol!="undefined"&&Symbol,z=y("./shams");De.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(y,De,xe){"use strict";De.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},oe=Symbol("test"),se=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(se)!=="[object Symbol]")return!1;var ee=42;z[oe]=ee;for(oe 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 fe=Object.getOwnPropertySymbols(z);if(fe.length!==1||fe[0]!==oe||!Object.prototype.propertyIsEnumerable.call(z,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(z,oe);if(E.value!==ee||E.enumerable!==!0)return!1}return!0}},{}],353:[function(y,De,xe){"use strict";var x=y("has-symbols/shams");De.exports=function(){return x()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,De,xe){"use strict";var x=y("function-bind");De.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,De,xe){var x=y("http"),z=y("url"),oe=De.exports;for(var se in x)x.hasOwnProperty(se)&&(oe[se]=x[se]);oe.request=function(fe,E){return fe=ee(fe),x.request.call(this,fe,E)},oe.get=function(fe,E){return fe=ee(fe),x.get.call(this,fe,E)};function ee(fe){if(typeof fe=="string"&&(fe=z.parse(fe)),fe.protocol||(fe.protocol="https:"),fe.protocol!=="https:")throw new Error('Protocol "'+fe.protocol+'" not supported. Expected "https:"');return fe}},{http:468,url:472}],356:[function(y,De,xe){"use strict";var x=y("util"),z=y("ms");De.exports=function(oe){if(typeof oe=="number")return oe;var se=z(oe);if(se===void 0){var ee=new Error(x.format("humanize-ms(%j) result undefined",oe));console.warn(ee.stack)}return se}},{ms:376,util:419}],357:[function(y,De,xe){xe.read=function(x,z,oe,se,ee){var fe,E,ie=ee*8-se-1,re=(1<<ie)-1,le=re>>1,ce=-7,he=oe?ee-1:0,ge=oe?-1:1,be=x[z+he];for(he+=ge,fe=be&(1<<-ce)-1,be>>=-ce,ce+=ie;ce>0;fe=fe*256+x[z+he],he+=ge,ce-=8);for(E=fe&(1<<-ce)-1,fe>>=-ce,ce+=se;ce>0;E=E*256+x[z+he],he+=ge,ce-=8);if(fe===0)fe=1-le;else{if(fe===re)return E?NaN:(be?-1:1)*(1/0);E=E+Math.pow(2,se),fe=fe-le}return(be?-1:1)*E*Math.pow(2,fe-se)},xe.write=function(x,z,oe,se,ee,fe){var E,ie,re,le=fe*8-ee-1,ce=(1<<le)-1,he=ce>>1,ge=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,be=se?0:fe-1,me=se?1:-1,ve=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(ie=isNaN(z)?1:0,E=ce):(E=Math.floor(Math.log(z)/Math.LN2),z*(re=Math.pow(2,-E))<1&&(E--,re*=2),E+he>=1?z+=ge/re:z+=ge*Math.pow(2,1-he),z*re>=2&&(E++,re/=2),E+he>=ce?(ie=0,E=ce):E+he>=1?(ie=(z*re-1)*Math.pow(2,ee),E=E+he):(ie=z*Math.pow(2,he-1)*Math.pow(2,ee),E=0));ee>=8;x[oe+be]=ie&255,be+=me,ie/=256,ee-=8);for(E=E<<ee|ie,le+=ee;le>0;x[oe+be]=E&255,be+=me,E/=256,le-=8);x[oe+be-me]|=ve*128}},{}],358:[function(y,De,xe){"use strict";var x=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],z,oe,se=-1,ee=[],fe=!1;function E(){!z||!oe||(z=!1,oe.length?ee=oe.concat(ee):se=-1,ee.length&&ie())}function ie(){if(!z){fe=!1,z=!0;for(var be=ee.length,me=setTimeout(E);be;){for(oe=ee,ee=[];oe&&++se<be;)oe[se].run();se=-1,be=ee.length}oe=null,se=-1,z=!1,clearTimeout(me)}}for(var re,le=-1,ce=x.length;++le<ce;)if(x[le]&&x[le].test&&x[le].test()){re=x[le].install(ie);break}function he(be,me){this.fun=be,this.array=me}he.prototype.run=function(){var be=this.fun,me=this.array;switch(me.length){case 0:return be();case 1:return be(me[0]);case 2:return be(me[0],me[1]);case 3:return be(me[0],me[1],me[2]);default:return be.apply(null,me)}},De.exports=ge;function ge(be){var me=new Array(arguments.length-1);if(arguments.length>1)for(var ve=1;ve<arguments.length;ve++)me[ve-1]=arguments[ve];ee.push(new he(be,me)),!fe&&!z&&(fe=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,De,xe){(function(x){(function(){"use strict";xe.test=function(){return x.setImmediate?!1:typeof x.MessageChannel!="undefined"},xe.install=function(z){var oe=new x.MessageChannel;return oe.port1.onmessage=z,function(){oe.port2.postMessage(0)}}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,De,xe){(function(x){(function(){"use strict";var z=x.MutationObserver||x.WebKitMutationObserver;xe.test=function(){return z},xe.install=function(oe){var se=0,ee=new z(oe),fe=x.document.createTextNode("");return ee.observe(fe,{characterData:!0}),function(){fe.data=se=++se%2}}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,De,xe){(function(x){(function(){"use strict";xe.test=function(){return typeof x.queueMicrotask=="function"},xe.install=function(z){return function(){x.queueMicrotask(z)}}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,De,xe){(function(x){(function(){"use strict";xe.test=function(){return"document"in x&&"onreadystatechange"in x.document.createElement("script")},xe.install=function(z){return function(){var oe=x.document.createElement("script");return oe.onreadystatechange=function(){z(),oe.onreadystatechange=null,oe.parentNode.removeChild(oe),oe=null},x.document.documentElement.appendChild(oe),z}}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,De,xe){"use strict";xe.test=function(){return!0},xe.install=function(x){return function(){setTimeout(x,0)}}},{}],364:[function(y,De,xe){typeof Object.create=="function"?De.exports=function(z,oe){oe&&(z.super_=oe,z.prototype=Object.create(oe.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:De.exports=function(z,oe){if(oe){z.super_=oe;var se=function(){};se.prototype=oe.prototype,z.prototype=new se,z.prototype.constructor=z}}},{}],365:[function(y,De,xe){"use strict";var x=y("has-tostringtag/shams")(),z=y("call-bind/callBound"),oe=z("Object.prototype.toString"),se=function(ie){return x&&ie&&typeof ie=="object"&&Symbol.toStringTag in ie?!1:oe(ie)==="[object Arguments]"},ee=function(ie){return se(ie)?!0:ie!==null&&typeof ie=="object"&&typeof ie.length=="number"&&ie.length>=0&&oe(ie)!=="[object Array]"&&oe(ie.callee)==="[object Function]"},fe=function(){return se(arguments)}();se.isLegacyArguments=ee,De.exports=fe?se:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,De,xe){De.exports=function(oe){return oe!=null&&(x(oe)||z(oe)||!!oe._isBuffer)};function x(oe){return!!oe.constructor&&typeof oe.constructor.isBuffer=="function"&&oe.constructor.isBuffer(oe)}function z(oe){return typeof oe.readFloatLE=="function"&&typeof oe.slice=="function"&&x(oe.slice(0,0))}},{}],367:[function(y,De,xe){"use strict";var x=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,oe,se;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{oe=Object.defineProperty({},"length",{get:function(){throw se}}),se={},z(function(){throw 42},null,oe)}catch(Me){Me!==se&&(z=null)}else z=null;var ee=/^\s*class\b/,fe=function(ke){try{var de=x.call(ke);return ee.test(de)}catch(ye){return!1}},E=function(ke){try{return fe(ke)?!1:(x.call(ke),!0)}catch(de){return!1}},ie=Object.prototype.toString,re="[object Object]",le="[object Function]",ce="[object GeneratorFunction]",he="[object HTMLAllCollection]",ge="[object HTML document.all class]",be="[object HTMLCollection]",me=typeof Symbol=="function"&&!!Symbol.toStringTag,ve=!(0 in[,]),Ce=function(){return!1};if(typeof document=="object"){var Te=document.all;ie.call(Te)===ie.call(document.all)&&(Ce=function(ke){if((ve||!ke)&&(typeof ke=="undefined"||typeof ke=="object"))try{var de=ie.call(ke);return(de===he||de===ge||de===be||de===re)&&ke("")==null}catch(ye){}return!1})}De.exports=z?function(ke){if(Ce(ke))return!0;if(!ke||typeof ke!="function"&&typeof ke!="object")return!1;try{z(ke,null,oe)}catch(de){if(de!==se)return!1}return!fe(ke)&&E(ke)}:function(ke){if(Ce(ke))return!0;if(!ke||typeof ke!="function"&&typeof ke!="object")return!1;if(me)return E(ke);if(fe(ke))return!1;var de=ie.call(ke);return de!==le&&de!==ce&&!/^\[object HTML/.test(de)?!1:E(ke)}},{}],368:[function(y,De,xe){"use strict";var x=Object.prototype.toString,z=Function.prototype.toString,oe=/^\s*(?:function)?\*/,se=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,fe=function(){if(!se)return!1;try{return Function("return function*() {}")()}catch(ie){}},E;De.exports=function(re){if(typeof re!="function")return!1;if(oe.test(z.call(re)))return!0;if(!se){var le=x.call(re);return le==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof E=="undefined"){var ce=fe();E=ce?ee(ce):!1}return ee(re)===E}},{"has-tostringtag/shams":353}],369:[function(y,De,xe){"use strict";var x=y("which-typed-array");De.exports=function(oe){return!!x(oe)}},{"which-typed-array":420}],370:[function(y,De,xe){var x={}.toString;De.exports=Array.isArray||function(z){return x.call(z)=="[object Array]"}},{}],371:[function(y,De,xe){(function(x){(function(){(function(z,oe){typeof xe=="object"&&typeof De!="undefined"?De.exports=oe(z):typeof Xe=="function"&&Xe.amd?Xe(oe):oe(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x!="undefined"?x:this,function(z){"use strict";z=z||{};var oe=z.Base64,se="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fe=function(Ve){for(var it={},Ie=0,We=Ve.length;Ie<We;Ie++)it[Ve.charAt(Ie)]=Ie;return it}(ee),E=String.fromCharCode,ie=function(Ve){if(Ve.length<2){var it=Ve.charCodeAt(0);return it<128?Ve:it<2048?E(192|it>>>6)+E(128|it&63):E(224|it>>>12&15)+E(128|it>>>6&63)+E(128|it&63)}else{var it=65536+(Ve.charCodeAt(0)-55296)*1024+(Ve.charCodeAt(1)-56320);return E(240|it>>>18&7)+E(128|it>>>12&63)+E(128|it>>>6&63)+E(128|it&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function(Ve){return Ve.replace(re,ie)},ce=function(Ve){var it=[0,2,1][Ve.length%3],Ie=Ve.charCodeAt(0)<<16|(Ve.length>1?Ve.charCodeAt(1):0)<<8|(Ve.length>2?Ve.charCodeAt(2):0),We=[ee.charAt(Ie>>>18),ee.charAt(Ie>>>12&63),it>=2?"=":ee.charAt(Ie>>>6&63),it>=1?"=":ee.charAt(Ie&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,ce)},ge=function(Ve){return he(le(String(Ve)))},be=function(Ve){return Ve.replace(/[+\/]/g,function(it){return it=="+"?"-":"_"}).replace(/=/g,"")},me=function(Ve,it){return it?be(ge(Ve)):ge(Ve)},ve=function(Ve){return me(Ve,!0)},Ce;z.Uint8Array&&(Ce=function(Ve,it){for(var Ie="",We=0,tt=Ve.length;We<tt;We+=3){var rt=Ve[We],et=Ve[We+1],Ke=Ve[We+2],$e=rt<<16|et<<8|Ke;Ie+=ee.charAt($e>>>18)+ee.charAt($e>>>12&63)+(typeof et!="undefined"?ee.charAt($e>>>6&63):"=")+(typeof Ke!="undefined"?ee.charAt($e&63):"=")}return it?be(Ie):Ie});var Te=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Me=function(Ve){switch(Ve.length){case 4:var it=(7&Ve.charCodeAt(0))<<18|(63&Ve.charCodeAt(1))<<12|(63&Ve.charCodeAt(2))<<6|63&Ve.charCodeAt(3),Ie=it-65536;return E((Ie>>>10)+55296)+E((Ie&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))}},ke=function(Ve){return Ve.replace(Te,Me)},de=function(Ve){var it=Ve.length,Ie=it%4,We=(it>0?fe[Ve.charAt(0)]<<18:0)|(it>1?fe[Ve.charAt(1)]<<12:0)|(it>2?fe[Ve.charAt(2)]<<6:0)|(it>3?fe[Ve.charAt(3)]:0),tt=[E(We>>>16),E(We>>>8&255),E(We&255)];return tt.length-=[0,0,2,1][Ie],tt.join("")},ye=z.atob&&typeof z.atob=="function"?function(Ve){return z.atob(Ve)}:function(Ve){return Ve.replace(/\S{1,4}/g,de)},Se=function(Ve){return ye(String(Ve).replace(/[^A-Za-z0-9\+\/]/g,""))},Oe=function(Ve){return ke(ye(Ve))},Ne=function(Ve){return String(Ve).replace(/[-_]/g,function(it){return it=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ae=function(Ve){return Oe(Ne(Ve))},je;z.Uint8Array&&(je=function(Ve){return Uint8Array.from(Se(Ne(Ve)),function(it){return it.charCodeAt(0)})});var Ze=function(){var Ve=z.Base64;return z.Base64=oe,Ve};if(z.Base64={VERSION:se,atob:Se,btoa:he,fromBase64:Ae,toBase64:me,utob:le,encode:me,encodeURI:ve,btou:ke,decode:Ae,noConflict:Ze,fromUint8Array:Ce,toUint8Array:je},typeof Object.defineProperty=="function"){var ze=function(Ve){return{value:Ve,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ze(function(){return Ae(this)})),Object.defineProperty(String.prototype,"toBase64",ze(function(Ve){return me(this,Ve)})),Object.defineProperty(String.prototype,"toBase64URI",ze(function(){return me(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof De!="undefined"&&De.exports?De.exports.Base64=z.Base64:typeof Xe=="function"&&Xe.amd&&Xe([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,De,xe){"use strict";De.exports=z;var x=Object.prototype.hasOwnProperty;function z(oe,se,ee){if(!oe)throw new TypeError("argument dest is required");if(!se)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(se).forEach(function(E){if(!(!ee&&x.call(oe,E))){var ie=Object.getOwnPropertyDescriptor(se,E);Object.defineProperty(oe,E,ie)}}),oe}},{}],373:[function(y,De,xe){"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,oe){for(var se in z){var ee=z[se].map(function(re){return re.toLowerCase()});se=se.toLowerCase();for(var fe=0;fe<ee.length;fe++){var E=ee[fe];if(E[0]!=="*"){if(!oe&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+se+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+se+'".');this._types[E]=se}}if(oe||!this._extensions[se]){var ie=ee[0];this._extensions[se]=ie[0]!=="*"?ie:ie.substr(1)}}},x.prototype.getType=function(z){z=String(z);var oe=z.replace(/^.*[/\\]/,"").toLowerCase(),se=oe.replace(/^.*\./,"").toLowerCase(),ee=oe.length<z.length,fe=se.length<oe.length-1;return(fe||!ee)&&this._types[se]||null},x.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},De.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,De,xe){"use strict";var x=y("./Mime");De.exports=new x(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,De,xe){"use strict";De.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,De,xe){var x=1e3,z=x*60,oe=z*60,se=oe*24,ee=se*7,fe=se*365.25;De.exports=function(ce,he){he=he||{};var ge=typeof ce;if(ge==="string"&&ce.length>0)return E(ce);if(ge==="number"&&isFinite(ce))return he.long?re(ce):ie(ce);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ce))};function E(ce){if(ce=String(ce),!(ce.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(ce);if(he){var ge=parseFloat(he[1]),be=(he[2]||"ms").toLowerCase();switch(be){case"years":case"year":case"yrs":case"yr":case"y":return ge*fe;case"weeks":case"week":case"w":return ge*ee;case"days":case"day":case"d":return ge*se;case"hours":case"hour":case"hrs":case"hr":case"h":return ge*oe;case"minutes":case"minute":case"mins":case"min":case"m":return ge*z;case"seconds":case"second":case"secs":case"sec":case"s":return ge*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return ge;default:return}}}}function ie(ce){var he=Math.abs(ce);return he>=se?Math.round(ce/se)+"d":he>=oe?Math.round(ce/oe)+"h":he>=z?Math.round(ce/z)+"m":he>=x?Math.round(ce/x)+"s":ce+"ms"}function re(ce){var he=Math.abs(ce);return he>=se?le(ce,he,se,"day"):he>=oe?le(ce,he,oe,"hour"):he>=z?le(ce,he,z,"minute"):he>=x?le(ce,he,x,"second"):ce+" ms"}function le(ce,he,ge,be){var me=he>=ge*1.5;return Math.round(ce/ge)+" "+be+(me?"s":"")}},{}],377:[function(y,De,xe){"use strict";var x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;function se(fe){if(fe==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(fe)}function ee(){try{if(!Object.assign)return!1;var fe=new String("abc");if(fe[5]="de",Object.getOwnPropertyNames(fe)[0]==="5")return!1;for(var E={},ie=0;ie<10;ie++)E["_"+String.fromCharCode(ie)]=ie;var re=Object.getOwnPropertyNames(E).map(function(ce){return E[ce]});if(re.join("")!=="0123456789")return!1;var le={};return"abcdefghijklmnopqrst".split("").forEach(function(ce){le[ce]=ce}),Object.keys(Object.assign({},le)).join("")==="abcdefghijklmnopqrst"}catch(ce){return!1}}De.exports=ee()?Object.assign:function(fe,E){for(var ie,re=se(fe),le,ce=1;ce<arguments.length;ce++){ie=Object(arguments[ce]);for(var he in ie)z.call(ie,he)&&(re[he]=ie[he]);if(x){le=x(ie);for(var ge=0;ge<le.length;ge++)oe.call(ie,le[ge])&&(re[le[ge]]=ie[le[ge]])}}return re}},{}],378:[function(y,De,xe){(function(x){(function(){"use strict";function z(fe){if(typeof fe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(fe))}function oe(fe,E){for(var ie="",re=0,le=-1,ce=0,he,ge=0;ge<=fe.length;++ge){if(ge<fe.length)he=fe.charCodeAt(ge);else{if(he===47)break;he=47}if(he===47){if(!(le===ge-1||ce===1))if(le!==ge-1&&ce===2){if(ie.length<2||re!==2||ie.charCodeAt(ie.length-1)!==46||ie.charCodeAt(ie.length-2)!==46){if(ie.length>2){var be=ie.lastIndexOf("/");if(be!==ie.length-1){be===-1?(ie="",re=0):(ie=ie.slice(0,be),re=ie.length-1-ie.lastIndexOf("/")),le=ge,ce=0;continue}}else if(ie.length===2||ie.length===1){ie="",re=0,le=ge,ce=0;continue}}E&&(ie.length>0?ie+="/..":ie="..",re=2)}else ie.length>0?ie+="/"+fe.slice(le+1,ge):ie=fe.slice(le+1,ge),re=ge-le-1;le=ge,ce=0}else he===46&&ce!==-1?++ce:ce=-1}return ie}function se(fe,E){var ie=E.dir||E.root,re=E.base||(E.name||"")+(E.ext||"");return ie?ie===E.root?ie+re:ie+fe+re:re}var ee={resolve:function(){for(var E="",ie=!1,re,le=arguments.length-1;le>=-1&&!ie;le--){var ce;le>=0?ce=arguments[le]:(re===void 0&&(re=x.cwd()),ce=re),z(ce),ce.length!==0&&(E=ce+"/"+E,ie=ce.charCodeAt(0)===47)}return E=oe(E,!ie),ie?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(z(E),E.length===0)return".";var ie=E.charCodeAt(0)===47,re=E.charCodeAt(E.length-1)===47;return E=oe(E,!ie),E.length===0&&!ie&&(E="."),E.length>0&&re&&(E+="/"),ie?"/"+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,ie=0;ie<arguments.length;++ie){var re=arguments[ie];z(re),re.length>0&&(E===void 0?E=re:E+="/"+re)}return E===void 0?".":ee.normalize(E)},relative:function(E,ie){if(z(E),z(ie),E===ie||(E=ee.resolve(E),ie=ee.resolve(ie),E===ie))return"";for(var re=1;re<E.length&&E.charCodeAt(re)===47;++re);for(var le=E.length,ce=le-re,he=1;he<ie.length&&ie.charCodeAt(he)===47;++he);for(var ge=ie.length,be=ge-he,me=ce<be?ce:be,ve=-1,Ce=0;Ce<=me;++Ce){if(Ce===me){if(be>me){if(ie.charCodeAt(he+Ce)===47)return ie.slice(he+Ce+1);if(Ce===0)return ie.slice(he+Ce)}else ce>me&&(E.charCodeAt(re+Ce)===47?ve=Ce:Ce===0&&(ve=0));break}var Te=E.charCodeAt(re+Ce),Me=ie.charCodeAt(he+Ce);if(Te!==Me)break;Te===47&&(ve=Ce)}var ke="";for(Ce=re+ve+1;Ce<=le;++Ce)(Ce===le||E.charCodeAt(Ce)===47)&&(ke.length===0?ke+="..":ke+="/..");return ke.length>0?ke+ie.slice(he+ve):(he+=ve,ie.charCodeAt(he)===47&&++he,ie.slice(he))},_makeLong:function(E){return E},dirname:function(E){if(z(E),E.length===0)return".";for(var ie=E.charCodeAt(0),re=ie===47,le=-1,ce=!0,he=E.length-1;he>=1;--he)if(ie=E.charCodeAt(he),ie===47){if(!ce){le=he;break}}else ce=!1;return le===-1?re?"/":".":re&&le===1?"//":E.slice(0,le)},basename:function(E,ie){if(ie!==void 0&&typeof ie!="string")throw new TypeError('"ext" argument must be a string');z(E);var re=0,le=-1,ce=!0,he;if(ie!==void 0&&ie.length>0&&ie.length<=E.length){if(ie.length===E.length&&ie===E)return"";var ge=ie.length-1,be=-1;for(he=E.length-1;he>=0;--he){var me=E.charCodeAt(he);if(me===47){if(!ce){re=he+1;break}}else be===-1&&(ce=!1,be=he+1),ge>=0&&(me===ie.charCodeAt(ge)?--ge===-1&&(le=he):(ge=-1,le=be))}return re===le?le=be:le===-1&&(le=E.length),E.slice(re,le)}else{for(he=E.length-1;he>=0;--he)if(E.charCodeAt(he)===47){if(!ce){re=he+1;break}}else le===-1&&(ce=!1,le=he+1);return le===-1?"":E.slice(re,le)}},extname:function(E){z(E);for(var ie=-1,re=0,le=-1,ce=!0,he=0,ge=E.length-1;ge>=0;--ge){var be=E.charCodeAt(ge);if(be===47){if(!ce){re=ge+1;break}continue}le===-1&&(ce=!1,le=ge+1),be===46?ie===-1?ie=ge:he!==1&&(he=1):ie!==-1&&(he=-1)}return ie===-1||le===-1||he===0||he===1&&ie===le-1&&ie===re+1?"":E.slice(ie,le)},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 se("/",E)},parse:function(E){z(E);var ie={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return ie;var re=E.charCodeAt(0),le=re===47,ce;le?(ie.root="/",ce=1):ce=0;for(var he=-1,ge=0,be=-1,me=!0,ve=E.length-1,Ce=0;ve>=ce;--ve){if(re=E.charCodeAt(ve),re===47){if(!me){ge=ve+1;break}continue}be===-1&&(me=!1,be=ve+1),re===46?he===-1?he=ve:Ce!==1&&(Ce=1):he!==-1&&(Ce=-1)}return he===-1||be===-1||Ce===0||Ce===1&&he===be-1&&he===ge+1?be!==-1&&(ge===0&&le?ie.base=ie.name=E.slice(1,be):ie.base=ie.name=E.slice(ge,be)):(ge===0&&le?(ie.name=E.slice(1,he),ie.base=E.slice(1,be)):(ie.name=E.slice(ge,he),ie.base=E.slice(ge,be)),ie.ext=E.slice(he,be)),ge>0?ie.dir=E.slice(0,ge-1):le&&(ie.dir="/"),ie},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,De.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,De,xe){(function(x){(function(){(function(){"use strict";var z={function:!0,object:!0},oe=z[typeof window]&&window||this,se=oe,ee=z[typeof xe]&&xe,fe=z[typeof De]&&De&&!De.nodeType&&De,E=ee&&fe&&typeof x=="object"&&x;E&&(E.global===E||E.window===E||E.self===E)&&(oe=E);var ie=Math.pow(2,53)-1,re=/\bOpera/,le=this,ce=Object.prototype,he=ce.hasOwnProperty,ge=ce.toString;function be(Ae){return Ae=String(Ae),Ae.charAt(0).toUpperCase()+Ae.slice(1)}function me(Ae,je,Ze){var ze={"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 je&&Ze&&/^Win/i.test(Ae)&&!/^Windows Phone /i.test(Ae)&&(ze=ze[/[\d.]+$/.exec(Ae)])&&(Ae="Windows "+ze),Ae=String(Ae),je&&Ze&&(Ae=Ae.replace(RegExp(je,"i"),Ze)),Ae=Ce(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 ve(Ae,je){var Ze=-1,ze=Ae?Ae.length:0;if(typeof ze=="number"&&ze>-1&&ze<=ie)for(;++Ze<ze;)je(Ae[Ze],Ze,Ae);else Te(Ae,je)}function Ce(Ae){return Ae=Se(Ae),/^(?:webOS|i(?:OS|P))/.test(Ae)?Ae:be(Ae)}function Te(Ae,je){for(var Ze in Ae)he.call(Ae,Ze)&&je(Ae[Ze],Ze,Ae)}function Me(Ae){return Ae==null?be(Ae):ge.call(Ae).slice(8,-1)}function ke(Ae,je){var Ze=Ae!=null?typeof Ae[je]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ze)&&(Ze=="object"?!!Ae[je]:!0)}function de(Ae){return String(Ae).replace(/([ -])(?!$)/g,"$1?")}function ye(Ae,je){var Ze=null;return ve(Ae,function(ze,Ve){Ze=je(Ze,ze,Ve,Ae)}),Ze}function Se(Ae){return String(Ae).replace(/^ +| +$/g,"")}function Oe(Ae){var je=oe,Ze=Ae&&typeof Ae=="object"&&Me(Ae)!="String";Ze&&(je=Ae,Ae=null);var ze=je.navigator||{},Ve=ze.userAgent||"";Ae||(Ae=Ve);var it=Ze||le==se,Ie=Ze?!!ze.likeChrome:/\bChrome\b/.test(Ae)&&!/internal|\n/i.test(ge.toString()),We="Object",tt=Ze?We:"ScriptBridgingProxyObject",rt=Ze?We:"Environment",et=Ze&&je.java?"JavaPackage":Me(je.java),Ke=Ze?We:"RuntimeObject",$e=/\bJava/.test(et)&&je.java,Ge=$e&&Me(je.environment)==rt,ot=$e?"a":"\u03B1",Je=$e?"b":"\u03B2",ct=je.document||{},st=je.operamini||je.opera,Ye=re.test(Ye=Ze&&st?st["[[Class]]"]:Me(st))?Ye:st=null,Le,_e=Ae,te=[],ue=null,Re=Ae==Ve,Fe=Re&&st&&typeof st.version=="function"&&st.version(),we,Ee=dt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Pe=ht(["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"]),Ue=gt([{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"]),qe=lt({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}}),nt=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 dt(wt){return ye(wt,function(pt,Ot){return pt||RegExp("\\b"+(Ot.pattern||de(Ot))+"\\b","i").exec(Ae)&&(Ot.label||Ot)})}function lt(wt){return ye(wt,function(pt,Ot,At){return pt||(Ot[Ue]||Ot[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ue)]||RegExp("\\b"+de(At)+"(?:\\b|\\w*\\d)","i").exec(Ae))&&At})}function ht(wt){return ye(wt,function(pt,Ot){return pt||RegExp("\\b"+(Ot.pattern||de(Ot))+"\\b","i").exec(Ae)&&(Ot.label||Ot)})}function St(wt){return ye(wt,function(pt,Ot){var At=Ot.pattern||de(Ot);return!pt&&(pt=RegExp("\\b"+At+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ae))&&(pt=me(pt,At,Ot.label||Ot)),pt})}function gt(wt){return ye(wt,function(pt,Ot){var At=Ot.pattern||de(Ot);return!pt&&(pt=RegExp("\\b"+At+" *\\d+[.\\w_]*","i").exec(Ae)||RegExp("\\b"+At+" *\\w+-[\\w]*","i").exec(Ae)||RegExp("\\b"+At+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ae))&&((pt=String(Ot.label&&!RegExp(At,"i").test(Ot.label)?Ot.label:pt).split("/"))[1]&&!/[\d.]+/.test(pt[0])&&(pt[0]+=" "+pt[1]),Ot=Ot.label||Ot,pt=Ce(pt[0].replace(RegExp(At,"i"),Ot).replace(RegExp("; *(?:"+Ot+"[_-])?","i")," ").replace(RegExp("("+Ot+")[-_.]?(\\w)","i"),"$1 $2"))),pt})}function yt(wt){return ye(wt,function(pt,Ot){return pt||(RegExp(Ot+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ae)||0)[1]||null})}function mt(){return this.description||""}if(Ee&&(Ee=[Ee]),/\bAndroid\b/.test(nt)&&!Ue&&(Le=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ae))&&(Ue=Se(Le[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),qe&&!Ue?Ue=gt([qe]):qe&&Ue&&(Ue=Ue.replace(RegExp("^("+de(qe)+")[-_.\\s]","i"),qe+" ").replace(RegExp("^("+de(qe)+")[-_.]?(\\w)","i"),qe+" $2")),(Le=/\bGoogle TV\b/.exec(Ue))&&(Ue=Le[0]),/\bSimulator\b/i.test(Ae)&&(Ue=(Ue?Ue+" ":"")+"Simulator"),Pe=="Opera Mini"&&/\bOPiOS\b/.test(Ae)&&te.push("running in Turbo/Uncompressed mode"),Pe=="IE"&&/\blike iPhone OS\b/.test(Ae)?(Le=Oe(Ae.replace(/like iPhone OS/,"")),qe=Le.manufacturer,Ue=Le.product):/^iP/.test(Ue)?(Pe||(Pe="Safari"),nt="iOS"+((Le=/ OS ([\d_]+)/i.exec(Ae))?" "+Le[1].replace(/_/g,"."):"")):Pe=="Konqueror"&&/^Linux\b/i.test(nt)?nt="Kubuntu":qe&&qe!="Google"&&(/Chrome/.test(Pe)&&!/\bMobile Safari\b/i.test(Ae)||/\bVita\b/.test(Ue))||/\bAndroid\b/.test(nt)&&/^Chrome/.test(Pe)&&/\bVersion\//i.test(Ae)?(Pe="Android Browser",nt=/\bAndroid\b/.test(nt)?nt:"Android"):Pe=="Silk"?(/\bMobi/i.test(Ae)||(nt="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(Ae)&&te.unshift("accelerated")):Pe=="UC Browser"&&/\bUCWEB\b/.test(Ae)?te.push("speed mode"):Pe=="PaleMoon"&&(Le=/\bFirefox\/([\d.]+)\b/.exec(Ae))?te.push("identifying as Firefox "+Le[1]):Pe=="Firefox"&&(Le=/\b(Mobile|Tablet|TV)\b/i.exec(Ae))?(nt||(nt="Firefox OS"),Ue||(Ue=Le[1])):!Pe||(Le=!/\bMinefield\b/i.test(Ae)&&/\b(?:Firefox|Safari)\b/.exec(Pe))?(Pe&&!Ue&&/[\/,]|^[^(]+?\)/.test(Ae.slice(Ae.indexOf(Le+"/")+8))&&(Pe=null),(Le=Ue||qe||nt)&&(Ue||qe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(nt))&&(Pe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(nt)?nt:Le)+" Browser")):Pe=="Electron"&&(Le=(/\bChrome\/([\d.]+)\b/.exec(Ae)||0)[1])&&te.push("Chromium "+Le),Fe||(Fe=yt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",de(Pe),"(?:Firefox|Minefield|NetFront)"])),(Le=Ee=="iCab"&&parseFloat(Fe)>3&&"WebKit"||/\bOpera\b/.test(Pe)&&(/\bOPR\b/.test(Ae)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ae)&&!/^(?:Trident|EdgeHTML)$/.test(Ee)&&"WebKit"||!Ee&&/\bMSIE\b/i.test(Ae)&&(nt=="Mac OS"?"Tasman":"Trident")||Ee=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Pe)&&"NetFront")&&(Ee=[Le]),Pe=="IE"&&(Le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ae)||0)[1])?(Pe+=" Mobile",nt="Windows Phone "+(/\+$/.test(Le)?Le:Le+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ae)?(Pe="IE Mobile",nt="Windows Phone 8.x",te.unshift("desktop mode"),Fe||(Fe=(/\brv:([\d.]+)/.exec(Ae)||0)[1])):Pe!="IE"&&Ee=="Trident"&&(Le=/\brv:([\d.]+)/.exec(Ae))&&(Pe&&te.push("identifying as "+Pe+(Fe?" "+Fe:"")),Pe="IE",Fe=Le[1]),Re){if(ke(je,"global"))if($e&&(Le=$e.lang.System,_e=Le.getProperty("os.arch"),nt=nt||Le.getProperty("os.name")+" "+Le.getProperty("os.version")),Ge){try{Fe=je.require("ringo/engine").version.join("."),Pe="RingoJS"}catch(wt){(Le=je.system)&&Le.global.system==je.system&&(Pe="Narwhal",nt||(nt=Le[0].os||null))}Pe||(Pe="Rhino")}else typeof je.process=="object"&&!je.process.browser&&(Le=je.process)&&(typeof Le.versions=="object"&&(typeof Le.versions.electron=="string"?(te.push("Node "+Le.versions.node),Pe="Electron",Fe=Le.versions.electron):typeof Le.versions.nw=="string"&&(te.push("Chromium "+Fe,"Node "+Le.versions.node),Pe="NW.js",Fe=Le.versions.nw)),Pe||(Pe="Node.js",_e=Le.arch,nt=Le.platform,Fe=/[\d.]+/.exec(Le.version),Fe=Fe?Fe[0]:null));else Me(Le=je.runtime)==tt?(Pe="Adobe AIR",nt=Le.flash.system.Capabilities.os):Me(Le=je.phantom)==Ke?(Pe="PhantomJS",Fe=(Le=Le.version||null)&&Le.major+"."+Le.minor+"."+Le.patch):typeof ct.documentMode=="number"&&(Le=/\bTrident\/(\d+)/i.exec(Ae))?(Fe=[Fe,ct.documentMode],(Le=+Le[1]+4)!=Fe[1]&&(te.push("IE "+Fe[1]+" mode"),Ee&&(Ee[1]=""),Fe[1]=Le),Fe=Pe=="IE"?String(Fe[1].toFixed(1)):Fe[0]):typeof ct.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Pe)&&(te.push("masking as "+Pe+" "+Fe),Pe="IE",Fe="11.0",Ee=["Trident"],nt="Windows");nt=nt&&Ce(nt)}if(Fe&&(Le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Fe)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ae+";"+(Re&&ze.appMinorVersion))||/\bMinefield\b/i.test(Ae)&&"a")&&(ue=/b/i.test(Le)?"beta":"alpha",Fe=Fe.replace(RegExp(Le+"\\+?$"),"")+(ue=="beta"?Je:ot)+(/\d+\+?/.exec(Le)||"")),Pe=="Fennec"||Pe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(nt))Pe="Firefox Mobile";else if(Pe=="Maxthon"&&Fe)Fe=Fe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ue))Ue=="Xbox 360"&&(nt=null),Ue=="Xbox 360"&&/\bIEMobile\b/.test(Ae)&&te.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Pe)||Pe&&!Ue&&!/Browser|Mobi/.test(Pe))&&(nt=="Windows CE"||/Mobi/i.test(Ae)))Pe+=" Mobile";else if(Pe=="IE"&&Re)try{je.external===null&&te.unshift("platform preview")}catch(wt){te.unshift("embedded")}else(/\bBlackBerry\b/.test(Ue)||/\bBB10\b/.test(Ae))&&(Le=(RegExp(Ue.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ae)||0)[1]||Fe)?(Le=[Le,/BB10/.test(Ae)],nt=(Le[1]?(Ue=null,qe="BlackBerry"):"Device Software")+" "+Le[0],Fe=null):this!=Te&&Ue!="Wii"&&(Re&&st||/Opera/.test(Pe)&&/\b(?:MSIE|Firefox)\b/i.test(Ae)||Pe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(nt)||Pe=="IE"&&(nt&&!/^Win/.test(nt)&&Fe>5.5||/\bWindows XP\b/.test(nt)&&Fe>8||Fe==8&&!/\bTrident\b/.test(Ae)))&&!re.test(Le=Oe.call(Te,Ae.replace(re,"")+";"))&&Le.name&&(Le="ing as "+Le.name+((Le=Le.version)?" "+Le:""),re.test(Pe)?(/\bIE\b/.test(Le)&&nt=="Mac OS"&&(nt=null),Le="identify"+Le):(Le="mask"+Le,Ye?Pe=Ce(Ye.replace(/([a-z])([A-Z])/g,"$1 $2")):Pe="Opera",/\bIE\b/.test(Le)&&(nt=null),Re||(Fe=null)),Ee=["Presto"],te.push(Le));(Le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ae)||0)[1])&&(Le=[parseFloat(Le.replace(/\.(\d)$/,".0$1")),Le],Pe=="Safari"&&Le[1].slice(-1)=="+"?(Pe="WebKit Nightly",ue="alpha",Fe=Le[1].slice(0,-1)):(Fe==Le[1]||Fe==(Le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ae)||0)[1]))&&(Fe=null),Le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ae)||0)[1],Le[0]==537.36&&Le[2]==537.36&&parseFloat(Le[1])>=28&&Ee=="WebKit"&&(Ee=["Blink"]),!Re||!Ie&&!Le[1]?(Ee&&(Ee[1]="like Safari"),Le=(Le=Le[0],Le<400?1:Le<500?2:Le<526?3:Le<533?4:Le<534?"4+":Le<535?5:Le<537?6:Le<538?7:Le<601?8:Le<602?9:Le<604?10:Le<606?11:Le<608?12:"12")):(Ee&&(Ee[1]="like Chrome"),Le=Le[1]||(Le=Le[0],Le<530?1:Le<532?2:Le<532.05?3:Le<533?4:Le<534.03?5:Le<534.07?6:Le<534.1?7:Le<534.13?8:Le<534.16?9:Le<534.24?10:Le<534.3?11:Le<535.01?12:Le<535.02?"13+":Le<535.07?15:Le<535.11?16:Le<535.19?17:Le<536.05?18:Le<536.1?19:Le<537.01?20:Le<537.11?"21+":Le<537.13?23:Le<537.18?24:Le<537.24?25:Le<537.36?26:Ee!="Blink"?"27":"28")),Ee&&(Ee[1]+=" "+(Le+=typeof Le=="number"?".x":/[.+]/.test(Le)?"":"+")),Pe=="Safari"&&(!Fe||parseInt(Fe)>45)?Fe=Le:Pe=="Chrome"&&/\bHeadlessChrome/i.test(Ae)&&te.unshift("headless")),Pe=="Opera"&&(Le=/\bzbov|zvav$/.exec(nt))?(Pe+=" ",te.unshift("desktop mode"),Le=="zvav"?(Pe+="Mini",Fe=null):Pe+="Mobile",nt=nt.replace(RegExp(" *"+Le+"$"),"")):Pe=="Safari"&&/\bChrome\b/.exec(Ee&&Ee[1])?(te.unshift("desktop mode"),Pe="Chrome Mobile",Fe=null,/\bOS X\b/.test(nt)?(qe="Apple",nt="iOS 4.3+"):nt=null):/\bSRWare Iron\b/.test(Pe)&&!Fe&&(Fe=yt("Chrome")),Fe&&Fe.indexOf(Le=/[\d.]+$/.exec(nt))==0&&Ae.indexOf("/"+Le+"-")>-1&&(nt=Se(nt.replace(Le,""))),nt&&nt.indexOf(Pe)!=-1&&!RegExp(Pe+" OS").test(nt)&&(nt=nt.replace(RegExp(" *"+de(Pe)+" *"),"")),Ee&&!/\b(?:Avant|Nook)\b/.test(Pe)&&(/Browser|Lunascape|Maxthon/.test(Pe)||Pe!="Safari"&&/^iOS/.test(nt)&&/\bSafari\b/.test(Ee[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Pe)&&Ee[1])&&(Le=Ee[Ee.length-1])&&te.push(Le),te.length&&(te=["("+te.join("; ")+")"]),qe&&Ue&&Ue.indexOf(qe)<0&&te.push("on "+qe),Ue&&te.push((/^on /.test(te[te.length-1])?"":"on ")+Ue),nt&&(Le=/ ([\d.+]+)$/.exec(nt),we=Le&&nt.charAt(nt.length-Le[0].length-1)=="/",nt={architecture:32,family:Le&&!we?nt.replace(Le[0],""):nt,version:Le?Le[1]:null,toString:function(){var wt=this.version;return this.family+(wt&&!we?" "+wt:"")+(this.architecture==64?" 64-bit":"")}}),(Le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(_e))&&!/\bi686\b/i.test(_e)?(nt&&(nt.architecture=64,nt.family=nt.family.replace(RegExp(" *"+Le),"")),Pe&&(/\bWOW64\b/i.test(Ae)||Re&&/\w(?:86|32)$/.test(ze.cpuClass||ze.platform)&&!/\bWin64; x64\b/i.test(Ae))&&te.unshift("32-bit")):nt&&/^OS X/.test(nt.family)&&Pe=="Chrome"&&parseFloat(Fe)>=39&&(nt.architecture=64),Ae||(Ae=null);var Ct={};return Ct.description=Ae,Ct.layout=Ee&&Ee[0],Ct.manufacturer=qe,Ct.name=Pe,Ct.prerelease=ue,Ct.product=Ue,Ct.ua=Ae,Ct.version=Pe&&Fe,Ct.os=nt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ct.parse=Oe,Ct.toString=mt,Ct.version&&te.unshift(Fe),Ct.name&&te.unshift(Pe),nt&&Pe&&!(nt==String(nt).split(" ")[0]&&(nt==Pe.split(" ")[0]||Ue))&&te.push(Ue?"("+nt+")":"on "+nt),te.length&&(Ct.description=te.join(" ")),Ct}var Ne=Oe();typeof Xe=="function"&&typeof Xe.amd=="object"&&Xe.amd?(oe.platform=Ne,Xe(function(){return Ne})):ee&&fe?Te(Ne,function(Ae,je){ee[je]=Ae}):oe.platform=Ne}).call(this)}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,De,xe){(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?De.exports={nextTick:z}:De.exports=x;function z(oe,se,ee,fe){if(typeof oe!="function")throw new TypeError('"callback" argument must be a function');var E=arguments.length,ie,re;switch(E){case 0:case 1:return x.nextTick(oe);case 2:return x.nextTick(function(){oe.call(null,se)});case 3:return x.nextTick(function(){oe.call(null,se,ee)});case 4:return x.nextTick(function(){oe.call(null,se,ee,fe)});default:for(ie=new Array(E-1),re=0;re<ie.length;)ie[re++]=arguments[re];return x.nextTick(function(){oe.apply(null,ie)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,De,xe){var x=De.exports={},z,oe;function se(){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=se}catch(ve){z=se}try{typeof clearTimeout=="function"?oe=clearTimeout:oe=ee}catch(ve){oe=ee}})();function fe(ve){if(z===setTimeout)return setTimeout(ve,0);if((z===se||!z)&&setTimeout)return z=setTimeout,setTimeout(ve,0);try{return z(ve,0)}catch(Ce){try{return z.call(null,ve,0)}catch(Te){return z.call(this,ve,0)}}}function E(ve){if(oe===clearTimeout)return clearTimeout(ve);if((oe===ee||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(ve);try{return oe(ve)}catch(Ce){try{return oe.call(null,ve)}catch(Te){return oe.call(this,ve)}}}var ie=[],re=!1,le,ce=-1;function he(){!re||!le||(re=!1,le.length?ie=le.concat(ie):ce=-1,ie.length&&ge())}function ge(){if(!re){var ve=fe(he);re=!0;for(var Ce=ie.length;Ce;){for(le=ie,ie=[];++ce<Ce;)le&&le[ce].run();ce=-1,Ce=ie.length}le=null,re=!1,E(ve)}}x.nextTick=function(ve){var Ce=new Array(arguments.length-1);if(arguments.length>1)for(var Te=1;Te<arguments.length;Te++)Ce[Te-1]=arguments[Te];ie.push(new be(ve,Ce)),ie.length===1&&!re&&fe(ge)};function be(ve,Ce){this.fun=ve,this.array=Ce}be.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={};function me(){}x.on=me,x.addListener=me,x.once=me,x.off=me,x.removeListener=me,x.removeAllListeners=me,x.emit=me,x.prependListener=me,x.prependOnceListener=me,x.listeners=function(ve){return[]},x.binding=function(ve){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(ve){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},{}],382:[function(y,De,xe){(function(x){(function(){(function(z){var oe=typeof xe=="object"&&xe&&!xe.nodeType&&xe,se=typeof De=="object"&&De&&!De.nodeType&&De,ee=typeof x=="object"&&x;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var fe,E=2147483647,ie=36,re=1,le=26,ce=38,he=700,ge=72,be=128,me="-",ve=/^xn--/,Ce=/[^\x20-\x7E]/,Te=/[\x2E\u3002\uFF0E\uFF61]/g,Me={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=ie-re,de=Math.floor,ye=String.fromCharCode,Se;function Oe(et){throw new RangeError(Me[et])}function Ne(et,Ke){for(var $e=et.length,Ge=[];$e--;)Ge[$e]=Ke(et[$e]);return Ge}function Ae(et,Ke){var $e=et.split("@"),Ge="";$e.length>1&&(Ge=$e[0]+"@",et=$e[1]),et=et.replace(Te,".");var ot=et.split("."),Je=Ne(ot,Ke).join(".");return Ge+Je}function je(et){for(var Ke=[],$e=0,Ge=et.length,ot,Je;$e<Ge;)ot=et.charCodeAt($e++),ot>=55296&&ot<=56319&&$e<Ge?(Je=et.charCodeAt($e++),(Je&64512)==56320?Ke.push(((ot&1023)<<10)+(Je&1023)+65536):(Ke.push(ot),$e--)):Ke.push(ot);return Ke}function Ze(et){return Ne(et,function(Ke){var $e="";return Ke>65535&&(Ke-=65536,$e+=ye(Ke>>>10&1023|55296),Ke=56320|Ke&1023),$e+=ye(Ke),$e}).join("")}function ze(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:ie}function Ve(et,Ke){return et+22+75*(et<26)-((Ke!=0)<<5)}function it(et,Ke,$e){var Ge=0;for(et=$e?de(et/he):et>>1,et+=de(et/Ke);et>ke*le>>1;Ge+=ie)et=de(et/ke);return de(Ge+(ke+1)*et/(et+ce))}function Ie(et){var Ke=[],$e=et.length,Ge,ot=0,Je=be,ct=ge,st,Ye,Le,_e,te,ue,Re,Fe,we;for(st=et.lastIndexOf(me),st<0&&(st=0),Ye=0;Ye<st;++Ye)et.charCodeAt(Ye)>=128&&Oe("not-basic"),Ke.push(et.charCodeAt(Ye));for(Le=st>0?st+1:0;Le<$e;){for(_e=ot,te=1,ue=ie;Le>=$e&&Oe("invalid-input"),Re=ze(et.charCodeAt(Le++)),(Re>=ie||Re>de((E-ot)/te))&&Oe("overflow"),ot+=Re*te,Fe=ue<=ct?re:ue>=ct+le?le:ue-ct,!(Re<Fe);ue+=ie)we=ie-Fe,te>de(E/we)&&Oe("overflow"),te*=we;Ge=Ke.length+1,ct=it(ot-_e,Ge,_e==0),de(ot/Ge)>E-Je&&Oe("overflow"),Je+=de(ot/Ge),ot%=Ge,Ke.splice(ot++,0,Je)}return Ze(Ke)}function We(et){var Ke,$e,Ge,ot,Je,ct,st,Ye,Le,_e,te,ue=[],Re,Fe,we,Ee;for(et=je(et),Re=et.length,Ke=be,$e=0,Je=ge,ct=0;ct<Re;++ct)te=et[ct],te<128&&ue.push(ye(te));for(Ge=ot=ue.length,ot&&ue.push(me);Ge<Re;){for(st=E,ct=0;ct<Re;++ct)te=et[ct],te>=Ke&&te<st&&(st=te);for(Fe=Ge+1,st-Ke>de((E-$e)/Fe)&&Oe("overflow"),$e+=(st-Ke)*Fe,Ke=st,ct=0;ct<Re;++ct)if(te=et[ct],te<Ke&&++$e>E&&Oe("overflow"),te==Ke){for(Ye=$e,Le=ie;_e=Le<=Je?re:Le>=Je+le?le:Le-Je,!(Ye<_e);Le+=ie)Ee=Ye-_e,we=ie-_e,ue.push(ye(Ve(_e+Ee%we,0))),Ye=de(Ee/we);ue.push(ye(Ve(Ye,0))),Je=it($e,Fe,Ge==ot),$e=0,++Ge}++$e,++Ke}return ue.join("")}function tt(et){return Ae(et,function(Ke){return ve.test(Ke)?Ie(Ke.slice(4).toLowerCase()):Ke})}function rt(et){return Ae(et,function(Ke){return Ce.test(Ke)?"xn--"+We(Ke):Ke})}if(fe={version:"1.4.1",ucs2:{decode:je,encode:Ze},decode:Ie,encode:We,toASCII:rt,toUnicode:tt},typeof Xe=="function"&&typeof Xe.amd=="object"&&Xe.amd)Xe("punycode",function(){return fe});else if(oe&&se)if(De.exports==oe)se.exports=fe;else for(Se in fe)fe.hasOwnProperty(Se)&&(oe[Se]=fe[Se]);else z.punycode=fe})(this)}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,De,xe){"use strict";function x(oe,se){return Object.prototype.hasOwnProperty.call(oe,se)}De.exports=function(oe,se,ee,fe){se=se||"&",ee=ee||"=";var E={};if(typeof oe!="string"||oe.length===0)return E;var ie=/\+/g;oe=oe.split(se);var re=1e3;fe&&typeof fe.maxKeys=="number"&&(re=fe.maxKeys);var le=oe.length;re>0&&le>re&&(le=re);for(var ce=0;ce<le;++ce){var he=oe[ce].replace(ie,"%20"),ge=he.indexOf(ee),be,me,ve,Ce;ge>=0?(be=he.substr(0,ge),me=he.substr(ge+1)):(be=he,me=""),ve=decodeURIComponent(be),Ce=decodeURIComponent(me),x(E,ve)?z(E[ve])?E[ve].push(Ce):E[ve]=[E[ve],Ce]:E[ve]=Ce}return E};var z=Array.isArray||function(oe){return Object.prototype.toString.call(oe)==="[object Array]"}},{}],384:[function(y,De,xe){"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""}};De.exports=function(ee,fe,E,ie){return fe=fe||"&",E=E||"=",ee===null&&(ee=void 0),typeof ee=="object"?oe(se(ee),function(re){var le=encodeURIComponent(x(re))+E;return z(ee[re])?oe(ee[re],function(ce){return le+encodeURIComponent(x(ce))}).join(fe):le+encodeURIComponent(x(ee[re]))}).join(fe):ie?encodeURIComponent(x(ie))+E+encodeURIComponent(x(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function oe(ee,fe){if(ee.map)return ee.map(fe);for(var E=[],ie=0;ie<ee.length;ie++)E.push(fe(ee[ie],ie));return E}var se=Object.keys||function(ee){var fe=[];for(var E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&fe.push(E);return fe}},{}],385:[function(y,De,xe){"use strict";xe.decode=xe.parse=y("./decode"),xe.encode=xe.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,De,xe){"use strict";var x=y("process-nextick-args"),z=Object.keys||function(he){var ge=[];for(var be in he)ge.push(be);return ge};De.exports=re;var oe=Object.create(y("core-util-is"));oe.inherits=y("inherits");var se=y("./_stream_readable"),ee=y("./_stream_writable");oe.inherits(re,se);for(var fe=z(ee.prototype),E=0;E<fe.length;E++){var ie=fe[E];re.prototype[ie]||(re.prototype[ie]=ee.prototype[ie])}function re(he){if(!(this instanceof re))return new re(he);se.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",le)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function le(){this.allowHalfOpen||this._writableState.ended||x.nextTick(ce,this)}function ce(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,ge){this.push(null),this.end(),x.nextTick(ge,he)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,De,xe){"use strict";De.exports=oe;var x=y("./_stream_transform"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(oe,x);function oe(se){if(!(this instanceof oe))return new oe(se);x.call(this,se)}oe.prototype._transform=function(se,ee,fe){fe(null,se)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,De,xe){(function(x,z){(function(){"use strict";var oe=y("process-nextick-args");De.exports=ye;var se=y("isarray"),ee;ye.ReadableState=de;var fe=y("events").EventEmitter,E=function(te,ue){return te.listeners(ue).length},ie=y("./internal/streams/stream"),re=y("safe-buffer").Buffer,le=z.Uint8Array||function(){};function ce(te){return re.from(te)}function he(te){return re.isBuffer(te)||te instanceof le}var ge=Object.create(y("core-util-is"));ge.inherits=y("inherits");var be=y("util"),me=void 0;be&&be.debuglog?me=be.debuglog("stream"):me=function(){};var ve=y("./internal/streams/BufferList"),Ce=y("./internal/streams/destroy"),Te;ge.inherits(ye,ie);var Me=["error","close","destroy","pause","resume"];function ke(te,ue,Re){if(typeof te.prependListener=="function")return te.prependListener(ue,Re);!te._events||!te._events[ue]?te.on(ue,Re):se(te._events[ue])?te._events[ue].unshift(Re):te._events[ue]=[Re,te._events[ue]]}function de(te,ue){ee=ee||y("./_stream_duplex"),te=te||{};var Re=ue instanceof ee;this.objectMode=!!te.objectMode,Re&&(this.objectMode=this.objectMode||!!te.readableObjectMode);var Fe=te.highWaterMark,we=te.readableHighWaterMark,Ee=this.objectMode?16:16*1024;Fe||Fe===0?this.highWaterMark=Fe:Re&&(we||we===0)?this.highWaterMark=we:this.highWaterMark=Ee,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ve,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 ye(te){if(ee=ee||y("./_stream_duplex"),!(this instanceof ye))return new ye(te);this._readableState=new de(te,this),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),ie.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),ye.prototype.destroy=Ce.destroy,ye.prototype._undestroy=Ce.undestroy,ye.prototype._destroy=function(te,ue){this.push(null),ue(te)},ye.prototype.push=function(te,ue){var Re=this._readableState,Fe;return Re.objectMode?Fe=!0:typeof te=="string"&&(ue=ue||Re.defaultEncoding,ue!==Re.encoding&&(te=re.from(te,ue),ue=""),Fe=!0),Se(this,te,ue,!1,Fe)},ye.prototype.unshift=function(te){return Se(this,te,null,!0,!1)};function Se(te,ue,Re,Fe,we){var Ee=te._readableState;if(ue===null)Ee.reading=!1,Ve(te,Ee);else{var Pe;we||(Pe=Ne(Ee,ue)),Pe?te.emit("error",Pe):Ee.objectMode||ue&&ue.length>0?(typeof ue!="string"&&!Ee.objectMode&&Object.getPrototypeOf(ue)!==re.prototype&&(ue=ce(ue)),Fe?Ee.endEmitted?te.emit("error",new Error("stream.unshift() after end event")):Oe(te,Ee,ue,!0):Ee.ended?te.emit("error",new Error("stream.push() after EOF")):(Ee.reading=!1,Ee.decoder&&!Re?(ue=Ee.decoder.write(ue),Ee.objectMode||ue.length!==0?Oe(te,Ee,ue,!1):We(te,Ee)):Oe(te,Ee,ue,!1))):Fe||(Ee.reading=!1)}return Ae(Ee)}function Oe(te,ue,Re,Fe){ue.flowing&&ue.length===0&&!ue.sync?(te.emit("data",Re),te.read(0)):(ue.length+=ue.objectMode?1:Re.length,Fe?ue.buffer.unshift(Re):ue.buffer.push(Re),ue.needReadable&&it(te)),We(te,ue)}function Ne(te,ue){var Re;return!he(ue)&&typeof ue!="string"&&ue!==void 0&&!te.objectMode&&(Re=new TypeError("Invalid non-string/buffer chunk")),Re}function Ae(te){return!te.ended&&(te.needReadable||te.length<te.highWaterMark||te.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1},ye.prototype.setEncoding=function(te){return Te||(Te=y("string_decoder/").StringDecoder),this._readableState.decoder=new Te(te),this._readableState.encoding=te,this};var je=8388608;function Ze(te){return te>=je?te=je:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function ze(te,ue){return te<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:te!==te?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(te>ue.highWaterMark&&(ue.highWaterMark=Ze(te)),te<=ue.length?te:ue.ended?ue.length:(ue.needReadable=!0,0))}ye.prototype.read=function(te){me("read",te),te=parseInt(te,10);var ue=this._readableState,Re=te;if(te!==0&&(ue.emittedReadable=!1),te===0&&ue.needReadable&&(ue.length>=ue.highWaterMark||ue.ended))return me("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Ye(this):it(this),null;if(te=ze(te,ue),te===0&&ue.ended)return ue.length===0&&Ye(this),null;var Fe=ue.needReadable;me("need readable",Fe),(ue.length===0||ue.length-te<ue.highWaterMark)&&(Fe=!0,me("length less than watermark",Fe)),ue.ended||ue.reading?(Fe=!1,me("reading or ended",Fe)):Fe&&(me("do read"),ue.reading=!0,ue.sync=!0,ue.length===0&&(ue.needReadable=!0),this._read(ue.highWaterMark),ue.sync=!1,ue.reading||(te=ze(Re,ue)));var we;return te>0?we=ot(te,ue):we=null,we===null?(ue.needReadable=!0,te=0):ue.length-=te,ue.length===0&&(ue.ended||(ue.needReadable=!0),Re!==te&&ue.ended&&Ye(this)),we!==null&&this.emit("data",we),we};function Ve(te,ue){if(!ue.ended){if(ue.decoder){var Re=ue.decoder.end();Re&&Re.length&&(ue.buffer.push(Re),ue.length+=ue.objectMode?1:Re.length)}ue.ended=!0,it(te)}}function it(te){var ue=te._readableState;ue.needReadable=!1,ue.emittedReadable||(me("emitReadable",ue.flowing),ue.emittedReadable=!0,ue.sync?oe.nextTick(Ie,te):Ie(te))}function Ie(te){me("emit readable"),te.emit("readable"),Ge(te)}function We(te,ue){ue.readingMore||(ue.readingMore=!0,oe.nextTick(tt,te,ue))}function tt(te,ue){for(var Re=ue.length;!ue.reading&&!ue.flowing&&!ue.ended&&ue.length<ue.highWaterMark&&(me("maybeReadMore read 0"),te.read(0),Re!==ue.length);)Re=ue.length;ue.readingMore=!1}ye.prototype._read=function(te){this.emit("error",new Error("_read() is not implemented"))},ye.prototype.pipe=function(te,ue){var Re=this,Fe=this._readableState;switch(Fe.pipesCount){case 0:Fe.pipes=te;break;case 1:Fe.pipes=[Fe.pipes,te];break;default:Fe.pipes.push(te);break}Fe.pipesCount+=1,me("pipe count=%d opts=%j",Fe.pipesCount,ue);var we=(!ue||ue.end!==!1)&&te!==x.stdout&&te!==x.stderr,Ee=we?Ue:mt;Fe.endEmitted?oe.nextTick(Ee):Re.once("end",Ee),te.on("unpipe",Pe);function Pe(Ct,wt){me("onunpipe"),Ct===Re&&wt&&wt.hasUnpiped===!1&&(wt.hasUnpiped=!0,dt())}function Ue(){me("onend"),te.end()}var qe=rt(Re);te.on("drain",qe);var nt=!1;function dt(){me("cleanup"),te.removeListener("close",gt),te.removeListener("finish",yt),te.removeListener("drain",qe),te.removeListener("error",St),te.removeListener("unpipe",Pe),Re.removeListener("end",Ue),Re.removeListener("end",mt),Re.removeListener("data",ht),nt=!0,Fe.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&qe()}var lt=!1;Re.on("data",ht);function ht(Ct){me("ondata"),lt=!1;var wt=te.write(Ct);wt===!1&&!lt&&((Fe.pipesCount===1&&Fe.pipes===te||Fe.pipesCount>1&&_e(Fe.pipes,te)!==-1)&&!nt&&(me("false write response, pause",Re._readableState.awaitDrain),Re._readableState.awaitDrain++,lt=!0),Re.pause())}function St(Ct){me("onerror",Ct),mt(),te.removeListener("error",St),E(te,"error")===0&&te.emit("error",Ct)}ke(te,"error",St);function gt(){te.removeListener("finish",yt),mt()}te.once("close",gt);function yt(){me("onfinish"),te.removeListener("close",gt),mt()}te.once("finish",yt);function mt(){me("unpipe"),Re.unpipe(te)}return te.emit("pipe",Re),Fe.flowing||(me("pipe resume"),Re.resume()),te};function rt(te){return function(){var ue=te._readableState;me("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&E(te,"data")&&(ue.flowing=!0,Ge(te))}}ye.prototype.unpipe=function(te){var ue=this._readableState,Re={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return te&&te!==ue.pipes?this:(te||(te=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,te&&te.emit("unpipe",this,Re),this);if(!te){var Fe=ue.pipes,we=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Ee=0;Ee<we;Ee++)Fe[Ee].emit("unpipe",this,Re);return this}var Pe=_e(ue.pipes,te);return Pe===-1?this:(ue.pipes.splice(Pe,1),ue.pipesCount-=1,ue.pipesCount===1&&(ue.pipes=ue.pipes[0]),te.emit("unpipe",this,Re),this)},ye.prototype.on=function(te,ue){var Re=ie.prototype.on.call(this,te,ue);if(te==="data")this._readableState.flowing!==!1&&this.resume();else if(te==="readable"){var Fe=this._readableState;!Fe.endEmitted&&!Fe.readableListening&&(Fe.readableListening=Fe.needReadable=!0,Fe.emittedReadable=!1,Fe.reading?Fe.length&&it(this):oe.nextTick(et,this))}return Re},ye.prototype.addListener=ye.prototype.on;function et(te){me("readable nexttick read 0"),te.read(0)}ye.prototype.resume=function(){var te=this._readableState;return te.flowing||(me("resume"),te.flowing=!0,Ke(this,te)),this};function Ke(te,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,oe.nextTick($e,te,ue))}function $e(te,ue){ue.reading||(me("resume read 0"),te.read(0)),ue.resumeScheduled=!1,ue.awaitDrain=0,te.emit("resume"),Ge(te),ue.flowing&&!ue.reading&&te.read(0)}ye.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ge(te){var ue=te._readableState;for(me("flow",ue.flowing);ue.flowing&&te.read()!==null;);}ye.prototype.wrap=function(te){var ue=this,Re=this._readableState,Fe=!1;te.on("end",function(){if(me("wrapped end"),Re.decoder&&!Re.ended){var Pe=Re.decoder.end();Pe&&Pe.length&&ue.push(Pe)}ue.push(null)}),te.on("data",function(Pe){if(me("wrapped data"),Re.decoder&&(Pe=Re.decoder.write(Pe)),!(Re.objectMode&&Pe==null)&&!(!Re.objectMode&&(!Pe||!Pe.length))){var Ue=ue.push(Pe);Ue||(Fe=!0,te.pause())}});for(var we in te)this[we]===void 0&&typeof te[we]=="function"&&(this[we]=function(Pe){return function(){return te[Pe].apply(te,arguments)}}(we));for(var Ee=0;Ee<Me.length;Ee++)te.on(Me[Ee],this.emit.bind(this,Me[Ee]));return this._read=function(Pe){me("wrapped _read",Pe),Fe&&(Fe=!1,te.resume())},this},Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),ye._fromList=ot;function ot(te,ue){if(ue.length===0)return null;var Re;return ue.objectMode?Re=ue.buffer.shift():!te||te>=ue.length?(ue.decoder?Re=ue.buffer.join(""):ue.buffer.length===1?Re=ue.buffer.head.data:Re=ue.buffer.concat(ue.length),ue.buffer.clear()):Re=Je(te,ue.buffer,ue.decoder),Re}function Je(te,ue,Re){var Fe;return te<ue.head.data.length?(Fe=ue.head.data.slice(0,te),ue.head.data=ue.head.data.slice(te)):te===ue.head.data.length?Fe=ue.shift():Fe=Re?ct(te,ue):st(te,ue),Fe}function ct(te,ue){var Re=ue.head,Fe=1,we=Re.data;for(te-=we.length;Re=Re.next;){var Ee=Re.data,Pe=te>Ee.length?Ee.length:te;if(Pe===Ee.length?we+=Ee:we+=Ee.slice(0,te),te-=Pe,te===0){Pe===Ee.length?(++Fe,Re.next?ue.head=Re.next:ue.head=ue.tail=null):(ue.head=Re,Re.data=Ee.slice(Pe));break}++Fe}return ue.length-=Fe,we}function st(te,ue){var Re=re.allocUnsafe(te),Fe=ue.head,we=1;for(Fe.data.copy(Re),te-=Fe.data.length;Fe=Fe.next;){var Ee=Fe.data,Pe=te>Ee.length?Ee.length:te;if(Ee.copy(Re,Re.length-te,0,Pe),te-=Pe,te===0){Pe===Ee.length?(++we,Fe.next?ue.head=Fe.next:ue.head=ue.tail=null):(ue.head=Fe,Fe.data=Ee.slice(Pe));break}++we}return ue.length-=we,Re}function Ye(te){var ue=te._readableState;if(ue.length>0)throw new Error('"endReadable()" called on non-empty stream');ue.endEmitted||(ue.ended=!0,oe.nextTick(Le,ue,te))}function Le(te,ue){!te.endEmitted&&te.length===0&&(te.endEmitted=!0,ue.readable=!1,ue.emit("end"))}function _e(te,ue){for(var Re=0,Fe=te.length;Re<Fe;Re++)if(te[Re]===ue)return Re;return-1}}).call(this)}).call(this,y("_process"),typeof Gt!="undefined"?Gt: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,De,xe){"use strict";De.exports=se;var x=y("./_stream_duplex"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(se,x);function oe(E,ie){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(!le)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,ie!=null&&this.push(ie),le(E);var ce=this._readableState;ce.reading=!1,(ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}function se(E){if(!(this instanceof se))return new se(E);x.call(this,E),this._transformState={afterTransform:oe.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(ie,re){fe(E,ie,re)}):fe(this,null,null)}se.prototype.push=function(E,ie){return this._transformState.needTransform=!1,x.prototype.push.call(this,E,ie)},se.prototype._transform=function(E,ie,re){throw new Error("_transform() is not implemented")},se.prototype._write=function(E,ie,re){var le=this._transformState;if(le.writecb=re,le.writechunk=E,le.writeencoding=ie,!le.transforming){var ce=this._readableState;(le.needTransform||ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}},se.prototype._read=function(E){var ie=this._transformState;ie.writechunk!==null&&ie.writecb&&!ie.transforming?(ie.transforming=!0,this._transform(ie.writechunk,ie.writeencoding,ie.afterTransform)):ie.needTransform=!0},se.prototype._destroy=function(E,ie){var re=this;x.prototype._destroy.call(this,E,function(le){ie(le),re.emit("close")})};function fe(E,ie,re){if(ie)return E.emit("error",ie);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,De,xe){(function(x,z,oe){(function(){"use strict";var se=y("process-nextick-args");De.exports=ke;function ee($e,Ge,ot){this.chunk=$e,this.encoding=Ge,this.callback=ot,this.next=null}function fe($e){var Ge=this;this.next=null,this.entry=null,this.finish=function(){Ke(Ge,$e)}}var E=!x.browser&&["v0.10","v0.9."].indexOf(x.version.slice(0,5))>-1?oe:se.nextTick,ie;ke.WritableState=Te;var re=Object.create(y("core-util-is"));re.inherits=y("inherits");var le={deprecate:y("util-deprecate")},ce=y("./internal/streams/stream"),he=y("safe-buffer").Buffer,ge=z.Uint8Array||function(){};function be($e){return he.from($e)}function me($e){return he.isBuffer($e)||$e instanceof ge}var ve=y("./internal/streams/destroy");re.inherits(ke,ce);function Ce(){}function Te($e,Ge){ie=ie||y("./_stream_duplex"),$e=$e||{};var ot=Ge instanceof ie;this.objectMode=!!$e.objectMode,ot&&(this.objectMode=this.objectMode||!!$e.writableObjectMode);var Je=$e.highWaterMark,ct=$e.writableHighWaterMark,st=this.objectMode?16:16*1024;Je||Je===0?this.highWaterMark=Je:ot&&(ct||ct===0)?this.highWaterMark=ct:this.highWaterMark=st,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 Ye=$e.decodeStrings===!1;this.decodeStrings=!Ye,this.defaultEncoding=$e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Le){Ze(Ge,Le)},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 fe(this)}Te.prototype.getBuffer=function(){for(var Ge=this.bufferedRequest,ot=[];Ge;)ot.push(Ge),Ge=Ge.next;return ot},function(){try{Object.defineProperty(Te.prototype,"buffer",{get:le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($e){}}();var Me;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Me=Function.prototype[Symbol.hasInstance],Object.defineProperty(ke,Symbol.hasInstance,{value:function($e){return Me.call(this,$e)?!0:this!==ke?!1:$e&&$e._writableState instanceof Te}})):Me=function($e){return $e instanceof this};function ke($e){if(ie=ie||y("./_stream_duplex"),!Me.call(ke,this)&&!(this instanceof ie))return new ke($e);this._writableState=new Te($e,this),this.writable=!0,$e&&(typeof $e.write=="function"&&(this._write=$e.write),typeof $e.writev=="function"&&(this._writev=$e.writev),typeof $e.destroy=="function"&&(this._destroy=$e.destroy),typeof $e.final=="function"&&(this._final=$e.final)),ce.call(this)}ke.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function de($e,Ge){var ot=new Error("write after end");$e.emit("error",ot),se.nextTick(Ge,ot)}function ye($e,Ge,ot,Je){var ct=!0,st=!1;return ot===null?st=new TypeError("May not write null values to stream"):typeof ot!="string"&&ot!==void 0&&!Ge.objectMode&&(st=new TypeError("Invalid non-string/buffer chunk")),st&&($e.emit("error",st),se.nextTick(Je,st),ct=!1),ct}ke.prototype.write=function($e,Ge,ot){var Je=this._writableState,ct=!1,st=!Je.objectMode&&me($e);return st&&!he.isBuffer($e)&&($e=be($e)),typeof Ge=="function"&&(ot=Ge,Ge=null),st?Ge="buffer":Ge||(Ge=Je.defaultEncoding),typeof ot!="function"&&(ot=Ce),Je.ended?de(this,ot):(st||ye(this,Je,$e,ot))&&(Je.pendingcb++,ct=Oe(this,Je,st,$e,Ge,ot)),ct},ke.prototype.cork=function(){var $e=this._writableState;$e.corked++},ke.prototype.uncork=function(){var $e=this._writableState;$e.corked&&($e.corked--,!$e.writing&&!$e.corked&&!$e.finished&&!$e.bufferProcessing&&$e.bufferedRequest&&it(this,$e))},ke.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($e,Ge,ot){return!$e.objectMode&&$e.decodeStrings!==!1&&typeof Ge=="string"&&(Ge=he.from(Ge,ot)),Ge}Object.defineProperty(ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Oe($e,Ge,ot,Je,ct,st){if(!ot){var Ye=Se(Ge,Je,ct);Je!==Ye&&(ot=!0,ct="buffer",Je=Ye)}var Le=Ge.objectMode?1:Je.length;Ge.length+=Le;var _e=Ge.length<Ge.highWaterMark;if(_e||(Ge.needDrain=!0),Ge.writing||Ge.corked){var te=Ge.lastBufferedRequest;Ge.lastBufferedRequest={chunk:Je,encoding:ct,isBuf:ot,callback:st,next:null},te?te.next=Ge.lastBufferedRequest:Ge.bufferedRequest=Ge.lastBufferedRequest,Ge.bufferedRequestCount+=1}else Ne($e,Ge,!1,Le,Je,ct,st);return _e}function Ne($e,Ge,ot,Je,ct,st,Ye){Ge.writelen=Je,Ge.writecb=Ye,Ge.writing=!0,Ge.sync=!0,ot?$e._writev(ct,Ge.onwrite):$e._write(ct,st,Ge.onwrite),Ge.sync=!1}function Ae($e,Ge,ot,Je,ct){--Ge.pendingcb,ot?(se.nextTick(ct,Je),se.nextTick(rt,$e,Ge),$e._writableState.errorEmitted=!0,$e.emit("error",Je)):(ct(Je),$e._writableState.errorEmitted=!0,$e.emit("error",Je),rt($e,Ge))}function je($e){$e.writing=!1,$e.writecb=null,$e.length-=$e.writelen,$e.writelen=0}function Ze($e,Ge){var ot=$e._writableState,Je=ot.sync,ct=ot.writecb;if(je(ot),Ge)Ae($e,ot,Je,Ge,ct);else{var st=Ie(ot);!st&&!ot.corked&&!ot.bufferProcessing&&ot.bufferedRequest&&it($e,ot),Je?E(ze,$e,ot,st,ct):ze($e,ot,st,ct)}}function ze($e,Ge,ot,Je){ot||Ve($e,Ge),Ge.pendingcb--,Je(),rt($e,Ge)}function Ve($e,Ge){Ge.length===0&&Ge.needDrain&&(Ge.needDrain=!1,$e.emit("drain"))}function it($e,Ge){Ge.bufferProcessing=!0;var ot=Ge.bufferedRequest;if($e._writev&&ot&&ot.next){var Je=Ge.bufferedRequestCount,ct=new Array(Je),st=Ge.corkedRequestsFree;st.entry=ot;for(var Ye=0,Le=!0;ot;)ct[Ye]=ot,ot.isBuf||(Le=!1),ot=ot.next,Ye+=1;ct.allBuffers=Le,Ne($e,Ge,!0,Ge.length,ct,"",st.finish),Ge.pendingcb++,Ge.lastBufferedRequest=null,st.next?(Ge.corkedRequestsFree=st.next,st.next=null):Ge.corkedRequestsFree=new fe(Ge),Ge.bufferedRequestCount=0}else{for(;ot;){var _e=ot.chunk,te=ot.encoding,ue=ot.callback,Re=Ge.objectMode?1:_e.length;if(Ne($e,Ge,!1,Re,_e,te,ue),ot=ot.next,Ge.bufferedRequestCount--,Ge.writing)break}ot===null&&(Ge.lastBufferedRequest=null)}Ge.bufferedRequest=ot,Ge.bufferProcessing=!1}ke.prototype._write=function($e,Ge,ot){ot(new Error("_write() is not implemented"))},ke.prototype._writev=null,ke.prototype.end=function($e,Ge,ot){var Je=this._writableState;typeof $e=="function"?(ot=$e,$e=null,Ge=null):typeof Ge=="function"&&(ot=Ge,Ge=null),$e!=null&&this.write($e,Ge),Je.corked&&(Je.corked=1,this.uncork()),!Je.ending&&!Je.finished&&et(this,Je,ot)};function Ie($e){return $e.ending&&$e.length===0&&$e.bufferedRequest===null&&!$e.finished&&!$e.writing}function We($e,Ge){$e._final(function(ot){Ge.pendingcb--,ot&&$e.emit("error",ot),Ge.prefinished=!0,$e.emit("prefinish"),rt($e,Ge)})}function tt($e,Ge){!Ge.prefinished&&!Ge.finalCalled&&(typeof $e._final=="function"?(Ge.pendingcb++,Ge.finalCalled=!0,se.nextTick(We,$e,Ge)):(Ge.prefinished=!0,$e.emit("prefinish")))}function rt($e,Ge){var ot=Ie(Ge);return ot&&(tt($e,Ge),Ge.pendingcb===0&&(Ge.finished=!0,$e.emit("finish"))),ot}function et($e,Ge,ot){Ge.ending=!0,rt($e,Ge),ot&&(Ge.finished?se.nextTick(ot):$e.once("finish",ot)),Ge.ended=!0,$e.writable=!1}function Ke($e,Ge,ot){var Je=$e.entry;for($e.entry=null;Je;){var ct=Je.callback;Ge.pendingcb--,ct(ot),Je=Je.next}Ge.corkedRequestsFree?Ge.corkedRequestsFree.next=$e:Ge.corkedRequestsFree=$e}Object.defineProperty(ke.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($e){this._writableState&&(this._writableState.destroyed=$e)}}),ke.prototype.destroy=ve.destroy,ke.prototype._undestroy=ve.undestroy,ke.prototype._destroy=function($e,Ge){this.end(),Ge($e)}}).call(this)}).call(this,y("_process"),typeof Gt!="undefined"?Gt: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,De,xe){"use strict";function x(ee,fe){if(!(ee instanceof fe))throw new TypeError("Cannot call a class as a function")}var z=y("safe-buffer").Buffer,oe=y("util");function se(ee,fe,E){ee.copy(fe,E)}De.exports=function(){function ee(){x(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(E){var ie={data:E,next:null};this.length>0?this.tail.next=ie:this.head=ie,this.tail=ie,++this.length},ee.prototype.unshift=function(E){var ie={data:E,next:this.head};this.length===0&&(this.tail=ie),this.head=ie,++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 ie=this.head,re=""+ie.data;ie=ie.next;)re+=E+ie.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 ie=z.allocUnsafe(E>>>0),re=this.head,le=0;re;)se(re.data,ie,le),le+=re.data.length,re=re.next;return ie},ee}(),oe&&oe.inspect&&oe.inspect.custom&&(De.exports.prototype[oe.inspect.custom]=function(){var ee=oe.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,De,xe){"use strict";var x=y("process-nextick-args");function z(ee,fe){var E=this,ie=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return ie||re?(fe?fe(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&x.nextTick(se,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(le){!fe&&le?(x.nextTick(se,E,le),E._writableState&&(E._writableState.errorEmitted=!0)):fe&&fe(le)}),this)}function oe(){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 se(ee,fe){ee.emit("error",fe)}De.exports={destroy:z,undestroy:oe}},{"process-nextick-args":380}],393:[function(y,De,xe){De.exports=y("events").EventEmitter},{events:344}],394:[function(y,De,xe){xe=De.exports=y("./lib/_stream_readable.js"),xe.Stream=xe,xe.Readable=xe,xe.Writable=y("./lib/_stream_writable.js"),xe.Duplex=y("./lib/_stream_duplex.js"),xe.Transform=y("./lib/_stream_transform.js"),xe.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,De,xe){var x=function(z){"use strict";var oe=Object.prototype,se=oe.hasOwnProperty,ee,fe=typeof Symbol=="function"?Symbol:{},E=fe.iterator||"@@iterator",ie=fe.asyncIterator||"@@asyncIterator",re=fe.toStringTag||"@@toStringTag";function le(tt,rt,et){return Object.defineProperty(tt,rt,{value:et,enumerable:!0,configurable:!0,writable:!0}),tt[rt]}try{le({},"")}catch(tt){le=function(rt,et,Ke){return rt[et]=Ke}}function ce(tt,rt,et,Ke){var $e=rt&&rt.prototype instanceof Te?rt:Te,Ge=Object.create($e.prototype),ot=new it(Ke||[]);return Ge._invoke=je(tt,et,ot),Ge}z.wrap=ce;function he(tt,rt,et){try{return{type:"normal",arg:tt.call(rt,et)}}catch(Ke){return{type:"throw",arg:Ke}}}var ge="suspendedStart",be="suspendedYield",me="executing",ve="completed",Ce={};function Te(){}function Me(){}function ke(){}var de={};le(de,E,function(){return this});var ye=Object.getPrototypeOf,Se=ye&&ye(ye(Ie([])));Se&&Se!==oe&&se.call(Se,E)&&(de=Se);var Oe=ke.prototype=Te.prototype=Object.create(de);Me.prototype=ke,le(Oe,"constructor",ke),le(ke,"constructor",Me),Me.displayName=le(ke,re,"GeneratorFunction");function Ne(tt){["next","throw","return"].forEach(function(rt){le(tt,rt,function(et){return this._invoke(rt,et)})})}z.isGeneratorFunction=function(tt){var rt=typeof tt=="function"&&tt.constructor;return rt?rt===Me||(rt.displayName||rt.name)==="GeneratorFunction":!1},z.mark=function(tt){return Object.setPrototypeOf?Object.setPrototypeOf(tt,ke):(tt.__proto__=ke,le(tt,re,"GeneratorFunction")),tt.prototype=Object.create(Oe),tt},z.awrap=function(tt){return{__await:tt}};function Ae(tt,rt){function et(Ge,ot,Je,ct){var st=he(tt[Ge],tt,ot);if(st.type==="throw")ct(st.arg);else{var Ye=st.arg,Le=Ye.value;return Le&&typeof Le=="object"&&se.call(Le,"__await")?rt.resolve(Le.__await).then(function(_e){et("next",_e,Je,ct)},function(_e){et("throw",_e,Je,ct)}):rt.resolve(Le).then(function(_e){Ye.value=_e,Je(Ye)},function(_e){return et("throw",_e,Je,ct)})}}var Ke;function $e(Ge,ot){function Je(){return new rt(function(ct,st){et(Ge,ot,ct,st)})}return Ke=Ke?Ke.then(Je,Je):Je()}this._invoke=$e}Ne(Ae.prototype),le(Ae.prototype,ie,function(){return this}),z.AsyncIterator=Ae,z.async=function(tt,rt,et,Ke,$e){$e===void 0&&($e=Promise);var Ge=new Ae(ce(tt,rt,et,Ke),$e);return z.isGeneratorFunction(rt)?Ge:Ge.next().then(function(ot){return ot.done?ot.value:Ge.next()})};function je(tt,rt,et){var Ke=ge;return function(Ge,ot){if(Ke===me)throw new Error("Generator is already running");if(Ke===ve){if(Ge==="throw")throw ot;return We()}for(et.method=Ge,et.arg=ot;;){var Je=et.delegate;if(Je){var ct=Ze(Je,et);if(ct){if(ct===Ce)continue;return ct}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(Ke===ge)throw Ke=ve,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);Ke=me;var st=he(tt,rt,et);if(st.type==="normal"){if(Ke=et.done?ve:be,st.arg===Ce)continue;return{value:st.arg,done:et.done}}else st.type==="throw"&&(Ke=ve,et.method="throw",et.arg=st.arg)}}}function Ze(tt,rt){var et=tt.iterator[rt.method];if(et===ee){if(rt.delegate=null,rt.method==="throw"){if(tt.iterator.return&&(rt.method="return",rt.arg=ee,Ze(tt,rt),rt.method==="throw"))return Ce;rt.method="throw",rt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ce}var Ke=he(et,tt.iterator,rt.arg);if(Ke.type==="throw")return rt.method="throw",rt.arg=Ke.arg,rt.delegate=null,Ce;var $e=Ke.arg;if(!$e)return rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,Ce;if($e.done)rt[tt.resultName]=$e.value,rt.next=tt.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=ee);else return $e;return rt.delegate=null,Ce}Ne(Oe),le(Oe,re,"Generator"),le(Oe,E,function(){return this}),le(Oe,"toString",function(){return"[object Generator]"});function ze(tt){var rt={tryLoc:tt[0]};1 in tt&&(rt.catchLoc=tt[1]),2 in tt&&(rt.finallyLoc=tt[2],rt.afterLoc=tt[3]),this.tryEntries.push(rt)}function Ve(tt){var rt=tt.completion||{};rt.type="normal",delete rt.arg,tt.completion=rt}function it(tt){this.tryEntries=[{tryLoc:"root"}],tt.forEach(ze,this),this.reset(!0)}z.keys=function(tt){var rt=[];for(var et in tt)rt.push(et);return rt.reverse(),function Ke(){for(;rt.length;){var $e=rt.pop();if($e in tt)return Ke.value=$e,Ke.done=!1,Ke}return Ke.done=!0,Ke}};function Ie(tt){if(tt){var rt=tt[E];if(rt)return rt.call(tt);if(typeof tt.next=="function")return tt;if(!isNaN(tt.length)){var et=-1,Ke=function $e(){for(;++et<tt.length;)if(se.call(tt,et))return $e.value=tt[et],$e.done=!1,$e;return $e.value=ee,$e.done=!0,$e};return Ke.next=Ke}}return{next:We}}z.values=Ie;function We(){return{value:ee,done:!0}}return it.prototype={constructor:it,reset:function(tt){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),!tt)for(var rt in this)rt.charAt(0)==="t"&&se.call(this,rt)&&!isNaN(+rt.slice(1))&&(this[rt]=ee)},stop:function(){this.done=!0;var tt=this.tryEntries[0],rt=tt.completion;if(rt.type==="throw")throw rt.arg;return this.rval},dispatchException:function(tt){if(this.done)throw tt;var rt=this;function et(ct,st){return Ge.type="throw",Ge.arg=tt,rt.next=ct,st&&(rt.method="next",rt.arg=ee),!!st}for(var Ke=this.tryEntries.length-1;Ke>=0;--Ke){var $e=this.tryEntries[Ke],Ge=$e.completion;if($e.tryLoc==="root")return et("end");if($e.tryLoc<=this.prev){var ot=se.call($e,"catchLoc"),Je=se.call($e,"finallyLoc");if(ot&&Je){if(this.prev<$e.catchLoc)return et($e.catchLoc,!0);if(this.prev<$e.finallyLoc)return et($e.finallyLoc)}else if(ot){if(this.prev<$e.catchLoc)return et($e.catchLoc,!0)}else if(Je){if(this.prev<$e.finallyLoc)return et($e.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(tt,rt){for(var et=this.tryEntries.length-1;et>=0;--et){var Ke=this.tryEntries[et];if(Ke.tryLoc<=this.prev&&se.call(Ke,"finallyLoc")&&this.prev<Ke.finallyLoc){var $e=Ke;break}}$e&&(tt==="break"||tt==="continue")&&$e.tryLoc<=rt&&rt<=$e.finallyLoc&&($e=null);var Ge=$e?$e.completion:{};return Ge.type=tt,Ge.arg=rt,$e?(this.method="next",this.next=$e.finallyLoc,Ce):this.complete(Ge)},complete:function(tt,rt){if(tt.type==="throw")throw tt.arg;return tt.type==="break"||tt.type==="continue"?this.next=tt.arg:tt.type==="return"?(this.rval=this.arg=tt.arg,this.method="return",this.next="end"):tt.type==="normal"&&rt&&(this.next=rt),Ce},finish:function(tt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.finallyLoc===tt)return this.complete(et.completion,et.afterLoc),Ve(et),Ce}},catch:function(tt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.tryLoc===tt){var Ke=et.completion;if(Ke.type==="throw"){var $e=Ke.arg;Ve(et)}return $e}}throw new Error("illegal catch attempt")},delegateYield:function(tt,rt,et){return this.delegate={iterator:Ie(tt),resultName:rt,nextLoc:et},this.method==="next"&&(this.arg=ee),Ce}},z}(typeof De=="object"?De.exports:{});try{regeneratorRuntime=x}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},{}],396:[function(y,De,xe){var x=y("buffer"),z=x.Buffer;function oe(ee,fe){for(var E in ee)fe[E]=ee[E]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?De.exports=x:(oe(x,xe),xe.Buffer=se);function se(ee,fe,E){return z(ee,fe,E)}oe(z,se),se.from=function(ee,fe,E){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,fe,E)},se.alloc=function(ee,fe,E){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ie=z(ee);return fe!==void 0?typeof E=="string"?ie.fill(fe,E):ie.fill(fe):ie.fill(0),ie},se.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},se.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(ee)}},{buffer:90}],397:[function(y,De,xe){(function(x){(function(){(function(z){z.parser=function(Ye,Le){return new se(Ye,Le)},z.SAXParser=se,z.SAXStream=ce,z.createStream=le,z.MAX_BUFFER_LENGTH=64*1024;var oe=["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 se(Ye,Le){if(!(this instanceof se))return new se(Ye,Le);var _e=this;fe(_e),_e.q=_e.c="",_e.bufferCheckPosition=z.MAX_BUFFER_LENGTH,_e.opt=Le||{},_e.opt.lowercase=_e.opt.lowercase||_e.opt.lowercasetags,_e.looseCase=_e.opt.lowercase?"toLowerCase":"toUpperCase",_e.tags=[],_e.closed=_e.closedRoot=_e.sawRoot=!1,_e.tag=_e.error=null,_e.strict=!!Ye,_e.noscript=!!(Ye||_e.opt.noscript),_e.state=Ae.BEGIN,_e.strictEntities=_e.opt.strictEntities,_e.ENTITIES=_e.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),_e.attribList=[],_e.opt.xmlns&&(_e.ns=Object.create(ve)),_e.trackPosition=_e.opt.position!==!1,_e.trackPosition&&(_e.position=_e.line=_e.column=0),Ze(_e,"onready")}Object.create||(Object.create=function(Ye){function Le(){}Le.prototype=Ye;var _e=new Le;return _e}),Object.keys||(Object.keys=function(Ye){var Le=[];for(var _e in Ye)Ye.hasOwnProperty(_e)&&Le.push(_e);return Le});function ee(Ye){for(var Le=Math.max(z.MAX_BUFFER_LENGTH,10),_e=0,te=0,ue=oe.length;te<ue;te++){var Re=Ye[oe[te]].length;if(Re>Le)switch(oe[te]){case"textNode":Ve(Ye);break;case"cdata":ze(Ye,"oncdata",Ye.cdata),Ye.cdata="";break;case"script":ze(Ye,"onscript",Ye.script),Ye.script="";break;default:Ie(Ye,"Max buffer length exceeded: "+oe[te])}_e=Math.max(_e,Re)}var Fe=z.MAX_BUFFER_LENGTH-_e;Ye.bufferCheckPosition=Fe+Ye.position}function fe(Ye){for(var Le=0,_e=oe.length;Le<_e;Le++)Ye[oe[Le]]=""}function E(Ye){Ve(Ye),Ye.cdata!==""&&(ze(Ye,"oncdata",Ye.cdata),Ye.cdata=""),Ye.script!==""&&(ze(Ye,"onscript",Ye.script),Ye.script="")}se.prototype={end:function(){We(this)},write:st,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var ie;try{ie=y("stream").Stream}catch(Ye){ie=function(){}}var re=z.EVENTS.filter(function(Ye){return Ye!=="error"&&Ye!=="end"});function le(Ye,Le){return new ce(Ye,Le)}function ce(Ye,Le){if(!(this instanceof ce))return new ce(Ye,Le);ie.apply(this),this._parser=new se(Ye,Le),this.writable=!0,this.readable=!0;var _e=this;this._parser.onend=function(){_e.emit("end")},this._parser.onerror=function(te){_e.emit("error",te),_e._parser.error=null},this._decoder=null,re.forEach(function(te){Object.defineProperty(_e,"on"+te,{get:function(){return _e._parser["on"+te]},set:function(ue){if(!ue)return _e.removeAllListeners(te),_e._parser["on"+te]=ue,ue;_e.on(te,ue)},enumerable:!0,configurable:!1})})}ce.prototype=Object.create(ie.prototype,{constructor:{value:ce}}),ce.prototype.write=function(Ye){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(Ye)){if(!this._decoder){var Le=y("string_decoder").StringDecoder;this._decoder=new Le("utf8")}Ye=this._decoder.write(Ye)}return this._parser.write(Ye.toString()),this.emit("data",Ye),!0},ce.prototype.end=function(Ye){return Ye&&Ye.length&&this.write(Ye),this._parser.end(),!0},ce.prototype.on=function(Ye,Le){var _e=this;return!_e._parser["on"+Ye]&&re.indexOf(Ye)!==-1&&(_e._parser["on"+Ye]=function(){var te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);te.splice(0,0,Ye),_e.emit.apply(_e,te)}),ie.prototype.on.call(_e,Ye,Le)};var he="[CDATA[",ge="DOCTYPE",be="http://www.w3.org/XML/1998/namespace",me="http://www.w3.org/2000/xmlns/",ve={xml:be,xmlns:me},Ce=/[:_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-]/,Me=/[#:_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]/,ke=/[#:_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 de(Ye){return Ye===" "||Ye===`
`||Ye==="\r"||Ye===" "}function ye(Ye){return Ye==='"'||Ye==="'"}function Se(Ye){return Ye===">"||de(Ye)}function Oe(Ye,Le){return Ye.test(Le)}function Ne(Ye,Le){return!Oe(Ye,Le)}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(Ye){var Le=z.ENTITIES[Ye],_e=typeof Le=="number"?String.fromCharCode(Le):Le;z.ENTITIES[Ye]=_e});for(var je in z.STATE)z.STATE[z.STATE[je]]=je;Ae=z.STATE;function Ze(Ye,Le,_e){Ye[Le]&&Ye[Le](_e)}function ze(Ye,Le,_e){Ye.textNode&&Ve(Ye),Ze(Ye,Le,_e)}function Ve(Ye){Ye.textNode=it(Ye.opt,Ye.textNode),Ye.textNode&&Ze(Ye,"ontext",Ye.textNode),Ye.textNode=""}function it(Ye,Le){return Ye.trim&&(Le=Le.trim()),Ye.normalize&&(Le=Le.replace(/\s+/g," ")),Le}function Ie(Ye,Le){return Ve(Ye),Ye.trackPosition&&(Le+=`
Line: `+Ye.line+`
Column: `+Ye.column+`
Char: `+Ye.c),Le=new Error(Le),Ye.error=Le,Ze(Ye,"onerror",Le),Ye}function We(Ye){return Ye.sawRoot&&!Ye.closedRoot&&tt(Ye,"Unclosed root tag"),Ye.state!==Ae.BEGIN&&Ye.state!==Ae.BEGIN_WHITESPACE&&Ye.state!==Ae.TEXT&&Ie(Ye,"Unexpected end"),Ve(Ye),Ye.c="",Ye.closed=!0,Ze(Ye,"onend"),se.call(Ye,Ye.strict,Ye.opt),Ye}function tt(Ye,Le){if(typeof Ye!="object"||!(Ye instanceof se))throw new Error("bad call to strictFail");Ye.strict&&Ie(Ye,Le)}function rt(Ye){Ye.strict||(Ye.tagName=Ye.tagName[Ye.looseCase]());var Le=Ye.tags[Ye.tags.length-1]||Ye,_e=Ye.tag={name:Ye.tagName,attributes:{}};Ye.opt.xmlns&&(_e.ns=Le.ns),Ye.attribList.length=0,ze(Ye,"onopentagstart",_e)}function et(Ye,Le){var _e=Ye.indexOf(":"),te=_e<0?["",Ye]:Ye.split(":"),ue=te[0],Re=te[1];return Le&&Ye==="xmlns"&&(ue="xmlns",Re=""),{prefix:ue,local:Re}}function Ke(Ye){if(Ye.strict||(Ye.attribName=Ye.attribName[Ye.looseCase]()),Ye.attribList.indexOf(Ye.attribName)!==-1||Ye.tag.attributes.hasOwnProperty(Ye.attribName)){Ye.attribName=Ye.attribValue="";return}if(Ye.opt.xmlns){var Le=et(Ye.attribName,!0),_e=Le.prefix,te=Le.local;if(_e==="xmlns")if(te==="xml"&&Ye.attribValue!==be)tt(Ye,"xml: prefix must be bound to "+be+`
Actual: `+Ye.attribValue);else if(te==="xmlns"&&Ye.attribValue!==me)tt(Ye,"xmlns: prefix must be bound to "+me+`
Actual: `+Ye.attribValue);else{var ue=Ye.tag,Re=Ye.tags[Ye.tags.length-1]||Ye;ue.ns===Re.ns&&(ue.ns=Object.create(Re.ns)),ue.ns[te]=Ye.attribValue}Ye.attribList.push([Ye.attribName,Ye.attribValue])}else Ye.tag.attributes[Ye.attribName]=Ye.attribValue,ze(Ye,"onattribute",{name:Ye.attribName,value:Ye.attribValue});Ye.attribName=Ye.attribValue=""}function $e(Ye,Le){if(Ye.opt.xmlns){var _e=Ye.tag,te=et(Ye.tagName);_e.prefix=te.prefix,_e.local=te.local,_e.uri=_e.ns[te.prefix]||"",_e.prefix&&!_e.uri&&(tt(Ye,"Unbound namespace prefix: "+JSON.stringify(Ye.tagName)),_e.uri=te.prefix);var ue=Ye.tags[Ye.tags.length-1]||Ye;_e.ns&&ue.ns!==_e.ns&&Object.keys(_e.ns).forEach(function(ht){ze(Ye,"onopennamespace",{prefix:ht,uri:_e.ns[ht]})});for(var Re=0,Fe=Ye.attribList.length;Re<Fe;Re++){var we=Ye.attribList[Re],Ee=we[0],Pe=we[1],Ue=et(Ee,!0),qe=Ue.prefix,nt=Ue.local,dt=qe===""?"":_e.ns[qe]||"",lt={name:Ee,value:Pe,prefix:qe,local:nt,uri:dt};qe&&qe!=="xmlns"&&!dt&&(tt(Ye,"Unbound namespace prefix: "+JSON.stringify(qe)),lt.uri=qe),Ye.tag.attributes[Ee]=lt,ze(Ye,"onattribute",lt)}Ye.attribList.length=0}Ye.tag.isSelfClosing=!!Le,Ye.sawRoot=!0,Ye.tags.push(Ye.tag),ze(Ye,"onopentag",Ye.tag),Le||(!Ye.noscript&&Ye.tagName.toLowerCase()==="script"?Ye.state=Ae.SCRIPT:Ye.state=Ae.TEXT,Ye.tag=null,Ye.tagName=""),Ye.attribName=Ye.attribValue="",Ye.attribList.length=0}function Ge(Ye){if(!Ye.tagName){tt(Ye,"Weird empty close tag."),Ye.textNode+="</>",Ye.state=Ae.TEXT;return}if(Ye.script){if(Ye.tagName!=="script"){Ye.script+="</"+Ye.tagName+">",Ye.tagName="",Ye.state=Ae.SCRIPT;return}ze(Ye,"onscript",Ye.script),Ye.script=""}var Le=Ye.tags.length,_e=Ye.tagName;Ye.strict||(_e=_e[Ye.looseCase]());for(var te=_e;Le--;){var ue=Ye.tags[Le];if(ue.name!==te)tt(Ye,"Unexpected close tag");else break}if(Le<0){tt(Ye,"Unmatched closing tag: "+Ye.tagName),Ye.textNode+="</"+Ye.tagName+">",Ye.state=Ae.TEXT;return}Ye.tagName=_e;for(var Re=Ye.tags.length;Re-- >Le;){var Fe=Ye.tag=Ye.tags.pop();Ye.tagName=Ye.tag.name,ze(Ye,"onclosetag",Ye.tagName);var we={};for(var Ee in Fe.ns)we[Ee]=Fe.ns[Ee];var Pe=Ye.tags[Ye.tags.length-1]||Ye;Ye.opt.xmlns&&Fe.ns!==Pe.ns&&Object.keys(Fe.ns).forEach(function(Ue){var qe=Fe.ns[Ue];ze(Ye,"onclosenamespace",{prefix:Ue,uri:qe})})}Le===0&&(Ye.closedRoot=!0),Ye.tagName=Ye.attribValue=Ye.attribName="",Ye.attribList.length=0,Ye.state=Ae.TEXT}function ot(Ye){var Le=Ye.entity,_e=Le.toLowerCase(),te,ue="";return Ye.ENTITIES[Le]?Ye.ENTITIES[Le]:Ye.ENTITIES[_e]?Ye.ENTITIES[_e]:(Le=_e,Le.charAt(0)==="#"&&(Le.charAt(1)==="x"?(Le=Le.slice(2),te=parseInt(Le,16),ue=te.toString(16)):(Le=Le.slice(1),te=parseInt(Le,10),ue=te.toString(10))),Le=Le.replace(/^0+/,""),isNaN(te)||ue.toLowerCase()!==Le?(tt(Ye,"Invalid character entity"),"&"+Ye.entity+";"):String.fromCodePoint(te))}function Je(Ye,Le){Le==="<"?(Ye.state=Ae.OPEN_WAKA,Ye.startTagPosition=Ye.position):de(Le)||(tt(Ye,"Non-whitespace before first tag."),Ye.textNode=Le,Ye.state=Ae.TEXT)}function ct(Ye,Le){var _e="";return Le<Ye.length&&(_e=Ye.charAt(Le)),_e}function st(Ye){var Le=this;if(this.error)throw this.error;if(Le.closed)return Ie(Le,"Cannot write after close. Assign an onready handler.");if(Ye===null)return We(Le);typeof Ye=="object"&&(Ye=Ye.toString());for(var _e=0,te="";te=ct(Ye,_e++),Le.c=te,!!te;)switch(Le.trackPosition&&(Le.position++,te===`
`?(Le.line++,Le.column=0):Le.column++),Le.state){case Ae.BEGIN:if(Le.state=Ae.BEGIN_WHITESPACE,te==="\uFEFF")continue;Je(Le,te);continue;case Ae.BEGIN_WHITESPACE:Je(Le,te);continue;case Ae.TEXT:if(Le.sawRoot&&!Le.closedRoot){for(var ue=_e-1;te&&te!=="<"&&te!=="&";)te=ct(Ye,_e++),te&&Le.trackPosition&&(Le.position++,te===`
`?(Le.line++,Le.column=0):Le.column++);Le.textNode+=Ye.substring(ue,_e-1)}te==="<"&&!(Le.sawRoot&&Le.closedRoot&&!Le.strict)?(Le.state=Ae.OPEN_WAKA,Le.startTagPosition=Le.position):(!de(te)&&(!Le.sawRoot||Le.closedRoot)&&tt(Le,"Text data outside of root node."),te==="&"?Le.state=Ae.TEXT_ENTITY:Le.textNode+=te);continue;case Ae.SCRIPT:te==="<"?Le.state=Ae.SCRIPT_ENDING:Le.script+=te;continue;case Ae.SCRIPT_ENDING:te==="/"?Le.state=Ae.CLOSE_TAG:(Le.script+="<"+te,Le.state=Ae.SCRIPT);continue;case Ae.OPEN_WAKA:if(te==="!")Le.state=Ae.SGML_DECL,Le.sgmlDecl="";else if(!de(te))if(Oe(Ce,te))Le.state=Ae.OPEN_TAG,Le.tagName=te;else if(te==="/")Le.state=Ae.CLOSE_TAG,Le.tagName="";else if(te==="?")Le.state=Ae.PROC_INST,Le.procInstName=Le.procInstBody="";else{if(tt(Le,"Unencoded <"),Le.startTagPosition+1<Le.position){var Re=Le.position-Le.startTagPosition;te=new Array(Re).join(" ")+te}Le.textNode+="<"+te,Le.state=Ae.TEXT}continue;case Ae.SGML_DECL:(Le.sgmlDecl+te).toUpperCase()===he?(ze(Le,"onopencdata"),Le.state=Ae.CDATA,Le.sgmlDecl="",Le.cdata=""):Le.sgmlDecl+te==="--"?(Le.state=Ae.COMMENT,Le.comment="",Le.sgmlDecl=""):(Le.sgmlDecl+te).toUpperCase()===ge?(Le.state=Ae.DOCTYPE,(Le.doctype||Le.sawRoot)&&tt(Le,"Inappropriately located doctype declaration"),Le.doctype="",Le.sgmlDecl=""):te===">"?(ze(Le,"onsgmldeclaration",Le.sgmlDecl),Le.sgmlDecl="",Le.state=Ae.TEXT):(ye(te)&&(Le.state=Ae.SGML_DECL_QUOTED),Le.sgmlDecl+=te);continue;case Ae.SGML_DECL_QUOTED:te===Le.q&&(Le.state=Ae.SGML_DECL,Le.q=""),Le.sgmlDecl+=te;continue;case Ae.DOCTYPE:te===">"?(Le.state=Ae.TEXT,ze(Le,"ondoctype",Le.doctype),Le.doctype=!0):(Le.doctype+=te,te==="["?Le.state=Ae.DOCTYPE_DTD:ye(te)&&(Le.state=Ae.DOCTYPE_QUOTED,Le.q=te));continue;case Ae.DOCTYPE_QUOTED:Le.doctype+=te,te===Le.q&&(Le.q="",Le.state=Ae.DOCTYPE);continue;case Ae.DOCTYPE_DTD:Le.doctype+=te,te==="]"?Le.state=Ae.DOCTYPE:ye(te)&&(Le.state=Ae.DOCTYPE_DTD_QUOTED,Le.q=te);continue;case Ae.DOCTYPE_DTD_QUOTED:Le.doctype+=te,te===Le.q&&(Le.state=Ae.DOCTYPE_DTD,Le.q="");continue;case Ae.COMMENT:te==="-"?Le.state=Ae.COMMENT_ENDING:Le.comment+=te;continue;case Ae.COMMENT_ENDING:te==="-"?(Le.state=Ae.COMMENT_ENDED,Le.comment=it(Le.opt,Le.comment),Le.comment&&ze(Le,"oncomment",Le.comment),Le.comment=""):(Le.comment+="-"+te,Le.state=Ae.COMMENT);continue;case Ae.COMMENT_ENDED:te!==">"?(tt(Le,"Malformed comment"),Le.comment+="--"+te,Le.state=Ae.COMMENT):Le.state=Ae.TEXT;continue;case Ae.CDATA:te==="]"?Le.state=Ae.CDATA_ENDING:Le.cdata+=te;continue;case Ae.CDATA_ENDING:te==="]"?Le.state=Ae.CDATA_ENDING_2:(Le.cdata+="]"+te,Le.state=Ae.CDATA);continue;case Ae.CDATA_ENDING_2:te===">"?(Le.cdata&&ze(Le,"oncdata",Le.cdata),ze(Le,"onclosecdata"),Le.cdata="",Le.state=Ae.TEXT):te==="]"?Le.cdata+="]":(Le.cdata+="]]"+te,Le.state=Ae.CDATA);continue;case Ae.PROC_INST:te==="?"?Le.state=Ae.PROC_INST_ENDING:de(te)?Le.state=Ae.PROC_INST_BODY:Le.procInstName+=te;continue;case Ae.PROC_INST_BODY:if(!Le.procInstBody&&de(te))continue;te==="?"?Le.state=Ae.PROC_INST_ENDING:Le.procInstBody+=te;continue;case Ae.PROC_INST_ENDING:te===">"?(ze(Le,"onprocessinginstruction",{name:Le.procInstName,body:Le.procInstBody}),Le.procInstName=Le.procInstBody="",Le.state=Ae.TEXT):(Le.procInstBody+="?"+te,Le.state=Ae.PROC_INST_BODY);continue;case Ae.OPEN_TAG:Oe(Te,te)?Le.tagName+=te:(rt(Le),te===">"?$e(Le):te==="/"?Le.state=Ae.OPEN_TAG_SLASH:(de(te)||tt(Le,"Invalid character in tag name"),Le.state=Ae.ATTRIB));continue;case Ae.OPEN_TAG_SLASH:te===">"?($e(Le,!0),Ge(Le)):(tt(Le,"Forward-slash in opening tag not followed by >"),Le.state=Ae.ATTRIB);continue;case Ae.ATTRIB:if(de(te))continue;te===">"?$e(Le):te==="/"?Le.state=Ae.OPEN_TAG_SLASH:Oe(Ce,te)?(Le.attribName=te,Le.attribValue="",Le.state=Ae.ATTRIB_NAME):tt(Le,"Invalid attribute name");continue;case Ae.ATTRIB_NAME:te==="="?Le.state=Ae.ATTRIB_VALUE:te===">"?(tt(Le,"Attribute without value"),Le.attribValue=Le.attribName,Ke(Le),$e(Le)):de(te)?Le.state=Ae.ATTRIB_NAME_SAW_WHITE:Oe(Te,te)?Le.attribName+=te:tt(Le,"Invalid attribute name");continue;case Ae.ATTRIB_NAME_SAW_WHITE:if(te==="=")Le.state=Ae.ATTRIB_VALUE;else{if(de(te))continue;tt(Le,"Attribute without value"),Le.tag.attributes[Le.attribName]="",Le.attribValue="",ze(Le,"onattribute",{name:Le.attribName,value:""}),Le.attribName="",te===">"?$e(Le):Oe(Ce,te)?(Le.attribName=te,Le.state=Ae.ATTRIB_NAME):(tt(Le,"Invalid attribute name"),Le.state=Ae.ATTRIB)}continue;case Ae.ATTRIB_VALUE:if(de(te))continue;ye(te)?(Le.q=te,Le.state=Ae.ATTRIB_VALUE_QUOTED):(tt(Le,"Unquoted attribute value"),Le.state=Ae.ATTRIB_VALUE_UNQUOTED,Le.attribValue=te);continue;case Ae.ATTRIB_VALUE_QUOTED:if(te!==Le.q){te==="&"?Le.state=Ae.ATTRIB_VALUE_ENTITY_Q:Le.attribValue+=te;continue}Ke(Le),Le.q="",Le.state=Ae.ATTRIB_VALUE_CLOSED;continue;case Ae.ATTRIB_VALUE_CLOSED:de(te)?Le.state=Ae.ATTRIB:te===">"?$e(Le):te==="/"?Le.state=Ae.OPEN_TAG_SLASH:Oe(Ce,te)?(tt(Le,"No whitespace between attributes"),Le.attribName=te,Le.attribValue="",Le.state=Ae.ATTRIB_NAME):tt(Le,"Invalid attribute name");continue;case Ae.ATTRIB_VALUE_UNQUOTED:if(!Se(te)){te==="&"?Le.state=Ae.ATTRIB_VALUE_ENTITY_U:Le.attribValue+=te;continue}Ke(Le),te===">"?$e(Le):Le.state=Ae.ATTRIB;continue;case Ae.CLOSE_TAG:if(Le.tagName)te===">"?Ge(Le):Oe(Te,te)?Le.tagName+=te:Le.script?(Le.script+="</"+Le.tagName,Le.tagName="",Le.state=Ae.SCRIPT):(de(te)||tt(Le,"Invalid tagname in closing tag"),Le.state=Ae.CLOSE_TAG_SAW_WHITE);else{if(de(te))continue;Ne(Ce,te)?Le.script?(Le.script+="</"+te,Le.state=Ae.SCRIPT):tt(Le,"Invalid tagname in closing tag."):Le.tagName=te}continue;case Ae.CLOSE_TAG_SAW_WHITE:if(de(te))continue;te===">"?Ge(Le):tt(Le,"Invalid characters in closing tag");continue;case Ae.TEXT_ENTITY:case Ae.ATTRIB_VALUE_ENTITY_Q:case Ae.ATTRIB_VALUE_ENTITY_U:var Fe,we;switch(Le.state){case Ae.TEXT_ENTITY:Fe=Ae.TEXT,we="textNode";break;case Ae.ATTRIB_VALUE_ENTITY_Q:Fe=Ae.ATTRIB_VALUE_QUOTED,we="attribValue";break;case Ae.ATTRIB_VALUE_ENTITY_U:Fe=Ae.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}te===";"?(Le[we]+=ot(Le),Le.entity="",Le.state=Fe):Oe(Le.entity.length?ke:Me,te)?Le.entity+=te:(tt(Le,"Invalid character in entity name"),Le[we]+="&"+Le.entity+te,Le.entity="",Le.state=Fe);continue;default:throw new Error(Le,"Unknown state: "+Le.state)}return Le.position>=Le.bufferCheckPosition&&ee(Le),Le}String.fromCodePoint||function(){var Ye=String.fromCharCode,Le=Math.floor,_e=function(){var te=16384,ue=[],Re,Fe,we=-1,Ee=arguments.length;if(!Ee)return"";for(var Pe="";++we<Ee;){var Ue=Number(arguments[we]);if(!isFinite(Ue)||Ue<0||Ue>1114111||Le(Ue)!==Ue)throw RangeError("Invalid code point: "+Ue);Ue<=65535?ue.push(Ue):(Ue-=65536,Re=(Ue>>10)+55296,Fe=Ue%1024+56320,ue.push(Re,Fe)),(we+1===Ee||ue.length>te)&&(Pe+=Ye.apply(null,ue),ue.length=0)}return Pe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:_e,configurable:!0,writable:!0}):String.fromCodePoint=_e}()})(typeof xe=="undefined"?this.sax={}:xe)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,De,xe){De.exports=oe;var x=y("events").EventEmitter,z=y("inherits");z(oe,x),oe.Readable=y("readable-stream/lib/_stream_readable.js"),oe.Writable=y("readable-stream/lib/_stream_writable.js"),oe.Duplex=y("readable-stream/lib/_stream_duplex.js"),oe.Transform=y("readable-stream/lib/_stream_transform.js"),oe.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),oe.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),oe.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),oe.Stream=oe;function oe(){x.call(this)}oe.prototype.pipe=function(se,ee){var fe=this;function E(be){se.writable&&se.write(be)===!1&&fe.pause&&fe.pause()}fe.on("data",E);function ie(){fe.readable&&fe.resume&&fe.resume()}se.on("drain",ie),!se._isStdio&&(!ee||ee.end!==!1)&&(fe.on("end",le),fe.on("close",ce));var re=!1;function le(){re||(re=!0,se.end())}function ce(){re||(re=!0,typeof se.destroy=="function"&&se.destroy())}function he(be){if(ge(),x.listenerCount(this,"error")===0)throw be}fe.on("error",he),se.on("error",he);function ge(){fe.removeListener("data",E),se.removeListener("drain",ie),fe.removeListener("end",le),fe.removeListener("close",ce),fe.removeListener("error",he),se.removeListener("error",he),fe.removeListener("end",ge),fe.removeListener("close",ge),se.removeListener("close",ge)}return fe.on("end",ge),fe.on("close",ge),se.on("close",ge),se.emit("pipe",fe),se}},{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,De,xe){"use strict";function x(ie,re){ie.prototype=Object.create(re.prototype),ie.prototype.constructor=ie,ie.__proto__=re}var z={};function oe(ie,re,le){le||(le=Error);function ce(ge,be,me){return typeof re=="string"?re:re(ge,be,me)}var he=function(ge){x(be,ge);function be(me,ve,Ce){return ge.call(this,ce(me,ve,Ce))||this}return be}(le);he.prototype.name=le.name,he.prototype.code=ie,z[ie]=he}function se(ie,re){if(Array.isArray(ie)){var le=ie.length;return ie=ie.map(function(ce){return String(ce)}),le>2?"one of ".concat(re," ").concat(ie.slice(0,le-1).join(", "),", or ")+ie[le-1]:le===2?"one of ".concat(re," ").concat(ie[0]," or ").concat(ie[1]):"of ".concat(re," ").concat(ie[0])}else return"of ".concat(re," ").concat(String(ie))}function ee(ie,re,le){return ie.substr(!le||le<0?0:+le,re.length)===re}function fe(ie,re,le){return(le===void 0||le>ie.length)&&(le=ie.length),ie.substring(le-re.length,le)===re}function E(ie,re,le){return typeof le!="number"&&(le=0),le+re.length>ie.length?!1:ie.indexOf(re,le)!==-1}oe("ERR_INVALID_OPT_VALUE",function(ie,re){return'The value "'+re+'" is invalid for option "'+ie+'"'},TypeError),oe("ERR_INVALID_ARG_TYPE",function(ie,re,le){var ce;typeof re=="string"&&ee(re,"not ")?(ce="must not be",re=re.replace(/^not /,"")):ce="must be";var he;if(fe(ie," argument"))he="The ".concat(ie," ").concat(ce," ").concat(se(re,"type"));else{var ge=E(ie,".")?"property":"argument";he='The "'.concat(ie,'" ').concat(ge," ").concat(ce," ").concat(se(re,"type"))}return he+=". Received type ".concat(typeof le),he},TypeError),oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),oe("ERR_METHOD_NOT_IMPLEMENTED",function(ie){return"The "+ie+" method is not implemented"}),oe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),oe("ERR_STREAM_DESTROYED",function(ie){return"Cannot call "+ie+" after a stream was destroyed"}),oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),oe("ERR_STREAM_WRITE_AFTER_END","write after end"),oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),oe("ERR_UNKNOWN_ENCODING",function(ie){return"Unknown encoding: "+ie},TypeError),oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),De.exports.codes=z},{}],400:[function(y,De,xe){(function(x){(function(){"use strict";var z=Object.keys||function(ce){var he=[];for(var ge in ce)he.push(ge);return he};De.exports=ie;var oe=y("./_stream_readable"),se=y("./_stream_writable");y("inherits")(ie,oe);for(var ee=z(se.prototype),fe=0;fe<ee.length;fe++){var E=ee[fe];ie.prototype[E]||(ie.prototype[E]=se.prototype[E])}function ie(ce){if(!(this instanceof ie))return new ie(ce);oe.call(this,ce),se.call(this,ce),this.allowHalfOpen=!0,ce&&(ce.readable===!1&&(this.readable=!1),ce.writable===!1&&(this.writable=!1),ce.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(ie.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ie.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ie.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||x.nextTick(le,this)}function le(ce){ce.end()}Object.defineProperty(ie.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,De,xe){"use strict";De.exports=z;var x=y("./_stream_transform");y("inherits")(z,x);function z(oe){if(!(this instanceof z))return new z(oe);x.call(this,oe)}z.prototype._transform=function(oe,se,ee){ee(null,oe)}},{"./_stream_transform":403,inherits:364}],402:[function(y,De,xe){(function(x,z){(function(){"use strict";De.exports=ze;var oe;ze.ReadableState=Ze;var se=y("events").EventEmitter,ee=function(Ee,Pe){return Ee.listeners(Pe).length},fe=y("./internal/streams/stream"),E=y("buffer").Buffer,ie=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(we){return E.from(we)}function le(we){return E.isBuffer(we)||we instanceof ie}var ce=y("util"),he;ce&&ce.debuglog?he=ce.debuglog("stream"):he=function(){};var ge=y("./internal/streams/buffer_list"),be=y("./internal/streams/destroy"),me=y("./internal/streams/state"),ve=me.getHighWaterMark,Ce=y("../errors").codes,Te=Ce.ERR_INVALID_ARG_TYPE,Me=Ce.ERR_STREAM_PUSH_AFTER_EOF,ke=Ce.ERR_METHOD_NOT_IMPLEMENTED,de=Ce.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ye,Se,Oe;y("inherits")(ze,fe);var Ne=be.errorOrDestroy,Ae=["error","close","destroy","pause","resume"];function je(we,Ee,Pe){if(typeof we.prependListener=="function")return we.prependListener(Ee,Pe);!we._events||!we._events[Ee]?we.on(Ee,Pe):Array.isArray(we._events[Ee])?we._events[Ee].unshift(Pe):we._events[Ee]=[Pe,we._events[Ee]]}function Ze(we,Ee,Pe){oe=oe||y("./_stream_duplex"),we=we||{},typeof Pe!="boolean"&&(Pe=Ee instanceof oe),this.objectMode=!!we.objectMode,Pe&&(this.objectMode=this.objectMode||!!we.readableObjectMode),this.highWaterMark=ve(this,we,"readableHighWaterMark",Pe),this.buffer=new ge,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=we.emitClose!==!1,this.autoDestroy=!!we.autoDestroy,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(ye||(ye=y("string_decoder/").StringDecoder),this.decoder=new ye(we.encoding),this.encoding=we.encoding)}function ze(we){if(oe=oe||y("./_stream_duplex"),!(this instanceof ze))return new ze(we);var Ee=this instanceof oe;this._readableState=new Ze(we,this,Ee),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),fe.call(this)}Object.defineProperty(ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ee){this._readableState&&(this._readableState.destroyed=Ee)}}),ze.prototype.destroy=be.destroy,ze.prototype._undestroy=be.undestroy,ze.prototype._destroy=function(we,Ee){Ee(we)},ze.prototype.push=function(we,Ee){var Pe=this._readableState,Ue;return Pe.objectMode?Ue=!0:typeof we=="string"&&(Ee=Ee||Pe.defaultEncoding,Ee!==Pe.encoding&&(we=E.from(we,Ee),Ee=""),Ue=!0),Ve(this,we,Ee,!1,Ue)},ze.prototype.unshift=function(we){return Ve(this,we,null,!0,!1)};function Ve(we,Ee,Pe,Ue,qe){he("readableAddChunk",Ee);var nt=we._readableState;if(Ee===null)nt.reading=!1,et(we,nt);else{var dt;if(qe||(dt=Ie(nt,Ee)),dt)Ne(we,dt);else if(nt.objectMode||Ee&&Ee.length>0)if(typeof Ee!="string"&&!nt.objectMode&&Object.getPrototypeOf(Ee)!==E.prototype&&(Ee=re(Ee)),Ue)nt.endEmitted?Ne(we,new de):it(we,nt,Ee,!0);else if(nt.ended)Ne(we,new Me);else{if(nt.destroyed)return!1;nt.reading=!1,nt.decoder&&!Pe?(Ee=nt.decoder.write(Ee),nt.objectMode||Ee.length!==0?it(we,nt,Ee,!1):Ge(we,nt)):it(we,nt,Ee,!1)}else Ue||(nt.reading=!1,Ge(we,nt))}return!nt.ended&&(nt.length<nt.highWaterMark||nt.length===0)}function it(we,Ee,Pe,Ue){Ee.flowing&&Ee.length===0&&!Ee.sync?(Ee.awaitDrain=0,we.emit("data",Pe)):(Ee.length+=Ee.objectMode?1:Pe.length,Ue?Ee.buffer.unshift(Pe):Ee.buffer.push(Pe),Ee.needReadable&&Ke(we)),Ge(we,Ee)}function Ie(we,Ee){var Pe;return!le(Ee)&&typeof Ee!="string"&&Ee!==void 0&&!we.objectMode&&(Pe=new Te("chunk",["string","Buffer","Uint8Array"],Ee)),Pe}ze.prototype.isPaused=function(){return this._readableState.flowing===!1},ze.prototype.setEncoding=function(we){ye||(ye=y("string_decoder/").StringDecoder);var Ee=new ye(we);this._readableState.decoder=Ee,this._readableState.encoding=this._readableState.decoder.encoding;for(var Pe=this._readableState.buffer.head,Ue="";Pe!==null;)Ue+=Ee.write(Pe.data),Pe=Pe.next;return this._readableState.buffer.clear(),Ue!==""&&this._readableState.buffer.push(Ue),this._readableState.length=Ue.length,this};var We=1073741824;function tt(we){return we>=We?we=We:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function rt(we,Ee){return we<=0||Ee.length===0&&Ee.ended?0:Ee.objectMode?1:we!==we?Ee.flowing&&Ee.length?Ee.buffer.head.data.length:Ee.length:(we>Ee.highWaterMark&&(Ee.highWaterMark=tt(we)),we<=Ee.length?we:Ee.ended?Ee.length:(Ee.needReadable=!0,0))}ze.prototype.read=function(we){he("read",we),we=parseInt(we,10);var Ee=this._readableState,Pe=we;if(we!==0&&(Ee.emittedReadable=!1),we===0&&Ee.needReadable&&((Ee.highWaterMark!==0?Ee.length>=Ee.highWaterMark:Ee.length>0)||Ee.ended))return he("read: emitReadable",Ee.length,Ee.ended),Ee.length===0&&Ee.ended?ue(this):Ke(this),null;if(we=rt(we,Ee),we===0&&Ee.ended)return Ee.length===0&&ue(this),null;var Ue=Ee.needReadable;he("need readable",Ue),(Ee.length===0||Ee.length-we<Ee.highWaterMark)&&(Ue=!0,he("length less than watermark",Ue)),Ee.ended||Ee.reading?(Ue=!1,he("reading or ended",Ue)):Ue&&(he("do read"),Ee.reading=!0,Ee.sync=!0,Ee.length===0&&(Ee.needReadable=!0),this._read(Ee.highWaterMark),Ee.sync=!1,Ee.reading||(we=rt(Pe,Ee)));var qe;return we>0?qe=te(we,Ee):qe=null,qe===null?(Ee.needReadable=Ee.length<=Ee.highWaterMark,we=0):(Ee.length-=we,Ee.awaitDrain=0),Ee.length===0&&(Ee.ended||(Ee.needReadable=!0),Pe!==we&&Ee.ended&&ue(this)),qe!==null&&this.emit("data",qe),qe};function et(we,Ee){if(he("onEofChunk"),!Ee.ended){if(Ee.decoder){var Pe=Ee.decoder.end();Pe&&Pe.length&&(Ee.buffer.push(Pe),Ee.length+=Ee.objectMode?1:Pe.length)}Ee.ended=!0,Ee.sync?Ke(we):(Ee.needReadable=!1,Ee.emittedReadable||(Ee.emittedReadable=!0,$e(we)))}}function Ke(we){var Ee=we._readableState;he("emitReadable",Ee.needReadable,Ee.emittedReadable),Ee.needReadable=!1,Ee.emittedReadable||(he("emitReadable",Ee.flowing),Ee.emittedReadable=!0,x.nextTick($e,we))}function $e(we){var Ee=we._readableState;he("emitReadable_",Ee.destroyed,Ee.length,Ee.ended),!Ee.destroyed&&(Ee.length||Ee.ended)&&(we.emit("readable"),Ee.emittedReadable=!1),Ee.needReadable=!Ee.flowing&&!Ee.ended&&Ee.length<=Ee.highWaterMark,_e(we)}function Ge(we,Ee){Ee.readingMore||(Ee.readingMore=!0,x.nextTick(ot,we,Ee))}function ot(we,Ee){for(;!Ee.reading&&!Ee.ended&&(Ee.length<Ee.highWaterMark||Ee.flowing&&Ee.length===0);){var Pe=Ee.length;if(he("maybeReadMore read 0"),we.read(0),Pe===Ee.length)break}Ee.readingMore=!1}ze.prototype._read=function(we){Ne(this,new ke("_read()"))},ze.prototype.pipe=function(we,Ee){var Pe=this,Ue=this._readableState;switch(Ue.pipesCount){case 0:Ue.pipes=we;break;case 1:Ue.pipes=[Ue.pipes,we];break;default:Ue.pipes.push(we);break}Ue.pipesCount+=1,he("pipe count=%d opts=%j",Ue.pipesCount,Ee);var qe=(!Ee||Ee.end!==!1)&&we!==x.stdout&&we!==x.stderr,nt=qe?lt:pt;Ue.endEmitted?x.nextTick(nt):Pe.once("end",nt),we.on("unpipe",dt);function dt(Ot,At){he("onunpipe"),Ot===Pe&&At&&At.hasUnpiped===!1&&(At.hasUnpiped=!0,gt())}function lt(){he("onend"),we.end()}var ht=Je(Pe);we.on("drain",ht);var St=!1;function gt(){he("cleanup"),we.removeListener("close",Ct),we.removeListener("finish",wt),we.removeListener("drain",ht),we.removeListener("error",mt),we.removeListener("unpipe",dt),Pe.removeListener("end",lt),Pe.removeListener("end",pt),Pe.removeListener("data",yt),St=!0,Ue.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&ht()}Pe.on("data",yt);function yt(Ot){he("ondata");var At=we.write(Ot);he("dest.write",At),At===!1&&((Ue.pipesCount===1&&Ue.pipes===we||Ue.pipesCount>1&&Fe(Ue.pipes,we)!==-1)&&!St&&(he("false write response, pause",Ue.awaitDrain),Ue.awaitDrain++),Pe.pause())}function mt(Ot){he("onerror",Ot),pt(),we.removeListener("error",mt),ee(we,"error")===0&&Ne(we,Ot)}je(we,"error",mt);function Ct(){we.removeListener("finish",wt),pt()}we.once("close",Ct);function wt(){he("onfinish"),we.removeListener("close",Ct),pt()}we.once("finish",wt);function pt(){he("unpipe"),Pe.unpipe(we)}return we.emit("pipe",Pe),Ue.flowing||(he("pipe resume"),Pe.resume()),we};function Je(we){return function(){var Pe=we._readableState;he("pipeOnDrain",Pe.awaitDrain),Pe.awaitDrain&&Pe.awaitDrain--,Pe.awaitDrain===0&&ee(we,"data")&&(Pe.flowing=!0,_e(we))}}ze.prototype.unpipe=function(we){var Ee=this._readableState,Pe={hasUnpiped:!1};if(Ee.pipesCount===0)return this;if(Ee.pipesCount===1)return we&&we!==Ee.pipes?this:(we||(we=Ee.pipes),Ee.pipes=null,Ee.pipesCount=0,Ee.flowing=!1,we&&we.emit("unpipe",this,Pe),this);if(!we){var Ue=Ee.pipes,qe=Ee.pipesCount;Ee.pipes=null,Ee.pipesCount=0,Ee.flowing=!1;for(var nt=0;nt<qe;nt++)Ue[nt].emit("unpipe",this,{hasUnpiped:!1});return this}var dt=Fe(Ee.pipes,we);return dt===-1?this:(Ee.pipes.splice(dt,1),Ee.pipesCount-=1,Ee.pipesCount===1&&(Ee.pipes=Ee.pipes[0]),we.emit("unpipe",this,Pe),this)},ze.prototype.on=function(we,Ee){var Pe=fe.prototype.on.call(this,we,Ee),Ue=this._readableState;return we==="data"?(Ue.readableListening=this.listenerCount("readable")>0,Ue.flowing!==!1&&this.resume()):we==="readable"&&!Ue.endEmitted&&!Ue.readableListening&&(Ue.readableListening=Ue.needReadable=!0,Ue.flowing=!1,Ue.emittedReadable=!1,he("on readable",Ue.length,Ue.reading),Ue.length?Ke(this):Ue.reading||x.nextTick(st,this)),Pe},ze.prototype.addListener=ze.prototype.on,ze.prototype.removeListener=function(we,Ee){var Pe=fe.prototype.removeListener.call(this,we,Ee);return we==="readable"&&x.nextTick(ct,this),Pe},ze.prototype.removeAllListeners=function(we){var Ee=fe.prototype.removeAllListeners.apply(this,arguments);return(we==="readable"||we===void 0)&&x.nextTick(ct,this),Ee};function ct(we){var Ee=we._readableState;Ee.readableListening=we.listenerCount("readable")>0,Ee.resumeScheduled&&!Ee.paused?Ee.flowing=!0:we.listenerCount("data")>0&&we.resume()}function st(we){he("readable nexttick read 0"),we.read(0)}ze.prototype.resume=function(){var we=this._readableState;return we.flowing||(he("resume"),we.flowing=!we.readableListening,Ye(this,we)),we.paused=!1,this};function Ye(we,Ee){Ee.resumeScheduled||(Ee.resumeScheduled=!0,x.nextTick(Le,we,Ee))}function Le(we,Ee){he("resume",Ee.reading),Ee.reading||we.read(0),Ee.resumeScheduled=!1,we.emit("resume"),_e(we),Ee.flowing&&!Ee.reading&&we.read(0)}ze.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 _e(we){var Ee=we._readableState;for(he("flow",Ee.flowing);Ee.flowing&&we.read()!==null;);}ze.prototype.wrap=function(we){var Ee=this,Pe=this._readableState,Ue=!1;we.on("end",function(){if(he("wrapped end"),Pe.decoder&&!Pe.ended){var dt=Pe.decoder.end();dt&&dt.length&&Ee.push(dt)}Ee.push(null)}),we.on("data",function(dt){if(he("wrapped data"),Pe.decoder&&(dt=Pe.decoder.write(dt)),!(Pe.objectMode&&dt==null)&&!(!Pe.objectMode&&(!dt||!dt.length))){var lt=Ee.push(dt);lt||(Ue=!0,we.pause())}});for(var qe in we)this[qe]===void 0&&typeof we[qe]=="function"&&(this[qe]=function(lt){return function(){return we[lt].apply(we,arguments)}}(qe));for(var nt=0;nt<Ae.length;nt++)we.on(Ae[nt],this.emit.bind(this,Ae[nt]));return this._read=function(dt){he("wrapped _read",dt),Ue&&(Ue=!1,we.resume())},this},typeof Symbol=="function"&&(ze.prototype[Symbol.asyncIterator]=function(){return Se===void 0&&(Se=y("./internal/streams/async_iterator")),Se(this)}),Object.defineProperty(ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ee){this._readableState&&(this._readableState.flowing=Ee)}}),ze._fromList=te,Object.defineProperty(ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(we,Ee){if(Ee.length===0)return null;var Pe;return Ee.objectMode?Pe=Ee.buffer.shift():!we||we>=Ee.length?(Ee.decoder?Pe=Ee.buffer.join(""):Ee.buffer.length===1?Pe=Ee.buffer.first():Pe=Ee.buffer.concat(Ee.length),Ee.buffer.clear()):Pe=Ee.buffer.consume(we,Ee.decoder),Pe}function ue(we){var Ee=we._readableState;he("endReadable",Ee.endEmitted),Ee.endEmitted||(Ee.ended=!0,x.nextTick(Re,Ee,we))}function Re(we,Ee){if(he("endReadableNT",we.endEmitted,we.length),!we.endEmitted&&we.length===0&&(we.endEmitted=!0,Ee.readable=!1,Ee.emit("end"),we.autoDestroy)){var Pe=Ee._writableState;(!Pe||Pe.autoDestroy&&Pe.finished)&&Ee.destroy()}}typeof Symbol=="function"&&(ze.from=function(we,Ee){return Oe===void 0&&(Oe=y("./internal/streams/from")),Oe(ze,we,Ee)});function Fe(we,Ee){for(var Pe=0,Ue=we.length;Pe<Ue;Pe++)if(we[Pe]===Ee)return Pe;return-1}}).call(this)}).call(this,y("_process"),typeof Gt!="undefined"?Gt: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,De,xe){"use strict";De.exports=ie;var x=y("../errors").codes,z=x.ERR_METHOD_NOT_IMPLEMENTED,oe=x.ERR_MULTIPLE_CALLBACK,se=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=x.ERR_TRANSFORM_WITH_LENGTH_0,fe=y("./_stream_duplex");y("inherits")(ie,fe);function E(ce,he){var ge=this._transformState;ge.transforming=!1;var be=ge.writecb;if(be===null)return this.emit("error",new oe);ge.writechunk=null,ge.writecb=null,he!=null&&this.push(he),be(ce);var me=this._readableState;me.reading=!1,(me.needReadable||me.length<me.highWaterMark)&&this._read(me.highWaterMark)}function ie(ce){if(!(this instanceof ie))return new ie(ce);fe.call(this,ce),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ce&&(typeof ce.transform=="function"&&(this._transform=ce.transform),typeof ce.flush=="function"&&(this._flush=ce.flush)),this.on("prefinish",re)}function re(){var ce=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(he,ge){le(ce,he,ge)}):le(this,null,null)}ie.prototype.push=function(ce,he){return this._transformState.needTransform=!1,fe.prototype.push.call(this,ce,he)},ie.prototype._transform=function(ce,he,ge){ge(new z("_transform()"))},ie.prototype._write=function(ce,he,ge){var be=this._transformState;if(be.writecb=ge,be.writechunk=ce,be.writeencoding=he,!be.transforming){var me=this._readableState;(be.needTransform||me.needReadable||me.length<me.highWaterMark)&&this._read(me.highWaterMark)}},ie.prototype._read=function(ce){var he=this._transformState;he.writechunk!==null&&!he.transforming?(he.transforming=!0,this._transform(he.writechunk,he.writeencoding,he.afterTransform)):he.needTransform=!0},ie.prototype._destroy=function(ce,he){fe.prototype._destroy.call(this,ce,function(ge){he(ge)})};function le(ce,he,ge){if(he)return ce.emit("error",he);if(ge!=null&&ce.push(ge),ce._writableState.length)throw new ee;if(ce._transformState.transforming)throw new se;return ce.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,De,xe){(function(x,z){(function(){"use strict";De.exports=Ze;function oe(_e,te,ue){this.chunk=_e,this.encoding=te,this.callback=ue,this.next=null}function se(_e){var te=this;this.next=null,this.entry=null,this.finish=function(){Le(te,_e)}}var ee;Ze.WritableState=Ae;var fe={deprecate:y("util-deprecate")},E=y("./internal/streams/stream"),ie=y("buffer").Buffer,re=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function le(_e){return ie.from(_e)}function ce(_e){return ie.isBuffer(_e)||_e instanceof re}var he=y("./internal/streams/destroy"),ge=y("./internal/streams/state"),be=ge.getHighWaterMark,me=y("../errors").codes,ve=me.ERR_INVALID_ARG_TYPE,Ce=me.ERR_METHOD_NOT_IMPLEMENTED,Te=me.ERR_MULTIPLE_CALLBACK,Me=me.ERR_STREAM_CANNOT_PIPE,ke=me.ERR_STREAM_DESTROYED,de=me.ERR_STREAM_NULL_VALUES,ye=me.ERR_STREAM_WRITE_AFTER_END,Se=me.ERR_UNKNOWN_ENCODING,Oe=he.errorOrDestroy;y("inherits")(Ze,E);function Ne(){}function Ae(_e,te,ue){ee=ee||y("./_stream_duplex"),_e=_e||{},typeof ue!="boolean"&&(ue=te instanceof ee),this.objectMode=!!_e.objectMode,ue&&(this.objectMode=this.objectMode||!!_e.writableObjectMode),this.highWaterMark=be(this,_e,"writableHighWaterMark",ue),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Re=_e.decodeStrings===!1;this.decodeStrings=!Re,this.defaultEncoding=_e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){et(te,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=_e.emitClose!==!1,this.autoDestroy=!!_e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new se(this)}Ae.prototype.getBuffer=function(){for(var te=this.bufferedRequest,ue=[];te;)ue.push(te),te=te.next;return ue},function(){try{Object.defineProperty(Ae.prototype,"buffer",{get:fe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_e){}}();var je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(je=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ze,Symbol.hasInstance,{value:function(te){return je.call(this,te)?!0:this!==Ze?!1:te&&te._writableState instanceof Ae}})):je=function(te){return te instanceof this};function Ze(_e){ee=ee||y("./_stream_duplex");var te=this instanceof ee;if(!te&&!je.call(Ze,this))return new Ze(_e);this._writableState=new Ae(_e,this,te),this.writable=!0,_e&&(typeof _e.write=="function"&&(this._write=_e.write),typeof _e.writev=="function"&&(this._writev=_e.writev),typeof _e.destroy=="function"&&(this._destroy=_e.destroy),typeof _e.final=="function"&&(this._final=_e.final)),E.call(this)}Ze.prototype.pipe=function(){Oe(this,new Me)};function ze(_e,te){var ue=new ye;Oe(_e,ue),x.nextTick(te,ue)}function Ve(_e,te,ue,Re){var Fe;return ue===null?Fe=new de:typeof ue!="string"&&!te.objectMode&&(Fe=new ve("chunk",["string","Buffer"],ue)),Fe?(Oe(_e,Fe),x.nextTick(Re,Fe),!1):!0}Ze.prototype.write=function(_e,te,ue){var Re=this._writableState,Fe=!1,we=!Re.objectMode&&ce(_e);return we&&!ie.isBuffer(_e)&&(_e=le(_e)),typeof te=="function"&&(ue=te,te=null),we?te="buffer":te||(te=Re.defaultEncoding),typeof ue!="function"&&(ue=Ne),Re.ending?ze(this,ue):(we||Ve(this,Re,_e,ue))&&(Re.pendingcb++,Fe=Ie(this,Re,we,_e,te,ue)),Fe},Ze.prototype.cork=function(){this._writableState.corked++},Ze.prototype.uncork=function(){var _e=this._writableState;_e.corked&&(_e.corked--,!_e.writing&&!_e.corked&&!_e.bufferProcessing&&_e.bufferedRequest&&Ge(this,_e))},Ze.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(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function it(_e,te,ue){return!_e.objectMode&&_e.decodeStrings!==!1&&typeof te=="string"&&(te=ie.from(te,ue)),te}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ie(_e,te,ue,Re,Fe,we){if(!ue){var Ee=it(te,Re,Fe);Re!==Ee&&(ue=!0,Fe="buffer",Re=Ee)}var Pe=te.objectMode?1:Re.length;te.length+=Pe;var Ue=te.length<te.highWaterMark;if(Ue||(te.needDrain=!0),te.writing||te.corked){var qe=te.lastBufferedRequest;te.lastBufferedRequest={chunk:Re,encoding:Fe,isBuf:ue,callback:we,next:null},qe?qe.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else We(_e,te,!1,Pe,Re,Fe,we);return Ue}function We(_e,te,ue,Re,Fe,we,Ee){te.writelen=Re,te.writecb=Ee,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new ke("write")):ue?_e._writev(Fe,te.onwrite):_e._write(Fe,we,te.onwrite),te.sync=!1}function tt(_e,te,ue,Re,Fe){--te.pendingcb,ue?(x.nextTick(Fe,Re),x.nextTick(st,_e,te),_e._writableState.errorEmitted=!0,Oe(_e,Re)):(Fe(Re),_e._writableState.errorEmitted=!0,Oe(_e,Re),st(_e,te))}function rt(_e){_e.writing=!1,_e.writecb=null,_e.length-=_e.writelen,_e.writelen=0}function et(_e,te){var ue=_e._writableState,Re=ue.sync,Fe=ue.writecb;if(typeof Fe!="function")throw new Te;if(rt(ue),te)tt(_e,ue,Re,te,Fe);else{var we=ot(ue)||_e.destroyed;!we&&!ue.corked&&!ue.bufferProcessing&&ue.bufferedRequest&&Ge(_e,ue),Re?x.nextTick(Ke,_e,ue,we,Fe):Ke(_e,ue,we,Fe)}}function Ke(_e,te,ue,Re){ue||$e(_e,te),te.pendingcb--,Re(),st(_e,te)}function $e(_e,te){te.length===0&&te.needDrain&&(te.needDrain=!1,_e.emit("drain"))}function Ge(_e,te){te.bufferProcessing=!0;var ue=te.bufferedRequest;if(_e._writev&&ue&&ue.next){var Re=te.bufferedRequestCount,Fe=new Array(Re),we=te.corkedRequestsFree;we.entry=ue;for(var Ee=0,Pe=!0;ue;)Fe[Ee]=ue,ue.isBuf||(Pe=!1),ue=ue.next,Ee+=1;Fe.allBuffers=Pe,We(_e,te,!0,te.length,Fe,"",we.finish),te.pendingcb++,te.lastBufferedRequest=null,we.next?(te.corkedRequestsFree=we.next,we.next=null):te.corkedRequestsFree=new se(te),te.bufferedRequestCount=0}else{for(;ue;){var Ue=ue.chunk,qe=ue.encoding,nt=ue.callback,dt=te.objectMode?1:Ue.length;if(We(_e,te,!1,dt,Ue,qe,nt),ue=ue.next,te.bufferedRequestCount--,te.writing)break}ue===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=ue,te.bufferProcessing=!1}Ze.prototype._write=function(_e,te,ue){ue(new Ce("_write()"))},Ze.prototype._writev=null,Ze.prototype.end=function(_e,te,ue){var Re=this._writableState;return typeof _e=="function"?(ue=_e,_e=null,te=null):typeof te=="function"&&(ue=te,te=null),_e!=null&&this.write(_e,te),Re.corked&&(Re.corked=1,this.uncork()),Re.ending||Ye(this,Re,ue),this},Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ot(_e){return _e.ending&&_e.length===0&&_e.bufferedRequest===null&&!_e.finished&&!_e.writing}function Je(_e,te){_e._final(function(ue){te.pendingcb--,ue&&Oe(_e,ue),te.prefinished=!0,_e.emit("prefinish"),st(_e,te)})}function ct(_e,te){!te.prefinished&&!te.finalCalled&&(typeof _e._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,x.nextTick(Je,_e,te)):(te.prefinished=!0,_e.emit("prefinish")))}function st(_e,te){var ue=ot(te);if(ue&&(ct(_e,te),te.pendingcb===0&&(te.finished=!0,_e.emit("finish"),te.autoDestroy))){var Re=_e._readableState;(!Re||Re.autoDestroy&&Re.endEmitted)&&_e.destroy()}return ue}function Ye(_e,te,ue){te.ending=!0,st(_e,te),ue&&(te.finished?x.nextTick(ue):_e.once("finish",ue)),te.ended=!0,_e.writable=!1}function Le(_e,te,ue){var Re=_e.entry;for(_e.entry=null;Re;){var Fe=Re.callback;te.pendingcb--,Fe(ue),Re=Re.next}te.corkedRequestsFree.next=_e}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),Ze.prototype.destroy=he.destroy,Ze.prototype._undestroy=he.undestroy,Ze.prototype._destroy=function(_e,te){te(_e)}}).call(this)}).call(this,y("_process"),typeof Gt!="undefined"?Gt: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,De,xe){(function(x){(function(){"use strict";var z;function oe(de,ye,Se){return ye=se(ye),ye in de?Object.defineProperty(de,ye,{value:Se,enumerable:!0,configurable:!0,writable:!0}):de[ye]=Se,de}function se(de){var ye=ee(de,"string");return typeof ye=="symbol"?ye:String(ye)}function ee(de,ye){if(typeof de!="object"||de===null)return de;var Se=de[Symbol.toPrimitive];if(Se!==void 0){var Oe=Se.call(de,ye||"default");if(typeof Oe!="object")return Oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ye==="string"?String:Number)(de)}var fe=y("./end-of-stream"),E=Symbol("lastResolve"),ie=Symbol("lastReject"),re=Symbol("error"),le=Symbol("ended"),ce=Symbol("lastPromise"),he=Symbol("handlePromise"),ge=Symbol("stream");function be(de,ye){return{value:de,done:ye}}function me(de){var ye=de[E];if(ye!==null){var Se=de[ge].read();Se!==null&&(de[ce]=null,de[E]=null,de[ie]=null,ye(be(Se,!1)))}}function ve(de){x.nextTick(me,de)}function Ce(de,ye){return function(Se,Oe){de.then(function(){if(ye[le]){Se(be(void 0,!0));return}ye[he](Se,Oe)},Oe)}}var Te=Object.getPrototypeOf(function(){}),Me=Object.setPrototypeOf((z={get stream(){return this[ge]},next:function(){var ye=this,Se=this[re];if(Se!==null)return Promise.reject(Se);if(this[le])return Promise.resolve(be(void 0,!0));if(this[ge].destroyed)return new Promise(function(je,Ze){x.nextTick(function(){ye[re]?Ze(ye[re]):je(be(void 0,!0))})});var Oe=this[ce],Ne;if(Oe)Ne=new Promise(Ce(Oe,this));else{var Ae=this[ge].read();if(Ae!==null)return Promise.resolve(be(Ae,!1));Ne=new Promise(this[he])}return this[ce]=Ne,Ne}},oe(z,Symbol.asyncIterator,function(){return this}),oe(z,"return",function(){var ye=this;return new Promise(function(Se,Oe){ye[ge].destroy(null,function(Ne){if(Ne){Oe(Ne);return}Se(be(void 0,!0))})})}),z),Te),ke=function(ye){var Se,Oe=Object.create(Me,(Se={},oe(Se,ge,{value:ye,writable:!0}),oe(Se,E,{value:null,writable:!0}),oe(Se,ie,{value:null,writable:!0}),oe(Se,re,{value:null,writable:!0}),oe(Se,le,{value:ye._readableState.endEmitted,writable:!0}),oe(Se,he,{value:function(Ae,je){var Ze=Oe[ge].read();Ze?(Oe[ce]=null,Oe[E]=null,Oe[ie]=null,Ae(be(Ze,!1))):(Oe[E]=Ae,Oe[ie]=je)},writable:!0}),Se));return Oe[ce]=null,fe(ye,function(Ne){if(Ne&&Ne.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ae=Oe[ie];Ae!==null&&(Oe[ce]=null,Oe[E]=null,Oe[ie]=null,Ae(Ne)),Oe[re]=Ne;return}var je=Oe[E];je!==null&&(Oe[ce]=null,Oe[E]=null,Oe[ie]=null,je(be(void 0,!0))),Oe[le]=!0}),ye.on("readable",ve.bind(null,Oe)),Oe};De.exports=ke}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,De,xe){"use strict";function x(me,ve){var Ce=Object.keys(me);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(me);ve&&(Te=Te.filter(function(Me){return Object.getOwnPropertyDescriptor(me,Me).enumerable})),Ce.push.apply(Ce,Te)}return Ce}function z(me){for(var ve=1;ve<arguments.length;ve++){var Ce=arguments[ve]!=null?arguments[ve]:{};ve%2?x(Object(Ce),!0).forEach(function(Te){oe(me,Te,Ce[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(me,Object.getOwnPropertyDescriptors(Ce)):x(Object(Ce)).forEach(function(Te){Object.defineProperty(me,Te,Object.getOwnPropertyDescriptor(Ce,Te))})}return me}function oe(me,ve,Ce){return ve=E(ve),ve in me?Object.defineProperty(me,ve,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):me[ve]=Ce,me}function se(me,ve){if(!(me instanceof ve))throw new TypeError("Cannot call a class as a function")}function ee(me,ve){for(var Ce=0;Ce<ve.length;Ce++){var Te=ve[Ce];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(me,E(Te.key),Te)}}function fe(me,ve,Ce){return ve&&ee(me.prototype,ve),Ce&&ee(me,Ce),Object.defineProperty(me,"prototype",{writable:!1}),me}function E(me){var ve=ie(me,"string");return typeof ve=="symbol"?ve:String(ve)}function ie(me,ve){if(typeof me!="object"||me===null)return me;var Ce=me[Symbol.toPrimitive];if(Ce!==void 0){var Te=Ce.call(me,ve||"default");if(typeof Te!="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ve==="string"?String:Number)(me)}var re=y("buffer"),le=re.Buffer,ce=y("util"),he=ce.inspect,ge=he&&he.custom||"inspect";function be(me,ve,Ce){le.prototype.copy.call(me,ve,Ce)}De.exports=function(){function me(){se(this,me),this.head=null,this.tail=null,this.length=0}return fe(me,[{key:"push",value:function(Ce){var Te={data:Ce,next:null};this.length>0?this.tail.next=Te:this.head=Te,this.tail=Te,++this.length}},{key:"unshift",value:function(Ce){var Te={data:Ce,next:this.head};this.length===0&&(this.tail=Te),this.head=Te,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ce=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ce}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ce){if(this.length===0)return"";for(var Te=this.head,Me=""+Te.data;Te=Te.next;)Me+=Ce+Te.data;return Me}},{key:"concat",value:function(Ce){if(this.length===0)return le.alloc(0);for(var Te=le.allocUnsafe(Ce>>>0),Me=this.head,ke=0;Me;)be(Me.data,Te,ke),ke+=Me.data.length,Me=Me.next;return Te}},{key:"consume",value:function(Ce,Te){var Me;return Ce<this.head.data.length?(Me=this.head.data.slice(0,Ce),this.head.data=this.head.data.slice(Ce)):Ce===this.head.data.length?Me=this.shift():Me=Te?this._getString(Ce):this._getBuffer(Ce),Me}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ce){var Te=this.head,Me=1,ke=Te.data;for(Ce-=ke.length;Te=Te.next;){var de=Te.data,ye=Ce>de.length?de.length:Ce;if(ye===de.length?ke+=de:ke+=de.slice(0,Ce),Ce-=ye,Ce===0){ye===de.length?(++Me,Te.next?this.head=Te.next:this.head=this.tail=null):(this.head=Te,Te.data=de.slice(ye));break}++Me}return this.length-=Me,ke}},{key:"_getBuffer",value:function(Ce){var Te=le.allocUnsafe(Ce),Me=this.head,ke=1;for(Me.data.copy(Te),Ce-=Me.data.length;Me=Me.next;){var de=Me.data,ye=Ce>de.length?de.length:Ce;if(de.copy(Te,Te.length-Ce,0,ye),Ce-=ye,Ce===0){ye===de.length?(++ke,Me.next?this.head=Me.next:this.head=this.tail=null):(this.head=Me,Me.data=de.slice(ye));break}++ke}return this.length-=ke,Te}},{key:ge,value:function(Ce,Te){return he(this,z(z({},Te),{},{depth:0,customInspect:!1}))}}]),me}()},{buffer:90,util:89}],407:[function(y,De,xe){(function(x){(function(){"use strict";function z(ie,re){var le=this,ce=this._readableState&&this._readableState.destroyed,he=this._writableState&&this._writableState.destroyed;return ce||he?(re?re(ie):ie&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(fe,this,ie)):x.nextTick(fe,this,ie)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ie||null,function(ge){!re&&ge?le._writableState?le._writableState.errorEmitted?x.nextTick(se,le):(le._writableState.errorEmitted=!0,x.nextTick(oe,le,ge)):x.nextTick(oe,le,ge):re?(x.nextTick(se,le),re(ge)):x.nextTick(se,le)}),this)}function oe(ie,re){fe(ie,re),se(ie)}function se(ie){ie._writableState&&!ie._writableState.emitClose||ie._readableState&&!ie._readableState.emitClose||ie.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 fe(ie,re){ie.emit("error",re)}function E(ie,re){var le=ie._readableState,ce=ie._writableState;le&&le.autoDestroy||ce&&ce.autoDestroy?ie.destroy(re):ie.emit("error",re)}De.exports={destroy:z,undestroy:ee,errorOrDestroy:E}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,De,xe){"use strict";var x=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(fe){var E=!1;return function(){if(!E){E=!0;for(var ie=arguments.length,re=new Array(ie),le=0;le<ie;le++)re[le]=arguments[le];fe.apply(this,re)}}}function oe(){}function se(fe){return fe.setHeader&&typeof fe.abort=="function"}function ee(fe,E,ie){if(typeof E=="function")return ee(fe,null,E);E||(E={}),ie=z(ie||oe);var re=E.readable||E.readable!==!1&&fe.readable,le=E.writable||E.writable!==!1&&fe.writable,ce=function(){fe.writable||ge()},he=fe._writableState&&fe._writableState.finished,ge=function(){le=!1,he=!0,re||ie.call(fe)},be=fe._readableState&&fe._readableState.endEmitted,me=function(){re=!1,be=!0,le||ie.call(fe)},ve=function(ke){ie.call(fe,ke)},Ce=function(){var ke;if(re&&!be)return(!fe._readableState||!fe._readableState.ended)&&(ke=new x),ie.call(fe,ke);if(le&&!he)return(!fe._writableState||!fe._writableState.ended)&&(ke=new x),ie.call(fe,ke)},Te=function(){fe.req.on("finish",ge)};return se(fe)?(fe.on("complete",ge),fe.on("abort",Ce),fe.req?Te():fe.on("request",Te)):le&&!fe._writableState&&(fe.on("end",ce),fe.on("close",ce)),fe.on("end",me),fe.on("finish",ge),E.error!==!1&&fe.on("error",ve),fe.on("close",Ce),function(){fe.removeListener("complete",ge),fe.removeListener("abort",Ce),fe.removeListener("request",Te),fe.req&&fe.req.removeListener("finish",ge),fe.removeListener("end",ce),fe.removeListener("close",ce),fe.removeListener("finish",ge),fe.removeListener("end",me),fe.removeListener("error",ve),fe.removeListener("close",Ce)}}De.exports=ee},{"../../../errors":399}],409:[function(y,De,xe){De.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,De,xe){"use strict";var x;function z(ge){var be=!1;return function(){be||(be=!0,ge.apply(void 0,arguments))}}var oe=y("../../../errors").codes,se=oe.ERR_MISSING_ARGS,ee=oe.ERR_STREAM_DESTROYED;function fe(ge){if(ge)throw ge}function E(ge){return ge.setHeader&&typeof ge.abort=="function"}function ie(ge,be,me,ve){ve=z(ve);var Ce=!1;ge.on("close",function(){Ce=!0}),x===void 0&&(x=y("./end-of-stream")),x(ge,{readable:be,writable:me},function(Me){if(Me)return ve(Me);Ce=!0,ve()});var Te=!1;return function(Me){if(!Ce&&!Te){if(Te=!0,E(ge))return ge.abort();if(typeof ge.destroy=="function")return ge.destroy();ve(Me||new ee("pipe"))}}}function re(ge){ge()}function le(ge,be){return ge.pipe(be)}function ce(ge){return!ge.length||typeof ge[ge.length-1]!="function"?fe:ge.pop()}function he(){for(var ge=arguments.length,be=new Array(ge),me=0;me<ge;me++)be[me]=arguments[me];var ve=ce(be);if(Array.isArray(be[0])&&(be=be[0]),be.length<2)throw new se("streams");var Ce,Te=be.map(function(Me,ke){var de=ke<be.length-1,ye=ke>0;return ie(Me,de,ye,function(Se){Ce||(Ce=Se),Se&&Te.forEach(re),!de&&(Te.forEach(re),ve(Ce))})});return be.reduce(le)}De.exports=he},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,De,xe){"use strict";var x=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(se,ee,fe){return se.highWaterMark!=null?se.highWaterMark:ee?se[fe]:null}function oe(se,ee,fe,E){var ie=z(ee,E,fe);if(ie!=null){if(!(isFinite(ie)&&Math.floor(ie)===ie)||ie<0){var re=E?fe:"highWaterMark";throw new x(re,ie)}return Math.floor(ie)}return se.objectMode?16:16*1024}De.exports={getHighWaterMark:oe}},{"../../../errors":399}],412:[function(y,De,xe){arguments[4][393][0].apply(xe,arguments)},{dup:393,events:344}],413:[function(y,De,xe){"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 oe(Te){if(!Te)return"utf8";for(var Me;;)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(Me)return;Te=(""+Te).toLowerCase(),Me=!0}}function se(Te){var Me=oe(Te);if(typeof Me!="string"&&(x.isEncoding===z||!z(Te)))throw new Error("Unknown encoding: "+Te);return Me||Te}xe.StringDecoder=ee;function ee(Te){this.encoding=se(Te);var Me;switch(this.encoding){case"utf16le":this.text=he,this.end=ge,Me=4;break;case"utf8":this.fillLast=re,Me=4;break;case"base64":this.text=be,this.end=me,Me=3;break;default:this.write=ve,this.end=Ce;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(Me)}ee.prototype.write=function(Te){if(Te.length===0)return"";var Me,ke;if(this.lastNeed){if(Me=this.fillLast(Te),Me===void 0)return"";ke=this.lastNeed,this.lastNeed=0}else ke=0;return ke<Te.length?Me?Me+this.text(Te,ke):this.text(Te,ke):Me||""},ee.prototype.end=ce,ee.prototype.text=le,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 fe(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,Me,ke){var de=Me.length-1;if(de<ke)return 0;var ye=fe(Me[de]);return ye>=0?(ye>0&&(Te.lastNeed=ye-1),ye):--de<ke||ye===-2?0:(ye=fe(Me[de]),ye>=0?(ye>0&&(Te.lastNeed=ye-2),ye):--de<ke||ye===-2?0:(ye=fe(Me[de]),ye>=0?(ye>0&&(ye===2?ye=0:Te.lastNeed=ye-3),ye):0))}function ie(Te,Me,ke){if((Me[0]&192)!==128)return Te.lastNeed=0,"\uFFFD";if(Te.lastNeed>1&&Me.length>1){if((Me[1]&192)!==128)return Te.lastNeed=1,"\uFFFD";if(Te.lastNeed>2&&Me.length>2&&(Me[2]&192)!==128)return Te.lastNeed=2,"\uFFFD"}}function re(Te){var Me=this.lastTotal-this.lastNeed,ke=ie(this,Te,Me);if(ke!==void 0)return ke;if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,Me,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,Me,0,Te.length),this.lastNeed-=Te.length}function le(Te,Me){var ke=E(this,Te,Me);if(!this.lastNeed)return Te.toString("utf8",Me);this.lastTotal=ke;var de=Te.length-(ke-this.lastNeed);return Te.copy(this.lastChar,0,de),Te.toString("utf8",Me,de)}function ce(Te){var Me=Te&&Te.length?this.write(Te):"";return this.lastNeed?Me+"\uFFFD":Me}function he(Te,Me){if((Te.length-Me)%2===0){var ke=Te.toString("utf16le",Me);if(ke){var de=ke.charCodeAt(ke.length-1);if(de>=55296&&de<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1],ke.slice(0,-1)}return ke}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Te[Te.length-1],Te.toString("utf16le",Me,Te.length-1)}function ge(Te){var Me=Te&&Te.length?this.write(Te):"";if(this.lastNeed){var ke=this.lastTotal-this.lastNeed;return Me+this.lastChar.toString("utf16le",0,ke)}return Me}function be(Te,Me){var ke=(Te.length-Me)%3;return ke===0?Te.toString("base64",Me):(this.lastNeed=3-ke,this.lastTotal=3,ke===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",Me,Te.length-ke))}function me(Te){var Me=Te&&Te.length?this.write(Te):"";return this.lastNeed?Me+this.lastChar.toString("base64",0,3-this.lastNeed):Me}function ve(Te){return Te.toString(this.encoding)}function Ce(Te){return Te&&Te.length?this.write(Te):""}},{"safe-buffer":396}],414:[function(y,De,xe){(function(x,z){(function(){var oe=y("process/browser.js").nextTick,se=Function.prototype.apply,ee=Array.prototype.slice,fe={},E=0;xe.setTimeout=function(){return new ie(se.call(setTimeout,window,arguments),clearTimeout)},xe.setInterval=function(){return new ie(se.call(setInterval,window,arguments),clearInterval)},xe.clearTimeout=xe.clearInterval=function(re){re.close()};function ie(re,le){this._id=re,this._clearFn=le}ie.prototype.unref=ie.prototype.ref=function(){},ie.prototype.close=function(){this._clearFn.call(window,this._id)},xe.enroll=function(re,le){clearTimeout(re._idleTimeoutId),re._idleTimeout=le},xe.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},xe._unrefActive=xe.active=function(re){clearTimeout(re._idleTimeoutId);var le=re._idleTimeout;le>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},le))},xe.setImmediate=typeof x=="function"?x:function(re){var le=E++,ce=arguments.length<2?!1:ee.call(arguments,1);return fe[le]=!0,oe(function(){fe[le]&&(ce?re.apply(null,ce):re.call(null),xe.clearImmediate(le))}),le},xe.clearImmediate=typeof z=="function"?z:function(re){delete fe[re]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,De,xe){var x=y("buffer").Buffer;De.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 oe=new Uint8Array(z.length),se=z.length,ee=0;ee<se;ee++)oe[ee]=z[ee];return oe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,De,xe){(function(x){(function(){De.exports=z;function z(se,ee){if(oe("noDeprecation"))return se;var fe=!1;function E(){if(!fe){if(oe("throwDeprecation"))throw new Error(ee);oe("traceDeprecation")?console.trace(ee):console.warn(ee),fe=!0}return se.apply(this,arguments)}return E}function oe(se){try{if(!x.localStorage)return!1}catch(fe){return!1}var ee=x.localStorage[se];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Gt!="undefined"?Gt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,De,xe){arguments[4][84][0].apply(xe,arguments)},{dup:84}],418:[function(y,De,xe){"use strict";var x=y("is-arguments"),z=y("is-generator-function"),oe=y("which-typed-array"),se=y("is-typed-array");function ee(qe){return qe.call.bind(qe)}var fe=typeof BigInt!="undefined",E=typeof Symbol!="undefined",ie=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),le=ee(String.prototype.valueOf),ce=ee(Boolean.prototype.valueOf);if(fe)var he=ee(BigInt.prototype.valueOf);if(E)var ge=ee(Symbol.prototype.valueOf);function be(qe,nt){if(typeof qe!="object")return!1;try{return nt(qe),!0}catch(dt){return!1}}xe.isArgumentsObject=x,xe.isGeneratorFunction=z,xe.isTypedArray=se;function me(qe){return typeof Promise!="undefined"&&qe instanceof Promise||qe!==null&&typeof qe=="object"&&typeof qe.then=="function"&&typeof qe.catch=="function"}xe.isPromise=me;function ve(qe){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(qe):se(qe)||Ge(qe)}xe.isArrayBufferView=ve;function Ce(qe){return oe(qe)==="Uint8Array"}xe.isUint8Array=Ce;function Te(qe){return oe(qe)==="Uint8ClampedArray"}xe.isUint8ClampedArray=Te;function Me(qe){return oe(qe)==="Uint16Array"}xe.isUint16Array=Me;function ke(qe){return oe(qe)==="Uint32Array"}xe.isUint32Array=ke;function de(qe){return oe(qe)==="Int8Array"}xe.isInt8Array=de;function ye(qe){return oe(qe)==="Int16Array"}xe.isInt16Array=ye;function Se(qe){return oe(qe)==="Int32Array"}xe.isInt32Array=Se;function Oe(qe){return oe(qe)==="Float32Array"}xe.isFloat32Array=Oe;function Ne(qe){return oe(qe)==="Float64Array"}xe.isFloat64Array=Ne;function Ae(qe){return oe(qe)==="BigInt64Array"}xe.isBigInt64Array=Ae;function je(qe){return oe(qe)==="BigUint64Array"}xe.isBigUint64Array=je;function Ze(qe){return ie(qe)==="[object Map]"}Ze.working=typeof Map!="undefined"&&Ze(new Map);function ze(qe){return typeof Map=="undefined"?!1:Ze.working?Ze(qe):qe instanceof Map}xe.isMap=ze;function Ve(qe){return ie(qe)==="[object Set]"}Ve.working=typeof Set!="undefined"&&Ve(new Set);function it(qe){return typeof Set=="undefined"?!1:Ve.working?Ve(qe):qe instanceof Set}xe.isSet=it;function Ie(qe){return ie(qe)==="[object WeakMap]"}Ie.working=typeof WeakMap!="undefined"&&Ie(new WeakMap);function We(qe){return typeof WeakMap=="undefined"?!1:Ie.working?Ie(qe):qe instanceof WeakMap}xe.isWeakMap=We;function tt(qe){return ie(qe)==="[object WeakSet]"}tt.working=typeof WeakSet!="undefined"&&tt(new WeakSet);function rt(qe){return tt(qe)}xe.isWeakSet=rt;function et(qe){return ie(qe)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function Ke(qe){return typeof ArrayBuffer=="undefined"?!1:et.working?et(qe):qe instanceof ArrayBuffer}xe.isArrayBuffer=Ke;function $e(qe){return ie(qe)==="[object DataView]"}$e.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&$e(new DataView(new ArrayBuffer(1),0,1));function Ge(qe){return typeof DataView=="undefined"?!1:$e.working?$e(qe):qe instanceof DataView}xe.isDataView=Ge;var ot=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Je(qe){return ie(qe)==="[object SharedArrayBuffer]"}function ct(qe){return typeof ot=="undefined"?!1:(typeof Je.working=="undefined"&&(Je.working=Je(new ot)),Je.working?Je(qe):qe instanceof ot)}xe.isSharedArrayBuffer=ct;function st(qe){return ie(qe)==="[object AsyncFunction]"}xe.isAsyncFunction=st;function Ye(qe){return ie(qe)==="[object Map Iterator]"}xe.isMapIterator=Ye;function Le(qe){return ie(qe)==="[object Set Iterator]"}xe.isSetIterator=Le;function _e(qe){return ie(qe)==="[object Generator]"}xe.isGeneratorObject=_e;function te(qe){return ie(qe)==="[object WebAssembly.Module]"}xe.isWebAssemblyCompiledModule=te;function ue(qe){return be(qe,re)}xe.isNumberObject=ue;function Re(qe){return be(qe,le)}xe.isStringObject=Re;function Fe(qe){return be(qe,ce)}xe.isBooleanObject=Fe;function we(qe){return fe&&be(qe,he)}xe.isBigIntObject=we;function Ee(qe){return E&&be(qe,ge)}xe.isSymbolObject=Ee;function Pe(qe){return ue(qe)||Re(qe)||Fe(qe)||we(qe)||Ee(qe)}xe.isBoxedPrimitive=Pe;function Ue(qe){return typeof Uint8Array!="undefined"&&(Ke(qe)||ct(qe))}xe.isAnyArrayBuffer=Ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(qe){Object.defineProperty(xe,qe,{enumerable:!1,value:function(){throw new Error(qe+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,De,xe){(function(x){(function(){var z=Object.getOwnPropertyDescriptors||function(ot){for(var Je=Object.keys(ot),ct={},st=0;st<Je.length;st++)ct[Je[st]]=Object.getOwnPropertyDescriptor(ot,Je[st]);return ct},oe=/%[sdj%]/g;xe.format=function(Ge){if(!ye(Ge)){for(var ot=[],Je=0;Je<arguments.length;Je++)ot.push(E(arguments[Je]));return ot.join(" ")}for(var Je=1,ct=arguments,st=ct.length,Ye=String(Ge).replace(oe,function(_e){if(_e==="%%")return"%";if(Je>=st)return _e;switch(_e){case"%s":return String(ct[Je++]);case"%d":return Number(ct[Je++]);case"%j":try{return JSON.stringify(ct[Je++])}catch(te){return"[Circular]"}default:return _e}}),Le=ct[Je];Je<st;Le=ct[++Je])Me(Le)||!Ae(Le)?Ye+=" "+Le:Ye+=" "+E(Le);return Ye},xe.deprecate=function(Ge,ot){if(typeof x!="undefined"&&x.noDeprecation===!0)return Ge;if(typeof x=="undefined")return function(){return xe.deprecate(Ge,ot).apply(this,arguments)};var Je=!1;function ct(){if(!Je){if(x.throwDeprecation)throw new Error(ot);x.traceDeprecation?console.trace(ot):console.error(ot),Je=!0}return Ge.apply(this,arguments)}return ct};var se={},ee=/^$/;if(x.env.NODE_DEBUG){var fe=x.env.NODE_DEBUG;fe=fe.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+fe+"$","i")}xe.debuglog=function(Ge){if(Ge=Ge.toUpperCase(),!se[Ge])if(ee.test(Ge)){var ot=x.pid;se[Ge]=function(){var Je=xe.format.apply(xe,arguments);console.error("%s %d: %s",Ge,ot,Je)}}else se[Ge]=function(){};return se[Ge]};function E(Ge,ot){var Je={seen:[],stylize:re};return arguments.length>=3&&(Je.depth=arguments[2]),arguments.length>=4&&(Je.colors=arguments[3]),Te(ot)?Je.showHidden=ot:ot&&xe._extend(Je,ot),Oe(Je.showHidden)&&(Je.showHidden=!1),Oe(Je.depth)&&(Je.depth=2),Oe(Je.colors)&&(Je.colors=!1),Oe(Je.customInspect)&&(Je.customInspect=!0),Je.colors&&(Je.stylize=ie),ce(Je,Ge,Je.depth)}xe.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 ie(Ge,ot){var Je=E.styles[ot];return Je?"\x1B["+E.colors[Je][0]+"m"+Ge+"\x1B["+E.colors[Je][1]+"m":Ge}function re(Ge,ot){return Ge}function le(Ge){var ot={};return Ge.forEach(function(Je,ct){ot[Je]=!0}),ot}function ce(Ge,ot,Je){if(Ge.customInspect&&ot&&ze(ot.inspect)&&ot.inspect!==xe.inspect&&!(ot.constructor&&ot.constructor.prototype===ot)){var ct=ot.inspect(Je,Ge);return ye(ct)||(ct=ce(Ge,ct,Je)),ct}var st=he(Ge,ot);if(st)return st;var Ye=Object.keys(ot),Le=le(Ye);if(Ge.showHidden&&(Ye=Object.getOwnPropertyNames(ot)),Ze(ot)&&(Ye.indexOf("message")>=0||Ye.indexOf("description")>=0))return ge(ot);if(Ye.length===0){if(ze(ot)){var _e=ot.name?": "+ot.name:"";return Ge.stylize("[Function"+_e+"]","special")}if(Ne(ot))return Ge.stylize(RegExp.prototype.toString.call(ot),"regexp");if(je(ot))return Ge.stylize(Date.prototype.toString.call(ot),"date");if(Ze(ot))return ge(ot)}var te="",ue=!1,Re=["{","}"];if(Ce(ot)&&(ue=!0,Re=["[","]"]),ze(ot)){var Fe=ot.name?": "+ot.name:"";te=" [Function"+Fe+"]"}if(Ne(ot)&&(te=" "+RegExp.prototype.toString.call(ot)),je(ot)&&(te=" "+Date.prototype.toUTCString.call(ot)),Ze(ot)&&(te=" "+ge(ot)),Ye.length===0&&(!ue||ot.length==0))return Re[0]+te+Re[1];if(Je<0)return Ne(ot)?Ge.stylize(RegExp.prototype.toString.call(ot),"regexp"):Ge.stylize("[Object]","special");Ge.seen.push(ot);var we;return ue?we=be(Ge,ot,Je,Le,Ye):we=Ye.map(function(Ee){return me(Ge,ot,Je,Le,Ee,ue)}),Ge.seen.pop(),ve(we,te,Re)}function he(Ge,ot){if(Oe(ot))return Ge.stylize("undefined","undefined");if(ye(ot)){var Je="'"+JSON.stringify(ot).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ge.stylize(Je,"string")}if(de(ot))return Ge.stylize(""+ot,"number");if(Te(ot))return Ge.stylize(""+ot,"boolean");if(Me(ot))return Ge.stylize("null","null")}function ge(Ge){return"["+Error.prototype.toString.call(Ge)+"]"}function be(Ge,ot,Je,ct,st){for(var Ye=[],Le=0,_e=ot.length;Le<_e;++Le)rt(ot,String(Le))?Ye.push(me(Ge,ot,Je,ct,String(Le),!0)):Ye.push("");return st.forEach(function(te){te.match(/^\d+$/)||Ye.push(me(Ge,ot,Je,ct,te,!0))}),Ye}function me(Ge,ot,Je,ct,st,Ye){var Le,_e,te;if(te=Object.getOwnPropertyDescriptor(ot,st)||{value:ot[st]},te.get?te.set?_e=Ge.stylize("[Getter/Setter]","special"):_e=Ge.stylize("[Getter]","special"):te.set&&(_e=Ge.stylize("[Setter]","special")),rt(ct,st)||(Le="["+st+"]"),_e||(Ge.seen.indexOf(te.value)<0?(Me(Je)?_e=ce(Ge,te.value,null):_e=ce(Ge,te.value,Je-1),_e.indexOf(`
`)>-1&&(Ye?_e=_e.split(`
`).map(function(ue){return" "+ue}).join(`
`).slice(2):_e=`
`+_e.split(`
`).map(function(ue){return" "+ue}).join(`
`))):_e=Ge.stylize("[Circular]","special")),Oe(Le)){if(Ye&&st.match(/^\d+$/))return _e;Le=JSON.stringify(""+st),Le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Le=Le.slice(1,-1),Le=Ge.stylize(Le,"name")):(Le=Le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Le=Ge.stylize(Le,"string"))}return Le+": "+_e}function ve(Ge,ot,Je){var ct=0,st=Ge.reduce(function(Ye,Le){return ct++,Le.indexOf(`
`)>=0&&ct++,Ye+Le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return st>60?Je[0]+(ot===""?"":ot+`
`)+" "+Ge.join(`,
`)+" "+Je[1]:Je[0]+ot+" "+Ge.join(", ")+" "+Je[1]}xe.types=y("./support/types");function Ce(Ge){return Array.isArray(Ge)}xe.isArray=Ce;function Te(Ge){return typeof Ge=="boolean"}xe.isBoolean=Te;function Me(Ge){return Ge===null}xe.isNull=Me;function ke(Ge){return Ge==null}xe.isNullOrUndefined=ke;function de(Ge){return typeof Ge=="number"}xe.isNumber=de;function ye(Ge){return typeof Ge=="string"}xe.isString=ye;function Se(Ge){return typeof Ge=="symbol"}xe.isSymbol=Se;function Oe(Ge){return Ge===void 0}xe.isUndefined=Oe;function Ne(Ge){return Ae(Ge)&&it(Ge)==="[object RegExp]"}xe.isRegExp=Ne,xe.types.isRegExp=Ne;function Ae(Ge){return typeof Ge=="object"&&Ge!==null}xe.isObject=Ae;function je(Ge){return Ae(Ge)&&it(Ge)==="[object Date]"}xe.isDate=je,xe.types.isDate=je;function Ze(Ge){return Ae(Ge)&&(it(Ge)==="[object Error]"||Ge instanceof Error)}xe.isError=Ze,xe.types.isNativeError=Ze;function ze(Ge){return typeof Ge=="function"}xe.isFunction=ze;function Ve(Ge){return Ge===null||typeof Ge=="boolean"||typeof Ge=="number"||typeof Ge=="string"||typeof Ge=="symbol"||typeof Ge=="undefined"}xe.isPrimitive=Ve,xe.isBuffer=y("./support/isBuffer");function it(Ge){return Object.prototype.toString.call(Ge)}function Ie(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 tt(){var Ge=new Date,ot=[Ie(Ge.getHours()),Ie(Ge.getMinutes()),Ie(Ge.getSeconds())].join(":");return[Ge.getDate(),We[Ge.getMonth()],ot].join(" ")}xe.log=function(){console.log("%s - %s",tt(),xe.format.apply(xe,arguments))},xe.inherits=y("inherits"),xe._extend=function(Ge,ot){if(!ot||!Ae(ot))return Ge;for(var Je=Object.keys(ot),ct=Je.length;ct--;)Ge[Je[ct]]=ot[Je[ct]];return Ge};function rt(Ge,ot){return Object.prototype.hasOwnProperty.call(Ge,ot)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;xe.promisify=function(ot){if(typeof ot!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&ot[et]){var Je=ot[et];if(typeof Je!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Je,et,{value:Je,enumerable:!1,writable:!1,configurable:!0}),Je}function Je(){for(var ct,st,Ye=new Promise(function(te,ue){ct=te,st=ue}),Le=[],_e=0;_e<arguments.length;_e++)Le.push(arguments[_e]);Le.push(function(te,ue){te?st(te):ct(ue)});try{ot.apply(this,Le)}catch(te){st(te)}return Ye}return Object.setPrototypeOf(Je,Object.getPrototypeOf(ot)),et&&Object.defineProperty(Je,et,{value:Je,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Je,z(ot))},xe.promisify.custom=et;function Ke(Ge,ot){if(!Ge){var Je=new Error("Promise was rejected with a falsy value");Je.reason=Ge,Ge=Je}return ot(Ge)}function $e(Ge){if(typeof Ge!="function")throw new TypeError('The "original" argument must be of type Function');function ot(){for(var Je=[],ct=0;ct<arguments.length;ct++)Je.push(arguments[ct]);var st=Je.pop();if(typeof st!="function")throw new TypeError("The last argument must be of type Function");var Ye=this,Le=function(){return st.apply(Ye,arguments)};Ge.apply(this,Je).then(function(_e){x.nextTick(Le.bind(null,null,_e))},function(_e){x.nextTick(Ke.bind(null,_e,Le))})}return Object.setPrototypeOf(ot,Object.getPrototypeOf(Ge)),Object.defineProperties(ot,z(Ge)),ot}xe.callbackify=$e}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,De,xe){(function(x){(function(){"use strict";var z=y("for-each"),oe=y("available-typed-arrays"),se=y("call-bind"),ee=y("call-bind/callBound"),fe=y("gopd"),E=ee("Object.prototype.toString"),ie=y("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?x:globalThis,le=oe(),ce=ee("String.prototype.slice"),he=Object.getPrototypeOf,ge=ee("Array.prototype.indexOf",!0)||function(Te,Me){for(var ke=0;ke<Te.length;ke+=1)if(Te[ke]===Me)return ke;return-1},be={__proto__:null};ie&&fe&&he?z(le,function(Ce){var Te=new re[Ce];if(Symbol.toStringTag in Te){var Me=he(Te),ke=fe(Me,Symbol.toStringTag);if(!ke){var de=he(Me);ke=fe(de,Symbol.toStringTag)}be["$"+Ce]=se(ke.get)}}):z(le,function(Ce){var Te=new re[Ce];be["$"+Ce]=se(Te.slice)});var me=function(Te){var Me=!1;return z(be,function(ke,de){if(!Me)try{"$"+ke(Te)===de&&(Me=ce(de,1))}catch(ye){}}),Me},ve=function(Te){var Me=!1;return z(be,function(ke,de){if(!Me)try{ke(Te),Me=ce(de,1)}catch(ye){}}),Me};De.exports=function(Te){if(!Te||typeof Te!="object")return!1;if(!ie){var Me=ce(E(Te),8,-1);return ge(le,Me)>-1?Me:Me!=="Object"?!1:ve(Te)}return fe?me(Te):null}}).call(this)}).call(this,typeof Gt!="undefined"?Gt: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,De,xe){(function(){"use strict";xe.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},{}],422:[function(y,De,xe){(function(){"use strict";var x,z,oe,se,ee,fe={}.hasOwnProperty;x=y("xmlbuilder"),z=y("./defaults").defaults,se=function(E){return typeof E=="string"&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},ee=function(E){return"<![CDATA["+oe(E)+"]]>"},oe=function(E){return E.replace("]]>","]]]]><![CDATA[>")},xe.Builder=function(){function E(ie){var re,le,ce;this.options={},le=z["0.2"];for(re in le)fe.call(le,re)&&(ce=le[re],this.options[re]=ce);for(re in ie)fe.call(ie,re)&&(ce=ie[re],this.options[re]=ce)}return E.prototype.buildObject=function(ie){var re,le,ce,he,ge;return re=this.options.attrkey,le=this.options.charkey,Object.keys(ie).length===1&&this.options.rootName===z["0.2"].rootName?(ge=Object.keys(ie)[0],ie=ie[ge]):ge=this.options.rootName,ce=function(be){return function(me,ve){var Ce,Te,Me,ke,de,ye;if(typeof ve!="object")be.options.cdata&&se(ve)?me.raw(ee(ve)):me.txt(ve);else if(Array.isArray(ve)){for(ke in ve)if(fe.call(ve,ke)){Te=ve[ke];for(de in Te)Me=Te[de],me=ce(me.ele(de),Me).up()}}else for(de in ve)if(fe.call(ve,de))if(Te=ve[de],de===re){if(typeof Te=="object")for(Ce in Te)ye=Te[Ce],me=me.att(Ce,ye)}else if(de===le)be.options.cdata&&se(Te)?me=me.raw(ee(Te)):me=me.txt(Te);else if(Array.isArray(Te))for(ke in Te)fe.call(Te,ke)&&(Me=Te[ke],typeof Me=="string"?be.options.cdata&&se(Me)?me=me.ele(de).raw(ee(Me)).up():me=me.ele(de,Me).up():me=ce(me.ele(de),Me).up());else typeof Te=="object"?me=ce(me.ele(de),Te).up():typeof Te=="string"&&be.options.cdata&&se(Te)?me=me.ele(de).raw(ee(Te)).up():(Te==null&&(Te=""),me=me.ele(de,Te.toString()).up());return me}}(this),he=x.create(ge,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ce(he,ie).end(this.options.renderOpts)},E}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,De,xe){(function(){xe.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,De,xe){(function(){"use strict";var x,z,oe,se,ee,fe,E,ie,re,le=function(ge,be){return function(){return ge.apply(be,arguments)}},ce=function(ge,be){for(var me in be)he.call(be,me)&&(ge[me]=be[me]);function ve(){this.constructor=ge}return ve.prototype=be.prototype,ge.prototype=new ve,ge.__super__=be.prototype,ge},he={}.hasOwnProperty;ie=y("sax"),se=y("events"),x=y("./bom"),E=y("./processors"),re=y("timers").setImmediate,z=y("./defaults").defaults,ee=function(ge){return typeof ge=="object"&&ge!=null&&Object.keys(ge).length===0},fe=function(ge,be,me){var ve,Ce,Te;for(ve=0,Ce=ge.length;ve<Ce;ve++)Te=ge[ve],be=Te(be,me);return be},oe=function(ge,be,me){var ve;return ve=Object.create(null),ve.value=me,ve.writable=!0,ve.enumerable=!0,ve.configurable=!0,Object.defineProperty(ge,be,ve)},xe.Parser=function(ge){ce(be,ge);function be(me){this.parseStringPromise=le(this.parseStringPromise,this),this.parseString=le(this.parseString,this),this.reset=le(this.reset,this),this.assignOrPush=le(this.assignOrPush,this),this.processAsync=le(this.processAsync,this);var ve,Ce,Te;if(!(this instanceof xe.Parser))return new xe.Parser(me);this.options={},Ce=z["0.2"];for(ve in Ce)he.call(Ce,ve)&&(Te=Ce[ve],this.options[ve]=Te);for(ve in me)he.call(me,ve)&&(Te=me[ve],this.options[ve]=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 be.prototype.processAsync=function(){var me,ve;try{return this.remaining.length<=this.options.chunkSize?(me=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(me),this.saxParser.close()):(me=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(me),re(this.processAsync))}catch(Ce){if(ve=Ce,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(ve)}},be.prototype.assignOrPush=function(me,ve,Ce){return ve in me?(me[ve]instanceof Array||oe(me,ve,[me[ve]]),me[ve].push(Ce)):this.options.explicitArray?oe(me,ve,[Ce]):oe(me,ve,Ce)},be.prototype.reset=function(){var me,ve,Ce,Te;return this.removeAllListeners(),this.saxParser=ie.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Me){return function(ke){if(Me.saxParser.resume(),!Me.saxParser.errThrown)return Me.saxParser.errThrown=!0,Me.emit("error",ke)}}(this),this.saxParser.onend=function(Me){return function(){if(!Me.saxParser.ended)return Me.saxParser.ended=!0,Me.emit("end",Me.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Te=[],me=this.options.attrkey,ve=this.options.charkey,this.saxParser.onopentag=function(Me){return function(ke){var de,ye,Se,Oe,Ne;if(Se={},Se[ve]="",!Me.options.ignoreAttrs){Ne=ke.attributes;for(de in Ne)he.call(Ne,de)&&(!(me in Se)&&!Me.options.mergeAttrs&&(Se[me]={}),ye=Me.options.attrValueProcessors?fe(Me.options.attrValueProcessors,ke.attributes[de],de):ke.attributes[de],Oe=Me.options.attrNameProcessors?fe(Me.options.attrNameProcessors,de):de,Me.options.mergeAttrs?Me.assignOrPush(Se,Oe,ye):oe(Se[me],Oe,ye))}return Se["#name"]=Me.options.tagNameProcessors?fe(Me.options.tagNameProcessors,ke.name):ke.name,Me.options.xmlns&&(Se[Me.options.xmlnskey]={uri:ke.uri,local:ke.local}),Te.push(Se)}}(this),this.saxParser.onclosetag=function(Me){return function(){var ke,de,ye,Se,Oe,Ne,Ae,je,Ze,ze;if(Ne=Te.pop(),Oe=Ne["#name"],(!Me.options.explicitChildren||!Me.options.preserveChildrenOrder)&&delete Ne["#name"],Ne.cdata===!0&&(ke=Ne.cdata,delete Ne.cdata),Ze=Te[Te.length-1],Ne[ve].match(/^\s*$/)&&!ke?(de=Ne[ve],delete Ne[ve]):(Me.options.trim&&(Ne[ve]=Ne[ve].trim()),Me.options.normalize&&(Ne[ve]=Ne[ve].replace(/\s{2,}/g," ").trim()),Ne[ve]=Me.options.valueProcessors?fe(Me.options.valueProcessors,Ne[ve],Oe):Ne[ve],Object.keys(Ne).length===1&&ve in Ne&&!Me.EXPLICIT_CHARKEY&&(Ne=Ne[ve])),ee(Ne)&&(typeof Me.options.emptyTag=="function"?Ne=Me.options.emptyTag():Ne=Me.options.emptyTag!==""?Me.options.emptyTag:de),Me.options.validator!=null&&(ze="/"+function(){var Ve,it,Ie;for(Ie=[],Ve=0,it=Te.length;Ve<it;Ve++)Se=Te[Ve],Ie.push(Se["#name"]);return Ie}().concat(Oe).join("/"),function(){var Ve;try{return Ne=Me.options.validator(ze,Ze&&Ze[Oe],Ne)}catch(it){return Ve=it,Me.emit("error",Ve)}}()),Me.options.explicitChildren&&!Me.options.mergeAttrs&&typeof Ne=="object"){if(!Me.options.preserveChildrenOrder)Se={},Me.options.attrkey in Ne&&(Se[Me.options.attrkey]=Ne[Me.options.attrkey],delete Ne[Me.options.attrkey]),!Me.options.charsAsChildren&&Me.options.charkey in Ne&&(Se[Me.options.charkey]=Ne[Me.options.charkey],delete Ne[Me.options.charkey]),Object.getOwnPropertyNames(Ne).length>0&&(Se[Me.options.childkey]=Ne),Ne=Se;else if(Ze){Ze[Me.options.childkey]=Ze[Me.options.childkey]||[],Ae={};for(ye in Ne)he.call(Ne,ye)&&oe(Ae,ye,Ne[ye]);Ze[Me.options.childkey].push(Ae),delete Ne["#name"],Object.keys(Ne).length===1&&ve in Ne&&!Me.EXPLICIT_CHARKEY&&(Ne=Ne[ve])}}return Te.length>0?Me.assignOrPush(Ze,Oe,Ne):(Me.options.explicitRoot&&(je=Ne,Ne={},oe(Ne,Oe,je)),Me.resultObject=Ne,Me.saxParser.ended=!0,Me.emit("end",Me.resultObject))}}(this),Ce=function(Me){return function(ke){var de,ye;if(ye=Te[Te.length-1],ye)return ye[ve]+=ke,Me.options.explicitChildren&&Me.options.preserveChildrenOrder&&Me.options.charsAsChildren&&(Me.options.includeWhiteChars||ke.replace(/\\n/g,"").trim()!=="")&&(ye[Me.options.childkey]=ye[Me.options.childkey]||[],de={"#name":"__text__"},de[ve]=ke,Me.options.normalize&&(de[ve]=de[ve].replace(/\s{2,}/g," ").trim()),ye[Me.options.childkey].push(de)),ye}}(this),this.saxParser.ontext=Ce,this.saxParser.oncdata=function(Me){return function(ke){var de;if(de=Ce(ke),de)return de.cdata=!0}}(this)},be.prototype.parseString=function(me,ve){var Ce;ve!=null&&typeof ve=="function"&&(this.on("end",function(Te){return this.reset(),ve(null,Te)}),this.on("error",function(Te){return this.reset(),ve(Te)}));try{return me=me.toString(),me.trim()===""?(this.emit("end",null),!0):(me=x.stripBOM(me),this.options.async?(this.remaining=me,re(this.processAsync),this.saxParser):this.saxParser.write(me).close())}catch(Te){if(Ce=Te,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ce}else return this.emit("error",Ce),this.saxParser.errThrown=!0}},be.prototype.parseStringPromise=function(me){return new Promise(function(ve){return function(Ce,Te){return ve.parseString(me,function(Me,ke){return Me?Te(Me):Ce(ke)})}}(this))},be}(se),xe.parseString=function(ge,be,me){var ve,Ce,Te;return me!=null?(typeof me=="function"&&(ve=me),typeof be=="object"&&(Ce=be)):(typeof be=="function"&&(ve=be),Ce={}),Te=new xe.Parser(Ce),Te.parseString(ge,ve)},xe.parseStringPromise=function(ge,be){var me,ve;return typeof be=="object"&&(me=be),ve=new xe.Parser(me),ve.parseStringPromise(ge)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,De,xe){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),xe.normalize=function(z){return z.toLowerCase()},xe.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},xe.stripPrefix=function(z){return z.replace(x,"")},xe.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},xe.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(y,De,xe){(function(){"use strict";var x,z,oe,se,ee=function(E,ie){for(var re in ie)fe.call(ie,re)&&(E[re]=ie[re]);function le(){this.constructor=E}return le.prototype=ie.prototype,E.prototype=new le,E.__super__=ie.prototype,E},fe={}.hasOwnProperty;z=y("./defaults"),x=y("./builder"),oe=y("./parser"),se=y("./processors"),xe.defaults=z.defaults,xe.processors=se,xe.ValidationError=function(E){ee(ie,E);function ie(re){this.message=re}return ie}(Error),xe.Builder=x.Builder,xe.Parser=oe.Parser,xe.parseString=oe.parseString,xe.parseStringPromise=oe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,De,xe){(function(){De.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,De,xe){(function(){De.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,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie=[].slice,re={}.hasOwnProperty;x=function(){var le,ce,he,ge,be,me;if(me=arguments[0],be=2<=arguments.length?ie.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(le=0,he=be.length;le<he;le++)if(ge=be[le],ge!=null)for(ce in ge)re.call(ge,ce)&&(me[ce]=ge[ce]);return me},ee=function(le){return!!le&&Object.prototype.toString.call(le)==="[object Function]"},fe=function(le){var ce;return!!le&&((ce=typeof le)=="function"||ce==="object")},oe=function(le){return ee(Array.isArray)?Array.isArray(le):Object.prototype.toString.call(le)==="[object Array]"},se=function(le){var ce;if(oe(le))return!le.length;for(ce in le)if(re.call(le,ce))return!1;return!0},E=function(le){var ce,he;return fe(le)&&(he=Object.getPrototypeOf(le))&&(ce=he.constructor)&&typeof ce=="function"&&ce instanceof ce&&Function.prototype.toString.call(ce)===Function.prototype.toString.call(Object)},z=function(le){return ee(le.valueOf)?le.valueOf():le},De.exports.assign=x,De.exports.isFunction=ee,De.exports.isObject=fe,De.exports.isArray=oe,De.exports.isEmpty=se,De.exports.isPlainObject=E,De.exports.getValue=z}).call(this)},{}],430:[function(y,De,xe){(function(){De.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,De,xe){(function(){var x,z,oe;x=y("./NodeType"),oe=y("./XMLNode"),De.exports=z=function(){function se(ee,fe,E){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),fe==null)throw new Error("Missing attribute name. "+this.debugInfo(fe));this.name=this.stringify.name(fe),this.value=this.stringify.attValue(E),this.type=x.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(se.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(se.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(se.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(se.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(se.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(se.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(se.prototype,"specified",{get:function(){return!0}}),se.prototype.clone=function(){return Object.create(this)},se.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},se.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},se.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},se}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),oe=y("./XMLCharacterData"),De.exports=z=function(fe){se(E,fe);function E(ie,re){if(E.__super__.constructor.call(this,ie),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(ie){return this.options.writer.cdata(this,this.options.writer.filterOptions(ie))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,De,xe){(function(){var x,z,oe=function(ee,fe){for(var E in fe)se.call(fe,E)&&(ee[E]=fe[E]);function ie(){this.constructor=ee}return ie.prototype=fe.prototype,ee.prototype=new ie,ee.__super__=fe.prototype,ee},se={}.hasOwnProperty;z=y("./XMLNode"),De.exports=x=function(ee){oe(fe,ee);function fe(E){fe.__super__.constructor.call(this,E),this.value=""}return Object.defineProperty(fe.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(fe.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(fe.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),fe.prototype.clone=function(){return Object.create(this)},fe.prototype.substringData=function(E,ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.insertData=function(E,ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.deleteData=function(E,ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.replaceData=function(E,ie,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.isEqualNode=function(E){return!(!fe.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},fe}(z)}).call(this)},{"./XMLNode":450}],434:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),De.exports=oe=function(fe){se(E,fe);function E(ie,re){if(E.__super__.constructor.call(this,ie),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(ie){return this.options.writer.comment(this,this.options.writer.filterOptions(ie))},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,De,xe){(function(){var x,z,oe;z=y("./XMLDOMErrorHandler"),oe=y("./XMLDOMStringList"),De.exports=x=function(){function se(){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(se.prototype,"parameterNames",{get:function(){return new oe(Object.keys(this.defaultParams))}}),se.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},se.prototype.canSetParameter=function(ee,fe){return!0},se.prototype.setParameter=function(ee,fe){return fe!=null?this.params[ee]=fe:delete this.params[ee]},se}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,De,xe){(function(){var x;De.exports=x=function(){function z(){}return z.prototype.handleError=function(oe){throw new Error(oe)},z}()}).call(this)},{}],437:[function(y,De,xe){(function(){var x;De.exports=x=function(){function z(){}return z.prototype.hasFeature=function(oe,se){return!0},z.prototype.createDocumentType=function(oe,se,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(oe,se,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(oe){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(oe,se){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(y,De,xe){(function(){var x;De.exports=x=function(){function z(oe){this.arr=oe||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(oe){return this.arr[oe]||null},z.prototype.contains=function(oe){return this.arr.indexOf(oe)!==-1},z}()}).call(this)},{}],439:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),De.exports=z=function(fe){se(E,fe);function E(ie,re,le,ce,he,ge){if(E.__super__.constructor.call(this,ie),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(le==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!ce)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(ge&&!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(le),this.attributeType=this.stringify.dtdAttType(ce),ge&&(this.defaultValue=this.stringify.dtdAttDefault(ge)),this.defaultValueType=he}return E.prototype.toString=function(ie){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ie))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),De.exports=z=function(fe){se(E,fe);function E(ie,re,le){if(E.__super__.constructor.call(this,ie),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());le||(le="(#PCDATA)"),Array.isArray(le)&&(le="("+le.join(",")+")"),this.name=this.stringify.name(re),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(le)}return E.prototype.toString=function(ie){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ie))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,De,xe){(function(){var x,z,oe,se,ee=function(E,ie){for(var re in ie)fe.call(ie,re)&&(E[re]=ie[re]);function le(){this.constructor=E}return le.prototype=ie.prototype,E.prototype=new le,E.__super__=ie.prototype,E},fe={}.hasOwnProperty;se=y("./Utility").isObject,oe=y("./XMLNode"),x=y("./NodeType"),De.exports=z=function(E){ee(ie,E);function ie(re,le,ce,he){if(ie.__super__.constructor.call(this,re),ce==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ce));if(he==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ce));if(this.pe=!!le,this.name=this.stringify.name(ce),this.type=x.EntityDeclaration,!se(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(ce));if(he.pubID&&!he.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ce));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(ce))}}return Object.defineProperty(ie.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ie.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ie.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ie.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ie.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ie.prototype,"xmlVersion",{get:function(){return null}}),ie.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},ie}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),De.exports=z=function(fe){se(E,fe);function E(ie,re,le){if(E.__super__.constructor.call(this,ie),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!le.pubID&&!le.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,le.pubID!=null&&(this.pubID=this.stringify.dtdPubID(le.pubID)),le.sysID!=null&&(this.sysID=this.stringify.dtdSysID(le.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(ie){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ie))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,De,xe){(function(){var x,z,oe,se,ee=function(E,ie){for(var re in ie)fe.call(ie,re)&&(E[re]=ie[re]);function le(){this.constructor=E}return le.prototype=ie.prototype,E.prototype=new le,E.__super__=ie.prototype,E},fe={}.hasOwnProperty;se=y("./Utility").isObject,oe=y("./XMLNode"),x=y("./NodeType"),De.exports=z=function(E){ee(ie,E);function ie(re,le,ce,he){var ge;ie.__super__.constructor.call(this,re),se(le)&&(ge=le,le=ge.version,ce=ge.encoding,he=ge.standalone),le||(le="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(le),ce!=null&&(this.encoding=this.stringify.xmlEncoding(ce)),he!=null&&(this.standalone=this.stringify.xmlStandalone(he))}return ie.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},ie}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re,le=function(he,ge){for(var be in ge)ce.call(ge,be)&&(he[be]=ge[be]);function me(){this.constructor=he}return me.prototype=ge.prototype,he.prototype=new me,he.__super__=ge.prototype,he},ce={}.hasOwnProperty;re=y("./Utility").isObject,ie=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLDTDAttList"),se=y("./XMLDTDEntity"),oe=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),E=y("./XMLNamedNodeMap"),De.exports=fe=function(he){le(ge,he);function ge(be,me,ve){var Ce,Te,Me,ke,de,ye;if(ge.__super__.constructor.call(this,be),this.type=x.DocType,be.children){for(ke=be.children,Te=0,Me=ke.length;Te<Me;Te++)if(Ce=ke[Te],Ce.type===x.Element){this.name=Ce.name;break}}this.documentObject=be,re(me)&&(de=me,me=de.pubID,ve=de.sysID),ve==null&&(ye=[me,ve],ve=ye[0],me=ye[1]),me!=null&&(this.pubID=this.stringify.dtdPubID(me)),ve!=null&&(this.sysID=this.stringify.dtdSysID(ve))}return Object.defineProperty(ge.prototype,"entities",{get:function(){var be,me,ve,Ce,Te;for(Ce={},Te=this.children,me=0,ve=Te.length;me<ve;me++)be=Te[me],be.type===x.EntityDeclaration&&!be.pe&&(Ce[be.name]=be);return new E(Ce)}}),Object.defineProperty(ge.prototype,"notations",{get:function(){var be,me,ve,Ce,Te;for(Ce={},Te=this.children,me=0,ve=Te.length;me<ve;me++)be=Te[me],be.type===x.NotationDeclaration&&(Ce[be.name]=be);return new E(Ce)}}),Object.defineProperty(ge.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ge.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ge.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ge.prototype.element=function(be,me){var ve;return ve=new oe(this,be,me),this.children.push(ve),this},ge.prototype.attList=function(be,me,ve,Ce,Te){var Me;return Me=new z(this,be,me,ve,Ce,Te),this.children.push(Me),this},ge.prototype.entity=function(be,me){var ve;return ve=new se(this,!1,be,me),this.children.push(ve),this},ge.prototype.pEntity=function(be,me){var ve;return ve=new se(this,!0,be,me),this.children.push(ve),this},ge.prototype.notation=function(be,me){var ve;return ve=new ee(this,be,me),this.children.push(ve),this},ge.prototype.toString=function(be){return this.options.writer.docType(this,this.options.writer.filterOptions(be))},ge.prototype.ele=function(be,me){return this.element(be,me)},ge.prototype.att=function(be,me,ve,Ce,Te){return this.attList(be,me,ve,Ce,Te)},ge.prototype.ent=function(be,me){return this.entity(be,me)},ge.prototype.pent=function(be,me){return this.pEntity(be,me)},ge.prototype.not=function(be,me){return this.notation(be,me)},ge.prototype.up=function(){return this.root()||this.documentObject},ge.prototype.isEqualNode=function(be){return!(!ge.__super__.isEqualNode.apply(this,arguments).isEqualNode(be)||be.name!==this.name||be.publicId!==this.publicId||be.systemId!==this.systemId)},ge}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re=function(ce,he){for(var ge in he)le.call(he,ge)&&(ce[ge]=he[ge]);function be(){this.constructor=ce}return be.prototype=he.prototype,ce.prototype=new be,ce.__super__=he.prototype,ce},le={}.hasOwnProperty;ie=y("./Utility").isPlainObject,oe=y("./XMLDOMImplementation"),z=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),x=y("./NodeType"),E=y("./XMLStringifier"),fe=y("./XMLStringWriter"),De.exports=se=function(ce){re(he,ce);function he(ge){he.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new z,ge||(ge={}),ge.writer||(ge.writer=new fe),this.options=ge,this.stringify=new E(ge)}return Object.defineProperty(he.prototype,"implementation",{value:new oe}),Object.defineProperty(he.prototype,"doctype",{get:function(){var ge,be,me,ve;for(ve=this.children,be=0,me=ve.length;be<me;be++)if(ge=ve[be],ge.type===x.DocType)return ge;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(ge){var be;return be={},ge?ie(ge)&&(be=ge,ge=this.options.writer):ge=this.options.writer,ge.document(this,ge.filterOptions(be))},he.prototype.toString=function(ge){return this.options.writer.document(this,this.options.writer.filterOptions(ge))},he.prototype.createElement=function(ge){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(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createComment=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createCDATASection=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createProcessingInstruction=function(ge,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttribute=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEntityReference=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.importNode=function(ge,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createElementNS=function(ge,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttributeNS=function(ge,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(ge,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementById=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.adoptNode=function(ge){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(ge,be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEvent=function(ge){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(ge,be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTreeWalker=function(ge,be,me){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,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re,le,ce,he,ge,be,me,ve,Ce,Te,Me,ke,de,ye,Se,Oe,Ne={}.hasOwnProperty;Oe=y("./Utility"),ye=Oe.isObject,de=Oe.isFunction,Se=Oe.isPlainObject,ke=Oe.getValue,x=y("./NodeType"),he=y("./XMLDocument"),be=y("./XMLElement"),se=y("./XMLCData"),ee=y("./XMLComment"),ve=y("./XMLRaw"),Me=y("./XMLText"),me=y("./XMLProcessingInstruction"),le=y("./XMLDeclaration"),ce=y("./XMLDocType"),fe=y("./XMLDTDAttList"),ie=y("./XMLDTDEntity"),E=y("./XMLDTDElement"),re=y("./XMLDTDNotation"),oe=y("./XMLAttribute"),Te=y("./XMLStringifier"),Ce=y("./XMLStringWriter"),z=y("./WriterState"),De.exports=ge=function(){function Ae(je,Ze,ze){var Ve;this.name="?xml",this.type=x.Document,je||(je={}),Ve={},je.writer?Se(je.writer)&&(Ve=je.writer,je.writer=new Ce):je.writer=new Ce,this.options=je,this.writer=je.writer,this.writerOptions=this.writer.filterOptions(Ve),this.stringify=new Te(je),this.onDataCallback=Ze||function(){},this.onEndCallback=ze||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ae.prototype.createChildNode=function(je){var Ze,ze,Ve,it,Ie,We,tt,rt;switch(je.type){case x.CData:this.cdata(je.value);break;case x.Comment:this.comment(je.value);break;case x.Element:Ve={},tt=je.attribs;for(ze in tt)Ne.call(tt,ze)&&(Ze=tt[ze],Ve[ze]=Ze.value);this.node(je.name,Ve);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(je.value);break;case x.Text:this.text(je.value);break;case x.ProcessingInstruction:this.instruction(je.target,je.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+je.constructor.name)}for(rt=je.children,Ie=0,We=rt.length;Ie<We;Ie++)it=rt[Ie],this.createChildNode(it),it.type===x.Element&&this.up();return this},Ae.prototype.dummy=function(){return this},Ae.prototype.node=function(je,Ze,ze){var Ve;if(je==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(je));return this.openCurrent(),je=ke(je),Ze==null&&(Ze={}),Ze=ke(Ze),ye(Ze)||(Ve=[Ze,ze],ze=Ve[0],Ze=Ve[1]),this.currentNode=new be(this,je,Ze),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ze!=null&&this.text(ze),this},Ae.prototype.element=function(je,Ze,ze){var Ve,it,Ie,We,tt,rt;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(je)||ye(je)||de(je))for(We=this.options.noValidation,this.options.noValidation=!0,rt=new he(this.options).element("TEMP_ROOT"),rt.element(je),this.options.noValidation=We,tt=rt.children,it=0,Ie=tt.length;it<Ie;it++)Ve=tt[it],this.createChildNode(Ve),Ve.type===x.Element&&this.up();else this.node(je,Ze,ze);return this},Ae.prototype.attribute=function(je,Ze){var ze,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(je));if(je!=null&&(je=ke(je)),ye(je))for(ze in je)Ne.call(je,ze)&&(Ve=je[ze],this.attribute(ze,Ve));else de(Ze)&&(Ze=Ze.apply()),this.options.keepNullAttributes&&Ze==null?this.currentNode.attribs[je]=new oe(this,je,""):Ze!=null&&(this.currentNode.attribs[je]=new oe(this,je,Ze));return this},Ae.prototype.text=function(je){var Ze;return this.openCurrent(),Ze=new Me(this,je),this.onData(this.writer.text(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.cdata=function(je){var Ze;return this.openCurrent(),Ze=new se(this,je),this.onData(this.writer.cdata(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.comment=function(je){var Ze;return this.openCurrent(),Ze=new ee(this,je),this.onData(this.writer.comment(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.raw=function(je){var Ze;return this.openCurrent(),Ze=new ve(this,je),this.onData(this.writer.raw(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.instruction=function(je,Ze){var ze,Ve,it,Ie,We;if(this.openCurrent(),je!=null&&(je=ke(je)),Ze!=null&&(Ze=ke(Ze)),Array.isArray(je))for(ze=0,Ie=je.length;ze<Ie;ze++)Ve=je[ze],this.instruction(Ve);else if(ye(je))for(Ve in je)Ne.call(je,Ve)&&(it=je[Ve],this.instruction(Ve,it));else de(Ze)&&(Ze=Ze.apply()),We=new me(this,je,Ze),this.onData(this.writer.processingInstruction(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ae.prototype.declaration=function(je,Ze,ze){var Ve;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Ve=new le(this,je,Ze,ze),this.onData(this.writer.declaration(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.doctype=function(je,Ze,ze){if(this.openCurrent(),je==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 ce(this,Ze,ze),this.currentNode.rootNodeName=je,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ae.prototype.dtdElement=function(je,Ze){var ze;return this.openCurrent(),ze=new E(this,je,Ze),this.onData(this.writer.dtdElement(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.attList=function(je,Ze,ze,Ve,it){var Ie;return this.openCurrent(),Ie=new fe(this,je,Ze,ze,Ve,it),this.onData(this.writer.dtdAttList(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.entity=function(je,Ze){var ze;return this.openCurrent(),ze=new ie(this,!1,je,Ze),this.onData(this.writer.dtdEntity(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.pEntity=function(je,Ze){var ze;return this.openCurrent(),ze=new ie(this,!0,je,Ze),this.onData(this.writer.dtdEntity(ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.notation=function(je,Ze){var ze;return this.openCurrent(),ze=new re(this,je,Ze),this.onData(this.writer.dtdNotation(ze,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(je){var Ze,ze,Ve,it;if(!je.isOpen){if(!this.root&&this.currentLevel===0&&je.type===x.Element&&(this.root=je),ze="",je.type===x.Element){this.writerOptions.state=z.OpenTag,ze=this.writer.indent(je,this.writerOptions,this.currentLevel)+"<"+je.name,it=je.attribs;for(Ve in it)Ne.call(it,Ve)&&(Ze=it[Ve],ze+=this.writer.attribute(Ze,this.writerOptions,this.currentLevel));ze+=(je.children?">":"/>")+this.writer.endline(je,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,ze=this.writer.indent(je,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+je.rootNodeName,je.pubID&&je.sysID?ze+=' PUBLIC "'+je.pubID+'" "'+je.sysID+'"':je.sysID&&(ze+=' SYSTEM "'+je.sysID+'"'),je.children?(ze+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,ze+=">"),ze+=this.writer.endline(je,this.writerOptions,this.currentLevel);return this.onData(ze,this.currentLevel),je.isOpen=!0}},Ae.prototype.closeNode=function(je){var Ze;if(!je.isClosed)return Ze="",this.writerOptions.state=z.CloseTag,je.type===x.Element?Ze=this.writer.indent(je,this.writerOptions,this.currentLevel)+"</"+je.name+">"+this.writer.endline(je,this.writerOptions,this.currentLevel):Ze=this.writer.indent(je,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(je,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(Ze,this.currentLevel),je.isClosed=!0},Ae.prototype.onData=function(je,Ze){return this.documentStarted=!0,this.onDataCallback(je,Ze+1)},Ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ae.prototype.debugInfo=function(je){return je==null?"":"node: <"+je+">"},Ae.prototype.ele=function(){return this.element.apply(this,arguments)},Ae.prototype.nod=function(je,Ze,ze){return this.node(je,Ze,ze)},Ae.prototype.txt=function(je){return this.text(je)},Ae.prototype.dat=function(je){return this.cdata(je)},Ae.prototype.com=function(je){return this.comment(je)},Ae.prototype.ins=function(je,Ze){return this.instruction(je,Ze)},Ae.prototype.dec=function(je,Ze,ze){return this.declaration(je,Ze,ze)},Ae.prototype.dtd=function(je,Ze,ze){return this.doctype(je,Ze,ze)},Ae.prototype.e=function(je,Ze,ze){return this.element(je,Ze,ze)},Ae.prototype.n=function(je,Ze,ze){return this.node(je,Ze,ze)},Ae.prototype.t=function(je){return this.text(je)},Ae.prototype.d=function(je){return this.cdata(je)},Ae.prototype.c=function(je){return this.comment(je)},Ae.prototype.r=function(je){return this.raw(je)},Ae.prototype.i=function(je,Ze){return this.instruction(je,Ze)},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(je,Ze){return this.entity(je,Ze)},Ae.prototype.pent=function(je,Ze){return this.pEntity(je,Ze)},Ae.prototype.not=function(je,Ze){return this.notation(je,Ze)},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,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),De.exports=z=function(fe){se(E,fe);function E(ie){E.__super__.constructor.call(this,ie),this.type=x.Dummy}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ie){return""},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re,le=function(he,ge){for(var be in ge)ce.call(ge,be)&&(he[be]=ge[be]);function me(){this.constructor=he}return me.prototype=ge.prototype,he.prototype=new me,he.__super__=ge.prototype,he},ce={}.hasOwnProperty;re=y("./Utility"),ie=re.isObject,E=re.isFunction,fe=re.getValue,ee=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLAttribute"),se=y("./XMLNamedNodeMap"),De.exports=oe=function(he){le(ge,he);function ge(be,me,ve){var Ce,Te,Me,ke;if(ge.__super__.constructor.call(this,be),me==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(me),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,ve!=null&&this.attribute(ve),be.type===x.Document&&(this.isRoot=!0,this.documentObject=be,be.rootObject=this,be.children)){for(ke=be.children,Te=0,Me=ke.length;Te<Me;Te++)if(Ce=ke[Te],Ce.type===x.DocType){Ce.name=this.name;break}}}return Object.defineProperty(ge.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(ge.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ge.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ge.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ge.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ge.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ge.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ge.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new se(this.attribs)),this.attributeMap}}),ge.prototype.clone=function(){var be,me,ve,Ce;ve=Object.create(this),ve.isRoot&&(ve.documentObject=null),ve.attribs={},Ce=this.attribs;for(me in Ce)ce.call(Ce,me)&&(be=Ce[me],ve.attribs[me]=be.clone());return ve.children=[],this.children.forEach(function(Te){var Me;return Me=Te.clone(),Me.parent=ve,ve.children.push(Me)}),ve},ge.prototype.attribute=function(be,me){var ve,Ce;if(be!=null&&(be=fe(be)),ie(be))for(ve in be)ce.call(be,ve)&&(Ce=be[ve],this.attribute(ve,Ce));else E(me)&&(me=me.apply()),this.options.keepNullAttributes&&me==null?this.attribs[be]=new z(this,be,""):me!=null&&(this.attribs[be]=new z(this,be,me));return this},ge.prototype.removeAttribute=function(be){var me,ve,Ce;if(be==null)throw new Error("Missing attribute name. "+this.debugInfo());if(be=fe(be),Array.isArray(be))for(ve=0,Ce=be.length;ve<Ce;ve++)me=be[ve],delete this.attribs[me];else delete this.attribs[be];return this},ge.prototype.toString=function(be){return this.options.writer.element(this,this.options.writer.filterOptions(be))},ge.prototype.att=function(be,me){return this.attribute(be,me)},ge.prototype.a=function(be,me){return this.attribute(be,me)},ge.prototype.getAttribute=function(be){return this.attribs.hasOwnProperty(be)?this.attribs[be].value:null},ge.prototype.setAttribute=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getAttributeNode=function(be){return this.attribs.hasOwnProperty(be)?this.attribs[be]:null},ge.prototype.setAttributeNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.removeAttributeNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getElementsByTagName=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getAttributeNS=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.setAttributeNS=function(be,me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.removeAttributeNS=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getAttributeNodeNS=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.setAttributeNodeNS=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getElementsByTagNameNS=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.hasAttribute=function(be){return this.attribs.hasOwnProperty(be)},ge.prototype.hasAttributeNS=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.setIdAttribute=function(be,me){return this.attribs.hasOwnProperty(be)?this.attribs[be].isId:me},ge.prototype.setIdAttributeNS=function(be,me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.setIdAttributeNode=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getElementsByTagName=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getElementsByTagNameNS=function(be,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getElementsByClassName=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.isEqualNode=function(be){var me,ve,Ce;if(!ge.__super__.isEqualNode.apply(this,arguments).isEqualNode(be)||be.namespaceURI!==this.namespaceURI||be.prefix!==this.prefix||be.localName!==this.localName||be.attribs.length!==this.attribs.length)return!1;for(me=ve=0,Ce=this.attribs.length-1;0<=Ce?ve<=Ce:ve>=Ce;me=0<=Ce?++ve:--ve)if(!this.attribs[me].isEqualNode(be.attribs[me]))return!1;return!0},ge}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,De,xe){(function(){var x;De.exports=x=function(){function z(oe){this.nodes=oe}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(oe){return this.nodes[oe]},z.prototype.setNamedItem=function(oe){var se;return se=this.nodes[oe.nodeName],this.nodes[oe.nodeName]=oe,se||null},z.prototype.removeNamedItem=function(oe){var se;return se=this.nodes[oe],delete this.nodes[oe],se||null},z.prototype.item=function(oe){return this.nodes[Object.keys(this.nodes)[oe]]||null},z.prototype.getNamedItemNS=function(oe,se){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(oe){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(oe,se){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(y,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re,le,ce,he,ge,be,me,ve,Ce,Te,Me,ke={}.hasOwnProperty;Me=y("./Utility"),Te=Me.isObject,Ce=Me.isFunction,ve=Me.isEmpty,me=Me.getValue,ie=null,oe=null,se=null,ee=null,fe=null,ge=null,be=null,he=null,E=null,z=null,ce=null,re=null,x=null,De.exports=le=function(){function de(ye){this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ie||(ie=y("./XMLElement"),oe=y("./XMLCData"),se=y("./XMLComment"),ee=y("./XMLDeclaration"),fe=y("./XMLDocType"),ge=y("./XMLRaw"),be=y("./XMLText"),he=y("./XMLProcessingInstruction"),E=y("./XMLDummy"),z=y("./NodeType"),ce=y("./XMLNodeList"),re=y("./XMLNamedNodeMap"),x=y("./DocumentPosition"))}return Object.defineProperty(de.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(de.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(de.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(de.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(de.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ce(this.children)),this.childNodeList}}),Object.defineProperty(de.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(de.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(de.prototype,"previousSibling",{get:function(){var ye;return ye=this.parent.children.indexOf(this),this.parent.children[ye-1]||null}}),Object.defineProperty(de.prototype,"nextSibling",{get:function(){var ye;return ye=this.parent.children.indexOf(this),this.parent.children[ye+1]||null}}),Object.defineProperty(de.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(de.prototype,"textContent",{get:function(){var ye,Se,Oe,Ne,Ae;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Ae="",Ne=this.children,Se=0,Oe=Ne.length;Se<Oe;Se++)ye=Ne[Se],ye.textContent&&(Ae+=ye.textContent);return Ae}else return null},set:function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),de.prototype.setParent=function(ye){var Se,Oe,Ne,Ae,je;for(this.parent=ye,ye&&(this.options=ye.options,this.stringify=ye.stringify),Ae=this.children,je=[],Oe=0,Ne=Ae.length;Oe<Ne;Oe++)Se=Ae[Oe],je.push(Se.setParent(this));return je},de.prototype.element=function(ye,Se,Oe){var Ne,Ae,je,Ze,ze,Ve,it,Ie,We,tt,rt;if(Ve=null,Se===null&&Oe==null&&(We=[{},null],Se=We[0],Oe=We[1]),Se==null&&(Se={}),Se=me(Se),Te(Se)||(tt=[Se,Oe],Oe=tt[0],Se=tt[1]),ye!=null&&(ye=me(ye)),Array.isArray(ye))for(je=0,it=ye.length;je<it;je++)Ae=ye[je],Ve=this.element(Ae);else if(Ce(ye))Ve=this.element(ye.apply());else if(Te(ye)){for(ze in ye)if(ke.call(ye,ze))if(rt=ye[ze],Ce(rt)&&(rt=rt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ze.indexOf(this.stringify.convertAttKey)===0)Ve=this.attribute(ze.substr(this.stringify.convertAttKey.length),rt);else if(!this.options.separateArrayItems&&Array.isArray(rt)&&ve(rt))Ve=this.dummy();else if(Te(rt)&&ve(rt))Ve=this.element(ze);else if(!this.options.keepNullNodes&&rt==null)Ve=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(rt))for(Ze=0,Ie=rt.length;Ze<Ie;Ze++)Ae=rt[Ze],Ne={},Ne[ze]=Ae,Ve=this.element(Ne);else Te(rt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ze.indexOf(this.stringify.convertTextKey)===0?Ve=this.element(rt):(Ve=this.element(ze),Ve.element(rt)):Ve=this.element(ze,rt)}else!this.options.keepNullNodes&&Oe===null?Ve=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ye.indexOf(this.stringify.convertTextKey)===0?Ve=this.text(Oe):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ye.indexOf(this.stringify.convertCDataKey)===0?Ve=this.cdata(Oe):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ye.indexOf(this.stringify.convertCommentKey)===0?Ve=this.comment(Oe):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ye.indexOf(this.stringify.convertRawKey)===0?Ve=this.raw(Oe):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ye.indexOf(this.stringify.convertPIKey)===0?Ve=this.instruction(ye.substr(this.stringify.convertPIKey.length),Oe):Ve=this.node(ye,Se,Oe);if(Ve==null)throw new Error("Could not create any elements with: "+ye+". "+this.debugInfo());return Ve},de.prototype.insertBefore=function(ye,Se,Oe){var Ne,Ae,je,Ze,ze;if(ye!=null&&ye.type)return je=ye,Ze=Se,je.setParent(this),Ze?(Ae=children.indexOf(Ze),ze=children.splice(Ae),children.push(je),Array.prototype.push.apply(children,ze)):children.push(je),je;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ye));return Ae=this.parent.children.indexOf(this),ze=this.parent.children.splice(Ae),Ne=this.parent.element(ye,Se,Oe),Array.prototype.push.apply(this.parent.children,ze),Ne},de.prototype.insertAfter=function(ye,Se,Oe){var Ne,Ae,je;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ye));return Ae=this.parent.children.indexOf(this),je=this.parent.children.splice(Ae+1),Ne=this.parent.element(ye,Se,Oe),Array.prototype.push.apply(this.parent.children,je),Ne},de.prototype.remove=function(){var ye,Se;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return ye=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ye,ye-ye+1].concat(Se=[])),this.parent},de.prototype.node=function(ye,Se,Oe){var Ne,Ae;return ye!=null&&(ye=me(ye)),Se||(Se={}),Se=me(Se),Te(Se)||(Ae=[Se,Oe],Oe=Ae[0],Se=Ae[1]),Ne=new ie(this,ye,Se),Oe!=null&&Ne.text(Oe),this.children.push(Ne),Ne},de.prototype.text=function(ye){var Se;return Te(ye)&&this.element(ye),Se=new be(this,ye),this.children.push(Se),this},de.prototype.cdata=function(ye){var Se;return Se=new oe(this,ye),this.children.push(Se),this},de.prototype.comment=function(ye){var Se;return Se=new se(this,ye),this.children.push(Se),this},de.prototype.commentBefore=function(ye){var Se,Oe,Ne;return Oe=this.parent.children.indexOf(this),Ne=this.parent.children.splice(Oe),Se=this.parent.comment(ye),Array.prototype.push.apply(this.parent.children,Ne),this},de.prototype.commentAfter=function(ye){var Se,Oe,Ne;return Oe=this.parent.children.indexOf(this),Ne=this.parent.children.splice(Oe+1),Se=this.parent.comment(ye),Array.prototype.push.apply(this.parent.children,Ne),this},de.prototype.raw=function(ye){var Se;return Se=new ge(this,ye),this.children.push(Se),this},de.prototype.dummy=function(){var ye;return ye=new E(this),ye},de.prototype.instruction=function(ye,Se){var Oe,Ne,Ae,je,Ze;if(ye!=null&&(ye=me(ye)),Se!=null&&(Se=me(Se)),Array.isArray(ye))for(je=0,Ze=ye.length;je<Ze;je++)Oe=ye[je],this.instruction(Oe);else if(Te(ye))for(Oe in ye)ke.call(ye,Oe)&&(Ne=ye[Oe],this.instruction(Oe,Ne));else Ce(Se)&&(Se=Se.apply()),Ae=new he(this,ye,Se),this.children.push(Ae);return this},de.prototype.instructionBefore=function(ye,Se){var Oe,Ne,Ae;return Ne=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Ne),Oe=this.parent.instruction(ye,Se),Array.prototype.push.apply(this.parent.children,Ae),this},de.prototype.instructionAfter=function(ye,Se){var Oe,Ne,Ae;return Ne=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Ne+1),Oe=this.parent.instruction(ye,Se),Array.prototype.push.apply(this.parent.children,Ae),this},de.prototype.declaration=function(ye,Se,Oe){var Ne,Ae;return Ne=this.document(),Ae=new ee(Ne,ye,Se,Oe),Ne.children.length===0?Ne.children.unshift(Ae):Ne.children[0].type===z.Declaration?Ne.children[0]=Ae:Ne.children.unshift(Ae),Ne.root()||Ne},de.prototype.dtd=function(ye,Se){var Oe,Ne,Ae,je,Ze,ze,Ve,it,Ie,We;for(Ne=this.document(),Ae=new fe(Ne,ye,Se),Ie=Ne.children,je=Ze=0,Ve=Ie.length;Ze<Ve;je=++Ze)if(Oe=Ie[je],Oe.type===z.DocType)return Ne.children[je]=Ae,Ae;for(We=Ne.children,je=ze=0,it=We.length;ze<it;je=++ze)if(Oe=We[je],Oe.isRoot)return Ne.children.splice(je,0,Ae),Ae;return Ne.children.push(Ae),Ae},de.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},de.prototype.root=function(){var ye;for(ye=this;ye;){if(ye.type===z.Document)return ye.rootObject;if(ye.isRoot)return ye;ye=ye.parent}},de.prototype.document=function(){var ye;for(ye=this;ye;){if(ye.type===z.Document)return ye;ye=ye.parent}},de.prototype.end=function(ye){return this.document().end(ye)},de.prototype.prev=function(){var ye;if(ye=this.parent.children.indexOf(this),ye<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[ye-1]},de.prototype.next=function(){var ye;if(ye=this.parent.children.indexOf(this),ye===-1||ye===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[ye+1]},de.prototype.importDocument=function(ye){var Se;return Se=ye.root().clone(),Se.parent=this,Se.isRoot=!1,this.children.push(Se),this},de.prototype.debugInfo=function(ye){var Se,Oe;return ye=ye||this.name,ye==null&&!((Se=this.parent)!=null&&Se.name)?"":ye==null?"parent: <"+this.parent.name+">":(Oe=this.parent)!=null&&Oe.name?"node: <"+ye+">, parent: <"+this.parent.name+">":"node: <"+ye+">"},de.prototype.ele=function(ye,Se,Oe){return this.element(ye,Se,Oe)},de.prototype.nod=function(ye,Se,Oe){return this.node(ye,Se,Oe)},de.prototype.txt=function(ye){return this.text(ye)},de.prototype.dat=function(ye){return this.cdata(ye)},de.prototype.com=function(ye){return this.comment(ye)},de.prototype.ins=function(ye,Se){return this.instruction(ye,Se)},de.prototype.doc=function(){return this.document()},de.prototype.dec=function(ye,Se,Oe){return this.declaration(ye,Se,Oe)},de.prototype.e=function(ye,Se,Oe){return this.element(ye,Se,Oe)},de.prototype.n=function(ye,Se,Oe){return this.node(ye,Se,Oe)},de.prototype.t=function(ye){return this.text(ye)},de.prototype.d=function(ye){return this.cdata(ye)},de.prototype.c=function(ye){return this.comment(ye)},de.prototype.r=function(ye){return this.raw(ye)},de.prototype.i=function(ye,Se){return this.instruction(ye,Se)},de.prototype.u=function(){return this.up()},de.prototype.importXMLBuilder=function(ye){return this.importDocument(ye)},de.prototype.replaceChild=function(ye,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.removeChild=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.appendChild=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.hasChildNodes=function(){return this.children.length!==0},de.prototype.cloneNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isSupported=function(ye,Se){return!0},de.prototype.hasAttributes=function(){return this.attribs.length!==0},de.prototype.compareDocumentPosition=function(ye){var Se,Oe;return Se=this,Se===ye?0:this.document()!==ye.document()?(Oe=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?Oe|=x.Preceding:Oe|=x.Following,Oe):Se.isAncestor(ye)?x.Contains|x.Preceding:Se.isDescendant(ye)?x.Contains|x.Following:Se.isPreceding(ye)?x.Preceding:x.Following},de.prototype.isSameNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.lookupPrefix=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isDefaultNamespace=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.lookupNamespaceURI=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isEqualNode=function(ye){var Se,Oe,Ne;if(ye.nodeType!==this.nodeType||ye.children.length!==this.children.length)return!1;for(Se=Oe=0,Ne=this.children.length-1;0<=Ne?Oe<=Ne:Oe>=Ne;Se=0<=Ne?++Oe:--Oe)if(!this.children[Se].isEqualNode(ye.children[Se]))return!1;return!0},de.prototype.getFeature=function(ye,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.setUserData=function(ye,Se,Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getUserData=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.contains=function(ye){return ye?ye===this||this.isDescendant(ye):!1},de.prototype.isDescendant=function(ye){var Se,Oe,Ne,Ae,je;for(je=this.children,Ne=0,Ae=je.length;Ne<Ae;Ne++)if(Se=je[Ne],ye===Se||(Oe=Se.isDescendant(ye),Oe))return!0;return!1},de.prototype.isAncestor=function(ye){return ye.isDescendant(this)},de.prototype.isPreceding=function(ye){var Se,Oe;return Se=this.treePosition(ye),Oe=this.treePosition(this),Se===-1||Oe===-1?!1:Se<Oe},de.prototype.isFollowing=function(ye){var Se,Oe;return Se=this.treePosition(ye),Oe=this.treePosition(this),Se===-1||Oe===-1?!1:Se>Oe},de.prototype.treePosition=function(ye){var Se,Oe;return Oe=0,Se=!1,this.foreachTreeNode(this.document(),function(Ne){if(Oe++,!Se&&Ne===ye)return Se=!0}),Se?Oe:-1},de.prototype.foreachTreeNode=function(ye,Se){var Oe,Ne,Ae,je,Ze;for(ye||(ye=this.document()),je=ye.children,Ne=0,Ae=je.length;Ne<Ae;Ne++){if(Oe=je[Ne],Ze=Se(Oe))return Ze;if(Ze=this.foreachTreeNode(Oe,Se),Ze)return Ze}},de}()}).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,De,xe){(function(){var x;De.exports=x=function(){function z(oe){this.nodes=oe}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(oe){return this.nodes[oe]||null},z}()}).call(this)},{}],452:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),De.exports=oe=function(fe){se(E,fe);function E(ie,re,le){if(E.__super__.constructor.call(this,ie),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,le&&(this.value=this.stringify.insValue(le))}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ie){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ie))},E.prototype.isEqualNode=function(ie){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(ie)||ie.target!==this.target)},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLNode"),De.exports=oe=function(fe){se(E,fe);function E(ie,re){if(E.__super__.constructor.call(this,ie),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(ie){return this.options.writer.raw(this,this.options.writer.filterOptions(ie))},E}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,De,xe){(function(){var x,z,oe,se,ee=function(E,ie){for(var re in ie)fe.call(ie,re)&&(E[re]=ie[re]);function le(){this.constructor=E}return le.prototype=ie.prototype,E.prototype=new le,E.__super__=ie.prototype,E},fe={}.hasOwnProperty;x=y("./NodeType"),se=y("./XMLWriterBase"),z=y("./WriterState"),De.exports=oe=function(E){ee(ie,E);function ie(re,le){this.stream=re,ie.__super__.constructor.call(this,le)}return ie.prototype.endline=function(re,le,ce){return re.isLastRootNode&&le.state===z.CloseTag?"":ie.__super__.endline.call(this,re,le,ce)},ie.prototype.document=function(re,le){var ce,he,ge,be,me,ve,Ce,Te,Me;for(Ce=re.children,he=ge=0,me=Ce.length;ge<me;he=++ge)ce=Ce[he],ce.isLastRootNode=he===re.children.length-1;for(le=this.filterOptions(le),Te=re.children,Me=[],be=0,ve=Te.length;be<ve;be++)ce=Te[be],Me.push(this.writeChildNode(ce,le,0));return Me},ie.prototype.attribute=function(re,le,ce){return this.stream.write(ie.__super__.attribute.call(this,re,le,ce))},ie.prototype.cdata=function(re,le,ce){return this.stream.write(ie.__super__.cdata.call(this,re,le,ce))},ie.prototype.comment=function(re,le,ce){return this.stream.write(ie.__super__.comment.call(this,re,le,ce))},ie.prototype.declaration=function(re,le,ce){return this.stream.write(ie.__super__.declaration.call(this,re,le,ce))},ie.prototype.docType=function(re,le,ce){var he,ge,be,me;if(ce||(ce=0),this.openNode(re,le,ce),le.state=z.OpenTag,this.stream.write(this.indent(re,le,ce)),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,le,ce)),le.state=z.InsideTag,me=re.children,ge=0,be=me.length;ge<be;ge++)he=me[ge],this.writeChildNode(he,le,ce+1);le.state=z.CloseTag,this.stream.write("]")}return le.state=z.CloseTag,this.stream.write(le.spaceBeforeSlash+">"),this.stream.write(this.endline(re,le,ce)),le.state=z.None,this.closeNode(re,le,ce)},ie.prototype.element=function(re,le,ce){var he,ge,be,me,ve,Ce,Te,Me,ke,de;ce||(ce=0),this.openNode(re,le,ce),le.state=z.OpenTag,this.stream.write(this.indent(re,le,ce)+"<"+re.name),ke=re.attribs;for(Te in ke)fe.call(ke,Te)&&(he=ke[Te],this.attribute(he,le,ce));if(be=re.children.length,me=be===0?null:re.children[0],be===0||re.children.every(function(ye){return(ye.type===x.Text||ye.type===x.Raw)&&ye.value===""}))le.allowEmpty?(this.stream.write(">"),le.state=z.CloseTag,this.stream.write("</"+re.name+">")):(le.state=z.CloseTag,this.stream.write(le.spaceBeforeSlash+"/>"));else if(le.pretty&&be===1&&(me.type===x.Text||me.type===x.Raw)&&me.value!=null)this.stream.write(">"),le.state=z.InsideTag,le.suppressPrettyCount++,Me=!0,this.writeChildNode(me,le,ce+1),le.suppressPrettyCount--,Me=!1,le.state=z.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,le,ce)),le.state=z.InsideTag,de=re.children,ve=0,Ce=de.length;ve<Ce;ve++)ge=de[ve],this.writeChildNode(ge,le,ce+1);le.state=z.CloseTag,this.stream.write(this.indent(re,le,ce)+"</"+re.name+">")}return this.stream.write(this.endline(re,le,ce)),le.state=z.None,this.closeNode(re,le,ce)},ie.prototype.processingInstruction=function(re,le,ce){return this.stream.write(ie.__super__.processingInstruction.call(this,re,le,ce))},ie.prototype.raw=function(re,le,ce){return this.stream.write(ie.__super__.raw.call(this,re,le,ce))},ie.prototype.text=function(re,le,ce){return this.stream.write(ie.__super__.text.call(this,re,le,ce))},ie.prototype.dtdAttList=function(re,le,ce){return this.stream.write(ie.__super__.dtdAttList.call(this,re,le,ce))},ie.prototype.dtdElement=function(re,le,ce){return this.stream.write(ie.__super__.dtdElement.call(this,re,le,ce))},ie.prototype.dtdEntity=function(re,le,ce){return this.stream.write(ie.__super__.dtdEntity.call(this,re,le,ce))},ie.prototype.dtdNotation=function(re,le,ce){return this.stream.write(ie.__super__.dtdNotation.call(this,re,le,ce))},ie}(se)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,De,xe){(function(){var x,z,oe=function(ee,fe){for(var E in fe)se.call(fe,E)&&(ee[E]=fe[E]);function ie(){this.constructor=ee}return ie.prototype=fe.prototype,ee.prototype=new ie,ee.__super__=fe.prototype,ee},se={}.hasOwnProperty;z=y("./XMLWriterBase"),De.exports=x=function(ee){oe(fe,ee);function fe(E){fe.__super__.constructor.call(this,E)}return fe.prototype.document=function(E,ie){var re,le,ce,he,ge;for(ie=this.filterOptions(ie),he="",ge=E.children,le=0,ce=ge.length;le<ce;le++)re=ge[le],he+=this.writeChildNode(re,ie,0);return ie.pretty&&he.slice(-ie.newline.length)===ie.newline&&(he=he.slice(0,-ie.newline.length)),he},fe}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,De,xe){(function(){var x,z=function(se,ee){return function(){return se.apply(ee,arguments)}},oe={}.hasOwnProperty;De.exports=x=function(){function se(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var fe,E,ie;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),E=ee.stringify||{};for(fe in E)oe.call(E,fe)&&(ie=E[fe],this[fe]=ie)}return se.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},se.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},se.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},se.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)},se.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},se.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},se.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.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)},se.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},se.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)},se.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},se.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.convertAttKey="@",se.prototype.convertPIKey="?",se.prototype.convertTextKey="#text",se.prototype.convertCDataKey="#cdata",se.prototype.convertCommentKey="#comment",se.prototype.convertRawKey="#raw",se.prototype.assertLegalChar=function(ee){var fe,E;if(this.options.noValidation)return ee;if(fe="",this.options.version==="1.0"){if(fe=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(fe))throw new Error("Invalid character in string: "+ee+" at index "+E.index)}else if(this.options.version==="1.1"&&(fe=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(fe)))throw new Error("Invalid character in string: "+ee+" at index "+E.index);return ee},se.prototype.assertLegalName=function(ee){var fe;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),fe=/^([: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(fe))throw new Error("Invalid character in name");return ee},se.prototype.textEscape=function(ee){var fe;return this.options.noValidation?ee:(fe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(fe,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},se.prototype.attEscape=function(ee){var fe;return this.options.noValidation?ee:(fe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(fe,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},se}()}).call(this)},{}],457:[function(y,De,xe){(function(){var x,z,oe,se=function(fe,E){for(var ie in E)ee.call(E,ie)&&(fe[ie]=E[ie]);function re(){this.constructor=fe}return re.prototype=E.prototype,fe.prototype=new re,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),De.exports=oe=function(fe){se(E,fe);function E(ie,re){if(E.__super__.constructor.call(this,ie),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 ie,re,le;for(le="",re=this.previousSibling;re;)le=re.data+le,re=re.previousSibling;for(le+=this.data,ie=this.nextSibling;ie;)le=le+ie.data,ie=ie.nextSibling;return le}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ie){return this.options.writer.text(this,this.options.writer.filterOptions(ie))},E.prototype.splitText=function(ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re,le,ce,he,ge,be,me,ve,Ce,Te={}.hasOwnProperty;Ce=y("./Utility").assign,x=y("./NodeType"),re=y("./XMLDeclaration"),le=y("./XMLDocType"),oe=y("./XMLCData"),se=y("./XMLComment"),he=y("./XMLElement"),be=y("./XMLRaw"),me=y("./XMLText"),ge=y("./XMLProcessingInstruction"),ce=y("./XMLDummy"),ee=y("./XMLDTDAttList"),fe=y("./XMLDTDElement"),E=y("./XMLDTDEntity"),ie=y("./XMLDTDNotation"),z=y("./WriterState"),De.exports=ve=function(){function Me(ke){var de,ye,Se;ke||(ke={}),this.options=ke,ye=ke.writer||{};for(de in ye)Te.call(ye,de)&&(Se=ye[de],this["_"+de]=this[de],this[de]=Se)}return Me.prototype.filterOptions=function(ke){var de,ye,Se,Oe,Ne,Ae,je,Ze;return ke||(ke={}),ke=Ce({},this.options,ke),de={writer:this},de.pretty=ke.pretty||!1,de.allowEmpty=ke.allowEmpty||!1,de.indent=(ye=ke.indent)!=null?ye:" ",de.newline=(Se=ke.newline)!=null?Se:`
`,de.offset=(Oe=ke.offset)!=null?Oe:0,de.dontPrettyTextNodes=(Ne=(Ae=ke.dontPrettyTextNodes)!=null?Ae:ke.dontprettytextnodes)!=null?Ne:0,de.spaceBeforeSlash=(je=(Ze=ke.spaceBeforeSlash)!=null?Ze:ke.spacebeforeslash)!=null?je:"",de.spaceBeforeSlash===!0&&(de.spaceBeforeSlash=" "),de.suppressPrettyCount=0,de.user={},de.state=z.None,de},Me.prototype.indent=function(ke,de,ye){var Se;return!de.pretty||de.suppressPrettyCount?"":de.pretty&&(Se=(ye||0)+de.offset+1,Se>0)?new Array(Se).join(de.indent):""},Me.prototype.endline=function(ke,de,ye){return!de.pretty||de.suppressPrettyCount?"":de.newline},Me.prototype.attribute=function(ke,de,ye){var Se;return this.openAttribute(ke,de,ye),Se=" "+ke.name+'="'+ke.value+'"',this.closeAttribute(ke,de,ye),Se},Me.prototype.cdata=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<![CDATA[",de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+="]]>"+this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.comment=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<!-- ",de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+=" -->"+this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.declaration=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<?xml",de.state=z.InsideTag,Se+=' version="'+ke.version+'"',ke.encoding!=null&&(Se+=' encoding="'+ke.encoding+'"'),ke.standalone!=null&&(Se+=' standalone="'+ke.standalone+'"'),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+"?>",Se+=this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.docType=function(ke,de,ye){var Se,Oe,Ne,Ae,je;if(ye||(ye=0),this.openNode(ke,de,ye),de.state=z.OpenTag,Ae=this.indent(ke,de,ye),Ae+="<!DOCTYPE "+ke.root().name,ke.pubID&&ke.sysID?Ae+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.sysID&&(Ae+=' SYSTEM "'+ke.sysID+'"'),ke.children.length>0){for(Ae+=" [",Ae+=this.endline(ke,de,ye),de.state=z.InsideTag,je=ke.children,Oe=0,Ne=je.length;Oe<Ne;Oe++)Se=je[Oe],Ae+=this.writeChildNode(Se,de,ye+1);de.state=z.CloseTag,Ae+="]"}return de.state=z.CloseTag,Ae+=de.spaceBeforeSlash+">",Ae+=this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Ae},Me.prototype.element=function(ke,de,ye){var Se,Oe,Ne,Ae,je,Ze,ze,Ve,it,Ie,We,tt,rt,et;ye||(ye=0),Ie=!1,We="",this.openNode(ke,de,ye),de.state=z.OpenTag,We+=this.indent(ke,de,ye)+"<"+ke.name,tt=ke.attribs;for(it in tt)Te.call(tt,it)&&(Se=tt[it],We+=this.attribute(Se,de,ye));if(Ne=ke.children.length,Ae=Ne===0?null:ke.children[0],Ne===0||ke.children.every(function(Ke){return(Ke.type===x.Text||Ke.type===x.Raw)&&Ke.value===""}))de.allowEmpty?(We+=">",de.state=z.CloseTag,We+="</"+ke.name+">"+this.endline(ke,de,ye)):(de.state=z.CloseTag,We+=de.spaceBeforeSlash+"/>"+this.endline(ke,de,ye));else if(de.pretty&&Ne===1&&(Ae.type===x.Text||Ae.type===x.Raw)&&Ae.value!=null)We+=">",de.state=z.InsideTag,de.suppressPrettyCount++,Ie=!0,We+=this.writeChildNode(Ae,de,ye+1),de.suppressPrettyCount--,Ie=!1,de.state=z.CloseTag,We+="</"+ke.name+">"+this.endline(ke,de,ye);else{if(de.dontPrettyTextNodes){for(rt=ke.children,je=0,ze=rt.length;je<ze;je++)if(Oe=rt[je],(Oe.type===x.Text||Oe.type===x.Raw)&&Oe.value!=null){de.suppressPrettyCount++,Ie=!0;break}}for(We+=">"+this.endline(ke,de,ye),de.state=z.InsideTag,et=ke.children,Ze=0,Ve=et.length;Ze<Ve;Ze++)Oe=et[Ze],We+=this.writeChildNode(Oe,de,ye+1);de.state=z.CloseTag,We+=this.indent(ke,de,ye)+"</"+ke.name+">",Ie&&de.suppressPrettyCount--,We+=this.endline(ke,de,ye),de.state=z.None}return this.closeNode(ke,de,ye),We},Me.prototype.writeChildNode=function(ke,de,ye){switch(ke.type){case x.CData:return this.cdata(ke,de,ye);case x.Comment:return this.comment(ke,de,ye);case x.Element:return this.element(ke,de,ye);case x.Raw:return this.raw(ke,de,ye);case x.Text:return this.text(ke,de,ye);case x.ProcessingInstruction:return this.processingInstruction(ke,de,ye);case x.Dummy:return"";case x.Declaration:return this.declaration(ke,de,ye);case x.DocType:return this.docType(ke,de,ye);case x.AttributeDeclaration:return this.dtdAttList(ke,de,ye);case x.ElementDeclaration:return this.dtdElement(ke,de,ye);case x.EntityDeclaration:return this.dtdEntity(ke,de,ye);case x.NotationDeclaration:return this.dtdNotation(ke,de,ye);default:throw new Error("Unknown XML node type: "+ke.constructor.name)}},Me.prototype.processingInstruction=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<?",de.state=z.InsideTag,Se+=ke.target,ke.value&&(Se+=" "+ke.value),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+"?>",Se+=this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.raw=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye),de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+=this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.text=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye),de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+=this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.dtdAttList=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<!ATTLIST",de.state=z.InsideTag,Se+=" "+ke.elementName+" "+ke.attributeName+" "+ke.attributeType,ke.defaultValueType!=="#DEFAULT"&&(Se+=" "+ke.defaultValueType),ke.defaultValue&&(Se+=' "'+ke.defaultValue+'"'),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.dtdElement=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<!ELEMENT",de.state=z.InsideTag,Se+=" "+ke.name+" "+ke.value,de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.dtdEntity=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<!ENTITY",de.state=z.InsideTag,ke.pe&&(Se+=" %"),Se+=" "+ke.name,ke.value?Se+=' "'+ke.value+'"':(ke.pubID&&ke.sysID?Se+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.sysID&&(Se+=' SYSTEM "'+ke.sysID+'"'),ke.nData&&(Se+=" NDATA "+ke.nData)),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.dtdNotation=function(ke,de,ye){var Se;return this.openNode(ke,de,ye),de.state=z.OpenTag,Se=this.indent(ke,de,ye)+"<!NOTATION",de.state=z.InsideTag,Se+=" "+ke.name,ke.pubID&&ke.sysID?Se+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.pubID?Se+=' PUBLIC "'+ke.pubID+'"':ke.sysID&&(Se+=' SYSTEM "'+ke.sysID+'"'),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ye),de.state=z.None,this.closeNode(ke,de,ye),Se},Me.prototype.openNode=function(ke,de,ye){},Me.prototype.closeNode=function(ke,de,ye){},Me.prototype.openAttribute=function(ke,de,ye){},Me.prototype.closeAttribute=function(ke,de,ye){},Me}()}).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,De,xe){(function(){var x,z,oe,se,ee,fe,E,ie,re,le;le=y("./Utility"),ie=le.assign,re=le.isFunction,oe=y("./XMLDOMImplementation"),se=y("./XMLDocument"),ee=y("./XMLDocumentCB"),E=y("./XMLStringWriter"),fe=y("./XMLStreamWriter"),x=y("./NodeType"),z=y("./WriterState"),De.exports.create=function(ce,he,ge,be){var me,ve;if(ce==null)throw new Error("Root element needs a name.");return be=ie({},he,ge,be),me=new se(be),ve=me.element(ce),be.headless||(me.declaration(be),(be.pubID!=null||be.sysID!=null)&&me.dtd(be)),ve},De.exports.begin=function(ce,he,ge){var be;return re(ce)&&(be=[ce,he],he=be[0],ge=be[1],ce={}),he?new ee(ce,he,ge):new se(ce)},De.exports.stringWriter=function(ce){return new E(ce)},De.exports.streamWriter=function(ce,he){return new fe(ce,he)},De.exports.implementation=new oe,De.exports.nodeType=x,De.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,De,xe){De.exports=z;var x=Object.prototype.hasOwnProperty;function z(){for(var oe={},se=0;se<arguments.length;se++){var ee=arguments[se];for(var fe in ee)x.call(ee,fe)&&(oe[fe]=ee[fe])}return oe}},{}],461:[function(y,De,xe){"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"),oe=y("./md5"),se={sha1:z,md5:oe},ee=64,fe=x.alloc(ee);fe.fill(0);function E(le,ce,he){x.isBuffer(ce)||(ce=x.from(ce)),x.isBuffer(he)||(he=x.from(he)),ce.length>ee?ce=le(ce):ce.length<ee&&(ce=x.concat([ce,fe],ee));for(var ge=x.alloc(ee),be=x.alloc(ee),me=0;me<ee;me++)ge[me]=ce[me]^54,be[me]=ce[me]^92;var ve=le(x.concat([ge,he]));return le(x.concat([be,ve]))}function ie(le,ce){le=le||"sha1";var he=se[le],ge=[],be=0;return he||re("algorithm:",le,"is not yet supported"),{update:function(ve){return x.isBuffer(ve)||(ve=x.from(ve)),ge.push(ve),be+=ve.length,this},digest:function(ve){var Ce=x.concat(ge),Te=ce?E(he,ce,Ce):he(Ce);return ge=null,ve?Te.toString(ve):Te}}}function re(){var le=[].slice.call(arguments).join(" ");throw new Error([le,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}xe.createHash=function(le){return ie(le)},xe.createHmac=function(le,ce){return ie(le,ce)},xe.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},xe.createCipher=function(){re("sorry,createCipher is not implemented yet")},xe.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},xe.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},xe.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},xe.createSign=function(){re("sorry,createSign is not implemented yet")},xe.createVerify=function(){re("sorry,createVerify is not implemented yet")},xe.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},xe.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,De,xe){"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,oe=x.alloc(z);oe.fill(0);var se=8;function ee(ie,re){if(ie.length%z!==0){var le=ie.length+(z-ie.length%z);ie=x.concat([ie,oe],le)}for(var ce=[],he=re?ie.readInt32BE:ie.readInt32LE,ge=0;ge<ie.length;ge+=z)ce.push(he.call(ie,ge));return ce}function fe(ie,re,le){for(var ce=x.alloc(re),he=le?ce.writeInt32BE:ce.writeInt32LE,ge=0;ge<ie.length;ge++)he.call(ce,ie[ge],ge*4,!0);return ce}function E(ie,re,le,ce){x.isBuffer(ie)||(ie=x.from(ie));var he=re(ee(ie,ce),ie.length*se);return fe(he,le,ce)}De.exports={hash:E}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,De,xe){"use strict";var x=y("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function oe(ce,he){ce[he>>5]|=128<<he%32,ce[(he+64>>>9<<4)+14]=he;for(var ge=1732584193,be=-271733879,me=-1732584194,ve=271733878,Ce=0;Ce<ce.length;Ce+=16){var Te=ge,Me=be,ke=me,de=ve;ge=ee(ge,be,me,ve,ce[Ce+0],7,-680876936),ve=ee(ve,ge,be,me,ce[Ce+1],12,-389564586),me=ee(me,ve,ge,be,ce[Ce+2],17,606105819),be=ee(be,me,ve,ge,ce[Ce+3],22,-1044525330),ge=ee(ge,be,me,ve,ce[Ce+4],7,-176418897),ve=ee(ve,ge,be,me,ce[Ce+5],12,1200080426),me=ee(me,ve,ge,be,ce[Ce+6],17,-1473231341),be=ee(be,me,ve,ge,ce[Ce+7],22,-45705983),ge=ee(ge,be,me,ve,ce[Ce+8],7,1770035416),ve=ee(ve,ge,be,me,ce[Ce+9],12,-1958414417),me=ee(me,ve,ge,be,ce[Ce+10],17,-42063),be=ee(be,me,ve,ge,ce[Ce+11],22,-1990404162),ge=ee(ge,be,me,ve,ce[Ce+12],7,1804603682),ve=ee(ve,ge,be,me,ce[Ce+13],12,-40341101),me=ee(me,ve,ge,be,ce[Ce+14],17,-1502002290),be=ee(be,me,ve,ge,ce[Ce+15],22,1236535329),ge=fe(ge,be,me,ve,ce[Ce+1],5,-165796510),ve=fe(ve,ge,be,me,ce[Ce+6],9,-1069501632),me=fe(me,ve,ge,be,ce[Ce+11],14,643717713),be=fe(be,me,ve,ge,ce[Ce+0],20,-373897302),ge=fe(ge,be,me,ve,ce[Ce+5],5,-701558691),ve=fe(ve,ge,be,me,ce[Ce+10],9,38016083),me=fe(me,ve,ge,be,ce[Ce+15],14,-660478335),be=fe(be,me,ve,ge,ce[Ce+4],20,-405537848),ge=fe(ge,be,me,ve,ce[Ce+9],5,568446438),ve=fe(ve,ge,be,me,ce[Ce+14],9,-1019803690),me=fe(me,ve,ge,be,ce[Ce+3],14,-187363961),be=fe(be,me,ve,ge,ce[Ce+8],20,1163531501),ge=fe(ge,be,me,ve,ce[Ce+13],5,-1444681467),ve=fe(ve,ge,be,me,ce[Ce+2],9,-51403784),me=fe(me,ve,ge,be,ce[Ce+7],14,1735328473),be=fe(be,me,ve,ge,ce[Ce+12],20,-1926607734),ge=E(ge,be,me,ve,ce[Ce+5],4,-378558),ve=E(ve,ge,be,me,ce[Ce+8],11,-2022574463),me=E(me,ve,ge,be,ce[Ce+11],16,1839030562),be=E(be,me,ve,ge,ce[Ce+14],23,-35309556),ge=E(ge,be,me,ve,ce[Ce+1],4,-1530992060),ve=E(ve,ge,be,me,ce[Ce+4],11,1272893353),me=E(me,ve,ge,be,ce[Ce+7],16,-155497632),be=E(be,me,ve,ge,ce[Ce+10],23,-1094730640),ge=E(ge,be,me,ve,ce[Ce+13],4,681279174),ve=E(ve,ge,be,me,ce[Ce+0],11,-358537222),me=E(me,ve,ge,be,ce[Ce+3],16,-722521979),be=E(be,me,ve,ge,ce[Ce+6],23,76029189),ge=E(ge,be,me,ve,ce[Ce+9],4,-640364487),ve=E(ve,ge,be,me,ce[Ce+12],11,-421815835),me=E(me,ve,ge,be,ce[Ce+15],16,530742520),be=E(be,me,ve,ge,ce[Ce+2],23,-995338651),ge=ie(ge,be,me,ve,ce[Ce+0],6,-198630844),ve=ie(ve,ge,be,me,ce[Ce+7],10,1126891415),me=ie(me,ve,ge,be,ce[Ce+14],15,-1416354905),be=ie(be,me,ve,ge,ce[Ce+5],21,-57434055),ge=ie(ge,be,me,ve,ce[Ce+12],6,1700485571),ve=ie(ve,ge,be,me,ce[Ce+3],10,-1894986606),me=ie(me,ve,ge,be,ce[Ce+10],15,-1051523),be=ie(be,me,ve,ge,ce[Ce+1],21,-2054922799),ge=ie(ge,be,me,ve,ce[Ce+8],6,1873313359),ve=ie(ve,ge,be,me,ce[Ce+15],10,-30611744),me=ie(me,ve,ge,be,ce[Ce+6],15,-1560198380),be=ie(be,me,ve,ge,ce[Ce+13],21,1309151649),ge=ie(ge,be,me,ve,ce[Ce+4],6,-145523070),ve=ie(ve,ge,be,me,ce[Ce+11],10,-1120210379),me=ie(me,ve,ge,be,ce[Ce+2],15,718787259),be=ie(be,me,ve,ge,ce[Ce+9],21,-343485551),ge=re(ge,Te),be=re(be,Me),me=re(me,ke),ve=re(ve,de)}return Array(ge,be,me,ve)}function se(ce,he,ge,be,me,ve){return re(le(re(re(he,ce),re(be,ve)),me),ge)}function ee(ce,he,ge,be,me,ve,Ce){return se(he&ge|~he&be,ce,he,me,ve,Ce)}function fe(ce,he,ge,be,me,ve,Ce){return se(he&be|ge&~be,ce,he,me,ve,Ce)}function E(ce,he,ge,be,me,ve,Ce){return se(he^ge^be,ce,he,me,ve,Ce)}function ie(ce,he,ge,be,me,ve,Ce){return se(ge^(he|~be),ce,he,me,ve,Ce)}function re(ce,he){var ge=(ce&65535)+(he&65535),be=(ce>>16)+(he>>16)+(ge>>16);return be<<16|ge&65535}function le(ce,he){return ce<<he|ce>>>32-he}De.exports=function(he){return x.hash(he,oe,16)}},{"./helpers":462}],464:[function(y,De,xe){"use strict";var x=y("./helpers");function z(E,ie){E[ie>>5]|=128<<24-ie%32,E[(ie+64>>9<<4)+15]=ie;for(var re=Array(80),le=1732584193,ce=-271733879,he=-1732584194,ge=271733878,be=-1009589776,me=0;me<E.length;me+=16){for(var ve=le,Ce=ce,Te=he,Me=ge,ke=be,de=0;de<80;de++){de<16?re[de]=E[me+de]:re[de]=fe(re[de-3]^re[de-8]^re[de-14]^re[de-16],1);var ye=ee(ee(fe(le,5),oe(de,ce,he,ge)),ee(ee(be,re[de]),se(de)));be=ge,ge=he,he=fe(ce,30),ce=le,le=ye}le=ee(le,ve),ce=ee(ce,Ce),he=ee(he,Te),ge=ee(ge,Me),be=ee(be,ke)}return Array(le,ce,he,ge,be)}function oe(E,ie,re,le){return E<20?ie&re|~ie&le:E<40?ie^re^le:E<60?ie&re|ie&le|re&le:ie^re^le}function se(E){return E<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514}function ee(E,ie){var re=(E&65535)+(ie&65535),le=(E>>16)+(ie>>16)+(re>>16);return le<<16|re&65535}function fe(E,ie){return E<<ie|E>>>32-ie}De.exports=function(ie){return x.hash(ie,z,20,!0)}},{"./helpers":462}],465:[function(y,De,xe){"use strict";De.exports=function(){return function(){}}},{}],466:[function(y,De,xe){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/helpers/typeof")),se=y("stream"),ee=se.Stream,fe=y("../lib/common/utils/isArray"),E=fe.isArray;De.exports.string=function(le){return typeof le=="string"},De.exports.array=E,De.exports.buffer=x.isBuffer;function ie(re){return re instanceof ee}De.exports.writableStream=function(le){return ie(le)&&typeof le._write=="function"&&(0,oe.default)(le._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,De,xe){"use strict";var x=y("immediate"),z=De.exports={};z.nextTick=x,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function oe(){}z.on=oe,z.addListener=oe,z.once=oe,z.off=oe,z.removeListener=oe,z.removeAllListeners=oe,z.emit=oe,z.prependListener=oe,z.prependOnceListener=oe,z.listeners=function(se){return[]},z.binding=function(se){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(se){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(y,De,xe){(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"),oe=y("./lib/response"),se=y("xtend"),ee=y("builtin-status-codes"),fe=y("url"),E=xe;E.request=function(ie,re){typeof ie=="string"?ie=fe.parse(ie):ie=se(ie);var le=x.location.protocol.search(/^https?:$/)===-1?"http:":"",ce=ie.protocol||le,he=ie.hostname||ie.host,ge=ie.port,be=ie.path||"/";he&&he.indexOf(":")!==-1&&(he="["+he+"]"),ie.url=(he?ce+"//"+he:"")+(ge?":"+ge:"")+be,ie.method=(ie.method||"GET").toUpperCase(),ie.headers=ie.headers||{};var me=new z(ie);return re&&me.on("response",re),me},E.get=function(re,le){var ce=E.request(re,le);return ce.end(),ce},E.ClientRequest=z,E.IncomingMessage=oe.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 Gt!="undefined"?Gt: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,De,xe){(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"),xe.fetch=E(x.fetch)&&E(x.ReadableStream),xe.writableStream=E(x.WritableStream),xe.abortController=E(x.AbortController),xe.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),xe.blobConstructor=!0}catch(ie){}var z;function oe(){if(z!==void 0)return z;if(x.XMLHttpRequest){z=new x.XMLHttpRequest;try{z.open("GET",x.XDomainRequest?"/":"https://example.com")}catch(ie){z=null}}else z=null;return z}function se(ie){var re=oe();if(!re)return!1;try{return re.responseType=ie,re.responseType===ie}catch(le){}return!1}var ee=typeof x.ArrayBuffer!="undefined",fe=ee&&E(x.ArrayBuffer.prototype.slice);xe.arraybuffer=xe.fetch||ee&&se("arraybuffer"),xe.msstream=!xe.fetch&&fe&&se("ms-stream"),xe.mozchunkedarraybuffer=!xe.fetch&&ee&&se("moz-chunked-arraybuffer"),xe.overrideMimeType=xe.fetch||(oe()?E(oe().overrideMimeType):!1),xe.vbArray=E(x.VBArray);function E(ie){return typeof ie=="function"}z=null}).call(this)}).call(this,typeof Gt!="undefined"?Gt: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,De,xe){(function(x,z,oe){(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 se=y("./capability"),ee=y("inherits"),fe=y("./response"),E=y("readable-stream"),ie=y("to-arraybuffer"),re=fe.IncomingMessage,le=fe.readyStates;function ce(me,ve){return se.fetch&&ve?"fetch":se.mozchunkedarraybuffer?"moz-chunked-arraybuffer":se.msstream?"ms-stream":se.arraybuffer&&me?"arraybuffer":se.vbArray&&me?"text:vbarray":"text"}var he=De.exports=function(me){var ve=this;E.Writable.call(ve),ve._opts=me,ve._body=[],ve._headers={},me.auth&&ve.setHeader("Authorization","Basic "+new oe(me.auth).toString("base64")),Object.keys(me.headers).forEach(function(Me){ve.setHeader(Me,me.headers[Me])});var Ce,Te=!0;if(me.mode==="disable-fetch"||"requestTimeout"in me&&!se.abortController)Te=!1,Ce=!0;else if(me.mode==="prefer-streaming")Ce=!1;else if(me.mode==="allow-wrong-content-type")Ce=!se.overrideMimeType;else if(!me.mode||me.mode==="default"||me.mode==="prefer-fast")Ce=!0;else throw new Error("Invalid value for opts.mode");ve._mode=ce(Ce,Te),ve._fetchTimer=null,ve.on("finish",function(){ve._onFinish()})};ee(he,E.Writable),he.prototype.setHeader=function(me,ve){var Ce=this,Te=me.toLowerCase();be.indexOf(Te)===-1&&(Ce._headers[Te]={name:me,value:ve})},he.prototype.getHeader=function(me){var ve=this._headers[me.toLowerCase()];return ve?ve.value:null},he.prototype.removeHeader=function(me){var ve=this;delete ve._headers[me.toLowerCase()]},he.prototype._onFinish=function(){var me=this;if(!me._destroyed){var ve=me._opts,Ce=me._headers,Te=null;ve.method!=="GET"&&ve.method!=="HEAD"&&(se.arraybuffer?Te=ie(oe.concat(me._body)):se.blobConstructor?Te=new z.Blob(me._body.map(function(Oe){return ie(Oe)}),{type:(Ce["content-type"]||{}).value||""}):Te=oe.concat(me._body).toString());var Me=[];if(Object.keys(Ce).forEach(function(Oe){var Ne=Ce[Oe].name,Ae=Ce[Oe].value;Array.isArray(Ae)?Ae.forEach(function(je){Me.push([Ne,je])}):Me.push([Ne,Ae])}),me._mode==="fetch"){var ke=null,de=null;if(se.abortController){var ye=new AbortController;ke=ye.signal,me._fetchAbortController=ye,"requestTimeout"in ve&&ve.requestTimeout!==0&&(me._fetchTimer=z.setTimeout(function(){me.emit("requestTimeout"),me._fetchAbortController&&me._fetchAbortController.abort()},ve.requestTimeout))}z.fetch(me._opts.url,{method:me._opts.method,headers:Me,body:Te||void 0,mode:"cors",credentials:ve.withCredentials?"include":"same-origin",signal:ke}).then(function(Oe){me._fetchResponse=Oe,me._connect()},function(Oe){z.clearTimeout(me._fetchTimer),me._destroyed||me.emit("error",Oe)})}else{var Se=me._xhr=new z.XMLHttpRequest;try{Se.open(me._opts.method,me._opts.url,!0)}catch(Oe){x.nextTick(function(){me.emit("error",Oe)});return}"responseType"in Se&&(Se.responseType=me._mode.split(":")[0]),"withCredentials"in Se&&(Se.withCredentials=!!ve.withCredentials),me._mode==="text"&&"overrideMimeType"in Se&&Se.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ve&&(Se.timeout=ve.requestTimeout,Se.ontimeout=function(){me.emit("requestTimeout")}),Me.forEach(function(Oe){Se.setRequestHeader(Oe[0],Oe[1])}),me._response=null,Se.onreadystatechange=function(){switch(Se.readyState){case le.LOADING:case le.DONE:me._onXHRProgress();break}},me._mode==="moz-chunked-arraybuffer"&&(Se.onprogress=function(){me._onXHRProgress()}),Se.onerror=function(){me._destroyed||me.emit("error",new Error("XHR error"))};try{Se.send(Te)}catch(Oe){x.nextTick(function(){me.emit("error",Oe)});return}}}};function ge(me){try{var ve=me.status;return ve!==null&&ve!==0}catch(Ce){return!1}}he.prototype._onXHRProgress=function(){var me=this;!ge(me._xhr)||me._destroyed||(me._response||me._connect(),me._response._onXHRProgress())},he.prototype._connect=function(){var me=this;me._destroyed||(me._response=new re(me._xhr,me._fetchResponse,me._mode,me._fetchTimer),me._response.on("error",function(ve){me.emit("error",ve)}),me.emit("response",me._response))},he.prototype._write=function(me,ve,Ce){var Te=this;Te._body.push(me),Ce()},he.prototype.abort=he.prototype.destroy=function(){var me=this;me._destroyed=!0,z.clearTimeout(me._fetchTimer),me._response&&(me._response._destroyed=!0),me._xhr?me._xhr.abort():me._fetchAbortController&&me._fetchAbortController.abort()},he.prototype.end=function(me,ve,Ce){var Te=this;typeof me=="function"&&(Ce=me,me=void 0),E.Writable.prototype.end.call(Te,me,ve,Ce)},he.prototype.flushHeaders=function(){},he.prototype.setTimeout=function(){},he.prototype.setNoDelay=function(){},he.prototype.setSocketKeepAlive=function(){};var be=["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 Gt!="undefined"?Gt: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,De,xe){(function(x,z,oe){(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 se=y("./capability"),ee=y("inherits"),fe=y("readable-stream"),E=xe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ie=xe.IncomingMessage=function(re,le,ce,he){var ge=this;if(fe.Readable.call(ge),ge._mode=ce,ge.headers={},ge.rawHeaders=[],ge.trailers={},ge.rawTrailers=[],ge.on("end",function(){x.nextTick(function(){ge.emit("close")})}),ce==="fetch"){var be=function ke(){ve.read().then(function(de){if(!ge._destroyed){if(de.done){z.clearTimeout(he),ge.push(null);return}ge.push(new oe(de.value)),ke()}}).catch(function(de){z.clearTimeout(he),ge._destroyed||ge.emit("error",de)})};if(ge._fetchResponse=le,ge.url=le.url,ge.statusCode=le.status,ge.statusMessage=le.statusText,le.headers.forEach(function(ke,de){ge.headers[de.toLowerCase()]=ke,ge.rawHeaders.push(de,ke)}),se.writableStream){var me=new WritableStream({write:function(de){return new Promise(function(ye,Se){ge._destroyed?Se():ge.push(new oe(de))?ye():ge._resumeFetch=ye})},close:function(){z.clearTimeout(he),ge._destroyed||ge.push(null)},abort:function(de){ge._destroyed||ge.emit("error",de)}});try{le.body.pipeTo(me).catch(function(ke){z.clearTimeout(he),ge._destroyed||ge.emit("error",ke)});return}catch(ke){}}var ve=le.body.getReader();be()}else{ge._xhr=re,ge._pos=0,ge.url=re.responseURL,ge.statusCode=re.status,ge.statusMessage=re.statusText;var Ce=re.getAllResponseHeaders().split(/\r?\n/);if(Ce.forEach(function(ke){var de=ke.match(/^([^:]+):\s*(.*)/);if(de){var ye=de[1].toLowerCase();ye==="set-cookie"?(ge.headers[ye]===void 0&&(ge.headers[ye]=[]),ge.headers[ye].push(de[2])):ge.headers[ye]!==void 0?ge.headers[ye]+=", "+de[2]:ge.headers[ye]=de[2],ge.rawHeaders.push(de[1],de[2])}}),ge._charset="x-user-defined",!se.overrideMimeType){var Te=ge.rawHeaders["mime-type"];if(Te){var Me=Te.match(/;\s*charset=([^;])(;|$)/);Me&&(ge._charset=Me[1].toLowerCase())}ge._charset||(ge._charset="utf-8")}}};ee(ie,fe.Readable),ie.prototype._read=function(){var re=this,le=re._resumeFetch;le&&(re._resumeFetch=null,le())},ie.prototype._onXHRProgress=function(){var re=this,le=re._xhr,ce=null;switch(re._mode){case"text:vbarray":if(le.readyState!==E.DONE)break;try{ce=new z.VBArray(le.responseBody).toArray()}catch(ve){}if(ce!==null){re.push(new oe(ce));break}case"text":try{ce=le.responseText}catch(ve){re._mode="text:vbarray";break}if(ce.length>re._pos){var he=ce.substr(re._pos);if(re._charset==="x-user-defined"){for(var ge=new oe(he.length),be=0;be<he.length;be++)ge[be]=he.charCodeAt(be)&255;re.push(ge)}else re.push(he,re._charset);re._pos=ce.length}break;case"arraybuffer":if(le.readyState!==E.DONE||!le.response)break;ce=le.response,re.push(new oe(new Uint8Array(ce)));break;case"moz-chunked-arraybuffer":if(ce=le.response,le.readyState!==E.LOADING||!ce)break;re.push(new oe(new Uint8Array(ce)));break;case"ms-stream":if(ce=le.response,le.readyState!==E.LOADING)break;var me=new z.MSStreamReader;me.onprogress=function(){me.result.byteLength>re._pos&&(re.push(new oe(new Uint8Array(me.result.slice(re._pos)))),re._pos=me.result.byteLength)},me.onload=function(){re.push(null)},me.readAsArrayBuffer(ce);break}re._xhr.readyState===E.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,y("_process"),typeof Gt!="undefined"?Gt: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,De,xe){"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 oe=y("punycode"),se=y("./util");xe.parse=de,xe.resolve=Se,xe.resolveObject=Oe,xe.format=ye,xe.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 fe=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,ie=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
`," "],le=["{","}","|","\\","^","`"].concat(re),ce=["'"].concat(le),he=["%","/","?",";","#"].concat(ce),ge=["/","?","#"],be=255,me=/^[+a-z0-9A-Z_-]{0,63}$/,ve=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ce={javascript:!0,"javascript:":!0},Te={javascript:!0,"javascript:":!0},Me={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ke=y("querystring");function de(Ne,Ae,je){if(Ne&&se.isObject(Ne)&&Ne instanceof ee)return Ne;var Ze=new ee;return Ze.parse(Ne,Ae,je),Ze}ee.prototype.parse=function(Ne,Ae,je){if(!se.isString(Ne))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Ne));var Ze=Ne.indexOf("?"),ze=Ze!==-1&&Ze<Ne.indexOf("#")?"?":"#",Ve=Ne.split(ze),it=/\\/g;Ve[0]=Ve[0].replace(it,"/"),Ne=Ve.join(ze);var Ie=Ne;if(Ie=Ie.trim(),!je&&Ne.split("#").length===1){var We=ie.exec(Ie);if(We)return this.path=Ie,this.href=Ie,this.pathname=We[1],We[2]?(this.search=We[2],Ae?this.query=ke.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ae&&(this.search="",this.query={}),this}var tt=fe.exec(Ie);if(tt){tt=tt[0];var rt=tt.toLowerCase();this.protocol=rt,Ie=Ie.substr(tt.length)}if(je||tt||Ie.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=Ie.substr(0,2)==="//";et&&!(tt&&Te[tt])&&(Ie=Ie.substr(2),this.slashes=!0)}if(!Te[tt]&&(et||tt&&!Me[tt])){for(var Ke=-1,$e=0;$e<ge.length;$e++){var Ge=Ie.indexOf(ge[$e]);Ge!==-1&&(Ke===-1||Ge<Ke)&&(Ke=Ge)}var ot,Je;Ke===-1?Je=Ie.lastIndexOf("@"):Je=Ie.lastIndexOf("@",Ke),Je!==-1&&(ot=Ie.slice(0,Je),Ie=Ie.slice(Je+1),this.auth=decodeURIComponent(ot)),Ke=-1;for(var $e=0;$e<he.length;$e++){var Ge=Ie.indexOf(he[$e]);Ge!==-1&&(Ke===-1||Ge<Ke)&&(Ke=Ge)}Ke===-1&&(Ke=Ie.length),this.host=Ie.slice(0,Ke),Ie=Ie.slice(Ke),this.parseHost(),this.hostname=this.hostname||"";var ct=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ct)for(var st=this.hostname.split("."),$e=0,Ye=st.length;$e<Ye;$e++){var Le=st[$e];if(Le&&!Le.match(me)){for(var _e="",te=0,ue=Le.length;te<ue;te++)Le.charCodeAt(te)>127?_e+="x":_e+=Le[te];if(!_e.match(me)){var Re=st.slice(0,$e),Fe=st.slice($e+1),we=Le.match(ve);we&&(Re.push(we[1]),Fe.unshift(we[2])),Fe.length&&(Ie="/"+Fe.join(".")+Ie),this.hostname=Re.join(".");break}}}this.hostname.length>be?this.hostname="":this.hostname=this.hostname.toLowerCase(),ct||(this.hostname=oe.toASCII(this.hostname));var Ee=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+Ee,this.href+=this.host,ct&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ie[0]!=="/"&&(Ie="/"+Ie))}if(!Ce[rt])for(var $e=0,Ye=ce.length;$e<Ye;$e++){var Ue=ce[$e];if(Ie.indexOf(Ue)!==-1){var qe=encodeURIComponent(Ue);qe===Ue&&(qe=escape(Ue)),Ie=Ie.split(Ue).join(qe)}}var nt=Ie.indexOf("#");nt!==-1&&(this.hash=Ie.substr(nt),Ie=Ie.slice(0,nt));var dt=Ie.indexOf("?");if(dt!==-1?(this.search=Ie.substr(dt),this.query=Ie.substr(dt+1),Ae&&(this.query=ke.parse(this.query)),Ie=Ie.slice(0,dt)):Ae&&(this.search="",this.query={}),Ie&&(this.pathname=Ie),Me[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ee=this.pathname||"",lt=this.search||"";this.path=Ee+lt}return this.href=this.format(),this};function ye(Ne){return se.isString(Ne)&&(Ne=de(Ne)),Ne instanceof ee?Ne.format():ee.prototype.format.call(Ne)}ee.prototype.format=function(){var Ne=this.auth||"";Ne&&(Ne=encodeURIComponent(Ne),Ne=Ne.replace(/%3A/i,":"),Ne+="@");var Ae=this.protocol||"",je=this.pathname||"",Ze=this.hash||"",ze=!1,Ve="";this.host?ze=Ne+this.host:this.hostname&&(ze=Ne+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ze+=":"+this.port)),this.query&&se.isObject(this.query)&&Object.keys(this.query).length&&(Ve=ke.stringify(this.query));var it=this.search||Ve&&"?"+Ve||"";return Ae&&Ae.substr(-1)!==":"&&(Ae+=":"),this.slashes||(!Ae||Me[Ae])&&ze!==!1?(ze="//"+(ze||""),je&&je.charAt(0)!=="/"&&(je="/"+je)):ze||(ze=""),Ze&&Ze.charAt(0)!=="#"&&(Ze="#"+Ze),it&&it.charAt(0)!=="?"&&(it="?"+it),je=je.replace(/[?#]/g,function(Ie){return encodeURIComponent(Ie)}),it=it.replace("#","%23"),Ae+ze+je+it+Ze};function Se(Ne,Ae){return de(Ne,!1,!0).resolve(Ae)}ee.prototype.resolve=function(Ne){return this.resolveObject(de(Ne,!1,!0)).format()};function Oe(Ne,Ae){return Ne?de(Ne,!1,!0).resolveObject(Ae):Ae}ee.prototype.resolveObject=function(Ne){if(se.isString(Ne)){var Ae=new ee;Ae.parse(Ne,!1,!0),Ne=Ae}for(var je=new ee,Ze=Object.keys(this),ze=0;ze<Ze.length;ze++){var Ve=Ze[ze];je[Ve]=this[Ve]}if(je.hash=Ne.hash,Ne.href==="")return je.href=je.format(),je;if(Ne.slashes&&!Ne.protocol){for(var it=Object.keys(Ne),Ie=0;Ie<it.length;Ie++){var We=it[Ie];We!=="protocol"&&(je[We]=Ne[We])}return Me[je.protocol]&&je.hostname&&!je.pathname&&(je.path=je.pathname="/"),je.href=je.format(),je}if(Ne.protocol&&Ne.protocol!==je.protocol){if(!Me[Ne.protocol]){for(var tt=Object.keys(Ne),rt=0;rt<tt.length;rt++){var et=tt[rt];je[et]=Ne[et]}return je.href=je.format(),je}if(je.protocol=Ne.protocol,!Ne.host&&!Te[Ne.protocol]){for(var Ye=(Ne.pathname||"").split("/");Ye.length&&!(Ne.host=Ye.shift()););Ne.host||(Ne.host=""),Ne.hostname||(Ne.hostname=""),Ye[0]!==""&&Ye.unshift(""),Ye.length<2&&Ye.unshift(""),je.pathname=Ye.join("/")}else je.pathname=Ne.pathname;if(je.search=Ne.search,je.query=Ne.query,je.host=Ne.host||"",je.auth=Ne.auth,je.hostname=Ne.hostname||Ne.host,je.port=Ne.port,je.pathname||je.search){var Ke=je.pathname||"",$e=je.search||"";je.path=Ke+$e}return je.slashes=je.slashes||Ne.slashes,je.href=je.format(),je}var Ge=je.pathname&&je.pathname.charAt(0)==="/",ot=Ne.host||Ne.pathname&&Ne.pathname.charAt(0)==="/",Je=ot||Ge||je.host&&Ne.pathname,ct=Je,st=je.pathname&&je.pathname.split("/")||[],Ye=Ne.pathname&&Ne.pathname.split("/")||[],Le=je.protocol&&!Me[je.protocol];if(Le&&(je.hostname="",je.port=null,je.host&&(st[0]===""?st[0]=je.host:st.unshift(je.host)),je.host="",Ne.protocol&&(Ne.hostname=null,Ne.port=null,Ne.host&&(Ye[0]===""?Ye[0]=Ne.host:Ye.unshift(Ne.host)),Ne.host=null),Je=Je&&(Ye[0]===""||st[0]==="")),ot)je.host=Ne.host||Ne.host===""?Ne.host:je.host,je.hostname=Ne.hostname||Ne.hostname===""?Ne.hostname:je.hostname,je.search=Ne.search,je.query=Ne.query,st=Ye;else if(Ye.length)st||(st=[]),st.pop(),st=st.concat(Ye),je.search=Ne.search,je.query=Ne.query;else if(!se.isNullOrUndefined(Ne.search)){if(Le){je.hostname=je.host=st.shift();var _e=je.host&&je.host.indexOf("@")>0?je.host.split("@"):!1;_e&&(je.auth=_e.shift(),je.host=je.hostname=_e.shift())}return je.search=Ne.search,je.query=Ne.query,(!se.isNull(je.pathname)||!se.isNull(je.search))&&(je.path=(je.pathname?je.pathname:"")+(je.search?je.search:"")),je.href=je.format(),je}if(!st.length)return je.pathname=null,je.search?je.path="/"+je.search:je.path=null,je.href=je.format(),je;for(var te=st.slice(-1)[0],ue=(je.host||Ne.host||st.length>1)&&(te==="."||te==="..")||te==="",Re=0,Fe=st.length;Fe>=0;Fe--)te=st[Fe],te==="."?st.splice(Fe,1):te===".."?(st.splice(Fe,1),Re++):Re&&(st.splice(Fe,1),Re--);if(!Je&&!ct)for(;Re--;Re)st.unshift("..");Je&&st[0]!==""&&(!st[0]||st[0].charAt(0)!=="/")&&st.unshift(""),ue&&st.join("/").substr(-1)!=="/"&&st.push("");var we=st[0]===""||st[0]&&st[0].charAt(0)==="/";if(Le){je.hostname=je.host=we?"":st.length?st.shift():"";var _e=je.host&&je.host.indexOf("@")>0?je.host.split("@"):!1;_e&&(je.auth=_e.shift(),je.host=je.hostname=_e.shift())}return Je=Je||je.host&&st.length,Je&&!we&&st.unshift(""),st.length?je.pathname=st.join("/"):(je.pathname=null,je.path=null),(!se.isNull(je.pathname)||!se.isNull(je.search))&&(je.path=(je.pathname?je.pathname:"")+(je.search?je.search:"")),je.auth=Ne.auth||je.auth,je.slashes=je.slashes||Ne.slashes,je.href=je.format(),je},ee.prototype.parseHost=function(){var Ne=this.host,Ae=E.exec(Ne);Ae&&(Ae=Ae[0],Ae!==":"&&(this.port=Ae.substr(1)),Ne=Ne.substr(0,Ne.length-Ae.length)),Ne&&(this.hostname=Ne)}},{"./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,De,xe){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));De.exports={isString:function(se){return typeof se=="string"},isObject:function(se){return(0,z.default)(se)==="object"&&se!==null},isNull:function(se){return se===null},isNullOrUndefined:function(se){return se==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,De,xe){"use strict";y("core-js/modules/es.number.constructor.js"),xe.encodeURIComponent=function(x){try{return encodeURIComponent(x)}catch(z){return x}},xe.escape=y("escape-html"),xe.timestamp=function(z){if(z){var oe=z;return typeof oe=="string"&&(oe=Number(oe)),String(z).length===10&&(oe*=1e3),new Date(oe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,De,xe){(function(x,z){(function(){"use strict";var oe=y("@babel/runtime/helpers/interopRequireDefault"),se=oe(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"),fe=y("url"),E=y("http"),ie=y("https"),re=y("debug")("urllib"),le=y("humanize-ms"),ce=0,he=Math.pow(2,31)-10,ge=/^https?:\/\//i;function be(Te,Me){return Te===void 0?Me:Te}function me(Te){return Te?Te.split(";")[0].trim().toLowerCase():""}function ve(Te,Me){return function(ke,de,ye){if(ke)return Me(ke);Te({data:de,status:ye.statusCode,headers:ye.headers,res:ye})}}xe.TIMEOUTS=[le("300s"),le("300s")];var Ce=["json","text"];xe.request=function(Me,ke,de){return arguments.length===2&&typeof ke=="function"&&(de=ke,ke=null),typeof de=="function"?xe.requestWithCallback(Me,ke,de):new Promise(function(ye,Se){xe.requestWithCallback(Me,ke,ve(ye,Se))})},xe.requestWithCallback=function(Me,ke,de){if(!Me||typeof Me!="string"&&(0,se.default)(Me)!=="object"){var ye=ee.format("expect request url to be a string or a http request options, but got %j",Me);throw new Error(ye)}arguments.length===2&&typeof ke=="function"&&(de=ke,ke=null),ke=ke||{},ce>=he&&(ce=0);var Se=++ce;ke.requestUrls=ke.requestUrls||[];var Oe={requestId:Se,url:Me,args:ke,ctx:ke.ctx};ke.emitter&&ke.emitter.emit("request",Oe),ke.timeout=ke.timeout||xe.TIMEOUTS,ke.maxRedirects=ke.maxRedirects||10,ke.streaming=ke.streaming||ke.customResponse;var Ne=Date.now(),Ae;typeof Me=="string"?(ge.test(Me)||(Me="https://"+Me),Ae=fe.parse(Me)):Ae=Me;var je=(ke.type||ke.method||Ae.method||"GET").toUpperCase(),Ze=Ae.port||80,ze=E,Ve=be(ke.agent,xe.agent),it=ke.fixJSONCtlChars;Ae.protocol==="https:"&&(ze=ie,Ve=be(ke.httpsAgent,xe.httpsAgent),Ae.port||(Ze=443));var Ie={host:Ae.hostname||Ae.host||"localhost",path:Ae.path||"/",method:je,port:Ze,agent:Ve,headers:ke.headers||{},lookup:ke.lookup};Array.isArray(ke.timeout)?Ie.requestTimeout=ke.timeout[ke.timeout.length-1]:typeof ke.timeout!="undefined"&&(Ie.requestTimeout=ke.timeout);var We=ke.auth||Ae.auth;We&&(Ie.auth=We);var tt=ke.content||ke.data,rt=je==="GET"||je==="HEAD"||ke.dataAsQueryString;if(!ke.content&&tt&&!(typeof tt=="string"||z.isBuffer(tt)))if(rt)tt=ke.nestedQuerystring?qs.stringify(tt):querystring.stringify(tt);else{var et=Ie.headers["Content-Type"]||Ie.headers["content-type"];et||(ke.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",Ie.headers["Content-Type"]=et),me(et)==="application/json"?tt=JSON.stringify(tt):tt=ke.nestedQuerystring?qs.stringify(tt):querystring.stringify(tt)}rt&&tt&&(Ie.path+=(Ae.query?"&":"?")+tt,tt=null);var Ke=0;if(tt){var $e=tt.length;z.isBuffer(tt)||($e=z.byteLength(tt)),Ke=Ie.headers["Content-Length"]=$e}ke.dataType==="json"&&(Ie.headers.Accept="application/json"),typeof ke.beforeRequest=="function"&&ke.beforeRequest(Ie);var Ge=null,ot=null,Je=null,ct=!1,st=!1,Ye=0,Le=-1,_e=!1,te="",ue="",Re=null;ke.timing&&(Re={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Fe(){Ge&&(clearTimeout(Ge),Ge=null)}function we(){ot&&(clearTimeout(ot),ot=null)}function Ee(mt,Ct,wt){if(we(),!de){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Se,x.pid,Ie.method,Me),mt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Se,x.pid,mt.name,mt.message,mt.stack);return}var pt=de;de=null;var Ot={};wt&&(Le=wt.statusCode,Ot=wt.headers);var At=Date.now()-Ne;Re&&(Re.contentDownload=At),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",At,Ye,Le,Ie.method,Ie.host,Ie.path,st,Re);var Nt={status:Le,statusCode:Le,headers:Ot,size:Ye,aborted:_e,rt:At,keepAliveSocket:st,data:Ct,requestUrls:ke.requestUrls,timing:Re,remoteAddress:te,remotePort:ue};if(mt){var Ht="";Ve&&typeof Ve.getCurrentStatus=="function"&&(Ht=", agent status: "+JSON.stringify(Ve.getCurrentStatus())),mt.message+=", "+Ie.method+" "+Me+" "+Le+" (connected: "+ct+", keepalive socket: "+st+Ht+`)
headers: `+JSON.stringify(Ot),mt.data=Ct,mt.path=Ie.path,mt.status=Le,mt.headers=Ot,mt.res=Nt}pt(mt,Ct,ke.streaming?wt:Nt),ke.emitter&&(Oe.url=Me,Oe.socket=gt&&gt.connection,Oe.options=Ie,Oe.size=Ke,ke.emitter.emit("response",{requestId:Se,error:mt,ctx:ke.ctx,req:Oe,res:Nt}))}function Pe(mt){var Ct=null;if(ke.followRedirect&&statuses.redirect[mt.statusCode]){ke._followRedirectCount=(ke._followRedirectCount||0)+1;var wt=mt.headers.location;if(!wt)Ct=new Error("Got statusCode "+mt.statusCode+" but cannot resolve next location from headers"),Ct.name="FollowRedirectError";else if(ke._followRedirectCount>ke.maxRedirects)Ct=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Me),Ct.name="MaxRedirectError";else{var pt=ke.formatRedirectUrl?ke.formatRedirectUrl(Me,wt):fe.resolve(Me,wt);re("Request#%d %s: `redirected` from %s to %s",Se,Ie.path,Me,pt),we(),ke.headers&&ke.headers.Host&&ge.test(wt)&&(ke.headers.Host=null);var Ot=de;return de=null,xe.requestWithCallback(pt,ke,Ot),{redirect:!0,error:null}}}return{redirect:!1,error:Ct}}ke.gzip&&!Ie.headers["Accept-Encoding"]&&!Ie.headers["accept-encoding"]&&(Ie.headers["Accept-Encoding"]="gzip");function Ue(mt,Ct,wt){var pt=mt.headers["content-encoding"];return wt(null,Ct,pt)}var qe=ke.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",Se,je,Me,Ie.headers,Ie.path),ke.requestUrls.push(Me);function nt(mt){if(Re&&(Re.waiting=Date.now()-Ne),re("Request#%d %s `req response` event emit: status %d, headers: %j",Se,Me,mt.statusCode,mt.headers),ke.streaming){var Ct=Pe(mt);if(Ct.redirect){mt.resume();return}return Ct.error?(mt.resume(),Ee(Ct.error,null,mt)):Ee(null,null,mt)}if(mt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",Se,Me,Ye)}),mt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",Se,Me,Ye)}),mt.on("aborted",function(){_e=!0,re("Request#%d %s: `res aborted` event emit, total size %d",Se,Me,Ye)}),qe){var wt=Pe(mt);if(wt.redirect){mt.resume();return}return wt.error?(mt.resume(),qe.end(),Ee(wt.error,null,mt)):(ke.consumeWriteStream===!1?mt.on("end",Ee.bind(null,null,null,mt)):qe.on("close",function(){re("Request#%d %s: writeStream close event emitted",Se,Me),Ee(Je||null,null,mt)}),mt.pipe(qe))}var pt=[];mt.on("data",function(Ot){re("Request#%d %s: `res data` event emit, size %d",Se,Me,Ot.length),Ye+=Ot.length,pt.push(Ot)}),mt.on("end",function(){var Ot=z.concat(pt,Ye);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Se,Me,Ye,mt._dumped),Je)return Ee(Je,Ot,mt);var At=Pe(mt);if(At.error)return Ee(At.error,Ot,mt);At.redirect||Ue(mt,Ot,function(Nt,Ht,gr){if(Nt)return Ee(Nt,Ot,mt);if(!gr&&Ce.indexOf(ke.dataType)>=0){try{Ht=decodeBodyByCharset(Ht,mt)}catch(Ar){return re("decodeBodyByCharset error: %s",Ar),Ee(null,Ht,mt)}if(ke.dataType==="json")if(Ye===0)Ht=null;else{var $t=parseJSON(Ht,it);$t.error?Nt=$t.error:Ht=$t.data}}_e&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",Se,Me),Ee(Nt,Ht,mt)})})}var dt,lt;Array.isArray(ke.timeout)?(dt=le(ke.timeout[0]),lt=le(ke.timeout[1])):dt=lt=le(ke.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",dt,lt);function ht(){re("Connect timer ticking, timeout: %d",dt),Ge=setTimeout(function(){Ge=null,Le===-1&&(Le=-2);var mt="Connect timeout for "+dt+"ms",Ct="ConnectionTimeoutError";gt.socket||(Ct="SocketAssignTimeoutError",mt+=", working sockets is full"),Je=new Error(mt),Je.name=Ct,Je.requestId=Se,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Se,Me,Je.name,mt,ct),yt()},dt)}function St(){re("Response timer ticking, timeout: %d",lt),ot=setTimeout(function(){ot=null;var mt="Response timeout for "+lt+"ms",Ct="ResponseTimeoutError";Je=new Error(mt),Je.name=Ct,Je.requestId=Se,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Se,Me,Je.name,mt,ct),yt()},lt)}var gt;Ie.mode=ke.mode?ke.mode:"";try{gt=ze.request(Ie,nt)}catch(mt){return Ee(mt)}typeof window=="undefined"?ht():gt.on("requestTimeout",function(){Le===-1&&(Le=-2);var mt="Connect timeout for "+dt+"ms",Ct="ConnectionTimeoutError";Je=new Error(mt),Je.name=Ct,Je.requestId=Se,yt()});function yt(){re("Request#%d %s abort, connected: %s",Se,Me,ct),gt.socket||(Je.noSocket=!0,Ee(Je)),gt.abort()}return Re&&gt.on("finish",function(){Re.requestSent=Date.now()-Ne}),gt.once("socket",function(mt){Re&&(Re.queuing=Date.now()-Ne);var Ct=mt.readyState;if(Ct==="opening"){mt.once("lookup",function(wt,pt,Ot){re("Request#%d %s lookup: %s, %s, %s",Se,Me,wt,pt,Ot),Re&&(Re.dnslookup=Date.now()-Ne),pt&&(te=pt)}),mt.once("connect",function(){Re&&(Re.connected=Date.now()-Ne),Fe(),St(),re("Request#%d %s new socket connected",Se,Me),ct=!0,te||(te=mt.remoteAddress),ue=mt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",Se,Me,Ct),ct=!0,st=!0,te||(te=mt.remoteAddress),ue=mt.remotePort,Fe(),St()}),gt.on("error",function(mt){(mt.name==="Error"||mt.name==="TypeError")&&(mt.name=ct?"ResponseError":"RequestError"),mt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",Se,Me,mt.name,mt.message),Ee(Je||mt)}),qe&&qe.once("error",function(mt){mt.message+=' (writeStream "error")',Je=mt,re("Request#%d %s `writeStream error` event emit, %s: %s",Se,Me,mt.name,mt.message),yt()}),ke.stream?(ke.stream.pipe(gt),ke.stream.once("error",function(mt){mt.message+=' (stream "error")',Je=mt,re("Request#%d %s `readStream error` event emit, %s: %s",Se,Me,mt.name,mt.message),yt()})):gt.end(tt),gt.requestId=Se,gt}}).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(lr,Gt,Xe){(function(He){He(Xe(89780))})(function(He){He.defineOption("placeholder","",function(oe,se,ee){var fe=ee&&ee!=He.Init;if(se&&!fe)oe.on("blur",xe),oe.on("change",x),oe.on("swapDoc",x),He.on(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose=function(){De(oe)}),x(oe);else if(!se&&fe){oe.off("blur",xe),oe.off("change",x),oe.off("swapDoc",x),He.off(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose),xt(oe);var E=oe.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}se&&!oe.hasFocus()&&xe(oe)});function xt(oe){oe.state.placeholder&&(oe.state.placeholder.parentNode.removeChild(oe.state.placeholder),oe.state.placeholder=null)}function y(oe){xt(oe);var se=oe.state.placeholder=document.createElement("pre");se.style.cssText="height: 0; overflow: visible",se.style.direction=oe.getOption("direction"),se.className="CodeMirror-placeholder CodeMirror-line-like";var ee=oe.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),se.appendChild(ee),oe.display.lineSpace.insertBefore(se,oe.display.lineSpace.firstChild)}function De(oe){setTimeout(function(){var se=!1,ee=oe.getInputField();ee.nodeName=="TEXTAREA"?se=!ee.value:oe.lineCount()==1&&(se=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),se?y(oe):xt(oe)},20)}function xe(oe){z(oe)&&y(oe)}function x(oe){var se=oe.getWrapperElement(),ee=z(oe);se.className=se.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(oe):xt(oe)}function z(oe){return oe.lineCount()===1&&oe.getLine(0)===""}})},25717:function(lr,Gt,Xe){(function(He){He(Xe(89780))})(function(He){var xt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=He.Pos;He.defineOption("autoCloseBrackets",!1,function(le,ce,he){he&&he!=He.Init&&(le.removeKeyMap(xe),le.state.closeBrackets=null),ce&&(x(De(ce,"pairs")),le.state.closeBrackets=ce,le.addKeyMap(xe))});function De(le,ce){return ce=="pairs"&&typeof le=="string"?le:typeof le=="object"&&le[ce]!=null?le[ce]:xt[ce]}var xe={Backspace:se,Enter:ee};function x(le){for(var ce=0;ce<le.length;ce++){var he=le.charAt(ce),ge="'"+he+"'";xe[ge]||(xe[ge]=z(he))}}x(xt.pairs+"`");function z(le){return function(ce){return E(ce,le)}}function oe(le){var ce=le.state.closeBrackets;if(!ce||ce.override)return ce;var he=le.getModeAt(le.getCursor());return he.closeBrackets||ce}function se(le){var ce=oe(le);if(!ce||le.getOption("disableInput"))return He.Pass;for(var he=De(ce,"pairs"),ge=le.listSelections(),be=0;be<ge.length;be++){if(!ge[be].empty())return He.Pass;var me=ie(le,ge[be].head);if(!me||he.indexOf(me)%2!=0)return He.Pass}for(var be=ge.length-1;be>=0;be--){var ve=ge[be].head;le.replaceRange("",y(ve.line,ve.ch-1),y(ve.line,ve.ch+1),"+delete")}}function ee(le){var ce=oe(le),he=ce&&De(ce,"explode");if(!he||le.getOption("disableInput"))return He.Pass;for(var ge=le.listSelections(),be=0;be<ge.length;be++){if(!ge[be].empty())return He.Pass;var me=ie(le,ge[be].head);if(!me||he.indexOf(me)%2!=0)return He.Pass}le.operation(function(){var ve=le.lineSeparator()||`
`;le.replaceSelection(ve+ve,null),le.execCommand("goCharLeft"),ge=le.listSelections();for(var Ce=0;Ce<ge.length;Ce++){var Te=ge[Ce].head.line;le.indentLine(Te,null,!0),le.indentLine(Te+1,null,!0)}})}function fe(le){var ce=He.cmpPos(le.anchor,le.head)>0;return{anchor:new y(le.anchor.line,le.anchor.ch+(ce?-1:1)),head:new y(le.head.line,le.head.ch+(ce?1:-1))}}function E(le,ce){var he=oe(le);if(!he||le.getOption("disableInput"))return He.Pass;var ge=De(he,"pairs"),be=ge.indexOf(ce);if(be==-1)return He.Pass;for(var me=De(he,"closeBefore"),ve=De(he,"triples"),Ce=ge.charAt(be+1)==ce,Te=le.listSelections(),Me=be%2==0,ke,de=0;de<Te.length;de++){var ye=Te[de],Se=ye.head,Oe,Ne=le.getRange(Se,y(Se.line,Se.ch+1));if(Me&&!ye.empty())Oe="surround";else if((Ce||!Me)&&Ne==ce)Ce&&re(le,Se)?Oe="both":ve.indexOf(ce)>=0&&le.getRange(Se,y(Se.line,Se.ch+3))==ce+ce+ce?Oe="skipThree":Oe="skip";else if(Ce&&Se.ch>1&&ve.indexOf(ce)>=0&&le.getRange(y(Se.line,Se.ch-2),Se)==ce+ce){if(Se.ch>2&&/\bstring/.test(le.getTokenTypeAt(y(Se.line,Se.ch-2))))return He.Pass;Oe="addFour"}else if(Ce){var Ae=Se.ch==0?" ":le.getRange(y(Se.line,Se.ch-1),Se);if(!He.isWordChar(Ne)&&Ae!=ce&&!He.isWordChar(Ae))Oe="both";else return He.Pass}else if(Me&&(Ne.length===0||/\s/.test(Ne)||me.indexOf(Ne)>-1))Oe="both";else return He.Pass;if(!ke)ke=Oe;else if(ke!=Oe)return He.Pass}var je=be%2?ge.charAt(be-1):ce,Ze=be%2?ce:ge.charAt(be+1);le.operation(function(){if(ke=="skip")le.execCommand("goCharRight");else if(ke=="skipThree")for(var ze=0;ze<3;ze++)le.execCommand("goCharRight");else if(ke=="surround"){for(var Ve=le.getSelections(),ze=0;ze<Ve.length;ze++)Ve[ze]=je+Ve[ze]+Ze;le.replaceSelections(Ve,"around"),Ve=le.listSelections().slice();for(var ze=0;ze<Ve.length;ze++)Ve[ze]=fe(Ve[ze]);le.setSelections(Ve)}else ke=="both"?(le.replaceSelection(je+Ze,null),le.triggerElectric(je+Ze),le.execCommand("goCharLeft")):ke=="addFour"&&(le.replaceSelection(je+je+je+je,"before"),le.execCommand("goCharRight"))})}function ie(le,ce){var he=le.getRange(y(ce.line,ce.ch-1),y(ce.line,ce.ch+1));return he.length==2?he:null}function re(le,ce){var he=le.getTokenAt(y(ce.line,ce.ch+1));return/\bstring/.test(he.type)&&he.start==ce.ch&&(ce.ch==0||!/\bstring/.test(le.getTokenTypeAt(ce)))}})},6313:function(lr,Gt,Xe){(function(He){He(Xe(89780),Xe(32855))})(function(He){He.defineOption("autoCloseTags",!1,function(se,ee,fe){if(fe!=He.Init&&fe&&se.removeKeyMap("autoCloseTags"),!!ee){var E={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(E["'/'"]=function(ie){return x(ie)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(E["'>'"]=function(ie){return De(ie)}),se.addKeyMap(E)}});var xt=["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 De(se){if(se.getOption("disableInput"))return He.Pass;for(var ee=se.listSelections(),fe=[],E=se.getOption("autoCloseTags"),ie=0;ie<ee.length;ie++){if(!ee[ie].empty())return He.Pass;var re=ee[ie].head,le=se.getTokenAt(re),ce=He.innerMode(se.getMode(),le.state),he=ce.state,ge=ce.mode.xmlCurrentTag&&ce.mode.xmlCurrentTag(he),be=ge&&ge.name;if(!be)return He.Pass;var me=ce.mode.configuration=="html",ve=typeof E=="object"&&E.dontCloseTags||me&&xt,Ce=typeof E=="object"&&E.indentTags||me&&y;le.end>re.ch&&(be=be.slice(0,be.length-le.end+re.ch));var Te=be.toLowerCase();if(!be||le.type=="string"&&(le.end!=re.ch||!/[\"\']/.test(le.string.charAt(le.string.length-1))||le.string.length==1)||le.type=="tag"&&ge.close||le.string.indexOf("/")==re.ch-le.start-1||ve&&z(ve,Te)>-1||oe(se,ce.mode.xmlCurrentContext&&ce.mode.xmlCurrentContext(he)||[],be,re,!0))return He.Pass;var Me=typeof E=="object"&&E.emptyTags;if(Me&&z(Me,be)>-1){fe[ie]={text:"/>",newPos:He.Pos(re.line,re.ch+2)};continue}var ke=Ce&&z(Ce,Te)>-1;fe[ie]={indent:ke,text:">"+(ke?`
`:"")+"</"+be+">",newPos:ke?He.Pos(re.line+1,0):He.Pos(re.line,re.ch+1)}}for(var de=typeof E=="object"&&E.dontIndentOnAutoClose,ie=ee.length-1;ie>=0;ie--){var ye=fe[ie];se.replaceRange(ye.text,ee[ie].head,ee[ie].anchor,"+insert");var Se=se.listSelections().slice(0);Se[ie]={head:ye.newPos,anchor:ye.newPos},se.setSelections(Se),!de&&ye.indent&&(se.indentLine(ye.newPos.line,null,!0),se.indentLine(ye.newPos.line+1,null,!0))}}function xe(se,ee){for(var fe=se.listSelections(),E=[],ie=ee?"/":"</",re=se.getOption("autoCloseTags"),le=typeof re=="object"&&re.dontIndentOnSlash,ce=0;ce<fe.length;ce++){if(!fe[ce].empty())return He.Pass;var he=fe[ce].head,ge=se.getTokenAt(he),be=He.innerMode(se.getMode(),ge.state),me=be.state;if(ee&&(ge.type=="string"||ge.string.charAt(0)!="<"||ge.start!=he.ch-1))return He.Pass;var ve,Ce=be.mode.name!="xml"&&se.getMode().name=="htmlmixed";if(Ce&&be.mode.name=="javascript")ve=ie+"script";else if(Ce&&be.mode.name=="css")ve=ie+"style";else{var Te=be.mode.xmlCurrentContext&&be.mode.xmlCurrentContext(me);if(!Te||Te.length&&oe(se,Te,Te[Te.length-1],he))return He.Pass;ve=ie+Te[Te.length-1]}se.getLine(he.line).charAt(ge.end)!=">"&&(ve+=">"),E[ce]=ve}if(se.replaceSelections(E),fe=se.listSelections(),!le)for(var ce=0;ce<fe.length;ce++)(ce==fe.length-1||fe[ce].head.line<fe[ce+1].head.line)&&se.indentLine(fe[ce].head.line)}function x(se){return se.getOption("disableInput")?He.Pass:xe(se,!0)}He.commands.closeTag=function(se){return xe(se)};function z(se,ee){if(se.indexOf)return se.indexOf(ee);for(var fe=0,E=se.length;fe<E;++fe)if(se[fe]==ee)return fe;return-1}function oe(se,ee,fe,E,ie){if(!He.scanForClosingTag)return!1;var re=Math.min(se.lastLine()+1,E.line+500),le=He.scanForClosingTag(se,E,null,re);if(!le||le.tag!=fe)return!1;for(var ce=ie?1:0,he=ee.length-1;he>=0&&ee[he]==fe;he--)++ce;E=le.to;for(var he=1;he<ce;he++){var ge=He.scanForClosingTag(se,E,null,re);if(!ge||ge.tag!=fe)return!1;E=ge.to}return!0}})},32855:function(lr,Gt,Xe){(function(He){He(Xe(89780))})(function(He){"use strict";var xt=He.Pos;function y(he,ge){return he.line-ge.line||he.ch-ge.ch}var De="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",xe=De+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+De+"]["+xe+"]*)","g");function z(he,ge,be,me){this.line=ge,this.ch=be,this.cm=he,this.text=he.getLine(ge),this.min=me?Math.max(me.from,he.firstLine()):he.firstLine(),this.max=me?Math.min(me.to-1,he.lastLine()):he.lastLine()}function oe(he,ge){var be=he.cm.getTokenTypeAt(xt(he.line,ge));return be&&/\btag\b/.test(be)}function se(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 fe(he){for(;;){var ge=he.text.indexOf(">",he.ch);if(ge==-1){if(se(he))continue;return}if(!oe(he,ge+1)){he.ch=ge+1;continue}var be=he.text.lastIndexOf("/",ge),me=be>-1&&!/\S/.test(he.text.slice(be+1,ge));return he.ch=ge+1,me?"selfClose":"regular"}}function E(he){for(;;){var ge=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(ge==-1){if(ee(he))continue;return}if(!oe(he,ge+1)){he.ch=ge;continue}x.lastIndex=ge,he.ch=ge;var be=x.exec(he.text);if(be&&be.index==ge)return be}}function ie(he){for(;;){x.lastIndex=he.ch;var ge=x.exec(he.text);if(!ge){if(se(he))continue;return}if(!oe(he,ge.index+1)){he.ch=ge.index+1;continue}return he.ch=ge.index+ge[0].length,ge}}function re(he){for(;;){var ge=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(ge==-1){if(ee(he))continue;return}if(!oe(he,ge+1)){he.ch=ge;continue}var be=he.text.lastIndexOf("/",ge),me=be>-1&&!/\S/.test(he.text.slice(be+1,ge));return he.ch=ge+1,me?"selfClose":"regular"}}function le(he,ge){for(var be=[];;){var me=ie(he),ve,Ce=he.line,Te=he.ch-(me?me[0].length:0);if(!me||!(ve=fe(he)))return;if(ve!="selfClose")if(me[1]){for(var Me=be.length-1;Me>=0;--Me)if(be[Me]==me[2]){be.length=Me;break}if(Me<0&&(!ge||ge==me[2]))return{tag:me[2],from:xt(Ce,Te),to:xt(he.line,he.ch)}}else be.push(me[2])}}function ce(he,ge){for(var be=[];;){var me=re(he);if(!me)return;if(me=="selfClose"){E(he);continue}var ve=he.line,Ce=he.ch,Te=E(he);if(!Te)return;if(Te[1])be.push(Te[2]);else{for(var Me=be.length-1;Me>=0;--Me)if(be[Me]==Te[2]){be.length=Me;break}if(Me<0&&(!ge||ge==Te[2]))return{tag:Te[2],from:xt(he.line,he.ch),to:xt(ve,Ce)}}}}He.registerHelper("fold","xml",function(he,ge){for(var be=new z(he,ge.line,0);;){var me=ie(be);if(!me||be.line!=ge.line)return;var ve=fe(be);if(!ve)return;if(!me[1]&&ve!="selfClose"){var Ce=xt(be.line,be.ch),Te=le(be,me[2]);return Te&&y(Te.from,Ce)>0?{from:Ce,to:Te.from}:null}}}),He.findMatchingTag=function(he,ge,be){var me=new z(he,ge.line,ge.ch,be);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var ve=fe(me),Ce=ve&&xt(me.line,me.ch),Te=ve&&E(me);if(!(!ve||!Te||y(me,ge)>0)){var Me={from:xt(me.line,me.ch),to:Ce,tag:Te[2]};return ve=="selfClose"?{open:Me,close:null,at:"open"}:Te[1]?{open:ce(me,Te[2]),close:Me,at:"close"}:(me=new z(he,Ce.line,Ce.ch,be),{open:Me,close:le(me,Te[2]),at:"open"})}}},He.findEnclosingTag=function(he,ge,be,me){for(var ve=new z(he,ge.line,ge.ch,be);;){var Ce=ce(ve,me);if(!Ce)break;var Te=new z(he,ge.line,ge.ch,be),Me=le(Te,Ce.tag);if(Me)return{open:Ce,close:Me}}},He.scanForClosingTag=function(he,ge,be,me){var ve=new z(he,ge.line,ge.ch,me?{from:0,to:me}:null);return le(ve,be)}})},89780:function(lr){(function(Gt,Xe){lr.exports=Xe()})(this,function(){"use strict";var Gt=navigator.userAgent,Xe=navigator.platform,He=/gecko\/\d/i.test(Gt),xt=/MSIE \d/.test(Gt),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gt),De=/Edge\/(\d+)/.exec(Gt),xe=xt||y||De,x=xe&&(xt?document.documentMode||6:+(De||y)[1]),z=!De&&/WebKit\//.test(Gt),oe=z&&/Qt\/\d+\.\d+/.test(Gt),se=!De&&/Chrome\//.test(Gt),ee=/Opera\//.test(Gt),fe=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Gt),ie=/PhantomJS/.test(Gt),re=!De&&/AppleWebKit/.test(Gt)&&/Mobile\/\w+/.test(Gt),le=/Android/.test(Gt),ce=re||le||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Gt),he=re||/Mac/.test(Xe),ge=/\bCrOS\b/.test(Gt),be=/win/i.test(Xe),me=ee&&Gt.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(ee=!1,z=!0);var ve=he&&(oe||ee&&(me==null||me<12.11)),Ce=He||xe&&x>=9;function Te(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Me=function(a,b){var ae=a.className,ne=Te(b).exec(ae);if(ne){var pe=ae.slice(ne.index+ne[0].length);a.className=ae.slice(0,ne.index)+(pe?ne[1]+pe:"")}};function ke(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function de(a,b){return ke(a).appendChild(b)}function ye(a,b,ae,ne){var pe=document.createElement(a);if(ae&&(pe.className=ae),ne&&(pe.style.cssText=ne),typeof b=="string")pe.appendChild(document.createTextNode(b));else if(b)for(var Be=0;Be<b.length;++Be)pe.appendChild(b[Be]);return pe}function Se(a,b,ae,ne){var pe=ye(a,b,ae,ne);return pe.setAttribute("role","presentation"),pe}var Oe;document.createRange?Oe=function(a,b,ae,ne){var pe=document.createRange();return pe.setEnd(ne||a,ae),pe.setStart(a,b),pe}:Oe=function(a,b,ae){var ne=document.body.createTextRange();try{ne.moveToElementText(a.parentNode)}catch(pe){return ne}return ne.collapse(!0),ne.moveEnd("character",ae),ne.moveStart("character",b),ne};function Ne(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 je(a,b){var ae=a.className;Te(b).test(ae)||(a.className+=(ae?" ":"")+b)}function Ze(a,b){for(var ae=a.split(" "),ne=0;ne<ae.length;ne++)ae[ne]&&!Te(ae[ne]).test(b)&&(b+=" "+ae[ne]);return b}var ze=function(a){a.select()};re?ze=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(ze=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 it(a,b,ae){b||(b={});for(var ne in a)a.hasOwnProperty(ne)&&(ae!==!1||!b.hasOwnProperty(ne))&&(b[ne]=a[ne]);return b}function Ie(a,b,ae,ne,pe){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Be=ne||0,Qe=pe||0;;){var at=a.indexOf(" ",Be);if(at<0||at>=b)return Qe+(b-Be);Qe+=at-Be,Qe+=ae-Qe%ae,Be=at+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 ae=+new Date+a;(!this.id||ae<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ae)};function tt(a,b){for(var ae=0;ae<a.length;++ae)if(a[ae]==b)return ae;return-1}var rt=50,et={toString:function(){return"CodeMirror.Pass"}},Ke={scroll:!1},$e={origin:"*mouse"},Ge={origin:"+move"};function ot(a,b,ae){for(var ne=0,pe=0;;){var Be=a.indexOf(" ",ne);Be==-1&&(Be=a.length);var Qe=Be-ne;if(Be==a.length||pe+Qe>=b)return ne+Math.min(Qe,b-pe);if(pe+=Be-ne,pe+=ae-pe%ae,ne=Be+1,pe>=b)return ne}}var Je=[""];function ct(a){for(;Je.length<=a;)Je.push(st(Je)+" ");return Je[a]}function st(a){return a[a.length-1]}function Ye(a,b){for(var ae=[],ne=0;ne<a.length;ne++)ae[ne]=b(a[ne],ne);return ae}function Le(a,b,ae){for(var ne=0,pe=ae(b);ne<a.length&&ae(a[ne])<=pe;)ne++;a.splice(ne,0,b)}function _e(){}function te(a,b){var ae;return Object.create?ae=Object.create(a):(_e.prototype=a,ae=new _e),b&&it(b,ae),ae}var ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Re(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ue.test(a))}function Fe(a,b){return b?b.source.indexOf("\\w")>-1&&Re(a)?!0:b.test(a):Re(a)}function we(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Ee=/[\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 Pe(a){return a.charCodeAt(0)>=768&&Ee.test(a)}function Ue(a,b,ae){for(;(ae<0?b>0:b<a.length)&&Pe(a.charAt(b));)b+=ae;return b}function qe(a,b,ae){for(var ne=b>ae?-1:1;;){if(b==ae)return b;var pe=(b+ae)/2,Be=ne<0?Math.ceil(pe):Math.floor(pe);if(Be==b)return a(Be)?b:ae;a(Be)?ae=Be:b=Be+ne}}function nt(a,b,ae,ne){if(!a)return ne(b,ae,"ltr",0);for(var pe=!1,Be=0;Be<a.length;++Be){var Qe=a[Be];(Qe.from<ae&&Qe.to>b||b==ae&&Qe.to==b)&&(ne(Math.max(Qe.from,b),Math.min(Qe.to,ae),Qe.level==1?"rtl":"ltr",Be),pe=!0)}pe||ne(b,ae,"ltr")}var dt=null;function lt(a,b,ae){var ne;dt=null;for(var pe=0;pe<a.length;++pe){var Be=a[pe];if(Be.from<b&&Be.to>b)return pe;Be.to==b&&(Be.from!=Be.to&&ae=="before"?ne=pe:dt=pe),Be.from==b&&(Be.from!=Be.to&&ae!="before"?ne=pe:dt=pe)}return ne!=null?ne:dt}var ht=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ae(ft){return ft<=247?a.charAt(ft):1424<=ft&&ft<=1524?"R":1536<=ft&&ft<=1785?b.charAt(ft-1536):1774<=ft&&ft<=2220?"r":8192<=ft&&ft<=8203?"w":ft==8204?"b":"L"}var ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Be=/[LRr]/,Qe=/[Lb1n]/,at=/[1n]/;function ut(ft,bt,Tt){this.level=ft,this.from=bt,this.to=Tt}return function(ft,bt){var Tt=bt=="ltr"?"L":"R";if(ft.length==0||bt=="ltr"&&!ne.test(ft))return!1;for(var Kt=ft.length,Zt=[],cr=0;cr<Kt;++cr)Zt.push(ae(ft.charCodeAt(cr)));for(var Sr=0,Mr=Tt;Sr<Kt;++Sr){var zr=Zt[Sr];zr=="m"?Zt[Sr]=Mr:Mr=zr}for(var en=0,Gr=Tt;en<Kt;++en){var cn=Zt[en];cn=="1"&&Gr=="r"?Zt[en]="n":Be.test(cn)&&(Gr=cn,cn=="r"&&(Zt[en]="R"))}for(var An=1,yn=Zt[0];An<Kt-1;++An){var Yn=Zt[An];Yn=="+"&&yn=="1"&&Zt[An+1]=="1"?Zt[An]="1":Yn==","&&yn==Zt[An+1]&&(yn=="1"||yn=="n")&&(Zt[An]=yn),yn=Yn}for(var ui=0;ui<Kt;++ui){var Ii=Zt[ui];if(Ii==",")Zt[ui]="N";else if(Ii=="%"){var wi=void 0;for(wi=ui+1;wi<Kt&&Zt[wi]=="%";++wi);for(var aa=ui&&Zt[ui-1]=="!"||wi<Kt&&Zt[wi]=="1"?"1":"N",qi=ui;qi<wi;++qi)Zt[qi]=aa;ui=wi-1}}for(var _i=0,ea=Tt;_i<Kt;++_i){var Ui=Zt[_i];ea=="L"&&Ui=="1"?Zt[_i]="L":Be.test(Ui)&&(ea=Ui)}for(var Pi=0;Pi<Kt;++Pi)if(pe.test(Zt[Pi])){var Di=void 0;for(Di=Pi+1;Di<Kt&&pe.test(Zt[Di]);++Di);for(var Si=(Pi?Zt[Pi-1]:Tt)=="L",ta=(Di<Kt?Zt[Di]:Tt)=="L",xo=Si==ta?Si?"L":"R":Tt,Xa=Pi;Xa<Di;++Xa)Zt[Xa]=xo;Pi=Di-1}for(var zi=[],Sa,Li=0;Li<Kt;)if(Qe.test(Zt[Li])){var Bs=Li;for(++Li;Li<Kt&&Qe.test(Zt[Li]);++Li);zi.push(new ut(0,Bs,Li))}else{var Ia=Li,eo=zi.length,to=bt=="rtl"?1:0;for(++Li;Li<Kt&&Zt[Li]!="L";++Li);for(var Xi=Ia;Xi<Li;)if(at.test(Zt[Xi])){Ia<Xi&&(zi.splice(eo,0,new ut(1,Ia,Xi)),eo+=to);var So=Xi;for(++Xi;Xi<Li&&at.test(Zt[Xi]);++Xi);zi.splice(eo,0,new ut(2,So,Xi)),eo+=to,Ia=Xi}else++Xi;Ia<Li&&zi.splice(eo,0,new ut(1,Ia,Li))}return bt=="ltr"&&(zi[0].level==1&&(Sa=ft.match(/^\s+/))&&(zi[0].from=Sa[0].length,zi.unshift(new ut(0,0,Sa[0].length))),st(zi).level==1&&(Sa=ft.match(/\s+$/))&&(st(zi).to-=Sa[0].length,zi.push(new ut(0,Kt-Sa[0].length,Kt)))),bt=="rtl"?zi.reverse():zi}}();function St(a,b){var ae=a.order;return ae==null&&(ae=a.order=ht(a.text,b)),ae}var gt=[],yt=function(a,b,ae){if(a.addEventListener)a.addEventListener(b,ae,!1);else if(a.attachEvent)a.attachEvent("on"+b,ae);else{var ne=a._handlers||(a._handlers={});ne[b]=(ne[b]||gt).concat(ae)}};function mt(a,b){return a._handlers&&a._handlers[b]||gt}function Ct(a,b,ae){if(a.removeEventListener)a.removeEventListener(b,ae,!1);else if(a.detachEvent)a.detachEvent("on"+b,ae);else{var ne=a._handlers,pe=ne&&ne[b];if(pe){var Be=tt(pe,ae);Be>-1&&(ne[b]=pe.slice(0,Be).concat(pe.slice(Be+1)))}}}function wt(a,b){var ae=mt(a,b);if(ae.length)for(var ne=Array.prototype.slice.call(arguments,2),pe=0;pe<ae.length;++pe)ae[pe].apply(null,ne)}function pt(a,b,ae){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),wt(a,ae||b.type,a,b),$t(b)||b.codemirrorIgnore}function Ot(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ae=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),ne=0;ne<b.length;++ne)tt(ae,b[ne])==-1&&ae.push(b[ne])}function At(a,b){return mt(a,b).length>0}function Nt(a){a.prototype.on=function(b,ae){yt(this,b,ae)},a.prototype.off=function(b,ae){Ct(this,b,ae)}}function Ht(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function gr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function $t(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ar(a){Ht(a),gr(a)}function er(a){return a.target||a.srcElement}function Ir(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 $r=function(){if(xe&&x<9)return!1;var a=ye("div");return"draggable"in a||"dragDrop"in a}(),nn;function dn(a){if(nn==null){var b=ye("span","\u200B");de(a,ye("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(nn=b.offsetWidth<=1&&b.offsetHeight>2&&!(xe&&x<8))}var ae=nn?ye("span","\u200B"):ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ae.setAttribute("cm-text",""),ae}var tn;function Dr(a){if(tn!=null)return tn;var b=de(a,document.createTextNode("A\u062EA")),ae=Oe(b,0,1).getBoundingClientRect(),ne=Oe(b,1,2).getBoundingClientRect();return ke(a),!ae||ae.left==ae.right?!1:tn=ne.right-ae.right<3}var fn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ae=[],ne=a.length;b<=ne;){var pe=a.indexOf(`
`,b);pe==-1&&(pe=a.length);var Be=a.slice(b,a.charAt(pe-1)=="\r"?pe-1:pe),Qe=Be.indexOf("\r");Qe!=-1?(ae.push(Be.slice(0,Qe)),b+=Qe+1):(ae.push(Be),b=pe+1)}return ae}:function(a){return a.split(/\r\n?|\n/)},hn=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(ae){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Rr=function(){var a=ye("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),jr=null;function Dt(a){if(jr!=null)return jr;var b=de(a,ye("span","x")),ae=b.getBoundingClientRect(),ne=Oe(b,0,1).getBoundingClientRect();return jr=Math.abs(ae.left-ne.left)>1}var jt={},Mt={};function ar(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),jt[a]=b}function Or(a,b){Mt[a]=b}function wr(a){if(typeof a=="string"&&Mt.hasOwnProperty(a))a=Mt[a];else if(a&&typeof a.name=="string"&&Mt.hasOwnProperty(a.name)){var b=Mt[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 wr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return wr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function vr(a,b){b=wr(b);var ae=jt[b.name];if(!ae)return vr(a,"text/plain");var ne=ae(a,b);if(Pr.hasOwnProperty(b.name)){var pe=Pr[b.name];for(var Be in pe)pe.hasOwnProperty(Be)&&(ne.hasOwnProperty(Be)&&(ne["_"+Be]=ne[Be]),ne[Be]=pe[Be])}if(ne.name=b.name,b.helperType&&(ne.helperType=b.helperType),b.modeProps)for(var Qe in b.modeProps)ne[Qe]=b.modeProps[Qe];return ne}var Pr={};function dr(a,b){var ae=Pr.hasOwnProperty(a)?Pr[a]:Pr[a]={};it(b,ae)}function Cr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ae={};for(var ne in b){var pe=b[ne];pe instanceof Array&&(pe=pe.concat([])),ae[ne]=pe}return ae}function Lr(a,b){for(var ae;a.innerMode&&(ae=a.innerMode(b),!(!ae||ae.mode==a));)b=ae.state,a=ae.mode;return ae||{mode:a,state:b}}function Xr(a,b,ae){return a.startState?a.startState(b,ae):!0}var or=function(a,b,ae){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ae};or.prototype.eol=function(){return this.pos>=this.string.length},or.prototype.sol=function(){return this.pos==this.lineStart},or.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},or.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},or.prototype.eat=function(a){var b=this.string.charAt(this.pos),ae;if(typeof a=="string"?ae=b==a:ae=b&&(a.test?a.test(b):a(b)),ae)return++this.pos,b},or.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},or.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},or.prototype.skipToEnd=function(){this.pos=this.string.length},or.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},or.prototype.backUp=function(a){this.pos-=a},or.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ie(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ie(this.string,this.lineStart,this.tabSize):0)},or.prototype.indentation=function(){return Ie(this.string,null,this.tabSize)-(this.lineStart?Ie(this.string,this.lineStart,this.tabSize):0)},or.prototype.match=function(a,b,ae){if(typeof a=="string"){var ne=function(Qe){return ae?Qe.toLowerCase():Qe},pe=this.string.substr(this.pos,a.length);if(ne(pe)==ne(a))return b!==!1&&(this.pos+=a.length),!0}else{var Be=this.string.slice(this.pos).match(a);return Be&&Be.index>0?null:(Be&&b!==!1&&(this.pos+=Be[0].length),Be)}},or.prototype.current=function(){return this.string.slice(this.start,this.pos)},or.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},or.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},or.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ut(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 ae=a;!ae.lines;)for(var ne=0;;++ne){var pe=ae.children[ne],Be=pe.chunkSize();if(b<Be){ae=pe;break}b-=Be}return ae.lines[b]}function Xt(a,b,ae){var ne=[],pe=b.line;return a.iter(b.line,ae.line+1,function(Be){var Qe=Be.text;pe==ae.line&&(Qe=Qe.slice(0,ae.ch)),pe==b.line&&(Qe=Qe.slice(b.ch)),ne.push(Qe),++pe}),ne}function Yr(a,b,ae){var ne=[];return a.iter(b,ae,function(pe){ne.push(pe.text)}),ne}function qr(a,b){var ae=b-a.height;if(ae)for(var ne=a;ne;ne=ne.parent)ne.height+=ae}function Et(a){if(a.parent==null)return null;for(var b=a.parent,ae=tt(b.lines,a),ne=b.parent;ne;b=ne,ne=ne.parent)for(var pe=0;ne.children[pe]!=b;++pe)ae+=ne.children[pe].chunkSize();return ae+b.first}function kt(a,b){var ae=a.first;e:do{for(var ne=0;ne<a.children.length;++ne){var pe=a.children[ne],Be=pe.height;if(b<Be){a=pe;continue e}b-=Be,ae+=pe.chunkSize()}return ae}while(!a.lines);for(var Qe=0;Qe<a.lines.length;++Qe){var at=a.lines[Qe],ut=at.height;if(b<ut)break;b-=ut}return ae+Qe}function fr(a,b){return b>=a.first&&b<a.first+a.size}function qt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Rt(a,b,ae){if(ae===void 0&&(ae=null),!(this instanceof Rt))return new Rt(a,b,ae);this.line=a,this.ch=b,this.sticky=ae}function rr(a,b){return a.line-b.line||a.ch-b.ch}function mr(a,b){return a.sticky==b.sticky&&rr(a,b)==0}function hr(a){return Rt(a.line,a.ch)}function ir(a,b){return rr(a,b)<0?b:a}function Lt(a,b){return rr(a,b)<0?a:b}function br(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function nr(a,b){if(b.line<a.first)return Rt(a.first,0);var ae=a.first+a.size-1;return b.line>ae?Rt(ae,Ut(a,ae).text.length):Jr(b,Ut(a,b.line).text.length)}function Jr(a,b){var ae=a.ch;return ae==null||ae>b?Rt(a.line,b):ae<0?Rt(a.line,0):a}function yr(a,b){for(var ae=[],ne=0;ne<b.length;ne++)ae[ne]=nr(a,b[ne]);return ae}var Nr=function(a,b){this.state=a,this.lookAhead=b},Zr=function(a,b,ae,ne){this.state=b,this.doc=a,this.line=ae,this.maxLookAhead=ne||0,this.baseTokens=null,this.baseTokenPos=1};Zr.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Zr.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}},Zr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zr.fromSaved=function(a,b,ae){return b instanceof Nr?new Zr(a,Cr(a.mode,b.state),ae,b.lookAhead):new Zr(a,Cr(a.mode,b),ae)},Zr.prototype.save=function(a){var b=a!==!1?Cr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nr(b,this.maxLookAhead):b};function an(a,b,ae,ne){var pe=[a.state.modeGen],Be={};Un(a,b.text,a.doc.mode,ae,function(ft,bt){return pe.push(ft,bt)},Be,ne);for(var Qe=ae.state,at=function(ft){ae.baseTokens=pe;var bt=a.state.overlays[ft],Tt=1,Kt=0;ae.state=!0,Un(a,b.text,bt.mode,ae,function(Zt,cr){for(var Sr=Tt;Kt<Zt;){var Mr=pe[Tt];Mr>Zt&&pe.splice(Tt,1,Zt,pe[Tt+1],Mr),Tt+=2,Kt=Math.min(Zt,Mr)}if(cr)if(bt.opaque)pe.splice(Sr,Tt-Sr,Zt,"overlay "+cr),Tt=Sr+2;else for(;Sr<Tt;Sr+=2){var zr=pe[Sr+1];pe[Sr+1]=(zr?zr+" ":"")+"overlay "+cr}},Be),ae.state=Qe,ae.baseTokens=null,ae.baseTokenPos=1},ut=0;ut<a.state.overlays.length;++ut)at(ut);return{styles:pe,classes:Be.bgClass||Be.textClass?Be:null}}function un(a,b,ae){if(!b.styles||b.styles[0]!=a.state.modeGen){var ne=Cn(a,Et(b)),pe=b.text.length>a.options.maxHighlightLength&&Cr(a.doc.mode,ne.state),Be=an(a,b,ne);pe&&(ne.state=pe),b.stateAfter=ne.save(!pe),b.styles=Be.styles,Be.classes?b.styleClasses=Be.classes:b.styleClasses&&(b.styleClasses=null),ae===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Cn(a,b,ae){var ne=a.doc,pe=a.display;if(!ne.mode.startState)return new Zr(ne,!0,b);var Be=Vn(a,b,ae),Qe=Be>ne.first&&Ut(ne,Be-1).stateAfter,at=Qe?Zr.fromSaved(ne,Qe,Be):new Zr(ne,Xr(ne.mode),Be);return ne.iter(Be,b,function(ut){Wn(a,ut.text,at);var ft=at.line;ut.stateAfter=ft==b-1||ft%5==0||ft>=pe.viewFrom&&ft<pe.viewTo?at.save():null,at.nextLine()}),ae&&(ne.modeFrontier=at.line),at}function Wn(a,b,ae,ne){var pe=a.doc.mode,Be=new or(b,a.options.tabSize,ae);for(Be.start=Be.pos=ne||0,b==""&&Rn(pe,ae.state);!Be.eol();)pn(pe,Be,ae.state),Be.start=Be.pos}function Rn(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ae=Lr(a,b);if(ae.mode.blankLine)return ae.mode.blankLine(ae.state)}}function pn(a,b,ae,ne){for(var pe=0;pe<10;pe++){ne&&(ne[0]=Lr(a,ae).mode);var Be=a.token(b,ae);if(b.pos>b.start)return Be}throw new Error("Mode "+a.name+" failed to advance stream.")}var rn=function(a,b,ae){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ae};function zn(a,b,ae,ne){var pe=a.doc,Be=pe.mode,Qe;b=nr(pe,b);var at=Ut(pe,b.line),ut=Cn(a,b.line,ae),ft=new or(at.text,a.options.tabSize,ut),bt;for(ne&&(bt=[]);(ne||ft.pos<b.ch)&&!ft.eol();)ft.start=ft.pos,Qe=pn(Be,ft,ut.state),ne&&bt.push(new rn(ft,Qe,Cr(pe.mode,ut.state)));return ne?bt:new rn(ft,Qe,ut.state)}function Jn(a,b){if(a)for(;;){var ae=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ae)break;a=a.slice(0,ae.index)+a.slice(ae.index+ae[0].length);var ne=ae[1]?"bgClass":"textClass";b[ne]==null?b[ne]=ae[2]:new RegExp("(?:^|\\s)"+ae[2]+"(?:$|\\s)").test(b[ne])||(b[ne]+=" "+ae[2])}return a}function Un(a,b,ae,ne,pe,Be,Qe){var at=ae.flattenSpans;at==null&&(at=a.options.flattenSpans);var ut=0,ft=null,bt=new or(b,a.options.tabSize,ne),Tt,Kt=a.options.addModeClass&&[null];for(b==""&&Jn(Rn(ae,ne.state),Be);!bt.eol();){if(bt.pos>a.options.maxHighlightLength?(at=!1,Qe&&Wn(a,b,ne,bt.pos),bt.pos=b.length,Tt=null):Tt=Jn(pn(ae,bt,ne.state,Kt),Be),Kt){var Zt=Kt[0].name;Zt&&(Tt="m-"+(Tt?Zt+" "+Tt:Zt))}if(!at||ft!=Tt){for(;ut<bt.start;)ut=Math.min(bt.start,ut+5e3),pe(ut,ft);ft=Tt}bt.start=bt.pos}for(;ut<bt.pos;){var cr=Math.min(bt.pos,ut+5e3);pe(cr,ft),ut=cr}}function Vn(a,b,ae){for(var ne,pe,Be=a.doc,Qe=ae?-1:b-(a.doc.mode.innerMode?1e3:100),at=b;at>Qe;--at){if(at<=Be.first)return Be.first;var ut=Ut(Be,at-1),ft=ut.stateAfter;if(ft&&(!ae||at+(ft instanceof Nr?ft.lookAhead:0)<=Be.modeFrontier))return at;var bt=Ie(ut.text,null,a.options.tabSize);(pe==null||ne>bt)&&(pe=at-1,ne=bt)}return pe}function Gn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ae=a.first,ne=b-1;ne>ae;ne--){var pe=Ut(a,ne).stateAfter;if(pe&&(!(pe instanceof Nr)||ne+pe.lookAhead<b)){ae=ne+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ae)}}var Er=!1,_r=!1;function pr(){Er=!0}function Fr(){_r=!0}function kr(a,b,ae){this.marker=a,this.from=b,this.to=ae}function Hr(a,b){if(a)for(var ae=0;ae<a.length;++ae){var ne=a[ae];if(ne.marker==b)return ne}}function mn(a,b){for(var ae,ne=0;ne<a.length;++ne)a[ne]!=b&&(ae||(ae=[])).push(a[ne]);return ae}function On(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function _n(a,b,ae){var ne;if(a)for(var pe=0;pe<a.length;++pe){var Be=a[pe],Qe=Be.marker,at=Be.from==null||(Qe.inclusiveLeft?Be.from<=b:Be.from<b);if(at||Be.from==b&&Qe.type=="bookmark"&&(!ae||!Be.marker.insertLeft)){var ut=Be.to==null||(Qe.inclusiveRight?Be.to>=b:Be.to>b);(ne||(ne=[])).push(new kr(Qe,Be.from,ut?null:Be.to))}}return ne}function In(a,b,ae){var ne;if(a)for(var pe=0;pe<a.length;++pe){var Be=a[pe],Qe=Be.marker,at=Be.to==null||(Qe.inclusiveRight?Be.to>=b:Be.to>b);if(at||Be.from==b&&Qe.type=="bookmark"&&(!ae||Be.marker.insertLeft)){var ut=Be.from==null||(Qe.inclusiveLeft?Be.from<=b:Be.from<b);(ne||(ne=[])).push(new kr(Qe,ut?null:Be.from-b,Be.to==null?null:Be.to-b))}}return ne}function Qn(a,b){if(b.full)return null;var ae=fr(a,b.from.line)&&Ut(a,b.from.line).markedSpans,ne=fr(a,b.to.line)&&Ut(a,b.to.line).markedSpans;if(!ae&&!ne)return null;var pe=b.from.ch,Be=b.to.ch,Qe=rr(b.from,b.to)==0,at=_n(ae,pe,Qe),ut=In(ne,Be,Qe),ft=b.text.length==1,bt=st(b.text).length+(ft?pe:0);if(at)for(var Tt=0;Tt<at.length;++Tt){var Kt=at[Tt];if(Kt.to==null){var Zt=Hr(ut,Kt.marker);Zt?ft&&(Kt.to=Zt.to==null?null:Zt.to+bt):Kt.to=pe}}if(ut)for(var cr=0;cr<ut.length;++cr){var Sr=ut[cr];if(Sr.to!=null&&(Sr.to+=bt),Sr.from==null){var Mr=Hr(at,Sr.marker);Mr||(Sr.from=bt,ft&&(at||(at=[])).push(Sr))}else Sr.from+=bt,ft&&(at||(at=[])).push(Sr)}at&&(at=vt(at)),ut&&ut!=at&&(ut=vt(ut));var zr=[at];if(!ft){var en=b.text.length-2,Gr;if(en>0&&at)for(var cn=0;cn<at.length;++cn)at[cn].to==null&&(Gr||(Gr=[])).push(new kr(at[cn].marker,null,null));for(var An=0;An<en;++An)zr.push(Gr);zr.push(ut)}return zr}function vt(a){for(var b=0;b<a.length;++b){var ae=a[b];ae.from!=null&&ae.from==ae.to&&ae.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Bt(a,b,ae){var ne=null;if(a.iter(b.line,ae.line+1,function(Zt){if(Zt.markedSpans)for(var cr=0;cr<Zt.markedSpans.length;++cr){var Sr=Zt.markedSpans[cr].marker;Sr.readOnly&&(!ne||tt(ne,Sr)==-1)&&(ne||(ne=[])).push(Sr)}}),!ne)return null;for(var pe=[{from:b,to:ae}],Be=0;Be<ne.length;++Be)for(var Qe=ne[Be],at=Qe.find(0),ut=0;ut<pe.length;++ut){var ft=pe[ut];if(!(rr(ft.to,at.from)<0||rr(ft.from,at.to)>0)){var bt=[ut,1],Tt=rr(ft.from,at.from),Kt=rr(ft.to,at.to);(Tt<0||!Qe.inclusiveLeft&&!Tt)&&bt.push({from:ft.from,to:at.from}),(Kt>0||!Qe.inclusiveRight&&!Kt)&&bt.push({from:at.to,to:ft.to}),pe.splice.apply(pe,bt),ut+=bt.length-3}}return pe}function Ft(a){var b=a.markedSpans;if(b){for(var ae=0;ae<b.length;++ae)b[ae].marker.detachLine(a);a.markedSpans=null}}function zt(a,b){if(b){for(var ae=0;ae<b.length;++ae)b[ae].marker.attachLine(a);a.markedSpans=b}}function Jt(a){return a.inclusiveLeft?-1:0}function Qt(a){return a.inclusiveRight?1:0}function ur(a,b){var ae=a.lines.length-b.lines.length;if(ae!=0)return ae;var ne=a.find(),pe=b.find(),Be=rr(ne.from,pe.from)||Jt(a)-Jt(b);if(Be)return-Be;var Qe=rr(ne.to,pe.to)||Qt(a)-Qt(b);return Qe||b.id-a.id}function sr(a,b){var ae=_r&&a.markedSpans,ne;if(ae)for(var pe=void 0,Be=0;Be<ae.length;++Be)pe=ae[Be],pe.marker.collapsed&&(b?pe.from:pe.to)==null&&(!ne||ur(ne,pe.marker)<0)&&(ne=pe.marker);return ne}function tr(a){return sr(a,!0)}function It(a){return sr(a,!1)}function Vt(a,b){var ae=_r&&a.markedSpans,ne;if(ae)for(var pe=0;pe<ae.length;++pe){var Be=ae[pe];Be.marker.collapsed&&(Be.from==null||Be.from<b)&&(Be.to==null||Be.to>b)&&(!ne||ur(ne,Be.marker)<0)&&(ne=Be.marker)}return ne}function Pt(a,b,ae,ne,pe){var Be=Ut(a,b),Qe=_r&&Be.markedSpans;if(Qe)for(var at=0;at<Qe.length;++at){var ut=Qe[at];if(ut.marker.collapsed){var ft=ut.marker.find(0),bt=rr(ft.from,ae)||Jt(ut.marker)-Jt(pe),Tt=rr(ft.to,ne)||Qt(ut.marker)-Qt(pe);if(!(bt>=0&&Tt<=0||bt<=0&&Tt>=0)&&(bt<=0&&(ut.marker.inclusiveRight&&pe.inclusiveLeft?rr(ft.to,ae)>=0:rr(ft.to,ae)>0)||bt>=0&&(ut.marker.inclusiveRight&&pe.inclusiveLeft?rr(ft.from,ne)<=0:rr(ft.from,ne)<0)))return!0}}}function _t(a){for(var b;b=tr(a);)a=b.find(-1,!0).line;return a}function Wt(a){for(var b;b=It(a);)a=b.find(1,!0).line;return a}function Yt(a){for(var b,ae;b=It(a);)a=b.find(1,!0).line,(ae||(ae=[])).push(a);return ae}function xr(a,b){var ae=Ut(a,b),ne=_t(ae);return ae==ne?b:Et(ne)}function Tr(a,b){if(b>a.lastLine())return b;var ae=Ut(a,b),ne;if(!Wr(a,ae))return b;for(;ne=It(ae);)ae=ne.find(1,!0).line;return Et(ae)+1}function Wr(a,b){var ae=_r&&b.markedSpans;if(ae){for(var ne=void 0,pe=0;pe<ae.length;++pe)if(ne=ae[pe],!!ne.marker.collapsed){if(ne.from==null)return!0;if(!ne.marker.widgetNode&&ne.from==0&&ne.marker.inclusiveLeft&&Kr(a,b,ne))return!0}}}function Kr(a,b,ae){if(ae.to==null){var ne=ae.marker.find(1,!0);return Kr(a,ne.line,Hr(ne.line.markedSpans,ae.marker))}if(ae.marker.inclusiveRight&&ae.to==b.text.length)return!0;for(var pe=void 0,Be=0;Be<b.markedSpans.length;++Be)if(pe=b.markedSpans[Be],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==ae.to&&(pe.to==null||pe.to!=ae.from)&&(pe.marker.inclusiveLeft||ae.marker.inclusiveRight)&&Kr(a,b,pe))return!0}function Br(a){a=_t(a);for(var b=0,ae=a.parent,ne=0;ne<ae.lines.length;++ne){var pe=ae.lines[ne];if(pe==a)break;b+=pe.height}for(var Be=ae.parent;Be;ae=Be,Be=ae.parent)for(var Qe=0;Qe<Be.children.length;++Qe){var at=Be.children[Qe];if(at==ae)break;b+=at.height}return b}function on(a){if(a.height==0)return 0;for(var b=a.text.length,ae,ne=a;ae=tr(ne);){var pe=ae.find(0,!0);ne=pe.from.line,b+=pe.from.ch-pe.to.ch}for(ne=a;ae=It(ne);){var Be=ae.find(0,!0);b-=ne.text.length-Be.from.ch,ne=Be.to.line,b+=ne.text.length-Be.to.ch}return b}function Qr(a){var b=a.display,ae=a.doc;b.maxLine=Ut(ae,ae.first),b.maxLineLength=on(b.maxLine),b.maxLineChanged=!0,ae.iter(function(ne){var pe=on(ne);pe>b.maxLineLength&&(b.maxLineLength=pe,b.maxLine=ne)})}var bn=function(a,b,ae){this.text=a,zt(this,b),this.height=ae?ae(this):1};bn.prototype.lineNo=function(){return Et(this)},Nt(bn);function Mn(a,b,ae,ne){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Ft(a),zt(a,ae);var pe=ne?ne(a):1;pe!=a.height&&qr(a,pe)}function Nn(a){a.parent=null,Ft(a)}var kn={},Ln={};function Pn(a,b){if(!a||/^\s*$/.test(a))return null;var ae=b.addModeClass?Ln:kn;return ae[a]||(ae[a]=a.replace(/\S+/g,"cm-$&"))}function Tn(a,b){var ae=Se("span",null,null,z?"padding-right: .1px":null),ne={pre:Se("pre",[ae],"CodeMirror-line"),content:ae,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var pe=0;pe<=(b.rest?b.rest.length:0);pe++){var Be=pe?b.rest[pe-1]:b.line,Qe=void 0;ne.pos=0,ne.addToken=Ur,Dr(a.display.measure)&&(Qe=St(Be,a.doc.direction))&&(ne.addToken=ln(ne.addToken,Qe)),ne.map=[];var at=b!=a.display.externalMeasured&&Et(Be);jn(Be,ne,un(a,Be,at)),Be.styleClasses&&(Be.styleClasses.bgClass&&(ne.bgClass=Ze(Be.styleClasses.bgClass,ne.bgClass||"")),Be.styleClasses.textClass&&(ne.textClass=Ze(Be.styleClasses.textClass,ne.textClass||""))),ne.map.length==0&&ne.map.push(0,0,ne.content.appendChild(dn(a.display.measure))),pe==0?(b.measure.map=ne.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ne.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(z){var ut=ne.content.lastChild;(/\bcm-tab\b/.test(ut.className)||ut.querySelector&&ut.querySelector(".cm-tab"))&&(ne.content.className="cm-tab-wrap-hack")}return wt(a,"renderLine",a,b.line,ne.pre),ne.pre.className&&(ne.textClass=Ze(ne.pre.className,ne.textClass||"")),ne}function Dn(a){var b=ye("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Ur(a,b,ae,ne,pe,Be,Qe){if(b){var at=a.splitSpaces?Vr(b,a.trailingSpace):b,ut=a.cm.state.specialChars,ft=!1,bt;if(!ut.test(b))a.col+=b.length,bt=document.createTextNode(at),a.map.push(a.pos,a.pos+b.length,bt),xe&&x<9&&(ft=!0),a.pos+=b.length;else{bt=document.createDocumentFragment();for(var Tt=0;;){ut.lastIndex=Tt;var Kt=ut.exec(b),Zt=Kt?Kt.index-Tt:b.length-Tt;if(Zt){var cr=document.createTextNode(at.slice(Tt,Tt+Zt));xe&&x<9?bt.appendChild(ye("span",[cr])):bt.appendChild(cr),a.map.push(a.pos,a.pos+Zt,cr),a.col+=Zt,a.pos+=Zt}if(!Kt)break;Tt+=Zt+1;var Sr=void 0;if(Kt[0]==" "){var Mr=a.cm.options.tabSize,zr=Mr-a.col%Mr;Sr=bt.appendChild(ye("span",ct(zr),"cm-tab")),Sr.setAttribute("role","presentation"),Sr.setAttribute("cm-text"," "),a.col+=zr}else Kt[0]=="\r"||Kt[0]==`
`?(Sr=bt.appendChild(ye("span",Kt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Sr.setAttribute("cm-text",Kt[0]),a.col+=1):(Sr=a.cm.options.specialCharPlaceholder(Kt[0]),Sr.setAttribute("cm-text",Kt[0]),xe&&x<9?bt.appendChild(ye("span",[Sr])):bt.appendChild(Sr),a.col+=1);a.map.push(a.pos,a.pos+1,Sr),a.pos++}}if(a.trailingSpace=at.charCodeAt(b.length-1)==32,ae||ne||pe||ft||Be||Qe){var en=ae||"";ne&&(en+=ne),pe&&(en+=pe);var Gr=ye("span",[bt],en,Be);if(Qe)for(var cn in Qe)Qe.hasOwnProperty(cn)&&cn!="style"&&cn!="class"&&Gr.setAttribute(cn,Qe[cn]);return a.content.appendChild(Gr)}a.content.appendChild(bt)}}function Vr(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ae=b,ne="",pe=0;pe<a.length;pe++){var Be=a.charAt(pe);Be==" "&&ae&&(pe==a.length-1||a.charCodeAt(pe+1)==32)&&(Be="\xA0"),ne+=Be,ae=Be==" "}return ne}function ln(a,b){return function(ae,ne,pe,Be,Qe,at,ut){pe=pe?pe+" cm-force-border":"cm-force-border";for(var ft=ae.pos,bt=ft+ne.length;;){for(var Tt=void 0,Kt=0;Kt<b.length&&(Tt=b[Kt],!(Tt.to>ft&&Tt.from<=ft));Kt++);if(Tt.to>=bt)return a(ae,ne,pe,Be,Qe,at,ut);a(ae,ne.slice(0,Tt.to-ft),pe,Be,null,at,ut),Be=null,ne=ne.slice(Tt.to-ft),ft=Tt.to}}}function vn(a,b,ae,ne){var pe=!ne&&ae.widgetNode;pe&&a.map.push(a.pos,a.pos+b,pe),!ne&&a.cm.display.input.needsContentAttribute&&(pe||(pe=a.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ae.id)),pe&&(a.cm.display.input.setUneditable(pe),a.content.appendChild(pe)),a.pos+=b,a.trailingSpace=!1}function jn(a,b,ae){var ne=a.markedSpans,pe=a.text,Be=0;if(!ne){for(var Qe=1;Qe<ae.length;Qe+=2)b.addToken(b,pe.slice(Be,Be=ae[Qe]),Pn(ae[Qe+1],b.cm.options));return}for(var at=pe.length,ut=0,ft=1,bt="",Tt,Kt,Zt=0,cr,Sr,Mr,zr,en;;){if(Zt==ut){cr=Sr=Mr=Kt="",en=null,zr=null,Zt=1/0;for(var Gr=[],cn=void 0,An=0;An<ne.length;++An){var yn=ne[An],Yn=yn.marker;if(Yn.type=="bookmark"&&yn.from==ut&&Yn.widgetNode)Gr.push(Yn);else if(yn.from<=ut&&(yn.to==null||yn.to>ut||Yn.collapsed&&yn.to==ut&&yn.from==ut)){if(yn.to!=null&&yn.to!=ut&&Zt>yn.to&&(Zt=yn.to,Sr=""),Yn.className&&(cr+=" "+Yn.className),Yn.css&&(Kt=(Kt?Kt+";":"")+Yn.css),Yn.startStyle&&yn.from==ut&&(Mr+=" "+Yn.startStyle),Yn.endStyle&&yn.to==Zt&&(cn||(cn=[])).push(Yn.endStyle,yn.to),Yn.title&&((en||(en={})).title=Yn.title),Yn.attributes)for(var ui in Yn.attributes)(en||(en={}))[ui]=Yn.attributes[ui];Yn.collapsed&&(!zr||ur(zr.marker,Yn)<0)&&(zr=yn)}else yn.from>ut&&Zt>yn.from&&(Zt=yn.from)}if(cn)for(var Ii=0;Ii<cn.length;Ii+=2)cn[Ii+1]==Zt&&(Sr+=" "+cn[Ii]);if(!zr||zr.from==ut)for(var wi=0;wi<Gr.length;++wi)vn(b,0,Gr[wi]);if(zr&&(zr.from||0)==ut){if(vn(b,(zr.to==null?at+1:zr.to)-ut,zr.marker,zr.from==null),zr.to==null)return;zr.to==ut&&(zr=!1)}}if(ut>=at)break;for(var aa=Math.min(at,Zt);;){if(bt){var qi=ut+bt.length;if(!zr){var _i=qi>aa?bt.slice(0,aa-ut):bt;b.addToken(b,_i,Tt?Tt+cr:cr,Mr,ut+_i.length==Zt?Sr:"",Kt,en)}if(qi>=aa){bt=bt.slice(aa-ut),ut=aa;break}ut=qi,Mr=""}bt=pe.slice(Be,Be=ae[ft++]),Tt=Pn(ae[ft++],b.cm.options)}}}function Sn(a,b,ae){this.line=b,this.rest=Yt(b),this.size=this.rest?Et(st(this.rest))-ae+1:1,this.node=this.text=null,this.hidden=Wr(a,b)}function gn(a,b,ae){for(var ne=[],pe,Be=b;Be<ae;Be=pe){var Qe=new Sn(a.doc,Ut(a.doc,Be),Be);pe=Be+Qe.size,ne.push(Qe)}return ne}var $n=null;function Ei(a){$n?$n.ops.push(a):a.ownsGroup=$n={ops:[a],delayedCallbacks:[]}}function Ci(a){var b=a.delayedCallbacks,ae=0;do{for(;ae<b.length;ae++)b[ae].call(null);for(var ne=0;ne<a.ops.length;ne++){var pe=a.ops[ne];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(ae<b.length)}function oa(a,b){var ae=a.ownsGroup;if(ae)try{Ci(ae)}finally{$n=null,b(ae)}}var Bi=null;function ri(a,b){var ae=mt(a,b);if(ae.length){var ne=Array.prototype.slice.call(arguments,2),pe;$n?pe=$n.delayedCallbacks:Bi?pe=Bi:(pe=Bi=[],setTimeout(ei,0));for(var Be=function(at){pe.push(function(){return ae[at].apply(null,ne)})},Qe=0;Qe<ae.length;++Qe)Be(Qe)}}function ei(){var a=Bi;Bi=null;for(var b=0;b<a.length;++b)a[b]()}function ti(a,b,ae,ne){for(var pe=0;pe<b.changes.length;pe++){var Be=b.changes[pe];Be=="text"?oi(a,b):Be=="gutter"?wn(a,b,ae,ne):Be=="class"?sn(a,b):Be=="widget"&&xn(a,b,ne)}b.changes=null}function ki(a){return a.node==a.text&&(a.node=ye("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&x<8&&(a.node.style.zIndex=2)),a.node}function ai(a,b){var ae=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ae&&(ae+=" CodeMirror-linebackground"),b.background)ae?b.background.className=ae:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ae){var ne=ki(b);b.background=ne.insertBefore(ye("div",null,ae),ne.firstChild),a.display.input.setUneditable(b.background)}}function li(a,b){var ae=a.display.externalMeasured;return ae&&ae.line==b.line?(a.display.externalMeasured=null,b.measure=ae.measure,ae.built):Tn(a,b)}function oi(a,b){var ae=b.text.className,ne=li(a,b);b.text==b.node&&(b.node=ne.pre),b.text.parentNode.replaceChild(ne.pre,b.text),b.text=ne.pre,ne.bgClass!=b.bgClass||ne.textClass!=b.textClass?(b.bgClass=ne.bgClass,b.textClass=ne.textClass,sn(a,b)):ae&&(b.text.className=ae)}function sn(a,b){ai(a,b),b.line.wrapClass?ki(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ae=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ae||""}function wn(a,b,ae,ne){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 pe=ki(b);b.gutterBackground=ye("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px; width: "+ne.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),pe.insertBefore(b.gutterBackground,b.text)}var Be=b.line.gutterMarkers;if(a.options.lineNumbers||Be){var Qe=ki(b),at=b.gutter=ye("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px");if(a.display.input.setUneditable(at),Qe.insertBefore(at,b.text),b.line.gutterClass&&(at.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Be||!Be["CodeMirror-linenumbers"])&&(b.lineNumber=at.appendChild(ye("div",qt(a.options,ae),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ne.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Be)for(var ut=0;ut<a.display.gutterSpecs.length;++ut){var ft=a.display.gutterSpecs[ut].className,bt=Be.hasOwnProperty(ft)&&Be[ft];bt&&at.appendChild(ye("div",[bt],"CodeMirror-gutter-elt","left: "+ne.gutterLeft[ft]+"px; width: "+ne.gutterWidth[ft]+"px"))}}}function xn(a,b,ae){b.alignable&&(b.alignable=null);for(var ne=Te("CodeMirror-linewidget"),pe=b.node.firstChild,Be=void 0;pe;pe=Be)Be=pe.nextSibling,ne.test(pe.className)&&b.node.removeChild(pe);Xn(a,b,ae)}function En(a,b,ae,ne){var pe=li(a,b);return b.text=b.node=pe.pre,pe.bgClass&&(b.bgClass=pe.bgClass),pe.textClass&&(b.textClass=pe.textClass),sn(a,b),wn(a,b,ae,ne),Xn(a,b,ne),b.node}function Xn(a,b,ae){if(qn(a,b.line,b,ae,!0),b.rest)for(var ne=0;ne<b.rest.length;ne++)qn(a,b.rest[ne],b,ae,!1)}function qn(a,b,ae,ne,pe){if(b.widgets)for(var Be=ki(ae),Qe=0,at=b.widgets;Qe<at.length;++Qe){var ut=at[Qe],ft=ye("div",[ut.node],"CodeMirror-linewidget"+(ut.className?" "+ut.className:""));ut.handleMouseEvents||ft.setAttribute("cm-ignore-events","true"),Zi(ut,ft,ae,ne),a.display.input.setUneditable(ft),pe&&ut.above?Be.insertBefore(ft,ae.gutter||ae.text):Be.appendChild(ft),ri(ut,"redraw")}}function Zi(a,b,ae,ne){if(a.noHScroll){(ae.alignable||(ae.alignable=[])).push(b);var pe=ne.wrapperWidth;b.style.left=ne.fixedPos+"px",a.coverGutter||(pe-=ne.gutterTotalWidth,b.style.paddingLeft=ne.gutterTotalWidth+"px"),b.style.width=pe+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-ne.gutterTotalWidth+"px"))}function fi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Ne(document.body,a.node)){var ae="position: relative;";a.coverGutter&&(ae+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ae+="width: "+b.display.wrapper.clientWidth+"px;"),de(b.display.measure,ye("div",[a.node],null,ae))}return a.height=a.node.parentNode.offsetHeight}function ci(a,b){for(var ae=er(b);ae!=a.wrapper;ae=ae.parentNode)if(!ae||ae.nodeType==1&&ae.getAttribute("cm-ignore-events")=="true"||ae.parentNode==a.sizer&&ae!=a.mover)return!0}function Bn(a){return a.lineSpace.offsetTop}function yi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Gi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=de(a.measure,ye("pre","x","CodeMirror-line-like")),ae=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ne={left:parseInt(ae.paddingLeft),right:parseInt(ae.paddingRight)};return!isNaN(ne.left)&&!isNaN(ne.right)&&(a.cachedPaddingH=ne),ne}function ni(a){return rt-a.display.nativeBarWidth}function sa(a){return a.display.scroller.clientWidth-ni(a)-a.display.barWidth}function Ki(a){return a.display.scroller.clientHeight-ni(a)-a.display.barHeight}function Yi(a,b,ae){var ne=a.options.lineWrapping,pe=ne&&sa(a);if(!b.measure.heights||ne&&b.measure.width!=pe){var Be=b.measure.heights=[];if(ne){b.measure.width=pe;for(var Qe=b.text.firstChild.getClientRects(),at=0;at<Qe.length-1;at++){var ut=Qe[at],ft=Qe[at+1];Math.abs(ut.bottom-ft.bottom)>2&&Be.push((ut.bottom+ft.top)/2-ae.top)}}Be.push(ae.bottom-ae.top)}}function mi(a,b,ae){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var ne=0;ne<a.rest.length;ne++)if(a.rest[ne]==b)return{map:a.measure.maps[ne],cache:a.measure.caches[ne]};for(var pe=0;pe<a.rest.length;pe++)if(Et(a.rest[pe])>ae)return{map:a.measure.maps[pe],cache:a.measure.caches[pe],before:!0}}function ro(a,b){b=_t(b);var ae=Et(b),ne=a.display.externalMeasured=new Sn(a.doc,b,ae);ne.lineN=ae;var pe=ne.built=Tn(a,ne);return ne.text=pe.pre,de(a.display.lineMeasure,pe.pre),ne}function Ya(a,b,ae,ne){return ra(a,ma(a,b),ae,ne)}function pa(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Aa(a,b)];var ae=a.display.externalMeasured;if(ae&&b>=ae.lineN&&b<ae.lineN+ae.size)return ae}function ma(a,b){var ae=Et(b),ne=pa(a,ae);ne&&!ne.text?ne=null:ne&&ne.changes&&(ti(a,ne,ae,ua(a)),a.curOp.forceUpdate=!0),ne||(ne=ro(a,b));var pe=mi(ne,b,ae);return{line:b,view:ne,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function ra(a,b,ae,ne,pe){b.before&&(ae=-1);var Be=ae+(ne||""),Qe;return b.cache.hasOwnProperty(Be)?Qe=b.cache[Be]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Yi(a,b.view,b.rect),b.hasHeights=!0),Qe=ao(a,b,ae,ne),Qe.bogus||(b.cache[Be]=Qe)),{left:Qe.left,right:Qe.right,top:pe?Qe.rtop:Qe.top,bottom:pe?Qe.rbottom:Qe.bottom}}var Ea={left:0,right:0,top:0,bottom:0};function no(a,b,ae){for(var ne,pe,Be,Qe,at,ut,ft=0;ft<a.length;ft+=3)if(at=a[ft],ut=a[ft+1],b<at?(pe=0,Be=1,Qe="left"):b<ut?(pe=b-at,Be=pe+1):(ft==a.length-3||b==ut&&a[ft+3]>b)&&(Be=ut-at,pe=Be-1,b>=ut&&(Qe="right")),pe!=null){if(ne=a[ft+2],at==ut&&ae==(ne.insertLeft?"left":"right")&&(Qe=ae),ae=="left"&&pe==0)for(;ft&&a[ft-2]==a[ft-3]&&a[ft-1].insertLeft;)ne=a[(ft-=3)+2],Qe="left";if(ae=="right"&&pe==ut-at)for(;ft<a.length-3&&a[ft+3]==a[ft+4]&&!a[ft+5].insertLeft;)ne=a[(ft+=3)+2],Qe="right";break}return{node:ne,start:pe,end:Be,collapse:Qe,coverStart:at,coverEnd:ut}}function io(a,b){var ae=Ea;if(b=="left")for(var ne=0;ne<a.length&&(ae=a[ne]).left==ae.right;ne++);else for(var pe=a.length-1;pe>=0&&(ae=a[pe]).left==ae.right;pe--);return ae}function ao(a,b,ae,ne){var pe=no(b.map,ae,ne),Be=pe.node,Qe=pe.start,at=pe.end,ut=pe.collapse,ft;if(Be.nodeType==3){for(var bt=0;bt<4;bt++){for(;Qe&&Pe(b.line.text.charAt(pe.coverStart+Qe));)--Qe;for(;pe.coverStart+at<pe.coverEnd&&Pe(b.line.text.charAt(pe.coverStart+at));)++at;if(xe&&x<9&&Qe==0&&at==pe.coverEnd-pe.coverStart?ft=Be.parentNode.getBoundingClientRect():ft=io(Oe(Be,Qe,at).getClientRects(),ne),ft.left||ft.right||Qe==0)break;at=Qe,Qe=Qe-1,ut="right"}xe&&x<11&&(ft=La(a.display.measure,ft))}else{Qe>0&&(ut=ne="right");var Tt;a.options.lineWrapping&&(Tt=Be.getClientRects()).length>1?ft=Tt[ne=="right"?Tt.length-1:0]:ft=Be.getBoundingClientRect()}if(xe&&x<9&&!Qe&&(!ft||!ft.left&&!ft.right)){var Kt=Be.parentNode.getClientRects()[0];Kt?ft={left:Kt.left,right:Kt.left+Ji(a.display),top:Kt.top,bottom:Kt.bottom}:ft=Ea}for(var Zt=ft.top-b.rect.top,cr=ft.bottom-b.rect.top,Sr=(Zt+cr)/2,Mr=b.view.measure.heights,zr=0;zr<Mr.length-1&&!(Sr<Mr[zr]);zr++);var en=zr?Mr[zr-1]:0,Gr=Mr[zr],cn={left:(ut=="right"?ft.right:ft.left)-b.rect.left,right:(ut=="left"?ft.left:ft.right)-b.rect.left,top:en,bottom:Gr};return!ft.left&&!ft.right&&(cn.bogus=!0),a.options.singleCursorHeightPerLine||(cn.rtop=Zt,cn.rbottom=cr),cn}function La(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dt(a))return b;var ae=screen.logicalXDPI/screen.deviceXDPI,ne=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ae,right:b.right*ae,top:b.top*ne,bottom:b.bottom*ne}}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 Ba(a){a.display.externalMeasure=null,ke(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ja(a.display.view[b])}function Ca(a){Ba(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 se&&le?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function oo(){return se&&le?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Fa(a){var b=0;if(a.widgets)for(var ae=0;ae<a.widgets.length;++ae)a.widgets[ae].above&&(b+=fi(a.widgets[ae]));return b}function ka(a,b,ae,ne,pe){if(!pe){var Be=Fa(b);ae.top+=Be,ae.bottom+=Be}if(ne=="line")return ae;ne||(ne="local");var Qe=Br(b);if(ne=="local"?Qe+=Bn(a.display):Qe-=a.display.viewOffset,ne=="page"||ne=="window"){var at=a.display.lineSpace.getBoundingClientRect();Qe+=at.top+(ne=="window"?0:oo());var ut=at.left+(ne=="window"?0:Qa());ae.left+=ut,ae.right+=ut}return ae.top+=Qe,ae.bottom+=Qe,ae}function Ta(a,b,ae){if(ae=="div")return b;var ne=b.left,pe=b.top;if(ae=="page")ne-=Qa(),pe-=oo();else if(ae=="local"||!ae){var Be=a.display.sizer.getBoundingClientRect();ne+=Be.left,pe+=Be.top}var Qe=a.display.lineSpace.getBoundingClientRect();return{left:ne-Qe.left,top:pe-Qe.top}}function Fi(a,b,ae,ne,pe){return ne||(ne=Ut(a.doc,b.line)),ka(a,ne,Ya(a,ne,b.ch,pe),ae)}function di(a,b,ae,ne,pe,Be){ne=ne||Ut(a.doc,b.line),pe||(pe=ma(a,ne));function Qe(cr,Sr){var Mr=ra(a,pe,cr,Sr?"right":"left",Be);return Sr?Mr.left=Mr.right:Mr.right=Mr.left,ka(a,ne,Mr,ae)}var at=St(ne,a.doc.direction),ut=b.ch,ft=b.sticky;if(ut>=ne.text.length?(ut=ne.text.length,ft="before"):ut<=0&&(ut=0,ft="after"),!at)return Qe(ft=="before"?ut-1:ut,ft=="before");function bt(cr,Sr,Mr){var zr=at[Sr],en=zr.level==1;return Qe(Mr?cr-1:cr,en!=Mr)}var Tt=lt(at,ut,ft),Kt=dt,Zt=bt(ut,Tt,ft=="before");return Kt!=null&&(Zt.other=bt(ut,Kt,ft!="before")),Zt}function Kn(a,b){var ae=0;b=nr(a.doc,b),a.options.lineWrapping||(ae=Ji(a.display)*b.ch);var ne=Ut(a.doc,b.line),pe=Br(ne)+Bn(a.display);return{left:ae,right:ae,top:pe,bottom:pe+ne.height}}function Fn(a,b,ae,ne,pe){var Be=Rt(a,b,ae);return Be.xRel=pe,ne&&(Be.outside=ne),Be}function vi(a,b,ae){var ne=a.doc;if(ae+=a.display.viewOffset,ae<0)return Fn(ne.first,0,null,-1,-1);var pe=kt(ne,ae),Be=ne.first+ne.size-1;if(pe>Be)return Fn(ne.first+ne.size-1,Ut(ne,Be).text.length,null,1,1);b<0&&(b=0);for(var Qe=Ut(ne,pe);;){var at=la(a,Qe,pe,b,ae),ut=Vt(Qe,at.ch+(at.xRel>0||at.outside>0?1:0));if(!ut)return at;var ft=ut.find(1);if(ft.line==pe)return ft;Qe=Ut(ne,pe=ft.line)}}function hi(a,b,ae,ne){ne-=Fa(b);var pe=b.text.length,Be=qe(function(Qe){return ra(a,ae,Qe-1).bottom<=ne},pe,0);return pe=qe(function(Qe){return ra(a,ae,Qe).top>ne},Be,pe),{begin:Be,end:pe}}function bi(a,b,ae,ne){ae||(ae=ma(a,b));var pe=ka(a,b,ra(a,ae,ne),"line").top;return hi(a,b,ae,pe)}function Ti(a,b,ae,ne){return a.bottom<=ae?!1:a.top>ae?!0:(ne?a.left:a.right)>b}function la(a,b,ae,ne,pe){pe-=Br(b);var Be=ma(a,b),Qe=Fa(b),at=0,ut=b.text.length,ft=!0,bt=St(b,a.doc.direction);if(bt){var Tt=(a.options.lineWrapping?va:na)(a,b,ae,Be,bt,ne,pe);ft=Tt.level!=1,at=ft?Tt.from:Tt.to-1,ut=ft?Tt.to:Tt.from-1}var Kt=null,Zt=null,cr=qe(function(An){var yn=ra(a,Be,An);return yn.top+=Qe,yn.bottom+=Qe,Ti(yn,ne,pe,!1)?(yn.top<=pe&&yn.left<=ne&&(Kt=An,Zt=yn),!0):!1},at,ut),Sr,Mr,zr=!1;if(Zt){var en=ne-Zt.left<Zt.right-ne,Gr=en==ft;cr=Kt+(Gr?0:1),Mr=Gr?"after":"before",Sr=en?Zt.left:Zt.right}else{!ft&&(cr==ut||cr==at)&&cr++,Mr=cr==0?"after":cr==b.text.length?"before":ra(a,Be,cr-(ft?1:0)).bottom+Qe<=pe==ft?"after":"before";var cn=di(a,Rt(ae,cr,Mr),"line",b,Be);Sr=cn.left,zr=pe<cn.top?-1:pe>=cn.bottom?1:0}return cr=Ue(b.text,cr,1),Fn(ae,cr,Mr,zr,ne-Sr)}function na(a,b,ae,ne,pe,Be,Qe){var at=qe(function(Tt){var Kt=pe[Tt],Zt=Kt.level!=1;return Ti(di(a,Rt(ae,Zt?Kt.to:Kt.from,Zt?"before":"after"),"line",b,ne),Be,Qe,!0)},0,pe.length-1),ut=pe[at];if(at>0){var ft=ut.level!=1,bt=di(a,Rt(ae,ft?ut.from:ut.to,ft?"after":"before"),"line",b,ne);Ti(bt,Be,Qe,!0)&&bt.top>Qe&&(ut=pe[at-1])}return ut}function va(a,b,ae,ne,pe,Be,Qe){var at=hi(a,b,ne,Qe),ut=at.begin,ft=at.end;/\s/.test(b.text.charAt(ft-1))&&ft--;for(var bt=null,Tt=null,Kt=0;Kt<pe.length;Kt++){var Zt=pe[Kt];if(!(Zt.from>=ft||Zt.to<=ut)){var cr=Zt.level!=1,Sr=ra(a,ne,cr?Math.min(ft,Zt.to)-1:Math.max(ut,Zt.from)).right,Mr=Sr<Be?Be-Sr+1e9:Sr-Be;(!bt||Tt>Mr)&&(bt=Zt,Tt=Mr)}}return bt||(bt=pe[pe.length-1]),bt.from<ut&&(bt={from:ut,to:bt.to,level:bt.level}),bt.to>ft&&(bt={from:bt.from,to:ft,level:bt.level}),bt}var pi;function ji(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pi==null){pi=ye("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)pi.appendChild(document.createTextNode("x")),pi.appendChild(ye("br"));pi.appendChild(document.createTextNode("x"))}de(a.measure,pi);var ae=pi.offsetHeight/50;return ae>3&&(a.cachedTextHeight=ae),ke(a.measure),ae||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=ye("span","xxxxxxxxxx"),ae=ye("pre",[b],"CodeMirror-line-like");de(a.measure,ae);var ne=b.getBoundingClientRect(),pe=(ne.right-ne.left)/10;return pe>2&&(a.cachedCharWidth=pe),pe||10}function ua(a){for(var b=a.display,ae={},ne={},pe=b.gutters.clientLeft,Be=b.gutters.firstChild,Qe=0;Be;Be=Be.nextSibling,++Qe){var at=a.display.gutterSpecs[Qe].className;ae[at]=Be.offsetLeft+Be.clientLeft+pe,ne[at]=Be.clientWidth}return{fixedPos:$a(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ae,gutterWidth:ne,wrapperWidth:b.wrapper.clientWidth}}function $a(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Eo(a){var b=ji(a.display),ae=a.options.lineWrapping,ne=ae&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(pe){if(Wr(a.doc,pe))return 0;var Be=0;if(pe.widgets)for(var Qe=0;Qe<pe.widgets.length;Qe++)pe.widgets[Qe].height&&(Be+=pe.widgets[Qe].height);return ae?Be+(Math.ceil(pe.text.length/ne)||1)*b:Be+b}}function Co(a){var b=a.doc,ae=Eo(a);b.iter(function(ne){var pe=ae(ne);pe!=ne.height&&qr(ne,pe)})}function wa(a,b,ae,ne){var pe=a.display;if(!ae&&er(b).getAttribute("cm-not-content")=="true")return null;var Be,Qe,at=pe.lineSpace.getBoundingClientRect();try{Be=b.clientX-at.left,Qe=b.clientY-at.top}catch(Tt){return null}var ut=vi(a,Be,Qe),ft;if(ne&&ut.xRel>0&&(ft=Ut(a.doc,ut.line).text).length==ut.ch){var bt=Ie(ft,ft.length,a.options.tabSize)-ft.length;ut=Rt(ut.line,Math.max(0,Math.round((Be-Gi(a.display).left)/Ji(a.display))-bt))}return ut}function Aa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ae=a.display.view,ne=0;ne<ae.length;ne++)if(b-=ae[ne].size,b<0)return ne}function Wi(a,b,ae,ne){b==null&&(b=a.doc.first),ae==null&&(ae=a.doc.first+a.doc.size),ne||(ne=0);var pe=a.display;if(ne&&ae<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>b)&&(pe.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=pe.viewTo)_r&&xr(a.doc,b)<pe.viewTo&&Qi(a);else if(ae<=pe.viewFrom)_r&&Tr(a.doc,ae+ne)>pe.viewFrom?Qi(a):(pe.viewFrom+=ne,pe.viewTo+=ne);else if(b<=pe.viewFrom&&ae>=pe.viewTo)Qi(a);else if(b<=pe.viewFrom){var Be=so(a,ae,ae+ne,1);Be?(pe.view=pe.view.slice(Be.index),pe.viewFrom=Be.lineN,pe.viewTo+=ne):Qi(a)}else if(ae>=pe.viewTo){var Qe=so(a,b,b,-1);Qe?(pe.view=pe.view.slice(0,Qe.index),pe.viewTo=Qe.lineN):Qi(a)}else{var at=so(a,b,b,-1),ut=so(a,ae,ae+ne,1);at&&ut?(pe.view=pe.view.slice(0,at.index).concat(gn(a,at.lineN,ut.lineN)).concat(pe.view.slice(ut.index)),pe.viewTo+=ne):Qi(a)}var ft=pe.externalMeasured;ft&&(ae<ft.lineN?ft.lineN+=ne:b<ft.lineN+ft.size&&(pe.externalMeasured=null))}function ca(a,b,ae){a.curOp.viewChanged=!0;var ne=a.display,pe=a.display.externalMeasured;if(pe&&b>=pe.lineN&&b<pe.lineN+pe.size&&(ne.externalMeasured=null),!(b<ne.viewFrom||b>=ne.viewTo)){var Be=ne.view[Aa(a,b)];if(Be.node!=null){var Qe=Be.changes||(Be.changes=[]);tt(Qe,ae)==-1&&Qe.push(ae)}}}function Qi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function so(a,b,ae,ne){var pe=Aa(a,b),Be,Qe=a.display.view;if(!_r||ae==a.doc.first+a.doc.size)return{index:pe,lineN:ae};for(var at=a.display.viewFrom,ut=0;ut<pe;ut++)at+=Qe[ut].size;if(at!=b){if(ne>0){if(pe==Qe.length-1)return null;Be=at+Qe[pe].size-b,pe++}else Be=at-b;b+=Be,ae+=Be}for(;xr(a.doc,ae)!=ae;){if(pe==(ne<0?0:Qe.length-1))return null;ae+=ne*Qe[pe-(ne<0?1:0)].size,pe+=ne}return{index:pe,lineN:ae}}function Qo(a,b,ae){var ne=a.display,pe=ne.view;pe.length==0||b>=ne.viewTo||ae<=ne.viewFrom?(ne.view=gn(a,b,ae),ne.viewFrom=b):(ne.viewFrom>b?ne.view=gn(a,b,ne.viewFrom).concat(ne.view):ne.viewFrom<b&&(ne.view=ne.view.slice(Aa(a,b))),ne.viewFrom=b,ne.viewTo<ae?ne.view=ne.view.concat(gn(a,ne.viewTo,ae)):ne.viewTo>ae&&(ne.view=ne.view.slice(0,Aa(a,ae)))),ne.viewTo=ae}function $o(a){for(var b=a.display.view,ae=0,ne=0;ne<b.length;ne++){var pe=b[ne];!pe.hidden&&(!pe.node||pe.changes)&&++ae}return ae}function Wa(a){a.display.input.showSelection(a.display.input.prepareSelection())}function qo(a,b){b===void 0&&(b=!0);for(var ae=a.doc,ne={},pe=ne.cursors=document.createDocumentFragment(),Be=ne.selection=document.createDocumentFragment(),Qe=0;Qe<ae.sel.ranges.length;Qe++)if(!(!b&&Qe==ae.sel.primIndex)){var at=ae.sel.ranges[Qe];if(!(at.from().line>=a.display.viewTo||at.to().line<a.display.viewFrom)){var ut=at.empty();(ut||a.options.showCursorWhenSelecting)&&ko(a,at.head,pe),ut||es(a,at,Be)}}return ne}function ko(a,b,ae){var ne=di(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),pe=ae.appendChild(ye("div","\xA0","CodeMirror-cursor"));if(pe.style.left=ne.left+"px",pe.style.top=ne.top+"px",pe.style.height=Math.max(0,ne.bottom-ne.top)*a.options.cursorHeight+"px",ne.other){var Be=ae.appendChild(ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Be.style.display="",Be.style.left=ne.other.left+"px",Be.style.top=ne.other.top+"px",Be.style.height=(ne.other.bottom-ne.other.top)*.85+"px"}}function _a(a,b){return a.top-b.top||a.left-b.left}function es(a,b,ae){var ne=a.display,pe=a.doc,Be=document.createDocumentFragment(),Qe=Gi(a.display),at=Qe.left,ut=Math.max(ne.sizerWidth,sa(a)-ne.sizer.offsetLeft)-Qe.right,ft=pe.direction=="ltr";function bt(Gr,cn,An,yn){cn<0&&(cn=0),cn=Math.round(cn),yn=Math.round(yn),Be.appendChild(ye("div",null,"CodeMirror-selected","position: absolute; left: "+Gr+`px;
top: `+cn+"px; width: "+(An==null?ut-Gr:An)+`px;
height: `+(yn-cn)+"px"))}function Tt(Gr,cn,An){var yn=Ut(pe,Gr),Yn=yn.text.length,ui,Ii;function wi(_i,ea){return Fi(a,Rt(Gr,_i),"div",yn,ea)}function aa(_i,ea,Ui){var Pi=bi(a,yn,null,_i),Di=ea=="ltr"==(Ui=="after")?"left":"right",Si=Ui=="after"?Pi.begin:Pi.end-(/\s/.test(yn.text.charAt(Pi.end-1))?2:1);return wi(Si,Di)[Di]}var qi=St(yn,pe.direction);return nt(qi,cn||0,An==null?Yn:An,function(_i,ea,Ui,Pi){var Di=Ui=="ltr",Si=wi(_i,Di?"left":"right"),ta=wi(ea-1,Di?"right":"left"),xo=cn==null&&_i==0,Xa=An==null&&ea==Yn,zi=Pi==0,Sa=!qi||Pi==qi.length-1;if(ta.top-Si.top<=3){var Li=(ft?xo:Xa)&&zi,Bs=(ft?Xa:xo)&&Sa,Ia=Li?at:(Di?Si:ta).left,eo=Bs?ut:(Di?ta:Si).right;bt(Ia,Si.top,eo-Ia,Si.bottom)}else{var to,Xi,So,Fs;Di?(to=ft&&xo&&zi?at:Si.left,Xi=ft?ut:aa(_i,Ui,"before"),So=ft?at:aa(ea,Ui,"after"),Fs=ft&&Xa&&Sa?ut:ta.right):(to=ft?aa(_i,Ui,"before"):at,Xi=!ft&&xo&&zi?ut:Si.right,So=!ft&&Xa&&Sa?at:ta.left,Fs=ft?aa(ea,Ui,"after"):ut),bt(to,Si.top,Xi-to,Si.bottom),Si.bottom<ta.top&&bt(at,Si.bottom,null,ta.top),bt(So,ta.top,Fs-So,ta.bottom)}(!ui||_a(Si,ui)<0)&&(ui=Si),_a(ta,ui)<0&&(ui=ta),(!Ii||_a(Si,Ii)<0)&&(Ii=Si),_a(ta,Ii)<0&&(Ii=ta)}),{start:ui,end:Ii}}var Kt=b.from(),Zt=b.to();if(Kt.line==Zt.line)Tt(Kt.line,Kt.ch,Zt.ch);else{var cr=Ut(pe,Kt.line),Sr=Ut(pe,Zt.line),Mr=_t(cr)==_t(Sr),zr=Tt(Kt.line,Kt.ch,Mr?cr.text.length+1:null).end,en=Tt(Zt.line,Mr?0:null,Zt.ch).start;Mr&&(zr.top<en.top-2?(bt(zr.right,zr.top,null,zr.bottom),bt(at,en.top,en.left,en.bottom)):bt(zr.right,zr.top,en.left-zr.right,zr.bottom)),zr.bottom<en.top&&bt(at,zr.bottom,null,en.top)}ae.appendChild(Be)}function To(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ae=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Ua(a),b.cursorDiv.style.visibility=(ae=!ae)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Ao(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||(wt(a,"focus",a,b),a.state.focused=!0,je(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()),To(a))}function Ua(a,b){a.state.delayingBlurEvent||(a.state.focused&&(wt(a,"blur",a,b),a.state.focused=!1,Me(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,ae=b.lineDiv.offsetTop,ne=0;ne<b.view.length;ne++){var pe=b.view[ne],Be=a.options.lineWrapping,Qe=void 0,at=0;if(!pe.hidden){if(xe&&x<8){var ut=pe.node.offsetTop+pe.node.offsetHeight;Qe=ut-ae,ae=ut}else{var ft=pe.node.getBoundingClientRect();Qe=ft.bottom-ft.top,!Be&&pe.text.firstChild&&(at=pe.text.firstChild.getBoundingClientRect().right-ft.left-1)}var bt=pe.line.height-Qe;if((bt>.005||bt<-.005)&&(qr(pe.line,Qe),jo(pe.line),pe.rest))for(var Tt=0;Tt<pe.rest.length;Tt++)jo(pe.rest[Tt]);if(at>a.display.sizerWidth){var Kt=Math.ceil(at/Ji(a.display));Kt>a.display.maxLineLength&&(a.display.maxLineLength=Kt,a.display.maxLine=pe.line,a.display.maxLineChanged=!0)}}}}function jo(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ae=a.widgets[b],ne=ae.node.parentNode;ne&&(ae.height=ne.offsetHeight)}}function Da(a,b,ae){var ne=ae&&ae.top!=null?Math.max(0,ae.top):a.scroller.scrollTop;ne=Math.floor(ne-Bn(a));var pe=ae&&ae.bottom!=null?ae.bottom:ne+a.wrapper.clientHeight,Be=kt(b,ne),Qe=kt(b,pe);if(ae&&ae.ensure){var at=ae.ensure.from.line,ut=ae.ensure.to.line;at<Be?(Be=at,Qe=kt(b,Br(Ut(b,at))+a.wrapper.clientHeight)):Math.min(ut,b.lastLine())>=Qe&&(Be=kt(b,Br(Ut(b,ut))-a.wrapper.clientHeight),Qe=ut)}return{from:Be,to:Math.max(Qe,Be+1)}}function Oo(a,b){if(!pt(a,"scrollCursorIntoView")){var ae=a.display,ne=ae.sizer.getBoundingClientRect(),pe=null;if(b.top+ne.top<0?pe=!0:b.bottom+ne.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!ie){var Be=ye("div","\u200B",null,`position: absolute;
top: `+(b.top-ae.viewOffset-Bn(a.display))+`px;
height: `+(b.bottom-b.top+ni(a)+ae.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Be),Be.scrollIntoView(pe),a.display.lineSpace.removeChild(Be)}}}function Po(a,b,ae,ne){ne==null&&(ne=0);var pe;!a.options.lineWrapping&&b==ae&&(b=b.ch?Rt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ae=b.sticky=="before"?Rt(b.line,b.ch+1,"before"):b);for(var Be=0;Be<5;Be++){var Qe=!1,at=di(a,b),ut=!ae||ae==b?at:di(a,ae);pe={left:Math.min(at.left,ut.left),top:Math.min(at.top,ut.top)-ne,right:Math.max(at.left,ut.left),bottom:Math.max(at.bottom,ut.bottom)+ne};var ft=uo(a,pe),bt=a.doc.scrollTop,Tt=a.doc.scrollLeft;if(ft.scrollTop!=null&&(Oa(a,ft.scrollTop),Math.abs(a.doc.scrollTop-bt)>1&&(Qe=!0)),ft.scrollLeft!=null&&(Pa(a,ft.scrollLeft),Math.abs(a.doc.scrollLeft-Tt)>1&&(Qe=!0)),!Qe)break}return pe}function ts(a,b){var ae=uo(a,b);ae.scrollTop!=null&&Oa(a,ae.scrollTop),ae.scrollLeft!=null&&Pa(a,ae.scrollLeft)}function uo(a,b){var ae=a.display,ne=ji(a.display);b.top<0&&(b.top=0);var pe=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ae.scroller.scrollTop,Be=Ki(a),Qe={};b.bottom-b.top>Be&&(b.bottom=b.top+Be);var at=a.doc.height+yi(ae),ut=b.top<ne,ft=b.bottom>at-ne;if(b.top<pe)Qe.scrollTop=ut?0:b.top;else if(b.bottom>pe+Be){var bt=Math.min(b.top,(ft?at:b.bottom)-Be);bt!=pe&&(Qe.scrollTop=bt)}var Tt=a.options.fixedGutter?0:ae.gutters.offsetWidth,Kt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ae.scroller.scrollLeft-Tt,Zt=sa(a)-ae.gutters.offsetWidth,cr=b.right-b.left>Zt;return cr&&(b.right=b.left+Zt),b.left<10?Qe.scrollLeft=0:b.left<Kt?Qe.scrollLeft=Math.max(0,b.left+Tt-(cr?0:10)):b.right>Zt+Kt-3&&(Qe.scrollLeft=b.right+(cr?0:10)-Zt),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,ae){(b!=null||ae!=null)&&Za(a),b!=null&&(a.curOp.scrollLeft=b),ae!=null&&(a.curOp.scrollTop=ae)}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 ae=Kn(a,b.from),ne=Kn(a,b.to);Ro(a,ae,ne,b.margin)}}function Ro(a,b,ae,ne){var pe=uo(a,{left:Math.min(b.left,ae.left),top:Math.min(b.top,ae.top)-ne,right:Math.max(b.right,ae.right),bottom:Math.max(b.bottom,ae.bottom)+ne});qa(a,pe.scrollLeft,pe.scrollTop)}function Oa(a,b){Math.abs(a.doc.scrollTop-b)<2||(He||bs(a,{top:b}),Mo(a,b,!0),He&&bs(a),No(a,100))}function Mo(a,b,ae){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ae)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Pa(a,b,ae,ne){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ae?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!ne)&&(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,ae=b.gutters.offsetWidth,ne=Math.round(a.doc.height+yi(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?ae:0,docHeight:ne,scrollHeight:ne+ni(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ae}}var Hn=function(a,b,ae){this.cm=ae;var ne=this.vert=ye("div",[ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=ye("div",[ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ne.tabIndex=pe.tabIndex=-1,a(ne),a(pe),yt(ne,"scroll",function(){ne.clientHeight&&b(ne.scrollTop,"vertical")}),yt(pe,"scroll",function(){pe.clientWidth&&b(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hn.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ae=a.scrollHeight>a.clientHeight+1,ne=a.nativeBarWidth;if(ae){this.vert.style.display="block",this.vert.style.bottom=b?ne+"px":"0";var pe=a.viewHeight-(b?ne:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ae?ne+"px":"0",this.horiz.style.left=a.barLeft+"px";var Be=a.viewWidth-a.barLeft-(ae?ne:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(ne==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ae?ne:0,bottom:b?ne:0}},Hn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hn.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},Hn.prototype.enableZeroWidthBar=function(a,b,ae){a.style.pointerEvents="auto";function ne(){var pe=a.getBoundingClientRect(),Be=ae=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Be!=a?a.style.pointerEvents="none":b.set(1e3,ne)}b.set(1e3,ne)},Hn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var xi=function(){};xi.prototype.update=function(){return{bottom:0,right:0}},xi.prototype.setScrollLeft=function(){},xi.prototype.setScrollTop=function(){},xi.prototype.clear=function(){};function Ri(a,b){b||(b=Zn(a));var ae=a.display.barWidth,ne=a.display.barHeight;Oi(a,b);for(var pe=0;pe<4&&ae!=a.display.barWidth||ne!=a.display.barHeight;pe++)ae!=a.display.barWidth&&a.options.lineWrapping&&lo(a),Oi(a,Zn(a)),ae=a.display.barWidth,ne=a.display.barHeight}function Oi(a,b){var ae=a.display,ne=ae.scrollbars.update(b);ae.sizer.style.paddingRight=(ae.barWidth=ne.right)+"px",ae.sizer.style.paddingBottom=(ae.barHeight=ne.bottom)+"px",ae.heightForcer.style.borderBottom=ne.bottom+"px solid transparent",ne.right&&ne.bottom?(ae.scrollbarFiller.style.display="block",ae.scrollbarFiller.style.height=ne.bottom+"px",ae.scrollbarFiller.style.width=ne.right+"px"):ae.scrollbarFiller.style.display="",ne.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ae.gutterFiller.style.display="block",ae.gutterFiller.style.height=ne.bottom+"px",ae.gutterFiller.style.width=b.gutterWidth+"px"):ae.gutterFiller.style.display=""}var Ra={native:Hn,null:xi};function xa(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Me(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),yt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ae){ae=="horizontal"?Pa(a,b):Oa(a,b)},a),a.display.scrollbars.addClass&&je(a.display.wrapper,a.display.scrollbars.addClass)}var Ma=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:++Ma},Ei(a.curOp)}function ga(a){var b=a.curOp;b&&oa(b,function(ae){for(var ne=0;ne<ae.ops.length;ne++)ae.ops[ne].cm.curOp=null;Vl(ae)})}function Vl(a){for(var b=a.ops,ae=0;ae<b.length;ae++)Xl(b[ae]);for(var ne=0;ne<b.length;ne++)Yl(b[ne]);for(var pe=0;pe<b.length;pe++)Jl(b[pe]);for(var Be=0;Be<b.length;Be++)Ql(b[Be]);for(var Qe=0;Qe<b.length;Qe++)$l(b[Qe])}function Xl(a){var b=a.cm,ae=b.display;eu(b),a.updateMaxLine&&Qr(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ae.viewFrom||a.scrollToPos.to.line>=ae.viewTo)||ae.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,ae=b.display;a.updatedDisplay&&lo(b),a.barMeasure=Zn(b),ae.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Ya(b,ae.maxLine,ae.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ae.scroller.clientWidth,ae.sizer.offsetLeft+a.adjustWidthTo+ni(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ae.sizer.offsetLeft+a.adjustWidthTo-sa(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ae.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 ae=a.focus&&a.focus==Ae();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ae),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Ri(b,a.barMeasure),a.updatedDisplay&&xs(b,a.barMeasure),a.selectionChanged&&To(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ae&&Ao(a.cm)}function $l(a){var b=a.cm,ae=b.display,ne=b.doc;if(a.updatedDisplay&&Ws(b,a.update),ae.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ae.wheelStartX=ae.wheelStartY=null),a.scrollTop!=null&&Mo(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Pa(b,a.scrollLeft,!0,!0),a.scrollToPos){var pe=Po(b,nr(ne,a.scrollToPos.from),nr(ne,a.scrollToPos.to),a.scrollToPos.margin);Oo(b,pe)}var Be=a.maybeHiddenMarkers,Qe=a.maybeUnhiddenMarkers;if(Be)for(var at=0;at<Be.length;++at)Be[at].lines.length||wt(Be[at],"hide");if(Qe)for(var ut=0;ut<Qe.length;++ut)Qe[ut].lines.length&&wt(Qe[ut],"unhide");ae.wrapper.offsetHeight&&(ne.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&wt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function ia(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 Vi(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 No(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 ae=+new Date+a.options.workTime,ne=Cn(a,b.highlightFrontier),pe=[];b.iter(ne.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Be){if(ne.line>=a.display.viewFrom){var Qe=Be.styles,at=Be.text.length>a.options.maxHighlightLength?Cr(b.mode,ne.state):null,ut=an(a,Be,ne,!0);at&&(ne.state=at),Be.styles=ut.styles;var ft=Be.styleClasses,bt=ut.classes;bt?Be.styleClasses=bt:ft&&(Be.styleClasses=null);for(var Tt=!Qe||Qe.length!=Be.styles.length||ft!=bt&&(!ft||!bt||ft.bgClass!=bt.bgClass||ft.textClass!=bt.textClass),Kt=0;!Tt&&Kt<Qe.length;++Kt)Tt=Qe[Kt]!=Be.styles[Kt];Tt&&pe.push(ne.line),Be.stateAfter=ne.save(),ne.nextLine()}else Be.text.length<=a.options.maxHighlightLength&&Wn(a,Be.text,ne),Be.stateAfter=ne.line%5==0?ne.save():null,ne.nextLine();if(+new Date>ae)return No(a,a.options.workDelay),!0}),b.highlightFrontier=ne.line,b.modeFrontier=Math.max(b.modeFrontier,ne.line),pe.length&&ia(a,function(){for(var Be=0;Be<pe.length;Be++)ca(a,pe[Be],"text")})}}var ns=function(a,b,ae){var ne=a.display;this.viewport=b,this.visible=Da(ne,a.doc,b),this.editorIsHidden=!ne.wrapper.offsetWidth,this.wrapperHeight=ne.wrapper.clientHeight,this.wrapperWidth=ne.wrapper.clientWidth,this.oldDisplayWidth=sa(a),this.force=ae,this.dims=ua(a),this.events=[]};ns.prototype.signal=function(a,b){At(a,b)&&this.events.push(arguments)},ns.prototype.finish=function(){for(var a=0;a<this.events.length;a++)wt.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||!Ne(a.display.lineDiv,b))return null;var ae={activeElt:b};if(window.getSelection){var ne=window.getSelection();ne.anchorNode&&ne.extend&&Ne(a.display.lineDiv,ne.anchorNode)&&(ae.anchorNode=ne.anchorNode,ae.anchorOffset=ne.anchorOffset,ae.focusNode=ne.focusNode,ae.focusOffset=ne.focusOffset)}return ae}function ru(a){if(!(!a||!a.activeElt||a.activeElt==Ae())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ne(document.body,a.anchorNode)&&Ne(document.body,a.focusNode))){var b=window.getSelection(),ae=document.createRange();ae.setEnd(a.anchorNode,a.anchorOffset),ae.collapse(!1),b.removeAllRanges(),b.addRange(ae),b.extend(a.focusNode,a.focusOffset)}}function ys(a,b){var ae=a.display,ne=a.doc;if(b.editorIsHidden)return Qi(a),!1;if(!b.force&&b.visible.from>=ae.viewFrom&&b.visible.to<=ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo)&&ae.renderedView==ae.view&&$o(a)==0)return!1;Zs(a)&&(Qi(a),b.dims=ua(a));var pe=ne.first+ne.size,Be=Math.max(b.visible.from-a.options.viewportMargin,ne.first),Qe=Math.min(pe,b.visible.to+a.options.viewportMargin);ae.viewFrom<Be&&Be-ae.viewFrom<20&&(Be=Math.max(ne.first,ae.viewFrom)),ae.viewTo>Qe&&ae.viewTo-Qe<20&&(Qe=Math.min(pe,ae.viewTo)),_r&&(Be=xr(a.doc,Be),Qe=Tr(a.doc,Qe));var at=Be!=ae.viewFrom||Qe!=ae.viewTo||ae.lastWrapHeight!=b.wrapperHeight||ae.lastWrapWidth!=b.wrapperWidth;Qo(a,Be,Qe),ae.viewOffset=Br(Ut(a.doc,ae.viewFrom)),a.display.mover.style.top=ae.viewOffset+"px";var ut=$o(a);if(!at&&ut==0&&!b.force&&ae.renderedView==ae.view&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo))return!1;var ft=tu(a);return ut>4&&(ae.lineDiv.style.display="none"),nu(a,ae.updateLineNumbers,b.dims),ut>4&&(ae.lineDiv.style.display=""),ae.renderedView=ae.view,ru(ft),ke(ae.cursorDiv),ke(ae.selectionDiv),ae.gutters.style.height=ae.sizer.style.minHeight=0,at&&(ae.lastWrapHeight=b.wrapperHeight,ae.lastWrapWidth=b.wrapperWidth,No(a,400)),ae.updateLineNumbers=null,!0}function Ws(a,b){for(var ae=b.viewport,ne=!0;;ne=!1){if(!ne||!a.options.lineWrapping||b.oldDisplayWidth==sa(a)){if(ae&&ae.top!=null&&(ae={top:Math.min(a.doc.height+yi(a.display)-Ki(a),ae.top)}),b.visible=Da(a.display,a.doc,ae),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else ne&&(b.visible=Da(a.display,a.doc,ae));if(!ys(a,b))break;lo(a);var pe=Zn(a);Wa(a),Ri(a,pe),xs(a,pe),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 ae=new ns(a,b);if(ys(a,ae)){lo(a),Ws(a,ae);var ne=Zn(a);Wa(a),Ri(a,ne),xs(a,ne),ae.finish()}}function nu(a,b,ae){var ne=a.display,pe=a.options.lineNumbers,Be=ne.lineDiv,Qe=Be.firstChild;function at(cr){var Sr=cr.nextSibling;return z&&he&&a.display.currentWheelTarget==cr?cr.style.display="none":cr.parentNode.removeChild(cr),Sr}for(var ut=ne.view,ft=ne.viewFrom,bt=0;bt<ut.length;bt++){var Tt=ut[bt];if(!Tt.hidden)if(!Tt.node||Tt.node.parentNode!=Be){var Kt=En(a,Tt,ft,ae);Be.insertBefore(Kt,Qe)}else{for(;Qe!=Tt.node;)Qe=at(Qe);var Zt=pe&&b!=null&&b<=ft&&Tt.lineNumber;Tt.changes&&(tt(Tt.changes,"gutter")>-1&&(Zt=!1),ti(a,Tt,ft,ae)),Zt&&(ke(Tt.lineNumber),Tt.lineNumber.appendChild(document.createTextNode(qt(a.options,ft)))),Qe=Tt.node.nextSibling}ft+=Tt.size}for(;Qe;)Qe=at(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,ae=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var ne=$a(b)-b.scroller.scrollLeft+a.doc.scrollLeft,pe=b.gutters.offsetWidth,Be=ne+"px",Qe=0;Qe<ae.length;Qe++)if(!ae[Qe].hidden){a.options.fixedGutter&&(ae[Qe].gutter&&(ae[Qe].gutter.style.left=Be),ae[Qe].gutterBackground&&(ae[Qe].gutterBackground.style.left=Be));var at=ae[Qe].alignable;if(at)for(var ut=0;ut<at.length;ut++)at[ut].style.left=Be}a.options.fixedGutter&&(b.gutters.style.left=ne+pe+"px")}}function Zs(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ae=qt(a.options,b.first+b.size-1),ne=a.display;if(ae.length!=ne.lineNumChars){var pe=ne.measure.appendChild(ye("div",[ye("div",ae)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Be=pe.firstChild.offsetWidth,Qe=pe.offsetWidth-Be;return ne.lineGutter.style.width="",ne.lineNumInnerWidth=Math.max(Be,ne.lineGutter.offsetWidth-Qe)+1,ne.lineNumWidth=ne.lineNumInnerWidth+Qe,ne.lineNumChars=ne.lineNumInnerWidth?ae.length:-1,ne.lineGutter.style.width=ne.lineNumWidth+"px",ws(a.display),!0}return!1}function Ss(a,b){for(var ae=[],ne=!1,pe=0;pe<a.length;pe++){var Be=a[pe],Qe=null;if(typeof Be!="string"&&(Qe=Be.style,Be=Be.className),Be=="CodeMirror-linenumbers")if(b)ne=!0;else continue;ae.push({className:Be,style:Qe})}return b&&!ne&&ae.push({className:"CodeMirror-linenumbers",style:null}),ae}function Hs(a){var b=a.gutters,ae=a.gutterSpecs;ke(b),a.lineGutter=null;for(var ne=0;ne<ae.length;++ne){var pe=ae[ne],Be=pe.className,Qe=pe.style,at=b.appendChild(ye("div",null,"CodeMirror-gutter "+Be));Qe&&(at.style.cssText=Qe),Be=="CodeMirror-linenumbers"&&(a.lineGutter=at,at.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ae.length?"":"none",ws(a)}function Io(a){Hs(a.display),Wi(a),Us(a)}function iu(a,b,ae,ne){var pe=this;this.input=ae,pe.scrollbarFiller=ye("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=ye("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=Se("div",null,"CodeMirror-code"),pe.selectionDiv=ye("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=ye("div",null,"CodeMirror-cursors"),pe.measure=ye("div",null,"CodeMirror-measure"),pe.lineMeasure=ye("div",null,"CodeMirror-measure"),pe.lineSpace=Se("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Be=Se("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=ye("div",[Be],null,"position: relative"),pe.sizer=ye("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=ye("div",null,null,"position: absolute; height: "+rt+"px; width: 1px;"),pe.gutters=ye("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=ye("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=ye("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),xe&&x<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!z&&!(He&&ce)&&(pe.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(pe.wrapper):a(pe.wrapper)),pe.viewFrom=pe.viewTo=b.first,pe.reportedViewFrom=pe.reportedViewTo=b.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=Ss(ne.gutters,ne.lineNumbers),Hs(pe),ae.init(pe)}var is=0,da=null;xe?da=-.53:He?da=15:se?da=-.7:fe&&(da=-1/3);function zs(a){var b=a.wheelDeltaX,ae=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ae==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ae=a.detail:ae==null&&(ae=a.wheelDelta),{x:b,y:ae}}function au(a){var b=zs(a);return b.x*=da,b.y*=da,b}function Gs(a,b){var ae=zs(b),ne=ae.x,pe=ae.y,Be=a.display,Qe=Be.scroller,at=Qe.scrollWidth>Qe.clientWidth,ut=Qe.scrollHeight>Qe.clientHeight;if(ne&&at||pe&&ut){if(pe&&he&&z){e:for(var ft=b.target,bt=Be.view;ft!=Qe;ft=ft.parentNode)for(var Tt=0;Tt<bt.length;Tt++)if(bt[Tt].node==ft){a.display.currentWheelTarget=ft;break e}}if(ne&&!He&&!ee&&da!=null){pe&&ut&&Oa(a,Math.max(0,Qe.scrollTop+pe*da)),Pa(a,Math.max(0,Qe.scrollLeft+ne*da)),(!pe||pe&&ut)&&Ht(b),Be.wheelStartX=null;return}if(pe&&da!=null){var Kt=pe*da,Zt=a.doc.scrollTop,cr=Zt+Be.wrapper.clientHeight;Kt<0?Zt=Math.max(0,Zt+Kt-50):cr=Math.min(a.doc.height,cr+Kt+50),bs(a,{top:Zt,bottom:cr})}is<20&&(Be.wheelStartX==null?(Be.wheelStartX=Qe.scrollLeft,Be.wheelStartY=Qe.scrollTop,Be.wheelDX=ne,Be.wheelDY=pe,setTimeout(function(){if(Be.wheelStartX!=null){var Sr=Qe.scrollLeft-Be.wheelStartX,Mr=Qe.scrollTop-Be.wheelStartY,zr=Mr&&Be.wheelDY&&Mr/Be.wheelDY||Sr&&Be.wheelDX&&Sr/Be.wheelDX;Be.wheelStartX=Be.wheelStartY=null,zr&&(da=(da*is+zr)/(is+1),++is)}},200)):(Be.wheelDX+=ne,Be.wheelDY+=pe))}}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 ae=this.ranges[b],ne=a.ranges[b];if(!mr(ae.anchor,ne.anchor)||!mr(ae.head,ne.head))return!1}return!0},ha.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new ii(hr(this.ranges[b].anchor),hr(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 ae=0;ae<this.ranges.length;ae++){var ne=this.ranges[ae];if(rr(b,ne.from())>=0&&rr(a,ne.to())<=0)return ae}return-1};var ii=function(a,b){this.anchor=a,this.head=b};ii.prototype.from=function(){return Lt(this.anchor,this.head)},ii.prototype.to=function(){return ir(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,ae){var ne=a&&a.options.selectionsMayTouch,pe=b[ae];b.sort(function(Kt,Zt){return rr(Kt.from(),Zt.from())}),ae=tt(b,pe);for(var Be=1;Be<b.length;Be++){var Qe=b[Be],at=b[Be-1],ut=rr(at.to(),Qe.from());if(ne&&!Qe.empty()?ut>0:ut>=0){var ft=Lt(at.from(),Qe.from()),bt=ir(at.to(),Qe.to()),Tt=at.empty()?Qe.from()==Qe.head:at.from()==at.head;Be<=ae&&--ae,b.splice(--Be,2,new ii(Tt?bt:ft,Tt?ft:bt))}}return new ha(b,ae)}function Ha(a,b){return new ha([new ii(a,b||a)],0)}function za(a){return a.text?Rt(a.from.line+a.text.length-1,st(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ks(a,b){if(rr(a,b.from)<0)return a;if(rr(a,b.to)<=0)return za(b);var ae=a.line+b.text.length-(b.to.line-b.from.line)-1,ne=a.ch;return a.line==b.to.line&&(ne+=za(b).ch-b.to.ch),Rt(ae,ne)}function Es(a,b){for(var ae=[],ne=0;ne<a.sel.ranges.length;ne++){var pe=a.sel.ranges[ne];ae.push(new ii(Ks(pe.anchor,b),Ks(pe.head,b)))}return ya(a.cm,ae,a.sel.primIndex)}function Vs(a,b,ae){return a.line==b.line?Rt(ae.line,a.ch-b.ch+ae.ch):Rt(ae.line+(a.line-b.line),a.ch)}function ou(a,b,ae){for(var ne=[],pe=Rt(a.first,0),Be=pe,Qe=0;Qe<b.length;Qe++){var at=b[Qe],ut=Vs(at.from,pe,Be),ft=Vs(za(at),pe,Be);if(pe=at.to,Be=ft,ae=="around"){var bt=a.sel.ranges[Qe],Tt=rr(bt.head,bt.anchor)<0;ne[Qe]=new ii(Tt?ft:ut,Tt?ut:ft)}else ne[Qe]=new ii(ut,ut)}return new ha(ne,a.sel.primIndex)}function Cs(a){a.doc.mode=vr(a.options,a.doc.modeOption),Lo(a)}function Lo(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,No(a,100),a.state.modeGen++,a.curOp&&Wi(a)}function Xs(a,b){return b.from.ch==0&&b.to.ch==0&&st(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ks(a,b,ae,ne){function pe(en){return ae?ae[en]:null}function Be(en,Gr,cn){Mn(en,Gr,cn,ne),ri(en,"change",en,b)}function Qe(en,Gr){for(var cn=[],An=en;An<Gr;++An)cn.push(new bn(ft[An],pe(An),ne));return cn}var at=b.from,ut=b.to,ft=b.text,bt=Ut(a,at.line),Tt=Ut(a,ut.line),Kt=st(ft),Zt=pe(ft.length-1),cr=ut.line-at.line;if(b.full)a.insert(0,Qe(0,ft.length)),a.remove(ft.length,a.size-ft.length);else if(Xs(a,b)){var Sr=Qe(0,ft.length-1);Be(Tt,Tt.text,Zt),cr&&a.remove(at.line,cr),Sr.length&&a.insert(at.line,Sr)}else if(bt==Tt)if(ft.length==1)Be(bt,bt.text.slice(0,at.ch)+Kt+bt.text.slice(ut.ch),Zt);else{var Mr=Qe(1,ft.length-1);Mr.push(new bn(Kt+bt.text.slice(ut.ch),Zt,ne)),Be(bt,bt.text.slice(0,at.ch)+ft[0],pe(0)),a.insert(at.line+1,Mr)}else if(ft.length==1)Be(bt,bt.text.slice(0,at.ch)+ft[0]+Tt.text.slice(ut.ch),pe(0)),a.remove(at.line+1,cr);else{Be(bt,bt.text.slice(0,at.ch)+ft[0],pe(0)),Be(Tt,Kt+Tt.text.slice(ut.ch),Zt);var zr=Qe(1,ft.length-1);cr>1&&a.remove(at.line+1,cr-1),a.insert(at.line+1,zr)}ri(a,"change",a,b)}function Ga(a,b,ae){function ne(pe,Be,Qe){if(pe.linked)for(var at=0;at<pe.linked.length;++at){var ut=pe.linked[at];if(ut.doc!=Be){var ft=Qe&&ut.sharedHist;ae&&!ft||(b(ut.doc,ft),ne(ut.doc,pe,ft))}}}ne(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,Co(a),Cs(a),Js(a),a.options.lineWrapping||Qr(a),a.options.mode=b.modeOption,Wi(a)}function Js(a){(a.doc.direction=="rtl"?je:Me)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){ia(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 Ts(a,b){var ae={from:hr(b.from),to:za(b),text:Xt(a,b.from,b.to)};return el(a,ae,b.from.line,b.to.line+1),Ga(a,function(ne){return el(ne,ae,b.from.line,b.to.line+1)},!0),ae}function Qs(a){for(;a.length;){var b=st(a);if(b.ranges)a.pop();else break}}function lu(a,b){if(b)return Qs(a.done),st(a.done);if(a.done.length&&!st(a.done).ranges)return st(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),st(a.done)}function $s(a,b,ae,ne){var pe=a.history;pe.undone.length=0;var Be=+new Date,Qe,at;if((pe.lastOp==ne||pe.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&pe.lastModTime>Be-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(Qe=lu(pe,pe.lastOp==ne)))at=st(Qe.changes),rr(b.from,b.to)==0&&rr(b.from,at.to)==0?at.to=za(b):Qe.changes.push(Ts(a,b));else{var ut=st(pe.done);for((!ut||!ut.ranges)&&os(a.sel,pe.done),Qe={changes:[Ts(a,b)],generation:pe.generation},pe.done.push(Qe);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ae),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Be,pe.lastOp=pe.lastSelOp=ne,pe.lastOrigin=pe.lastSelOrigin=b.origin,at||wt(a,"historyAdded")}function uu(a,b,ae,ne){var pe=b.charAt(0);return pe=="*"||pe=="+"&&ae.ranges.length==ne.ranges.length&&ae.somethingSelected()==ne.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,ae,ne){var pe=a.history,Be=ne&&ne.origin;ae==pe.lastSelOp||Be&&pe.lastSelOrigin==Be&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Be||uu(a,Be,st(pe.done),b))?pe.done[pe.done.length-1]=b:os(b,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Be,pe.lastSelOp=ae,ne&&ne.clearRedo!==!1&&Qs(pe.undone)}function os(a,b){var ae=st(b);ae&&ae.ranges&&ae.equals(a)||b.push(a)}function el(a,b,ae,ne){var pe=b["spans_"+a.id],Be=0;a.iter(Math.max(a.first,ae),Math.min(a.first+a.size,ne),function(Qe){Qe.markedSpans&&((pe||(pe=b["spans_"+a.id]={}))[Be]=Qe.markedSpans),++Be})}function fu(a){if(!a)return null;for(var b,ae=0;ae<a.length;++ae)a[ae].marker.explicitlyCleared?b||(b=a.slice(0,ae)):b&&b.push(a[ae]);return b?b.length?b:null:a}function du(a,b){var ae=b["spans_"+a.id];if(!ae)return null;for(var ne=[],pe=0;pe<b.text.length;++pe)ne.push(fu(ae[pe]));return ne}function tl(a,b){var ae=du(a,b),ne=Qn(a,b);if(!ae)return ne;if(!ne)return ae;for(var pe=0;pe<ae.length;++pe){var Be=ae[pe],Qe=ne[pe];if(Be&&Qe)e:for(var at=0;at<Qe.length;++at){for(var ut=Qe[at],ft=0;ft<Be.length;++ft)if(Be[ft].marker==ut.marker)continue e;Be.push(ut)}else Qe&&(ae[pe]=Qe)}return ae}function fo(a,b,ae){for(var ne=[],pe=0;pe<a.length;++pe){var Be=a[pe];if(Be.ranges){ne.push(ae?ha.prototype.deepCopy.call(Be):Be);continue}var Qe=Be.changes,at=[];ne.push({changes:at});for(var ut=0;ut<Qe.length;++ut){var ft=Qe[ut],bt=void 0;if(at.push({from:ft.from,to:ft.to,text:ft.text}),b)for(var Tt in ft)(bt=Tt.match(/^spans_(\d+)$/))&&tt(b,Number(bt[1]))>-1&&(st(at)[Tt]=ft[Tt],delete ft[Tt])}}return ne}function As(a,b,ae,ne){if(ne){var pe=a.anchor;if(ae){var Be=rr(b,pe)<0;Be!=rr(ae,pe)<0?(pe=b,b=ae):Be!=rr(b,ae)<0&&(b=ae)}return new ii(pe,b)}else return new ii(ae||b,b)}function ss(a,b,ae,ne,pe){pe==null&&(pe=a.cm&&(a.cm.display.shift||a.extend)),Hi(a,new ha([As(a.sel.primary(),b,ae,pe)],0),ne)}function rl(a,b,ae){for(var ne=[],pe=a.cm&&(a.cm.display.shift||a.extend),Be=0;Be<a.sel.ranges.length;Be++)ne[Be]=As(a.sel.ranges[Be],b[Be],null,pe);var Qe=ya(a.cm,ne,a.sel.primIndex);Hi(a,Qe,ae)}function _s(a,b,ae,ne){var pe=a.sel.ranges.slice(0);pe[b]=ae,Hi(a,ya(a.cm,pe,a.sel.primIndex),ne)}function nl(a,b,ae,ne){Hi(a,Ha(b,ae),ne)}function hu(a,b,ae){var ne={ranges:b.ranges,update:function(pe){this.ranges=[];for(var Be=0;Be<pe.length;Be++)this.ranges[Be]=new ii(nr(a,pe[Be].anchor),nr(a,pe[Be].head))},origin:ae&&ae.origin};return wt(a,"beforeSelectionChange",a,ne),a.cm&&wt(a.cm,"beforeSelectionChange",a.cm,ne),ne.ranges!=b.ranges?ya(a.cm,ne.ranges,ne.ranges.length-1):b}function il(a,b,ae){var ne=a.history.done,pe=st(ne);pe&&pe.ranges?(ne[ne.length-1]=b,ls(a,b,ae)):Hi(a,b,ae)}function Hi(a,b,ae){ls(a,b,ae),cu(a,a.sel,a.cm?a.cm.curOp.id:NaN,ae)}function ls(a,b,ae){(At(a,"beforeSelectionChange")||a.cm&&At(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,ae));var ne=ae&&ae.bias||(rr(b.primary().head,a.sel.primary().head)<0?-1:1);al(a,sl(a,b,ne,!0)),!(ae&&ae.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,Ot(a.cm)),ri(a,"cursorActivity",a))}function ol(a){al(a,sl(a,a.sel,null,!1))}function sl(a,b,ae,ne){for(var pe,Be=0;Be<b.ranges.length;Be++){var Qe=b.ranges[Be],at=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Be],ut=us(a,Qe.anchor,at&&at.anchor,ae,ne),ft=us(a,Qe.head,at&&at.head,ae,ne);(pe||ut!=Qe.anchor||ft!=Qe.head)&&(pe||(pe=b.ranges.slice(0,Be)),pe[Be]=new ii(ut,ft))}return pe?ya(a.cm,pe,b.primIndex):b}function ho(a,b,ae,ne,pe){var Be=Ut(a,b.line);if(Be.markedSpans)for(var Qe=0;Qe<Be.markedSpans.length;++Qe){var at=Be.markedSpans[Qe],ut=at.marker,ft="selectLeft"in ut?!ut.selectLeft:ut.inclusiveLeft,bt="selectRight"in ut?!ut.selectRight:ut.inclusiveRight;if((at.from==null||(ft?at.from<=b.ch:at.from<b.ch))&&(at.to==null||(bt?at.to>=b.ch:at.to>b.ch))){if(pe&&(wt(ut,"beforeCursorEnter"),ut.explicitlyCleared))if(Be.markedSpans){--Qe;continue}else break;if(!ut.atomic)continue;if(ae){var Tt=ut.find(ne<0?1:-1),Kt=void 0;if((ne<0?bt:ft)&&(Tt=ll(a,Tt,-ne,Tt&&Tt.line==b.line?Be:null)),Tt&&Tt.line==b.line&&(Kt=rr(Tt,ae))&&(ne<0?Kt<0:Kt>0))return ho(a,Tt,b,ne,pe)}var Zt=ut.find(ne<0?-1:1);return(ne<0?ft:bt)&&(Zt=ll(a,Zt,ne,Zt.line==b.line?Be:null)),Zt?ho(a,Zt,b,ne,pe):null}}return b}function us(a,b,ae,ne,pe){var Be=ne||1,Qe=ho(a,b,ae,Be,pe)||!pe&&ho(a,b,ae,Be,!0)||ho(a,b,ae,-Be,pe)||!pe&&ho(a,b,ae,-Be,!0);return Qe||(a.cantEdit=!0,Rt(a.first,0))}function ll(a,b,ae,ne){return ae<0&&b.ch==0?b.line>a.first?nr(a,Rt(b.line-1)):null:ae>0&&b.ch==(ne||Ut(a,b.line)).text.length?b.line<a.first+a.size-1?Rt(b.line+1,0):null:new Rt(b.line,b.ch+ae)}function ul(a){a.setSelection(Rt(a.firstLine(),0),Rt(a.lastLine()),Ke)}function cl(a,b,ae){var ne={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ne.canceled=!0}};return ae&&(ne.update=function(pe,Be,Qe,at){pe&&(ne.from=nr(a,pe)),Be&&(ne.to=nr(a,Be)),Qe&&(ne.text=Qe),at!==void 0&&(ne.origin=at)}),wt(a,"beforeChange",a,ne),a.cm&&wt(a.cm,"beforeChange",a.cm,ne),ne.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:ne.from,to:ne.to,text:ne.text,origin:ne.origin}}function po(a,b,ae){if(a.cm){if(!a.cm.curOp)return Mi(a.cm,po)(a,b,ae);if(a.cm.state.suppressEdits)return}if(!((At(a,"beforeChange")||a.cm&&At(a.cm,"beforeChange"))&&(b=cl(a,b,!0),!b))){var ne=Er&&!ae&&Bt(a,b.from,b.to);if(ne)for(var pe=ne.length-1;pe>=0;--pe)fl(a,{from:ne[pe].from,to:ne[pe].to,text:pe?[""]:b.text,origin:b.origin});else fl(a,b)}}function fl(a,b){if(!(b.text.length==1&&b.text[0]==""&&rr(b.from,b.to)==0)){var ae=Es(a,b);$s(a,b,ae,a.cm?a.cm.curOp.id:NaN),Bo(a,b,ae,Qn(a,b));var ne=[];Ga(a,function(pe,Be){!Be&&tt(ne,pe.history)==-1&&(ml(pe.history,b),ne.push(pe.history)),Bo(pe,b,null,Qn(pe,b))})}}function cs(a,b,ae){var ne=a.cm&&a.cm.state.suppressEdits;if(!(ne&&!ae)){for(var pe=a.history,Be,Qe=a.sel,at=b=="undo"?pe.done:pe.undone,ut=b=="undo"?pe.undone:pe.done,ft=0;ft<at.length&&(Be=at[ft],!(ae?Be.ranges&&!Be.equals(a.sel):!Be.ranges));ft++);if(ft!=at.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Be=at.pop(),Be.ranges){if(os(Be,ut),ae&&!Be.equals(a.sel)){Hi(a,Be,{clearRedo:!1});return}Qe=Be}else if(ne){at.push(Be);return}else break;var bt=[];os(Qe,ut),ut.push({changes:bt,generation:pe.generation}),pe.generation=Be.generation||++pe.maxGeneration;for(var Tt=At(a,"beforeChange")||a.cm&&At(a.cm,"beforeChange"),Kt=function(Sr){var Mr=Be.changes[Sr];if(Mr.origin=b,Tt&&!cl(a,Mr,!1))return at.length=0,{};bt.push(Ts(a,Mr));var zr=Sr?Es(a,Mr):st(at);Bo(a,Mr,zr,tl(a,Mr)),!Sr&&a.cm&&a.cm.scrollIntoView({from:Mr.from,to:za(Mr)});var en=[];Ga(a,function(Gr,cn){!cn&&tt(en,Gr.history)==-1&&(ml(Gr.history,Mr),en.push(Gr.history)),Bo(Gr,Mr,null,tl(Gr,Mr))})},Zt=Be.changes.length-1;Zt>=0;--Zt){var cr=Kt(Zt);if(cr)return cr.v}}}}function dl(a,b){if(b!=0&&(a.first+=b,a.sel=new ha(Ye(a.sel.ranges,function(pe){return new ii(Rt(pe.anchor.line+b,pe.anchor.ch),Rt(pe.head.line+b,pe.head.ch))}),a.sel.primIndex),a.cm)){Wi(a.cm,a.first,a.first-b,b);for(var ae=a.cm.display,ne=ae.viewFrom;ne<ae.viewTo;ne++)ca(a.cm,ne,"gutter")}}function Bo(a,b,ae,ne){if(a.cm&&!a.cm.curOp)return Mi(a.cm,Bo)(a,b,ae,ne);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 pe=b.text.length-1-(a.first-b.from.line);dl(a,pe),b={from:Rt(a.first,0),to:Rt(b.to.line+pe,b.to.ch),text:[st(b.text)],origin:b.origin}}var Be=a.lastLine();b.to.line>Be&&(b={from:b.from,to:Rt(Be,Ut(a,Be).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Xt(a,b.from,b.to),ae||(ae=Es(a,b)),a.cm?pu(a.cm,b,ne):ks(a,b,ne),ls(a,ae,Ke),a.cantEdit&&us(a,Rt(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,ae){var ne=a.doc,pe=a.display,Be=b.from,Qe=b.to,at=!1,ut=Be.line;a.options.lineWrapping||(ut=Et(_t(Ut(ne,Be.line))),ne.iter(ut,Qe.line+1,function(Zt){if(Zt==pe.maxLine)return at=!0,!0})),ne.sel.contains(b.from,b.to)>-1&&Ot(a),ks(ne,b,ae,Eo(a)),a.options.lineWrapping||(ne.iter(ut,Be.line+b.text.length,function(Zt){var cr=on(Zt);cr>pe.maxLineLength&&(pe.maxLine=Zt,pe.maxLineLength=cr,pe.maxLineChanged=!0,at=!1)}),at&&(a.curOp.updateMaxLine=!0)),Gn(ne,Be.line),No(a,400);var ft=b.text.length-(Qe.line-Be.line)-1;b.full?Wi(a):Be.line==Qe.line&&b.text.length==1&&!Xs(a.doc,b)?ca(a,Be.line,"text"):Wi(a,Be.line,Qe.line+1,ft);var bt=At(a,"changes"),Tt=At(a,"change");if(Tt||bt){var Kt={from:Be,to:Qe,text:b.text,removed:b.removed,origin:b.origin};Tt&&ri(a,"change",a,Kt),bt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Kt)}a.display.selForContextMenu=null}function mo(a,b,ae,ne,pe){var Be;ne||(ne=ae),rr(ne,ae)<0&&(Be=[ne,ae],ae=Be[0],ne=Be[1]),typeof b=="string"&&(b=a.splitLines(b)),po(a,{from:ae,to:ne,text:b,origin:pe})}function hl(a,b,ae,ne){ae<a.line?a.line+=ne:b<a.line&&(a.line=b,a.ch=0)}function pl(a,b,ae,ne){for(var pe=0;pe<a.length;++pe){var Be=a[pe],Qe=!0;if(Be.ranges){Be.copied||(Be=a[pe]=Be.deepCopy(),Be.copied=!0);for(var at=0;at<Be.ranges.length;at++)hl(Be.ranges[at].anchor,b,ae,ne),hl(Be.ranges[at].head,b,ae,ne);continue}for(var ut=0;ut<Be.changes.length;++ut){var ft=Be.changes[ut];if(ae<ft.from.line)ft.from=Rt(ft.from.line+ne,ft.from.ch),ft.to=Rt(ft.to.line+ne,ft.to.ch);else if(b<=ft.to.line){Qe=!1;break}}Qe||(a.splice(0,pe+1),pe=0)}}function ml(a,b){var ae=b.from.line,ne=b.to.line,pe=b.text.length-(ne-ae)-1;pl(a.done,ae,ne,pe),pl(a.undone,ae,ne,pe)}function Fo(a,b,ae,ne){var pe=b,Be=b;return typeof b=="number"?Be=Ut(a,br(a,b)):pe=Et(b),pe==null?null:(ne(Be,pe)&&a.cm&&ca(a.cm,pe,ae),Be)}function Wo(a){this.lines=a,this.parent=null;for(var b=0,ae=0;ae<a.length;++ae)a[ae].parent=this,b+=a[ae].height;this.height=b}Wo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ae=a,ne=a+b;ae<ne;++ae){var pe=this.lines[ae];this.height-=pe.height,Nn(pe),ri(pe,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ae){this.height+=ae,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var ne=0;ne<b.length;++ne)b[ne].parent=this},iterN:function(a,b,ae){for(var ne=a+b;a<ne;++a)if(ae(this.lines[a]))return!0}};function Uo(a){this.children=a;for(var b=0,ae=0,ne=0;ne<a.length;++ne){var pe=a[ne];b+=pe.chunkSize(),ae+=pe.height,pe.parent=this}this.size=b,this.height=ae,this.parent=null}Uo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ae=0;ae<this.children.length;++ae){var ne=this.children[ae],pe=ne.chunkSize();if(a<pe){var Be=Math.min(b,pe-a),Qe=ne.height;if(ne.removeInner(a,Be),this.height-=Qe-ne.height,pe==Be&&(this.children.splice(ae--,1),ne.parent=null),(b-=Be)==0)break;a=0}else a-=pe}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Wo))){var at=[];this.collapse(at),this.children=[new Wo(at)],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,ae){this.size+=b.length,this.height+=ae;for(var ne=0;ne<this.children.length;++ne){var pe=this.children[ne],Be=pe.chunkSize();if(a<=Be){if(pe.insertInner(a,b,ae),pe.lines&&pe.lines.length>50){for(var Qe=pe.lines.length%25+25,at=Qe;at<pe.lines.length;){var ut=new Wo(pe.lines.slice(at,at+=25));pe.height-=ut.height,this.children.splice(++ne,0,ut),ut.parent=this}pe.lines=pe.lines.slice(0,Qe),this.maybeSpill()}break}a-=Be}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ae=new Uo(b);if(a.parent){a.size-=ae.size,a.height-=ae.height;var pe=tt(a.parent.children,a);a.parent.children.splice(pe+1,0,ae)}else{var ne=new Uo(a.children);ne.parent=a,a.children=[ne,ae],a=ne}ae.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ae){for(var ne=0;ne<this.children.length;++ne){var pe=this.children[ne],Be=pe.chunkSize();if(a<Be){var Qe=Math.min(b,Be-a);if(pe.iterN(a,Qe,ae))return!0;if((b-=Qe)==0)break;a=0}else a-=Be}}};var Zo=function(a,b,ae){if(ae)for(var ne in ae)ae.hasOwnProperty(ne)&&(this[ne]=ae[ne]);this.doc=a,this.node=b};Zo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ae=this.line,ne=Et(ae);if(!(ne==null||!b)){for(var pe=0;pe<b.length;++pe)b[pe]==this&&b.splice(pe--,1);b.length||(ae.widgets=null);var Be=fi(this);qr(ae,Math.max(0,ae.height-Be)),a&&(ia(a,function(){vl(a,ae,-Be),ca(a,ne,"widget")}),ri(a,"lineWidgetCleared",a,this,ne))}},Zo.prototype.changed=function(){var a=this,b=this.height,ae=this.doc.cm,ne=this.line;this.height=null;var pe=fi(this)-b;pe&&(Wr(this.doc,ne)||qr(ne,ne.height+pe),ae&&ia(ae,function(){ae.curOp.forceUpdate=!0,vl(ae,ne,pe),ri(ae,"lineWidgetChanged",ae,a,Et(ne))}))},Nt(Zo);function vl(a,b,ae){Br(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&co(a,ae)}function mu(a,b,ae,ne){var pe=new Zo(a,ae,ne),Be=a.cm;return Be&&pe.noHScroll&&(Be.display.alignWidgets=!0),Fo(a,b,"widget",function(Qe){var at=Qe.widgets||(Qe.widgets=[]);if(pe.insertAt==null?at.push(pe):at.splice(Math.min(at.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Qe,Be&&!Wr(a,Qe)){var ut=Br(Qe)<a.scrollTop;qr(Qe,Qe.height+fi(pe)),ut&&co(Be,pe.height),Be.curOp.forceUpdate=!0}return!0}),Be&&ri(Be,"lineWidgetAdded",Be,pe,typeof b=="number"?b:Et(b)),pe}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),At(this,"clear")){var ae=this.find();ae&&ri(this,"clear",ae.from,ae.to)}for(var ne=null,pe=null,Be=0;Be<this.lines.length;++Be){var Qe=this.lines[Be],at=Hr(Qe.markedSpans,this);a&&!this.collapsed?ca(a,Et(Qe),"text"):a&&(at.to!=null&&(pe=Et(Qe)),at.from!=null&&(ne=Et(Qe))),Qe.markedSpans=mn(Qe.markedSpans,at),at.from==null&&this.collapsed&&!Wr(this.doc,Qe)&&a&&qr(Qe,ji(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ut=0;ut<this.lines.length;++ut){var ft=_t(this.lines[ut]),bt=on(ft);bt>a.display.maxLineLength&&(a.display.maxLine=ft,a.display.maxLineLength=bt,a.display.maxLineChanged=!0)}ne!=null&&a&&this.collapsed&&Wi(a,ne,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ol(a.doc)),a&&ri(a,"markerCleared",a,this,ne,pe),b&&ga(a),this.parent&&this.parent.clear()}},Ka.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ae,ne,pe=0;pe<this.lines.length;++pe){var Be=this.lines[pe],Qe=Hr(Be.markedSpans,this);if(Qe.from!=null&&(ae=Rt(b?Be:Et(Be),Qe.from),a==-1))return ae;if(Qe.to!=null&&(ne=Rt(b?Be:Et(Be),Qe.to),a==1))return ne}return ae&&{from:ae,to:ne}},Ka.prototype.changed=function(){var a=this,b=this.find(-1,!0),ae=this,ne=this.doc.cm;!b||!ne||ia(ne,function(){var pe=b.line,Be=Et(b.line),Qe=pa(ne,Be);if(Qe&&(Ja(Qe),ne.curOp.selectionChanged=ne.curOp.forceUpdate=!0),ne.curOp.updateMaxLine=!0,!Wr(ae.doc,pe)&&ae.height!=null){var at=ae.height;ae.height=null;var ut=fi(ae)-at;ut&&qr(pe,pe.height+ut)}ri(ne,"markerChanged",ne,a)})},Ka.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||tt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Ka.prototype.detachLine=function(a){if(this.lines.splice(tt(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Nt(Ka);function vo(a,b,ae,ne,pe){if(ne&&ne.shared)return vu(a,b,ae,ne,pe);if(a.cm&&!a.cm.curOp)return Mi(a.cm,vo)(a,b,ae,ne,pe);var Be=new Ka(a,pe),Qe=rr(b,ae);if(ne&&it(ne,Be,!1),Qe>0||Qe==0&&Be.clearWhenEmpty!==!1)return Be;if(Be.replacedWith&&(Be.collapsed=!0,Be.widgetNode=Se("span",[Be.replacedWith],"CodeMirror-widget"),ne.handleMouseEvents||Be.widgetNode.setAttribute("cm-ignore-events","true"),ne.insertLeft&&(Be.widgetNode.insertLeft=!0)),Be.collapsed){if(Pt(a,b.line,b,ae,Be)||b.line!=ae.line&&Pt(a,ae.line,b,ae,Be))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fr()}Be.addToHistory&&$s(a,{from:b,to:ae,origin:"markText"},a.sel,NaN);var at=b.line,ut=a.cm,ft;if(a.iter(at,ae.line+1,function(Tt){ut&&Be.collapsed&&!ut.options.lineWrapping&&_t(Tt)==ut.display.maxLine&&(ft=!0),Be.collapsed&&at!=b.line&&qr(Tt,0),On(Tt,new kr(Be,at==b.line?b.ch:null,at==ae.line?ae.ch:null)),++at}),Be.collapsed&&a.iter(b.line,ae.line+1,function(Tt){Wr(a,Tt)&&qr(Tt,0)}),Be.clearOnEnter&&yt(Be,"beforeCursorEnter",function(){return Be.clear()}),Be.readOnly&&(pr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Be.collapsed&&(Be.id=++gl,Be.atomic=!0),ut){if(ft&&(ut.curOp.updateMaxLine=!0),Be.collapsed)Wi(ut,b.line,ae.line+1);else if(Be.className||Be.startStyle||Be.endStyle||Be.css||Be.attributes||Be.title)for(var bt=b.line;bt<=ae.line;bt++)ca(ut,bt,"text");Be.atomic&&ol(ut.doc),ri(ut,"markerAdded",ut,Be)}return Be}var Ho=function(a,b){this.markers=a,this.primary=b;for(var ae=0;ae<a.length;++ae)a[ae].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();ri(this,"clear")}},Ho.prototype.find=function(a,b){return this.primary.find(a,b)},Nt(Ho);function vu(a,b,ae,ne,pe){ne=it(ne),ne.shared=!1;var Be=[vo(a,b,ae,ne,pe)],Qe=Be[0],at=ne.widgetNode;return Ga(a,function(ut){at&&(ne.widgetNode=at.cloneNode(!0)),Be.push(vo(ut,nr(ut,b),nr(ut,ae),ne,pe));for(var ft=0;ft<ut.linked.length;++ft)if(ut.linked[ft].isParent)return;Qe=st(Be)}),new Ho(Be,Qe)}function yl(a){return a.findMarks(Rt(a.first,0),a.clipPos(Rt(a.lastLine())),function(b){return b.parent})}function gu(a,b){for(var ae=0;ae<b.length;ae++){var ne=b[ae],pe=ne.find(),Be=a.clipPos(pe.from),Qe=a.clipPos(pe.to);if(rr(Be,Qe)){var at=vo(a,Be,Qe,ne.primary,ne.primary.type);ne.markers.push(at),at.parent=ne}}}function yu(a){for(var b=function(ne){var pe=a[ne],Be=[pe.primary.doc];Ga(pe.primary.doc,function(ut){return Be.push(ut)});for(var Qe=0;Qe<pe.markers.length;Qe++){var at=pe.markers[Qe];tt(Be,at.doc)==-1&&(at.parent=null,pe.markers.splice(Qe--,1))}},ae=0;ae<a.length;ae++)b(ae)}var bu=0,$i=function(a,b,ae,ne,pe){if(!(this instanceof $i))return new $i(a,b,ae,ne,pe);ae==null&&(ae=0),Uo.call(this,[new Wo([new bn("",null)])]),this.first=ae,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ae;var Be=Rt(ae,0);this.sel=Ha(Be),this.history=new as(null),this.id=++bu,this.modeOption=b,this.lineSep=ne,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ks(this,{from:Be,to:Be,text:a}),Hi(this,Ha(Be),Ke)};$i.prototype=te(Uo.prototype,{constructor:$i,iter:function(a,b,ae){ae?this.iterN(a-this.first,b-a,ae):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ae=0,ne=0;ne<b.length;++ne)ae+=b[ne].height;this.insertInner(a-this.first,b,ae)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Yr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ni(function(a){var b=Rt(this.first,0),ae=this.first+this.size-1;po(this,{from:b,to:Rt(ae,Ut(this,ae).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),Hi(this,Ha(b),Ke)}),replaceRange:function(a,b,ae,ne){b=nr(this,b),ae=ae?nr(this,ae):b,mo(this,a,b,ae,ne)},getRange:function(a,b,ae){var ne=Xt(this,nr(this,a),nr(this,b));return ae===!1?ne:ne.join(ae||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(fr(this,a))return Ut(this,a)},getLineNumber:function(a){return Et(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Ut(this,a)),_t(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return nr(this,a)},getCursor:function(a){var b=this.sel.primary(),ae;return a==null||a=="head"?ae=b.head:a=="anchor"?ae=b.anchor:a=="end"||a=="to"||a===!1?ae=b.to():ae=b.from(),ae},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ni(function(a,b,ae){nl(this,nr(this,typeof a=="number"?Rt(a,b||0):a),null,ae)}),setSelection:Ni(function(a,b,ae){nl(this,nr(this,a),nr(this,b||a),ae)}),extendSelection:Ni(function(a,b,ae){ss(this,nr(this,a),b&&nr(this,b),ae)}),extendSelections:Ni(function(a,b){rl(this,yr(this,a),b)}),extendSelectionsBy:Ni(function(a,b){var ae=Ye(this.sel.ranges,a);rl(this,yr(this,ae),b)}),setSelections:Ni(function(a,b,ae){if(a.length){for(var ne=[],pe=0;pe<a.length;pe++)ne[pe]=new ii(nr(this,a[pe].anchor),nr(this,a[pe].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Hi(this,ya(this.cm,ne,b),ae)}}),addSelection:Ni(function(a,b,ae){var ne=this.sel.ranges.slice(0);ne.push(new ii(nr(this,a),nr(this,b||a))),Hi(this,ya(this.cm,ne,ne.length-1),ae)}),getSelection:function(a){for(var b=this.sel.ranges,ae,ne=0;ne<b.length;ne++){var pe=Xt(this,b[ne].from(),b[ne].to());ae=ae?ae.concat(pe):pe}return a===!1?ae:ae.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ae=this.sel.ranges,ne=0;ne<ae.length;ne++){var pe=Xt(this,ae[ne].from(),ae[ne].to());a!==!1&&(pe=pe.join(a||this.lineSeparator())),b[ne]=pe}return b},replaceSelection:function(a,b,ae){for(var ne=[],pe=0;pe<this.sel.ranges.length;pe++)ne[pe]=a;this.replaceSelections(ne,b,ae||"+input")},replaceSelections:Ni(function(a,b,ae){for(var ne=[],pe=this.sel,Be=0;Be<pe.ranges.length;Be++){var Qe=pe.ranges[Be];ne[Be]={from:Qe.from(),to:Qe.to(),text:this.splitLines(a[Be]),origin:ae}}for(var at=b&&b!="end"&&ou(this,ne,b),ut=ne.length-1;ut>=0;ut--)po(this,ne[ut]);at?il(this,at):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,ae=0,ne=0;ne<a.done.length;ne++)a.done[ne].ranges||++b;for(var pe=0;pe<a.undone.length;pe++)a.undone[pe].ranges||++ae;return{undo:b,redo:ae}},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,ae){return Fo(this,a,"gutter",function(ne){var pe=ne.gutterMarkers||(ne.gutterMarkers={});return pe[b]=ae,!ae&&we(pe)&&(ne.gutterMarkers=null),!0})}),clearGutter:Ni(function(a){var b=this;this.iter(function(ae){ae.gutterMarkers&&ae.gutterMarkers[a]&&Fo(b,ae,"gutter",function(){return ae.gutterMarkers[a]=null,we(ae.gutterMarkers)&&(ae.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!fr(this,a)||(b=a,a=Ut(this,a),!a))return null}else if(b=Et(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,ae){return Fo(this,a,b=="gutter"?"gutter":"class",function(ne){var pe=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ne[pe])ne[pe]=ae;else{if(Te(ae).test(ne[pe]))return!1;ne[pe]+=" "+ae}return!0})}),removeLineClass:Ni(function(a,b,ae){return Fo(this,a,b=="gutter"?"gutter":"class",function(ne){var pe=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Be=ne[pe];if(Be)if(ae==null)ne[pe]=null;else{var Qe=Be.match(Te(ae));if(!Qe)return!1;var at=Qe.index+Qe[0].length;ne[pe]=Be.slice(0,Qe.index)+(!Qe.index||at==Be.length?"":" ")+Be.slice(at)||null}else return!1;return!0})}),addLineWidget:Ni(function(a,b,ae){return mu(this,a,b,ae)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ae){return vo(this,nr(this,a),nr(this,b),ae,ae&&ae.type||"range")},setBookmark:function(a,b){var ae={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=nr(this,a),vo(this,a,a,ae,"bookmark")},findMarksAt:function(a){a=nr(this,a);var b=[],ae=Ut(this,a.line).markedSpans;if(ae)for(var ne=0;ne<ae.length;++ne){var pe=ae[ne];(pe.from==null||pe.from<=a.ch)&&(pe.to==null||pe.to>=a.ch)&&b.push(pe.marker.parent||pe.marker)}return b},findMarks:function(a,b,ae){a=nr(this,a),b=nr(this,b);var ne=[],pe=a.line;return this.iter(a.line,b.line+1,function(Be){var Qe=Be.markedSpans;if(Qe)for(var at=0;at<Qe.length;at++){var ut=Qe[at];!(ut.to!=null&&pe==a.line&&a.ch>=ut.to||ut.from==null&&pe!=a.line||ut.from!=null&&pe==b.line&&ut.from>=b.ch)&&(!ae||ae(ut.marker))&&ne.push(ut.marker.parent||ut.marker)}++pe}),ne},getAllMarks:function(){var a=[];return this.iter(function(b){var ae=b.markedSpans;if(ae)for(var ne=0;ne<ae.length;++ne)ae[ne].from!=null&&a.push(ae[ne].marker)}),a},posFromIndex:function(a){var b,ae=this.first,ne=this.lineSeparator().length;return this.iter(function(pe){var Be=pe.text.length+ne;if(Be>a)return b=a,!0;a-=Be,++ae}),nr(this,Rt(ae,b))},indexFromPos:function(a){a=nr(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ae=this.lineSeparator().length;return this.iter(this.first,a.line,function(ne){b+=ne.text.length+ae}),b},copy:function(a){var b=new $i(Yr(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,ae=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ae&&(ae=a.to);var ne=new $i(Yr(this,b,ae),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(ne.history=this.history),(this.linked||(this.linked=[])).push({doc:ne,sharedHist:a.sharedHist}),ne.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(ne,yl(this)),ne},unlinkDoc:function(a){if(a instanceof gi&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ae=this.linked[b];if(ae.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),yu(yl(this));break}}if(a.history==this.history){var ne=[a.id];Ga(a,function(pe){return ne.push(pe.id)},!0),a.history=new as(null),a.history.done=fo(this.history.done,ne),a.history.undone=fo(this.history.undone,ne)}},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):fn(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))})}),$i.prototype.eachLine=$i.prototype.iter;var bl=0;function wu(a){var b=this;if(wl(b),!(pt(b,a)||ci(b.display,a))){Ht(a),xe&&(bl=+new Date);var ae=wa(b,a,!0),ne=a.dataTransfer.files;if(!(!ae||b.isReadOnly()))if(ne&&ne.length&&window.FileReader&&window.File)for(var pe=ne.length,Be=Array(pe),Qe=0,at=function(){++Qe==pe&&Mi(b,function(){ae=nr(b.doc,ae);var Zt={from:ae,to:ae,text:b.doc.splitLines(Be.filter(function(cr){return cr!=null}).join(b.doc.lineSeparator())),origin:"paste"};po(b.doc,Zt),il(b.doc,Ha(nr(b.doc,ae),nr(b.doc,za(Zt))))})()},ut=function(Zt,cr){if(b.options.allowDropFileTypes&&tt(b.options.allowDropFileTypes,Zt.type)==-1){at();return}var Sr=new FileReader;Sr.onerror=function(){return at()},Sr.onload=function(){var Mr=Sr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Mr)){at();return}Be[cr]=Mr,at()},Sr.readAsText(Zt)},ft=0;ft<ne.length;ft++)ut(ne[ft],ft);else{if(b.state.draggingText&&b.doc.sel.contains(ae)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var bt=a.dataTransfer.getData("Text");if(bt){var Tt;if(b.state.draggingText&&!b.state.draggingText.copy&&(Tt=b.listSelections()),ls(b.doc,Ha(ae,ae)),Tt)for(var Kt=0;Kt<Tt.length;++Kt)mo(b.doc,"",Tt[Kt].anchor,Tt[Kt].head,"drag");b.replaceSelection(bt,"around","paste"),b.display.input.focus()}}catch(Zt){}}}}function xu(a,b){if(xe&&(!a.state.draggingText||+new Date-bl<100)){Ar(b);return}if(!(pt(a,b)||ci(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!fe)){var ae=ye("img",null,null,"position: fixed; left: 0; top: 0;");ae.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(ae.width=ae.height=1,a.display.wrapper.appendChild(ae),ae._top=ae.offsetTop),b.dataTransfer.setDragImage(ae,0,0),ee&&ae.parentNode.removeChild(ae)}}function Su(a,b){var ae=wa(a,b);if(ae){var ne=document.createDocumentFragment();ko(a,ae,ne),a.display.dragCursor||(a.display.dragCursor=ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),de(a.display.dragCursor,ne)}}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"),ae=[],ne=0;ne<b.length;ne++){var pe=b[ne].CodeMirror;pe&&ae.push(pe)}ae.length&&ae[0].operation(function(){for(var Be=0;Be<ae.length;Be++)a(ae[Be])})}}var Sl=!1;function Eu(){Sl||(Cu(),Sl=!0)}function Cu(){var a;yt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,xl(ku)},100))}),yt(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 Na={};Na.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"},Na.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"},Na.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"},Na.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"]},Na.default=he?Na.macDefault:Na.pcDefault;function Tu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ae,ne,pe,Be,Qe=0;Qe<b.length-1;Qe++){var at=b[Qe];if(/^(cmd|meta|m)$/i.test(at))Be=!0;else if(/^a(lt)?$/i.test(at))ae=!0;else if(/^(c|ctrl|control)$/i.test(at))ne=!0;else if(/^s(hift)?$/i.test(at))pe=!0;else throw new Error("Unrecognized modifier name: "+at)}return ae&&(a="Alt-"+a),ne&&(a="Ctrl-"+a),Be&&(a="Cmd-"+a),pe&&(a="Shift-"+a),a}function Au(a){var b={};for(var ae in a)if(a.hasOwnProperty(ae)){var ne=a[ae];if(/^(name|fallthrough|(de|at)tach)$/.test(ae))continue;if(ne=="..."){delete a[ae];continue}for(var pe=Ye(ae.split(" "),Tu),Be=0;Be<pe.length;Be++){var Qe=void 0,at=void 0;Be==pe.length-1?(at=pe.join(" "),Qe=ne):(at=pe.slice(0,Be+1).join(" "),Qe="...");var ut=b[at];if(!ut)b[at]=Qe;else if(ut!=Qe)throw new Error("Inconsistent bindings for "+at)}delete a[ae]}for(var ft in b)a[ft]=b[ft];return a}function go(a,b,ae,ne){b=ds(b);var pe=b.call?b.call(a,ne):b[a];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&ae(pe))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return go(a,b.fallthrough,ae,ne);for(var Be=0;Be<b.fallthrough.length;Be++){var Qe=go(a,b.fallthrough[Be],ae,ne);if(Qe)return Qe}}}function El(a){var b=typeof a=="string"?a:Va[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Cl(a,b,ae){var ne=a;return b.altKey&&ne!="Alt"&&(a="Alt-"+a),(ve?b.metaKey:b.ctrlKey)&&ne!="Ctrl"&&(a="Ctrl-"+a),(ve?b.ctrlKey:b.metaKey)&&ne!="Mod"&&(a="Cmd-"+a),!ae&&b.shiftKey&&ne!="Shift"&&(a="Shift-"+a),a}function kl(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var ae=Va[a.keyCode];return ae==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ae=a.code),Cl(ae,a,b))}function ds(a){return typeof a=="string"?Na[a]:a}function yo(a,b){for(var ae=a.doc.sel.ranges,ne=[],pe=0;pe<ae.length;pe++){for(var Be=b(ae[pe]);ne.length&&rr(Be.from,st(ne).to)<=0;){var Qe=ne.pop();if(rr(Qe.from,Be.from)<0){Be.from=Qe.from;break}}ne.push(Be)}ia(a,function(){for(var at=ne.length-1;at>=0;at--)mo(a.doc,"",ne[at].from,ne[at].to,"+delete");ja(a)})}function Ds(a,b,ae){var ne=Ue(a.text,b+ae,ae);return ne<0||ne>a.text.length?null:ne}function js(a,b,ae){var ne=Ds(a,b.ch,ae);return ne==null?null:new Rt(b.line,ne,ae<0?"after":"before")}function Os(a,b,ae,ne,pe){if(a){b.doc.direction=="rtl"&&(pe=-pe);var Be=St(ae,b.doc.direction);if(Be){var Qe=pe<0?st(Be):Be[0],at=pe<0==(Qe.level==1),ut=at?"after":"before",ft;if(Qe.level>0||b.doc.direction=="rtl"){var bt=ma(b,ae);ft=pe<0?ae.text.length-1:0;var Tt=ra(b,bt,ft).top;ft=qe(function(Kt){return ra(b,bt,Kt).top==Tt},pe<0==(Qe.level==1)?Qe.from:Qe.to-1,ft),ut=="before"&&(ft=Ds(ae,ft,1))}else ft=pe<0?Qe.to:Qe.from;return new Rt(ne,ft,ut)}}return new Rt(ne,pe<0?ae.text.length:0,pe<0?"before":"after")}function _u(a,b,ae,ne){var pe=St(b,a.doc.direction);if(!pe)return js(b,ae,ne);ae.ch>=b.text.length?(ae.ch=b.text.length,ae.sticky="before"):ae.ch<=0&&(ae.ch=0,ae.sticky="after");var Be=lt(pe,ae.ch,ae.sticky),Qe=pe[Be];if(a.doc.direction=="ltr"&&Qe.level%2==0&&(ne>0?Qe.to>ae.ch:Qe.from<ae.ch))return js(b,ae,ne);var at=function(zr,en){return Ds(b,zr instanceof Rt?zr.ch:zr,en)},ut,ft=function(zr){return a.options.lineWrapping?(ut=ut||ma(a,b),bi(a,b,ut,zr)):{begin:0,end:b.text.length}},bt=ft(ae.sticky=="before"?at(ae,-1):ae.ch);if(a.doc.direction=="rtl"||Qe.level==1){var Tt=Qe.level==1==ne<0,Kt=at(ae,Tt?1:-1);if(Kt!=null&&(Tt?Kt<=Qe.to&&Kt<=bt.end:Kt>=Qe.from&&Kt>=bt.begin)){var Zt=Tt?"before":"after";return new Rt(ae.line,Kt,Zt)}}var cr=function(zr,en,Gr){for(var cn=function(ui,Ii){return Ii?new Rt(ae.line,at(ui,1),"before"):new Rt(ae.line,ui,"after")};zr>=0&&zr<pe.length;zr+=en){var An=pe[zr],yn=en>0==(An.level!=1),Yn=yn?Gr.begin:at(Gr.end,-1);if(An.from<=Yn&&Yn<An.to||(Yn=yn?An.from:at(An.to,-1),Gr.begin<=Yn&&Yn<Gr.end))return cn(Yn,yn)}},Sr=cr(Be+ne,ne,bt);if(Sr)return Sr;var Mr=ne>0?bt.end:at(bt.begin,-1);return Mr!=null&&!(ne>0&&Mr==b.text.length)&&(Sr=cr(ne>0?0:pe.length-1,ne,ft(Mr)),Sr)?Sr:null}var Ko={selectAll:ul,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ke)},killLine:function(a){return yo(a,function(b){if(b.empty()){var ae=Ut(a.doc,b.head.line).text.length;return b.head.ch==ae&&b.head.line<a.lastLine()?{from:b.head,to:Rt(b.head.line+1,0)}:{from:b.head,to:Rt(b.head.line,ae)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return yo(a,function(b){return{from:Rt(b.from().line,0),to:nr(a.doc,Rt(b.to().line+1,0))}})},delLineLeft:function(a){return yo(a,function(b){return{from:Rt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return yo(a,function(b){var ae=a.charCoords(b.head,"div").top+5,ne=a.coordsChar({left:0,top:ae},"div");return{from:ne,to:b.from()}})},delWrappedLineRight:function(a){return yo(a,function(b){var ae=a.charCoords(b.head,"div").top+5,ne=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ae},"div");return{from:b.from(),to:ne}})},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(Rt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Rt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Tl(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Al(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 ae=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ae},"div")},Ge)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ae=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ae},"div")},Ge)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ae=a.cursorCoords(b.head,"div").top+5,ne=a.coordsChar({left:0,top:ae},"div");return ne.ch<a.getLine(ne.line).search(/\S/)?Al(a,b.head):ne},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=[],ae=a.listSelections(),ne=a.options.tabSize,pe=0;pe<ae.length;pe++){var Be=ae[pe].from(),Qe=Ie(a.getLine(Be.line),Be.ch,ne);b.push(ct(ne-Qe%ne))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ia(a,function(){for(var b=a.listSelections(),ae=[],ne=0;ne<b.length;ne++)if(b[ne].empty()){var pe=b[ne].head,Be=Ut(a.doc,pe.line).text;if(Be){if(pe.ch==Be.length&&(pe=new Rt(pe.line,pe.ch-1)),pe.ch>0)pe=new Rt(pe.line,pe.ch+1),a.replaceRange(Be.charAt(pe.ch-1)+Be.charAt(pe.ch-2),Rt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>a.doc.first){var Qe=Ut(a.doc,pe.line-1).text;Qe&&(pe=new Rt(pe.line,1),a.replaceRange(Be.charAt(0)+a.doc.lineSeparator()+Qe.charAt(Qe.length-1),Rt(pe.line-1,Qe.length-1),pe,"+transpose"))}}ae.push(new ii(pe,pe))}a.setSelections(ae)})},newlineAndIndent:function(a){return ia(a,function(){for(var b=a.listSelections(),ae=b.length-1;ae>=0;ae--)a.replaceRange(a.doc.lineSeparator(),b[ae].anchor,b[ae].head,"+input");b=a.listSelections();for(var ne=0;ne<b.length;ne++)a.indentLine(b[ne].from().line,null,!0);ja(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Tl(a,b){var ae=Ut(a.doc,b),ne=_t(ae);return ne!=ae&&(b=Et(ne)),Os(!0,a,ne,b,1)}function Du(a,b){var ae=Ut(a.doc,b),ne=Wt(ae);return ne!=ae&&(b=Et(ne)),Os(!0,a,ae,b,-1)}function Al(a,b){var ae=Tl(a,b.line),ne=Ut(a.doc,ae.line),pe=St(ne,a.doc.direction);if(!pe||pe[0].level==0){var Be=Math.max(ae.ch,ne.text.search(/\S/)),Qe=b.line==ae.line&&b.ch<=Be&&b.ch;return Rt(ae.line,Qe?0:Be,ae.sticky)}return ae}function hs(a,b,ae){if(typeof b=="string"&&(b=Ko[b],!b))return!1;a.display.input.ensurePolled();var ne=a.display.shift,pe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ae&&(a.display.shift=!1),pe=b(a)!=et}finally{a.display.shift=ne,a.state.suppressEdits=!1}return pe}function ju(a,b,ae){for(var ne=0;ne<a.state.keyMaps.length;ne++){var pe=go(b,a.state.keyMaps[ne],ae,a);if(pe)return pe}return a.options.extraKeys&&go(b,a.options.extraKeys,ae,a)||go(b,a.options.keyMap,ae,a)}var Ou=new We;function Vo(a,b,ae,ne){var pe=a.state.keySeq;if(pe){if(El(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:Ou.set(50,function(){a.state.keySeq==pe&&(a.state.keySeq=null,a.display.input.reset())}),_l(a,pe+" "+b,ae,ne))return!0}return _l(a,b,ae,ne)}function _l(a,b,ae,ne){var pe=ju(a,b,ne);return pe=="multi"&&(a.state.keySeq=b),pe=="handled"&&ri(a,"keyHandled",a,b,ae),(pe=="handled"||pe=="multi")&&(Ht(ae),To(a)),!!pe}function Dl(a,b){var ae=kl(b,!0);return ae?b.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+ae,b,function(ne){return hs(a,ne,!0)})||Vo(a,ae,b,function(ne){if(typeof ne=="string"?/^go[A-Z]/.test(ne):ne.motion)return hs(a,ne)}):Vo(a,ae,b,function(ne){return hs(a,ne)}):!1}function Pu(a,b,ae){return Vo(a,"'"+ae+"'",b,function(ne){return hs(a,ne,!0)})}var Ps=null;function jl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ae(),!pt(b,a))){xe&&x<11&&a.keyCode==27&&(a.returnValue=!1);var ae=a.keyCode;b.display.shift=ae==16||a.shiftKey;var ne=Dl(b,a);ee&&(Ps=ne?ae:null,!ne&&ae==88&&!Rr&&(he?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),He&&!he&&!ne&&ae==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ae==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Ru(b)}}function Ru(a){var b=a.display.lineDiv;je(b,"CodeMirror-crosshair");function ae(ne){(ne.keyCode==18||!ne.altKey)&&(Me(b,"CodeMirror-crosshair"),Ct(document,"keyup",ae),Ct(document,"mouseover",ae))}yt(document,"keyup",ae),yt(document,"mouseover",ae)}function Ol(a){a.keyCode==16&&(this.doc.sel.shift=!1),pt(this,a)}function Pl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(ci(b.display,a)||pt(b,a)||a.ctrlKey&&!a.altKey||he&&a.metaKey)){var ae=a.keyCode,ne=a.charCode;if(ee&&ae==Ps){Ps=null,Ht(a);return}if(!(ee&&(!a.which||a.which<10)&&Dl(b,a))){var pe=String.fromCharCode(ne==null?ae:ne);pe!="\b"&&(Pu(b,a,pe)||b.display.input.onKeyPress(a))}}}var Mu=400,Rs=function(a,b,ae){this.time=a,this.pos=b,this.button=ae};Rs.prototype.compare=function(a,b,ae){return this.time+Mu>a&&rr(b,this.pos)==0&&ae==this.button};var Xo,Yo;function Nu(a,b){var ae=+new Date;return Yo&&Yo.compare(ae,a,b)?(Xo=Yo=null,"triple"):Xo&&Xo.compare(ae,a,b)?(Yo=new Rs(ae,a,b),Xo=null,"double"):(Xo=new Rs(ae,a,b),Yo=null,"single")}function Rl(a){var b=this,ae=b.display;if(!(pt(b,a)||ae.activeTouch&&ae.input.supportsTouch())){if(ae.input.ensurePolled(),ae.shift=a.shiftKey,ci(ae,a)){z||(ae.scroller.draggable=!1,setTimeout(function(){return ae.scroller.draggable=!0},100));return}if(!Ms(b,a)){var ne=wa(b,a),pe=Ir(a),Be=ne?Nu(ne,pe):"single";window.focus(),pe==1&&b.state.selectingText&&b.state.selectingText(a),!(ne&&Iu(b,pe,ne,Be,a))&&(pe==1?ne?Bu(b,ne,Be,a):er(a)==ae.scroller&&Ht(a):pe==2?(ne&&ss(b.doc,ne),setTimeout(function(){return ae.input.focus()},20)):pe==3&&(Ce?b.display.input.onContextMenu(a):_o(b)))}}}function Iu(a,b,ae,ne,pe){var Be="Click";return ne=="double"?Be="Double"+Be:ne=="triple"&&(Be="Triple"+Be),Be=(b==1?"Left":b==2?"Middle":"Right")+Be,Vo(a,Cl(Be,pe),pe,function(Qe){if(typeof Qe=="string"&&(Qe=Ko[Qe]),!Qe)return!1;var at=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),at=Qe(a,ae)!=et}finally{a.state.suppressEdits=!1}return at})}function Lu(a,b,ae){var ne=a.getOption("configureMouse"),pe=ne?ne(a,b,ae):{};if(pe.unit==null){var Be=ge?ae.shiftKey&&ae.metaKey:ae.altKey;pe.unit=Be?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(pe.extend==null||a.doc.extend)&&(pe.extend=a.doc.extend||ae.shiftKey),pe.addNew==null&&(pe.addNew=he?ae.metaKey:ae.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(he?ae.altKey:ae.ctrlKey)),pe}function Bu(a,b,ae,ne){xe?setTimeout(Ve(Ao,a),0):a.curOp.focus=Ae();var pe=Lu(a,ae,ne),Be=a.doc.sel,Qe;a.options.dragDrop&&$r&&!a.isReadOnly()&&ae=="single"&&(Qe=Be.contains(b))>-1&&(rr((Qe=Be.ranges[Qe]).from(),b)<0||b.xRel>0)&&(rr(Qe.to(),b)>0||b.xRel<0)?Fu(a,ne,b,pe):Wu(a,ne,b,pe)}function Fu(a,b,ae,ne){var pe=a.display,Be=!1,Qe=Mi(a,function(ft){z&&(pe.scroller.draggable=!1),a.state.draggingText=!1,Ct(pe.wrapper.ownerDocument,"mouseup",Qe),Ct(pe.wrapper.ownerDocument,"mousemove",at),Ct(pe.scroller,"dragstart",ut),Ct(pe.scroller,"drop",Qe),Be||(Ht(ft),ne.addNew||ss(a.doc,ae,null,null,ne.extend),z&&!fe||xe&&x==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),at=function(ft){Be=Be||Math.abs(b.clientX-ft.clientX)+Math.abs(b.clientY-ft.clientY)>=10},ut=function(){return Be=!0};z&&(pe.scroller.draggable=!0),a.state.draggingText=Qe,Qe.copy=!ne.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),yt(pe.wrapper.ownerDocument,"mouseup",Qe),yt(pe.wrapper.ownerDocument,"mousemove",at),yt(pe.scroller,"dragstart",ut),yt(pe.scroller,"drop",Qe),_o(a),setTimeout(function(){return pe.input.focus()},20)}function Ml(a,b,ae){if(ae=="char")return new ii(b,b);if(ae=="word")return a.findWordAt(b);if(ae=="line")return new ii(Rt(b.line,0),nr(a.doc,Rt(b.line+1,0)));var ne=ae(a,b);return new ii(ne.from,ne.to)}function Wu(a,b,ae,ne){var pe=a.display,Be=a.doc;Ht(b);var Qe,at,ut=Be.sel,ft=ut.ranges;if(ne.addNew&&!ne.extend?(at=Be.sel.contains(ae),at>-1?Qe=ft[at]:Qe=new ii(ae,ae)):(Qe=Be.sel.primary(),at=Be.sel.primIndex),ne.unit=="rectangle")ne.addNew||(Qe=new ii(ae,ae)),ae=wa(a,b,!0,!0),at=-1;else{var bt=Ml(a,ae,ne.unit);ne.extend?Qe=As(Qe,bt.anchor,bt.head,ne.extend):Qe=bt}ne.addNew?at==-1?(at=ft.length,Hi(Be,ya(a,ft.concat([Qe]),at),{scroll:!1,origin:"*mouse"})):ft.length>1&&ft[at].empty()&&ne.unit=="char"&&!ne.extend?(Hi(Be,ya(a,ft.slice(0,at).concat(ft.slice(at+1)),0),{scroll:!1,origin:"*mouse"}),ut=Be.sel):_s(Be,at,Qe,$e):(at=0,Hi(Be,new ha([Qe],0),$e),ut=Be.sel);var Tt=ae;function Kt(Gr){if(rr(Tt,Gr)!=0)if(Tt=Gr,ne.unit=="rectangle"){for(var cn=[],An=a.options.tabSize,yn=Ie(Ut(Be,ae.line).text,ae.ch,An),Yn=Ie(Ut(Be,Gr.line).text,Gr.ch,An),ui=Math.min(yn,Yn),Ii=Math.max(yn,Yn),wi=Math.min(ae.line,Gr.line),aa=Math.min(a.lastLine(),Math.max(ae.line,Gr.line));wi<=aa;wi++){var qi=Ut(Be,wi).text,_i=ot(qi,ui,An);ui==Ii?cn.push(new ii(Rt(wi,_i),Rt(wi,_i))):qi.length>_i&&cn.push(new ii(Rt(wi,_i),Rt(wi,ot(qi,Ii,An))))}cn.length||cn.push(new ii(ae,ae)),Hi(Be,ya(a,ut.ranges.slice(0,at).concat(cn),at),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Gr)}else{var ea=Qe,Ui=Ml(a,Gr,ne.unit),Pi=ea.anchor,Di;rr(Ui.anchor,Pi)>0?(Di=Ui.head,Pi=Lt(ea.from(),Ui.anchor)):(Di=Ui.anchor,Pi=ir(ea.to(),Ui.head));var Si=ut.ranges.slice(0);Si[at]=Uu(a,new ii(nr(Be,Pi),Di)),Hi(Be,ya(a,Si,at),$e)}}var Zt=pe.wrapper.getBoundingClientRect(),cr=0;function Sr(Gr){var cn=++cr,An=wa(a,Gr,!0,ne.unit=="rectangle");if(An)if(rr(An,Tt)!=0){a.curOp.focus=Ae(),Kt(An);var yn=Da(pe,Be);(An.line>=yn.to||An.line<yn.from)&&setTimeout(Mi(a,function(){cr==cn&&Sr(Gr)}),150)}else{var Yn=Gr.clientY<Zt.top?-20:Gr.clientY>Zt.bottom?20:0;Yn&&setTimeout(Mi(a,function(){cr==cn&&(pe.scroller.scrollTop+=Yn,Sr(Gr))}),50)}}function Mr(Gr){a.state.selectingText=!1,cr=1/0,Gr&&(Ht(Gr),pe.input.focus()),Ct(pe.wrapper.ownerDocument,"mousemove",zr),Ct(pe.wrapper.ownerDocument,"mouseup",en),Be.history.lastSelOrigin=null}var zr=Mi(a,function(Gr){Gr.buttons===0||!Ir(Gr)?Mr(Gr):Sr(Gr)}),en=Mi(a,Mr);a.state.selectingText=en,yt(pe.wrapper.ownerDocument,"mousemove",zr),yt(pe.wrapper.ownerDocument,"mouseup",en)}function Uu(a,b){var ae=b.anchor,ne=b.head,pe=Ut(a.doc,ae.line);if(rr(ae,ne)==0&&ae.sticky==ne.sticky)return b;var Be=St(pe);if(!Be)return b;var Qe=lt(Be,ae.ch,ae.sticky),at=Be[Qe];if(at.from!=ae.ch&&at.to!=ae.ch)return b;var ut=Qe+(at.from==ae.ch==(at.level!=1)?0:1);if(ut==0||ut==Be.length)return b;var ft;if(ne.line!=ae.line)ft=(ne.line-ae.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var bt=lt(Be,ne.ch,ne.sticky),Tt=bt-Qe||(ne.ch-ae.ch)*(at.level==1?-1:1);bt==ut-1||bt==ut?ft=Tt<0:ft=Tt>0}var Kt=Be[ut+(ft?-1:0)],Zt=ft==(Kt.level==1),cr=Zt?Kt.from:Kt.to,Sr=Zt?"after":"before";return ae.ch==cr&&ae.sticky==Sr?b:new ii(new Rt(ae.line,cr,Sr),ne)}function Nl(a,b,ae,ne){var pe,Be;if(b.touches)pe=b.touches[0].clientX,Be=b.touches[0].clientY;else try{pe=b.clientX,Be=b.clientY}catch(Kt){return!1}if(pe>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;ne&&Ht(b);var Qe=a.display,at=Qe.lineDiv.getBoundingClientRect();if(Be>at.bottom||!At(a,ae))return $t(b);Be-=at.top-Qe.viewOffset;for(var ut=0;ut<a.display.gutterSpecs.length;++ut){var ft=Qe.gutters.childNodes[ut];if(ft&&ft.getBoundingClientRect().right>=pe){var bt=kt(a.doc,Be),Tt=a.display.gutterSpecs[ut];return wt(a,ae,a,bt,Tt.className,b),$t(b)}}}function Ms(a,b){return Nl(a,b,"gutterClick",!0)}function Il(a,b){ci(a.display,b)||Zu(a,b)||pt(a,b,"contextmenu")||Ce||a.display.input.onContextMenu(b)}function Zu(a,b){return At(a,"gutterContextMenu")?Nl(a,b,"gutterContextMenu",!1):!1}function Ll(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ca(a)}var bo={toString:function(){return"CodeMirror.Init"}},Bl={},ps={};function Hu(a){var b=a.optionHandlers;function ae(ne,pe,Be,Qe){a.defaults[ne]=pe,Be&&(b[ne]=Qe?function(at,ut,ft){ft!=bo&&Be(at,ut,ft)}:Be)}a.defineOption=ae,a.Init=bo,ae("value","",function(ne,pe){return ne.setValue(pe)},!0),ae("mode",null,function(ne,pe){ne.doc.modeOption=pe,Cs(ne)},!0),ae("indentUnit",2,Cs,!0),ae("indentWithTabs",!1),ae("smartIndent",!0),ae("tabSize",4,function(ne){Lo(ne),Ca(ne),Wi(ne)},!0),ae("lineSeparator",null,function(ne,pe){if(ne.doc.lineSep=pe,!!pe){var Be=[],Qe=ne.doc.first;ne.doc.iter(function(ut){for(var ft=0;;){var bt=ut.text.indexOf(pe,ft);if(bt==-1)break;ft=bt+pe.length,Be.push(Rt(Qe,bt))}Qe++});for(var at=Be.length-1;at>=0;at--)mo(ne.doc,pe,Be[at],Rt(Be[at].line,Be[at].ch+pe.length))}}),ae("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ne,pe,Be){ne.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Be!=bo&&ne.refresh()}),ae("specialCharPlaceholder",Dn,function(ne){return ne.refresh()},!0),ae("electricChars",!0),ae("inputStyle",ce?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ae("spellcheck",!1,function(ne,pe){return ne.getInputField().spellcheck=pe},!0),ae("autocorrect",!1,function(ne,pe){return ne.getInputField().autocorrect=pe},!0),ae("autocapitalize",!1,function(ne,pe){return ne.getInputField().autocapitalize=pe},!0),ae("rtlMoveVisually",!be),ae("wholeLineUpdateBefore",!0),ae("theme","default",function(ne){Ll(ne),Io(ne)},!0),ae("keyMap","default",function(ne,pe,Be){var Qe=ds(pe),at=Be!=bo&&ds(Be);at&&at.detach&&at.detach(ne,Qe),Qe.attach&&Qe.attach(ne,at||null)}),ae("extraKeys",null),ae("configureMouse",null),ae("lineWrapping",!1,Gu,!0),ae("gutters",[],function(ne,pe){ne.display.gutterSpecs=Ss(pe,ne.options.lineNumbers),Io(ne)},!0),ae("fixedGutter",!0,function(ne,pe){ne.display.gutters.style.left=pe?$a(ne.display)+"px":"0",ne.refresh()},!0),ae("coverGutterNextToScrollbar",!1,function(ne){return Ri(ne)},!0),ae("scrollbarStyle","native",function(ne){xa(ne),Ri(ne),ne.display.scrollbars.setScrollTop(ne.doc.scrollTop),ne.display.scrollbars.setScrollLeft(ne.doc.scrollLeft)},!0),ae("lineNumbers",!1,function(ne,pe){ne.display.gutterSpecs=Ss(ne.options.gutters,pe),Io(ne)},!0),ae("firstLineNumber",1,Io,!0),ae("lineNumberFormatter",function(ne){return ne},Io,!0),ae("showCursorWhenSelecting",!1,Wa,!0),ae("resetSelectionOnContextMenu",!0),ae("lineWiseCopyCut",!0),ae("pasteLinesPerSelection",!0),ae("selectionsMayTouch",!1),ae("readOnly",!1,function(ne,pe){pe=="nocursor"&&(Ua(ne),ne.display.input.blur()),ne.display.input.readOnlyChanged(pe)}),ae("screenReaderLabel",null,function(ne,pe){pe=pe===""?null:pe,ne.display.input.screenReaderLabelChanged(pe)}),ae("disableInput",!1,function(ne,pe){pe||ne.display.input.reset()},!0),ae("dragDrop",!0,zu),ae("allowDropFileTypes",null),ae("cursorBlinkRate",530),ae("cursorScrollMargin",0),ae("cursorHeight",1,Wa,!0),ae("singleCursorHeightPerLine",!0,Wa,!0),ae("workTime",100),ae("workDelay",100),ae("flattenSpans",!0,Lo,!0),ae("addModeClass",!1,Lo,!0),ae("pollInterval",100),ae("undoDepth",200,function(ne,pe){return ne.doc.history.undoDepth=pe}),ae("historyEventDelay",1250),ae("viewportMargin",10,function(ne){return ne.refresh()},!0),ae("maxHighlightLength",1e4,Lo,!0),ae("moveInputWithCursor",!0,function(ne,pe){pe||ne.display.input.resetPosition()}),ae("tabindex",null,function(ne,pe){return ne.display.input.getField().tabIndex=pe||""}),ae("autofocus",null),ae("direction","ltr",function(ne,pe){return ne.doc.setDirection(pe)},!0),ae("phrases",null)}function zu(a,b,ae){var ne=ae&&ae!=bo;if(!b!=!ne){var pe=a.display.dragFunctions,Be=b?yt:Ct;Be(a.display.scroller,"dragstart",pe.start),Be(a.display.scroller,"dragenter",pe.enter),Be(a.display.scroller,"dragover",pe.over),Be(a.display.scroller,"dragleave",pe.leave),Be(a.display.scroller,"drop",pe.drop)}}function Gu(a){a.options.lineWrapping?(je(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Me(a.display.wrapper,"CodeMirror-wrap"),Qr(a)),Co(a),Wi(a),Ca(a),setTimeout(function(){return Ri(a)},100)}function gi(a,b){var ae=this;if(!(this instanceof gi))return new gi(a,b);this.options=b=b?it(b):{},it(Bl,b,!1);var ne=b.value;typeof ne=="string"?ne=new $i(ne,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ne.modeOption=b.mode),this.doc=ne;var pe=new gi.inputStyles[b.inputStyle](this),Be=this.display=new iu(a,ne,pe,b);Be.wrapper.CodeMirror=this,Ll(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&&!ce&&Be.input.focus(),xe&&x<11&&setTimeout(function(){return ae.display.input.reset(!0)},20),Ku(this),Eu(),fa(this),this.curOp.forceUpdate=!0,Ys(this,ne),b.autofocus&&!ce||this.hasFocus()?setTimeout(function(){ae.hasFocus()&&!ae.state.focused&&Do(ae)},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 at=0;at<Ns.length;++at)Ns[at](this);ga(this),z&&b.lineWrapping&&getComputedStyle(Be.lineDiv).textRendering=="optimizelegibility"&&(Be.lineDiv.style.textRendering="auto")}gi.defaults=Bl,gi.optionHandlers=ps;function Ku(a){var b=a.display;yt(b.scroller,"mousedown",Mi(a,Rl)),xe&&x<11?yt(b.scroller,"dblclick",Mi(a,function(ut){if(!pt(a,ut)){var ft=wa(a,ut);if(!(!ft||Ms(a,ut)||ci(a.display,ut))){Ht(ut);var bt=a.findWordAt(ft);ss(a.doc,bt.anchor,bt.head)}}})):yt(b.scroller,"dblclick",function(ut){return pt(a,ut)||Ht(ut)}),yt(b.scroller,"contextmenu",function(ut){return Il(a,ut)}),yt(b.input.getField(),"contextmenu",function(ut){b.scroller.contains(ut.target)||Il(a,ut)});var ae,ne={end:0};function pe(){b.activeTouch&&(ae=setTimeout(function(){return b.activeTouch=null},1e3),ne=b.activeTouch,ne.end=+new Date)}function Be(ut){if(ut.touches.length!=1)return!1;var ft=ut.touches[0];return ft.radiusX<=1&&ft.radiusY<=1}function Qe(ut,ft){if(ft.left==null)return!0;var bt=ft.left-ut.left,Tt=ft.top-ut.top;return bt*bt+Tt*Tt>20*20}yt(b.scroller,"touchstart",function(ut){if(!pt(a,ut)&&!Be(ut)&&!Ms(a,ut)){b.input.ensurePolled(),clearTimeout(ae);var ft=+new Date;b.activeTouch={start:ft,moved:!1,prev:ft-ne.end<=300?ne:null},ut.touches.length==1&&(b.activeTouch.left=ut.touches[0].pageX,b.activeTouch.top=ut.touches[0].pageY)}}),yt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),yt(b.scroller,"touchend",function(ut){var ft=b.activeTouch;if(ft&&!ci(b,ut)&&ft.left!=null&&!ft.moved&&new Date-ft.start<300){var bt=a.coordsChar(b.activeTouch,"page"),Tt;!ft.prev||Qe(ft,ft.prev)?Tt=new ii(bt,bt):!ft.prev.prev||Qe(ft,ft.prev.prev)?Tt=a.findWordAt(bt):Tt=new ii(Rt(bt.line,0),nr(a.doc,Rt(bt.line+1,0))),a.setSelection(Tt.anchor,Tt.head),a.focus(),Ht(ut)}pe()}),yt(b.scroller,"touchcancel",pe),yt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Oa(a,b.scroller.scrollTop),Pa(a,b.scroller.scrollLeft,!0),wt(a,"scroll",a))}),yt(b.scroller,"mousewheel",function(ut){return Gs(a,ut)}),yt(b.scroller,"DOMMouseScroll",function(ut){return Gs(a,ut)}),yt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(ut){pt(a,ut)||Ar(ut)},over:function(ut){pt(a,ut)||(Su(a,ut),Ar(ut))},start:function(ut){return xu(a,ut)},drop:Mi(a,wu),leave:function(ut){pt(a,ut)||wl(a)}};var at=b.input.getField();yt(at,"keyup",function(ut){return Ol.call(a,ut)}),yt(at,"keydown",Mi(a,jl)),yt(at,"keypress",Mi(a,Pl)),yt(at,"focus",function(ut){return Do(a,ut)}),yt(at,"blur",function(ut){return Ua(a,ut)})}var Ns=[];gi.defineInitHook=function(a){return Ns.push(a)};function Jo(a,b,ae,ne){var pe=a.doc,Be;ae==null&&(ae="add"),ae=="smart"&&(pe.mode.indent?Be=Cn(a,b).state:ae="prev");var Qe=a.options.tabSize,at=Ut(pe,b),ut=Ie(at.text,null,Qe);at.stateAfter&&(at.stateAfter=null);var ft=at.text.match(/^\s*/)[0],bt;if(!ne&&!/\S/.test(at.text))bt=0,ae="not";else if(ae=="smart"&&(bt=pe.mode.indent(Be,at.text.slice(ft.length),at.text),bt==et||bt>150)){if(!ne)return;ae="prev"}ae=="prev"?b>pe.first?bt=Ie(Ut(pe,b-1).text,null,Qe):bt=0:ae=="add"?bt=ut+a.options.indentUnit:ae=="subtract"?bt=ut-a.options.indentUnit:typeof ae=="number"&&(bt=ut+ae),bt=Math.max(0,bt);var Tt="",Kt=0;if(a.options.indentWithTabs)for(var Zt=Math.floor(bt/Qe);Zt;--Zt)Kt+=Qe,Tt+=" ";if(Kt<bt&&(Tt+=ct(bt-Kt)),Tt!=ft)return mo(pe,Tt,Rt(b,0),Rt(b,ft.length),"+input"),at.stateAfter=null,!0;for(var cr=0;cr<pe.sel.ranges.length;cr++){var Sr=pe.sel.ranges[cr];if(Sr.head.line==b&&Sr.head.ch<ft.length){var Mr=Rt(b,ft.length);_s(pe,cr,new ii(Mr,Mr));break}}}var ba=null;function ms(a){ba=a}function Is(a,b,ae,ne,pe){var Be=a.doc;a.display.shift=!1,ne||(ne=Be.sel);var Qe=+new Date-200,at=pe=="paste"||a.state.pasteIncoming>Qe,ut=fn(b),ft=null;if(at&&ne.ranges.length>1)if(ba&&ba.text.join(`
`)==b){if(ne.ranges.length%ba.text.length==0){ft=[];for(var bt=0;bt<ba.text.length;bt++)ft.push(Be.splitLines(ba.text[bt]))}}else ut.length==ne.ranges.length&&a.options.pasteLinesPerSelection&&(ft=Ye(ut,function(zr){return[zr]}));for(var Tt=a.curOp.updateInput,Kt=ne.ranges.length-1;Kt>=0;Kt--){var Zt=ne.ranges[Kt],cr=Zt.from(),Sr=Zt.to();Zt.empty()&&(ae&&ae>0?cr=Rt(cr.line,cr.ch-ae):a.state.overwrite&&!at?Sr=Rt(Sr.line,Math.min(Ut(Be,Sr.line).text.length,Sr.ch+st(ut).length)):at&&ba&&ba.lineWise&&ba.text.join(`
`)==ut.join(`
`)&&(cr=Sr=Rt(cr.line,0)));var Mr={from:cr,to:Sr,text:ft?ft[Kt%ft.length]:ut,origin:pe||(at?"paste":a.state.cutIncoming>Qe?"cut":"+input")};po(a.doc,Mr),ri(a,"inputRead",a,Mr)}b&&!at&&Wl(a,b),ja(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Tt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Fl(a,b){var ae=a.clipboardData&&a.clipboardData.getData("Text");if(ae)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&ia(b,function(){return Is(b,ae,0,null,"paste")}),!0}function Wl(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ae=a.doc.sel,ne=ae.ranges.length-1;ne>=0;ne--){var pe=ae.ranges[ne];if(!(pe.head.ch>100||ne&&ae.ranges[ne-1].head.line==pe.head.line)){var Be=a.getModeAt(pe.head),Qe=!1;if(Be.electricChars){for(var at=0;at<Be.electricChars.length;at++)if(b.indexOf(Be.electricChars.charAt(at))>-1){Qe=Jo(a,pe.head.line,"smart");break}}else Be.electricInput&&Be.electricInput.test(Ut(a.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Qe=Jo(a,pe.head.line,"smart"));Qe&&ri(a,"electricInput",a,pe.head.line)}}}function Ul(a){for(var b=[],ae=[],ne=0;ne<a.doc.sel.ranges.length;ne++){var pe=a.doc.sel.ranges[ne].head.line,Be={anchor:Rt(pe,0),head:Rt(pe+1,0)};ae.push(Be),b.push(a.getRange(Be.anchor,Be.head))}return{text:b,ranges:ae}}function Zl(a,b,ae,ne){a.setAttribute("autocorrect",ae?"":"off"),a.setAttribute("autocapitalize",ne?"":"off"),a.setAttribute("spellcheck",!!b)}function Hl(){var a=ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=ye("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,ae=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ne,pe){var Be=this.options,Qe=Be[ne];Be[ne]==pe&&ne!="mode"||(Be[ne]=pe,b.hasOwnProperty(ne)&&Mi(this,b[ne])(this,pe,Qe),wt(this,"optionChange",this,ne))},getOption:function(ne){return this.options[ne]},getDoc:function(){return this.doc},addKeyMap:function(ne,pe){this.state.keyMaps[pe?"push":"unshift"](ds(ne))},removeKeyMap:function(ne){for(var pe=this.state.keyMaps,Be=0;Be<pe.length;++Be)if(pe[Be]==ne||pe[Be].name==ne)return pe.splice(Be,1),!0},addOverlay:Vi(function(ne,pe){var Be=ne.token?ne:a.getMode(this.options,ne);if(Be.startState)throw new Error("Overlays may not be stateful.");Le(this.state.overlays,{mode:Be,modeSpec:ne,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(Qe){return Qe.priority}),this.state.modeGen++,Wi(this)}),removeOverlay:Vi(function(ne){for(var pe=this.state.overlays,Be=0;Be<pe.length;++Be){var Qe=pe[Be].modeSpec;if(Qe==ne||typeof ne=="string"&&Qe.name==ne){pe.splice(Be,1),this.state.modeGen++,Wi(this);return}}}),indentLine:Vi(function(ne,pe,Be){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),fr(this.doc,ne)&&Jo(this,ne,pe,Be)}),indentSelection:Vi(function(ne){for(var pe=this.doc.sel.ranges,Be=-1,Qe=0;Qe<pe.length;Qe++){var at=pe[Qe];if(at.empty())at.head.line>Be&&(Jo(this,at.head.line,ne,!0),Be=at.head.line,Qe==this.doc.sel.primIndex&&ja(this));else{var ut=at.from(),ft=at.to(),bt=Math.max(Be,ut.line);Be=Math.min(this.lastLine(),ft.line-(ft.ch?0:1))+1;for(var Tt=bt;Tt<Be;++Tt)Jo(this,Tt,ne);var Kt=this.doc.sel.ranges;ut.ch==0&&pe.length==Kt.length&&Kt[Qe].from().ch>0&&_s(this.doc,Qe,new ii(ut,Kt[Qe].to()),Ke)}}}),getTokenAt:function(ne,pe){return zn(this,ne,pe)},getLineTokens:function(ne,pe){return zn(this,Rt(ne),pe,!0)},getTokenTypeAt:function(ne){ne=nr(this.doc,ne);var pe=un(this,Ut(this.doc,ne.line)),Be=0,Qe=(pe.length-1)/2,at=ne.ch,ut;if(at==0)ut=pe[2];else for(;;){var ft=Be+Qe>>1;if((ft?pe[ft*2-1]:0)>=at)Qe=ft;else if(pe[ft*2+1]<at)Be=ft+1;else{ut=pe[ft*2+2];break}}var bt=ut?ut.indexOf("overlay "):-1;return bt<0?ut:bt==0?null:ut.slice(0,bt-1)},getModeAt:function(ne){var pe=this.doc.mode;return pe.innerMode?a.innerMode(pe,this.getTokenAt(ne).state).mode:pe},getHelper:function(ne,pe){return this.getHelpers(ne,pe)[0]},getHelpers:function(ne,pe){var Be=[];if(!ae.hasOwnProperty(pe))return Be;var Qe=ae[pe],at=this.getModeAt(ne);if(typeof at[pe]=="string")Qe[at[pe]]&&Be.push(Qe[at[pe]]);else if(at[pe])for(var ut=0;ut<at[pe].length;ut++){var ft=Qe[at[pe][ut]];ft&&Be.push(ft)}else at.helperType&&Qe[at.helperType]?Be.push(Qe[at.helperType]):Qe[at.name]&&Be.push(Qe[at.name]);for(var bt=0;bt<Qe._global.length;bt++){var Tt=Qe._global[bt];Tt.pred(at,this)&&tt(Be,Tt.val)==-1&&Be.push(Tt.val)}return Be},getStateAfter:function(ne,pe){var Be=this.doc;return ne=br(Be,ne==null?Be.first+Be.size-1:ne),Cn(this,ne+1,pe).state},cursorCoords:function(ne,pe){var Be,Qe=this.doc.sel.primary();return ne==null?Be=Qe.head:typeof ne=="object"?Be=nr(this.doc,ne):Be=ne?Qe.from():Qe.to(),di(this,Be,pe||"page")},charCoords:function(ne,pe){return Fi(this,nr(this.doc,ne),pe||"page")},coordsChar:function(ne,pe){return ne=Ta(this,ne,pe||"page"),vi(this,ne.left,ne.top)},lineAtHeight:function(ne,pe){return ne=Ta(this,{top:ne,left:0},pe||"page").top,kt(this.doc,ne+this.display.viewOffset)},heightAtLine:function(ne,pe,Be){var Qe=!1,at;if(typeof ne=="number"){var ut=this.doc.first+this.doc.size-1;ne<this.doc.first?ne=this.doc.first:ne>ut&&(ne=ut,Qe=!0),at=Ut(this.doc,ne)}else at=ne;return ka(this,at,{top:0,left:0},pe||"page",Be||Qe).top+(Qe?this.doc.height-Br(at):0)},defaultTextHeight:function(){return ji(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ne,pe,Be,Qe,at){var ut=this.display;ne=di(this,nr(this.doc,ne));var ft=ne.bottom,bt=ne.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),ut.sizer.appendChild(pe),Qe=="over")ft=ne.top;else if(Qe=="above"||Qe=="near"){var Tt=Math.max(ut.wrapper.clientHeight,this.doc.height),Kt=Math.max(ut.sizer.clientWidth,ut.lineSpace.clientWidth);(Qe=="above"||ne.bottom+pe.offsetHeight>Tt)&&ne.top>pe.offsetHeight?ft=ne.top-pe.offsetHeight:ne.bottom+pe.offsetHeight<=Tt&&(ft=ne.bottom),bt+pe.offsetWidth>Kt&&(bt=Kt-pe.offsetWidth)}pe.style.top=ft+"px",pe.style.left=pe.style.right="",at=="right"?(bt=ut.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(at=="left"?bt=0:at=="middle"&&(bt=(ut.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=bt+"px"),Be&&ts(this,{left:bt,top:ft,right:bt+pe.offsetWidth,bottom:ft+pe.offsetHeight})},triggerOnKeyDown:Vi(jl),triggerOnKeyPress:Vi(Pl),triggerOnKeyUp:Ol,triggerOnMouseDown:Vi(Rl),execCommand:function(ne){if(Ko.hasOwnProperty(ne))return Ko[ne].call(null,this)},triggerElectric:Vi(function(ne){Wl(this,ne)}),findPosH:function(ne,pe,Be,Qe){var at=1;pe<0&&(at=-1,pe=-pe);for(var ut=nr(this.doc,ne),ft=0;ft<pe&&(ut=Ls(this.doc,ut,at,Be,Qe),!ut.hitSide);++ft);return ut},moveH:Vi(function(ne,pe){var Be=this;this.extendSelectionsBy(function(Qe){return Be.display.shift||Be.doc.extend||Qe.empty()?Ls(Be.doc,Qe.head,ne,pe,Be.options.rtlMoveVisually):ne<0?Qe.from():Qe.to()},Ge)}),deleteH:Vi(function(ne,pe){var Be=this.doc.sel,Qe=this.doc;Be.somethingSelected()?Qe.replaceSelection("",null,"+delete"):yo(this,function(at){var ut=Ls(Qe,at.head,ne,pe,!1);return ne<0?{from:ut,to:at.head}:{from:at.head,to:ut}})}),findPosV:function(ne,pe,Be,Qe){var at=1,ut=Qe;pe<0&&(at=-1,pe=-pe);for(var ft=nr(this.doc,ne),bt=0;bt<pe;++bt){var Tt=di(this,ft,"div");if(ut==null?ut=Tt.left:Tt.left=ut,ft=zl(this,Tt,at,Be),ft.hitSide)break}return ft},moveV:Vi(function(ne,pe){var Be=this,Qe=this.doc,at=[],ut=!this.display.shift&&!Qe.extend&&Qe.sel.somethingSelected();if(Qe.extendSelectionsBy(function(bt){if(ut)return ne<0?bt.from():bt.to();var Tt=di(Be,bt.head,"div");bt.goalColumn!=null&&(Tt.left=bt.goalColumn),at.push(Tt.left);var Kt=zl(Be,Tt,ne,pe);return pe=="page"&&bt==Qe.sel.primary()&&co(Be,Fi(Be,Kt,"div").top-Tt.top),Kt},Ge),at.length)for(var ft=0;ft<Qe.sel.ranges.length;ft++)Qe.sel.ranges[ft].goalColumn=at[ft]}),findWordAt:function(ne){var pe=this.doc,Be=Ut(pe,ne.line).text,Qe=ne.ch,at=ne.ch;if(Be){var ut=this.getHelper(ne,"wordChars");(ne.sticky=="before"||at==Be.length)&&Qe?--Qe:++at;for(var ft=Be.charAt(Qe),bt=Fe(ft,ut)?function(Tt){return Fe(Tt,ut)}:/\s/.test(ft)?function(Tt){return/\s/.test(Tt)}:function(Tt){return!/\s/.test(Tt)&&!Fe(Tt)};Qe>0&&bt(Be.charAt(Qe-1));)--Qe;for(;at<Be.length&&bt(Be.charAt(at));)++at}return new ii(Rt(ne.line,Qe),Rt(ne.line,at))},toggleOverwrite:function(ne){ne!=null&&ne==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):Me(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Vi(function(ne,pe){qa(this,ne,pe)}),getScrollInfo:function(){var ne=this.display.scroller;return{left:ne.scrollLeft,top:ne.scrollTop,height:ne.scrollHeight-ni(this)-this.display.barHeight,width:ne.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Ki(this),clientWidth:sa(this)}},scrollIntoView:Vi(function(ne,pe){ne==null?(ne={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof ne=="number"?ne={from:Rt(ne,0),to:null}:ne.from==null&&(ne={from:ne,to:null}),ne.to||(ne.to=ne.from),ne.margin=pe||0,ne.from.line!=null?rs(this,ne):Ro(this,ne.from,ne.to,ne.margin)}),setSize:Vi(function(ne,pe){var Be=this,Qe=function(ut){return typeof ut=="number"||/^\d+$/.test(String(ut))?ut+"px":ut};ne!=null&&(this.display.wrapper.style.width=Qe(ne)),pe!=null&&(this.display.wrapper.style.height=Qe(pe)),this.options.lineWrapping&&Ba(this);var at=this.display.viewFrom;this.doc.iter(at,this.display.viewTo,function(ut){if(ut.widgets){for(var ft=0;ft<ut.widgets.length;ft++)if(ut.widgets[ft].noHScroll){ca(Be,at,"widget");break}}++at}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(ne){return ia(this,ne)},startOperation:function(){return fa(this)},endOperation:function(){return ga(this)},refresh:Vi(function(){var ne=this.display.cachedTextHeight;Wi(this),this.curOp.forceUpdate=!0,Ca(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(ne==null||Math.abs(ne-ji(this.display))>.5||this.options.lineWrapping)&&Co(this),wt(this,"refresh",this)}),swapDoc:Vi(function(ne){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),Ys(this,ne),Ca(this),this.display.input.reset(),qa(this,ne.scrollLeft,ne.scrollTop),this.curOp.forceScroll=!0,ri(this,"swapDoc",this,pe),pe}),phrase:function(ne){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,ne)?pe[ne]:ne},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Nt(a),a.registerHelper=function(ne,pe,Be){ae.hasOwnProperty(ne)||(ae[ne]=a[ne]={_global:[]}),ae[ne][pe]=Be},a.registerGlobalHelper=function(ne,pe,Be,Qe){a.registerHelper(ne,pe,Qe),ae[ne]._global.push({pred:Be,val:Qe})}}function Ls(a,b,ae,ne,pe){var Be=b,Qe=ae,at=Ut(a,b.line),ut=pe&&a.direction=="rtl"?-ae:ae;function ft(){var en=b.line+ut;return en<a.first||en>=a.first+a.size?!1:(b=new Rt(en,b.ch,b.sticky),at=Ut(a,en))}function bt(en){var Gr;if(ne=="codepoint"){var cn=at.text.charCodeAt(b.ch+(ne>0?0:-1));isNaN(cn)?Gr=null:Gr=new Rt(b.line,Math.max(0,Math.min(at.text.length,b.ch+ae*(cn>=55296&&cn<56320?2:1))),-ae)}else pe?Gr=_u(a.cm,at,b,ae):Gr=js(at,b,ae);if(Gr==null)if(!en&&ft())b=Os(pe,a.cm,at,b.line,ut);else return!1;else b=Gr;return!0}if(ne=="char"||ne=="codepoint")bt();else if(ne=="column")bt(!0);else if(ne=="word"||ne=="group")for(var Tt=null,Kt=ne=="group",Zt=a.cm&&a.cm.getHelper(b,"wordChars"),cr=!0;!(ae<0&&!bt(!cr));cr=!1){var Sr=at.text.charAt(b.ch)||`
`,Mr=Fe(Sr,Zt)?"w":Kt&&Sr==`
`?"n":!Kt||/\s/.test(Sr)?null:"p";if(Kt&&!cr&&!Mr&&(Mr="s"),Tt&&Tt!=Mr){ae<0&&(ae=1,bt(),b.sticky="after");break}if(Mr&&(Tt=Mr),ae>0&&!bt(!cr))break}var zr=us(a,b,Be,Qe,!0);return mr(Be,zr)&&(zr.hitSide=!0),zr}function zl(a,b,ae,ne){var pe=a.doc,Be=b.left,Qe;if(ne=="page"){var at=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ut=Math.max(at-.5*ji(a.display),3);Qe=(ae>0?b.bottom:b.top)+ae*ut}else ne=="line"&&(Qe=ae>0?b.bottom+3:b.top-3);for(var ft;ft=vi(a,Be,Qe),!!ft.outside;){if(ae<0?Qe<=0:Qe>=pe.height){ft.hitSide=!0;break}Qe+=ae*5}return ft}var si=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};si.prototype.init=function(a){var b=this,ae=this,ne=ae.cm,pe=ae.div=a.lineDiv;Zl(pe,ne.options.spellcheck,ne.options.autocorrect,ne.options.autocapitalize);function Be(at){for(var ut=at.target;ut;ut=ut.parentNode){if(ut==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ut.className))break}return!1}yt(pe,"paste",function(at){!Be(at)||pt(ne,at)||Fl(at,ne)||x<=11&&setTimeout(Mi(ne,function(){return b.updateFromDOM()}),20)}),yt(pe,"compositionstart",function(at){b.composing={data:at.data,done:!1}}),yt(pe,"compositionupdate",function(at){b.composing||(b.composing={data:at.data,done:!1})}),yt(pe,"compositionend",function(at){b.composing&&(at.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),yt(pe,"touchstart",function(){return ae.forceCompositionEnd()}),yt(pe,"input",function(){b.composing||b.readFromDOMSoon()});function Qe(at){if(!(!Be(at)||pt(ne,at))){if(ne.somethingSelected())ms({lineWise:!1,text:ne.getSelections()}),at.type=="cut"&&ne.replaceSelection("",null,"cut");else if(ne.options.lineWiseCopyCut){var ut=Ul(ne);ms({lineWise:!0,text:ut.text}),at.type=="cut"&&ne.operation(function(){ne.setSelections(ut.ranges,0,Ke),ne.replaceSelection("",null,"cut")})}else return;if(at.clipboardData){at.clipboardData.clearData();var ft=ba.text.join(`
`);if(at.clipboardData.setData("Text",ft),at.clipboardData.getData("Text")==ft){at.preventDefault();return}}var bt=Hl(),Tt=bt.firstChild;ne.display.lineSpace.insertBefore(bt,ne.display.lineSpace.firstChild),Tt.value=ba.text.join(`
`);var Kt=document.activeElement;ze(Tt),setTimeout(function(){ne.display.lineSpace.removeChild(bt),Kt.focus(),Kt==pe&&ae.showPrimarySelection()},50)}}yt(pe,"copy",Qe),yt(pe,"cut",Qe)},si.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},si.prototype.prepareSelection=function(){var a=qo(this.cm,!1);return a.focus=document.activeElement==this.div,a},si.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},si.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},si.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ae=b.doc.sel.primary(),ne=ae.from(),pe=ae.to();if(b.display.viewTo==b.display.viewFrom||ne.line>=b.display.viewTo||pe.line<b.display.viewFrom){a.removeAllRanges();return}var Be=vs(b,a.anchorNode,a.anchorOffset),Qe=vs(b,a.focusNode,a.focusOffset);if(!(Be&&!Be.bad&&Qe&&!Qe.bad&&rr(Lt(Be,Qe),ne)==0&&rr(ir(Be,Qe),pe)==0)){var at=b.display.view,ut=ne.line>=b.display.viewFrom&&Gl(b,ne)||{node:at[0].measure.map[2],offset:0},ft=pe.line<b.display.viewTo&&Gl(b,pe);if(!ft){var bt=at[at.length-1].measure,Tt=bt.maps?bt.maps[bt.maps.length-1]:bt.map;ft={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!ut||!ft){a.removeAllRanges();return}var Kt=a.rangeCount&&a.getRangeAt(0),Zt;try{Zt=Oe(ut.node,ut.offset,ft.offset,ft.node)}catch(cr){}Zt&&(!He&&b.state.focused?(a.collapse(ut.node,ut.offset),Zt.collapsed||(a.removeAllRanges(),a.addRange(Zt))):(a.removeAllRanges(),a.addRange(Zt)),Kt&&a.anchorNode==null?a.addRange(Kt):He&&this.startGracePeriod()),this.rememberSelection()}},si.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)},si.prototype.showMultipleSelections=function(a){de(this.cm.display.cursorDiv,a.cursors),de(this.cm.display.selectionDiv,a.selection)},si.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},si.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Ne(this.div,b)},si.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},si.prototype.blur=function(){this.div.blur()},si.prototype.getField=function(){return this.div},si.prototype.supportsTouch=function(){return!0},si.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ia(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)},si.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},si.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(le&&se&&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 ae=vs(b,a.anchorNode,a.anchorOffset),ne=vs(b,a.focusNode,a.focusOffset);ae&&ne&&ia(b,function(){Hi(b.doc,Ha(ae,ne),Ke),(ae.bad||ne.bad)&&(b.curOp.selectionChanged=!0)})}}},si.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ae=a.doc.sel.primary(),ne=ae.from(),pe=ae.to();if(ne.ch==0&&ne.line>a.firstLine()&&(ne=Rt(ne.line-1,Ut(a.doc,ne.line-1).length)),pe.ch==Ut(a.doc,pe.line).text.length&&pe.line<a.lastLine()&&(pe=Rt(pe.line+1,0)),ne.line<b.viewFrom||pe.line>b.viewTo-1)return!1;var Be,Qe,at;ne.line==b.viewFrom||(Be=Aa(a,ne.line))==0?(Qe=Et(b.view[0].line),at=b.view[0].node):(Qe=Et(b.view[Be].line),at=b.view[Be-1].node.nextSibling);var ut=Aa(a,pe.line),ft,bt;if(ut==b.view.length-1?(ft=b.viewTo-1,bt=b.lineDiv.lastChild):(ft=Et(b.view[ut+1].line)-1,bt=b.view[ut+1].node.previousSibling),!at)return!1;for(var Tt=a.doc.splitLines(Yu(a,at,bt,Qe,ft)),Kt=Xt(a.doc,Rt(Qe,0),Rt(ft,Ut(a.doc,ft).text.length));Tt.length>1&&Kt.length>1;)if(st(Tt)==st(Kt))Tt.pop(),Kt.pop(),ft--;else if(Tt[0]==Kt[0])Tt.shift(),Kt.shift(),Qe++;else break;for(var Zt=0,cr=0,Sr=Tt[0],Mr=Kt[0],zr=Math.min(Sr.length,Mr.length);Zt<zr&&Sr.charCodeAt(Zt)==Mr.charCodeAt(Zt);)++Zt;for(var en=st(Tt),Gr=st(Kt),cn=Math.min(en.length-(Tt.length==1?Zt:0),Gr.length-(Kt.length==1?Zt:0));cr<cn&&en.charCodeAt(en.length-cr-1)==Gr.charCodeAt(Gr.length-cr-1);)++cr;if(Tt.length==1&&Kt.length==1&&Qe==ne.line)for(;Zt&&Zt>ne.ch&&en.charCodeAt(en.length-cr-1)==Gr.charCodeAt(Gr.length-cr-1);)Zt--,cr++;Tt[Tt.length-1]=en.slice(0,en.length-cr).replace(/^\u200b+/,""),Tt[0]=Tt[0].slice(Zt).replace(/\u200b+$/,"");var An=Rt(Qe,Zt),yn=Rt(ft,Kt.length?st(Kt).length-cr:0);if(Tt.length>1||Tt[0]||rr(An,yn))return mo(a.doc,Tt,An,yn,"+input"),!0},si.prototype.ensurePolled=function(){this.forceCompositionEnd()},si.prototype.reset=function(){this.forceCompositionEnd()},si.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},si.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))},si.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ia(this.cm,function(){return Wi(a.cm)})},si.prototype.setUneditable=function(a){a.contentEditable="false"},si.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,Is)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},si.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},si.prototype.onContextMenu=function(){},si.prototype.resetPosition=function(){},si.prototype.needsContentAttribute=!0;function Gl(a,b){var ae=pa(a,b.line);if(!ae||ae.hidden)return null;var ne=Ut(a.doc,b.line),pe=mi(ae,ne,b.line),Be=St(ne,a.doc.direction),Qe="left";if(Be){var at=lt(Be,b.ch);Qe=at%2?"right":"left"}var ut=no(pe.map,b.ch,Qe);return ut.offset=ut.collapse=="right"?ut.end:ut.start,ut}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,ae,ne,pe){var Be="",Qe=!1,at=a.doc.lineSeparator(),ut=!1;function ft(Zt){return function(cr){return cr.id==Zt}}function bt(){Qe&&(Be+=at,ut&&(Be+=at),Qe=ut=!1)}function Tt(Zt){Zt&&(bt(),Be+=Zt)}function Kt(Zt){if(Zt.nodeType==1){var cr=Zt.getAttribute("cm-text");if(cr){Tt(cr);return}var Sr=Zt.getAttribute("cm-marker"),Mr;if(Sr){var zr=a.findMarks(Rt(ne,0),Rt(pe+1,0),ft(+Sr));zr.length&&(Mr=zr[0].find(0))&&Tt(Xt(a.doc,Mr.from,Mr.to).join(at));return}if(Zt.getAttribute("contenteditable")=="false")return;var en=/^(pre|div|p|li|table|br)$/i.test(Zt.nodeName);if(!/^br$/i.test(Zt.nodeName)&&Zt.textContent.length==0)return;en&&bt();for(var Gr=0;Gr<Zt.childNodes.length;Gr++)Kt(Zt.childNodes[Gr]);/^(pre|p)$/i.test(Zt.nodeName)&&(ut=!0),en&&(Qe=!0)}else Zt.nodeType==3&&Tt(Zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Kt(b),b!=ae;)b=b.nextSibling,ut=!1;return Be}function vs(a,b,ae){var ne;if(b==a.display.lineDiv){if(ne=a.display.lineDiv.childNodes[ae],!ne)return wo(a.clipPos(Rt(a.display.viewTo-1)),!0);b=null,ae=0}else for(ne=b;;ne=ne.parentNode){if(!ne||ne==a.display.lineDiv)return null;if(ne.parentNode&&ne.parentNode==a.display.lineDiv)break}for(var pe=0;pe<a.display.view.length;pe++){var Be=a.display.view[pe];if(Be.node==ne)return Ju(Be,b,ae)}}function Ju(a,b,ae){var ne=a.text.firstChild,pe=!1;if(!b||!Ne(ne,b))return wo(Rt(Et(a.line),0),!0);if(b==ne&&(pe=!0,b=ne.childNodes[ae],ae=0,!b)){var Be=a.rest?st(a.rest):a.line;return wo(Rt(Et(Be),Be.text.length),pe)}var Qe=b.nodeType==3?b:null,at=b;for(!Qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(Qe=b.firstChild,ae&&(ae=Qe.nodeValue.length));at.parentNode!=ne;)at=at.parentNode;var ut=a.measure,ft=ut.maps;function bt(Mr,zr,en){for(var Gr=-1;Gr<(ft?ft.length:0);Gr++)for(var cn=Gr<0?ut.map:ft[Gr],An=0;An<cn.length;An+=3){var yn=cn[An+2];if(yn==Mr||yn==zr){var Yn=Et(Gr<0?a.line:a.rest[Gr]),ui=cn[An]+en;return(en<0||yn!=Mr)&&(ui=cn[An+(en?1:0)]),Rt(Yn,ui)}}}var Tt=bt(Qe,at,ae);if(Tt)return wo(Tt,pe);for(var Kt=at.nextSibling,Zt=Qe?Qe.nodeValue.length-ae:0;Kt;Kt=Kt.nextSibling){if(Tt=bt(Kt,Kt.firstChild,0),Tt)return wo(Rt(Tt.line,Tt.ch-Zt),pe);Zt+=Kt.textContent.length}for(var cr=at.previousSibling,Sr=ae;cr;cr=cr.previousSibling){if(Tt=bt(cr,cr.firstChild,-1),Tt)return wo(Rt(Tt.line,Tt.ch+Sr),pe);Sr+=cr.textContent.length}}var Ai=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new We,this.hasSelection=!1,this.composing=null};Ai.prototype.init=function(a){var b=this,ae=this,ne=this.cm;this.createField(a);var pe=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),re&&(pe.style.width="0px"),yt(pe,"input",function(){xe&&x>=9&&b.hasSelection&&(b.hasSelection=null),ae.poll()}),yt(pe,"paste",function(Qe){pt(ne,Qe)||Fl(Qe,ne)||(ne.state.pasteIncoming=+new Date,ae.fastPoll())});function Be(Qe){if(!pt(ne,Qe)){if(ne.somethingSelected())ms({lineWise:!1,text:ne.getSelections()});else if(ne.options.lineWiseCopyCut){var at=Ul(ne);ms({lineWise:!0,text:at.text}),Qe.type=="cut"?ne.setSelections(at.ranges,null,Ke):(ae.prevInput="",pe.value=at.text.join(`
`),ze(pe))}else return;Qe.type=="cut"&&(ne.state.cutIncoming=+new Date)}}yt(pe,"cut",Be),yt(pe,"copy",Be),yt(a.scroller,"paste",function(Qe){if(!(ci(a,Qe)||pt(ne,Qe))){if(!pe.dispatchEvent){ne.state.pasteIncoming=+new Date,ae.focus();return}var at=new Event("paste");at.clipboardData=Qe.clipboardData,pe.dispatchEvent(at)}}),yt(a.lineSpace,"selectstart",function(Qe){ci(a,Qe)||Ht(Qe)}),yt(pe,"compositionstart",function(){var Qe=ne.getCursor("from");ae.composing&&ae.composing.range.clear(),ae.composing={start:Qe,range:ne.markText(Qe,ne.getCursor("to"),{className:"CodeMirror-composing"})}}),yt(pe,"compositionend",function(){ae.composing&&(ae.poll(),ae.composing.range.clear(),ae.composing=null)})},Ai.prototype.createField=function(a){this.wrapper=Hl(),this.textarea=this.wrapper.firstChild},Ai.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ai.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ae=a.doc,ne=qo(a);if(a.options.moveInputWithCursor){var pe=di(a,ae.sel.primary().head,"div"),Be=b.wrapper.getBoundingClientRect(),Qe=b.lineDiv.getBoundingClientRect();ne.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,pe.top+Qe.top-Be.top)),ne.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,pe.left+Qe.left-Be.left))}return ne},Ai.prototype.showSelection=function(a){var b=this.cm,ae=b.display;de(ae.cursorDiv,a.cursors),de(ae.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ai.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ae=b.getSelection();this.textarea.value=ae,b.state.focused&&ze(this.textarea),xe&&x>=9&&(this.hasSelection=ae)}else a||(this.prevInput=this.textarea.value="",xe&&x>=9&&(this.hasSelection=null))}},Ai.prototype.getField=function(){return this.textarea},Ai.prototype.supportsTouch=function(){return!1},Ai.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ce||Ae()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ai.prototype.blur=function(){this.textarea.blur()},Ai.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ai.prototype.receivedFocus=function(){this.slowPoll()},Ai.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ai.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ae(){var ne=b.poll();!ne&&!a?(a=!0,b.polling.set(60,ae)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ae)},Ai.prototype.poll=function(){var a=this,b=this.cm,ae=this.textarea,ne=this.prevInput;if(this.contextMenuPending||!b.state.focused||hn(ae)&&!ne&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var pe=ae.value;if(pe==ne&&!b.somethingSelected())return!1;if(xe&&x>=9&&this.hasSelection===pe||he&&/[\uf700-\uf7ff]/.test(pe))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Be=pe.charCodeAt(0);if(Be==8203&&!ne&&(ne="\u200B"),Be==8666)return this.reset(),this.cm.execCommand("undo")}for(var Qe=0,at=Math.min(ne.length,pe.length);Qe<at&&ne.charCodeAt(Qe)==pe.charCodeAt(Qe);)++Qe;return ia(b,function(){Is(b,pe.slice(Qe),ne.length-Qe,null,a.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
`)>-1?ae.value=a.prevInput="":a.prevInput=pe,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ai.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ai.prototype.onKeyPress=function(){xe&&x>=9&&(this.hasSelection=null),this.fastPoll()},Ai.prototype.onContextMenu=function(a){var b=this,ae=b.cm,ne=ae.display,pe=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Be=wa(ae,a),Qe=ne.scroller.scrollTop;if(!Be||ee)return;var at=ae.options.resetSelectionOnContextMenu;at&&ae.doc.sel.contains(Be)==-1&&Mi(ae,Hi)(ae.doc,Ha(Be),Ke);var ut=pe.style.cssText,ft=b.wrapper.style.cssText,bt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-bt.top-5)+"px; left: "+(a.clientX-bt.left-5)+`px;
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Tt;z&&(Tt=window.scrollY),ne.input.focus(),z&&window.scrollTo(null,Tt),ne.input.reset(),ae.somethingSelected()||(pe.value=b.prevInput=" "),b.contextMenuPending=Zt,ne.selForContextMenu=ae.doc.sel,clearTimeout(ne.detectingSelectAll);function Kt(){if(pe.selectionStart!=null){var Sr=ae.somethingSelected(),Mr="\u200B"+(Sr?pe.value:"");pe.value="\u21DA",pe.value=Mr,b.prevInput=Sr?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=Mr.length,ne.selForContextMenu=ae.doc.sel}}function Zt(){if(b.contextMenuPending==Zt&&(b.contextMenuPending=!1,b.wrapper.style.cssText=ft,pe.style.cssText=ut,xe&&x<9&&ne.scrollbars.setScrollTop(ne.scroller.scrollTop=Qe),pe.selectionStart!=null)){(!xe||xe&&x<9)&&Kt();var Sr=0,Mr=function(){ne.selForContextMenu==ae.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&b.prevInput=="\u200B"?Mi(ae,ul)(ae):Sr++<10?ne.detectingSelectAll=setTimeout(Mr,500):(ne.selForContextMenu=null,ne.input.reset())};ne.detectingSelectAll=setTimeout(Mr,200)}}if(xe&&x>=9&&Kt(),Ce){Ar(a);var cr=function(){Ct(window,"mouseup",cr),setTimeout(Zt,20)};yt(window,"mouseup",cr)}else setTimeout(Zt,50)},Ai.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ai.prototype.setUneditable=function(){},Ai.prototype.needsContentAttribute=!1;function Qu(a,b){if(b=b?it(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 ae=Ae();b.autofocus=ae==a||a.getAttribute("autofocus")!=null&&ae==document.body}function ne(){a.value=at.getValue()}var pe;if(a.form&&(yt(a.form,"submit",ne),!b.leaveSubmitMethodAlone)){var Be=a.form;pe=Be.submit;try{var Qe=Be.submit=function(){ne(),Be.submit=pe,Be.submit(),Be.submit=Qe}}catch(ut){}}b.finishInit=function(ut){ut.save=ne,ut.getTextArea=function(){return a},ut.toTextArea=function(){ut.toTextArea=isNaN,ne(),a.parentNode.removeChild(ut.getWrapperElement()),a.style.display="",a.form&&(Ct(a.form,"submit",ne),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=pe))}},a.style.display="none";var at=gi(function(ut){return a.parentNode.insertBefore(ut,a.nextSibling)},b);return at}function $u(a){a.off=Ct,a.on=yt,a.wheelEventPixels=au,a.Doc=$i,a.splitLines=fn,a.countColumn=Ie,a.findColumn=ot,a.isWordChar=Re,a.Pass=et,a.signal=wt,a.Line=bn,a.changeEnd=za,a.scrollbarModel=Ra,a.Pos=Rt,a.cmpPos=rr,a.modes=jt,a.mimeModes=Mt,a.resolveMode=wr,a.getMode=vr,a.modeExtensions=Pr,a.extendMode=dr,a.copyState=Cr,a.startState=Xr,a.innerMode=Lr,a.commands=Ko,a.keyMap=Na,a.keyName=kl,a.isModifierKey=El,a.lookupKey=go,a.normalizeKeyMap=Au,a.StringStream=or,a.SharedTextMarker=Ho,a.TextMarker=Ka,a.LineWidget=Zo,a.e_preventDefault=Ht,a.e_stopPropagation=gr,a.e_stop=Ar,a.addClass=je,a.contains=Ne,a.rmClass=Me,a.keyNames=Va}Hu(gi),Vu(gi);var qu="iter insert remove copy getEditor constructor".split(" ");for(var gs in $i.prototype)$i.prototype.hasOwnProperty(gs)&&tt(qu,gs)<0&&(gi.prototype[gs]=function(a){return function(){return a.apply(this.doc,arguments)}}($i.prototype[gs]));return Nt($i),gi.inputStyles={textarea:Ai,contenteditable:si},gi.defineMode=function(a){!gi.defaults.mode&&a!="null"&&(gi.defaults.mode=a),ar.apply(this,arguments)},gi.defineMIME=Or,gi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),gi.defineMIME("text/plain","null"),gi.defineExtension=function(a,b){gi.prototype[a]=b},gi.defineDocExtension=function(a,b){$i.prototype[a]=b},gi.fromTextArea=Qu,$u(gi),gi.version="5.58.2",gi})},25419:function(lr,Gt,Xe){(function(He){He(Xe(89780),Xe(15525),Xe(98101))})(function(He){"use strict";He.defineMode("markdown",function(xt,y){var De=He.getMode(xt,"text/html"),xe=De.name=="null";function x(Ie){if(He.findModeByName){var We=He.findModeByName(Ie);We&&(Ie=We.mime||We.mimes[0])}var tt=He.getMode(xt,Ie);return tt.name=="null"?null:tt}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 oe in z)z.hasOwnProperty(oe)&&y.tokenTypeOverrides[oe]&&(z[oe]=y.tokenTypeOverrides[oe]);var se=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,fe=/^\[(x| )\](?=\s)/i,E=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ie=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,le=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ce=/^\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]/,ge=" ";function be(Ie,We,tt){return We.f=We.inline=tt,tt(Ie,We)}function me(Ie,We,tt){return We.f=We.block=tt,tt(Ie,We)}function ve(Ie){return!Ie||!/\S/.test(Ie.string)}function Ce(Ie){if(Ie.linkTitle=!1,Ie.linkHref=!1,Ie.linkText=!1,Ie.em=!1,Ie.strong=!1,Ie.strikethrough=!1,Ie.quote=0,Ie.indentedCode=!1,Ie.f==Me){var We=xe;if(!We){var tt=He.innerMode(De,Ie.htmlState);We=tt.mode.name=="xml"&&tt.state.tagStart===null&&!tt.state.context&&tt.state.tokenize.isInText}We&&(Ie.f=Se,Ie.block=Te,Ie.htmlState=null)}return Ie.trailingSpace=0,Ie.trailingSpaceNewLine=!1,Ie.prevLine=Ie.thisLine,Ie.thisLine={stream:null},null}function Te(Ie,We){var tt=Ie.column()===We.indentation,rt=ve(We.prevLine.stream),et=We.indentedCode,Ke=We.prevLine.hr,$e=We.list!==!1,Ge=(We.listStack[We.listStack.length-1]||0)+3;We.indentedCode=!1;var ot=We.indentation;if(We.indentationDiff===null&&(We.indentationDiff=We.indentation,$e)){for(We.list=null;ot<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=ot-We.listStack[We.listStack.length-1])}var Je=!rt&&!Ke&&!We.prevLine.header&&(!$e||!et)&&!We.prevLine.fencedCodeEnd,ct=(We.list===!1||Ke||rt)&&We.indentation<=Ge&&Ie.match(se),st=null;if(We.indentationDiff>=4&&(et||We.prevLine.fencedCodeEnd||We.prevLine.header||rt))return Ie.skipToEnd(),We.indentedCode=!0,z.code;if(Ie.eatSpace())return null;if(tt&&We.indentation<=Ge&&(st=Ie.match(E))&&st[1].length<=6)return We.quote=0,We.header=st[1].length,We.thisLine.header=!0,y.highlightFormatting&&(We.formatting="header"),We.f=We.inline,de(We);if(We.indentation<=Ge&&Ie.eat(">"))return We.quote=tt?1:We.quote+1,y.highlightFormatting&&(We.formatting="quote"),Ie.eatSpace(),de(We);if(!ct&&!We.setext&&tt&&We.indentation<=Ge&&(st=Ie.match(ee))){var Ye=st[1]?"ol":"ul";return We.indentation=ot+Ie.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&&Ie.match(fe,!1)&&(We.taskList=!0),We.f=We.inline,y.highlightFormatting&&(We.formatting=["list","list-"+Ye]),de(We)}else{if(tt&&We.indentation<=Ge&&(st=Ie.match(le,!0)))return We.quote=0,We.fencedEndRE=new RegExp(st[1]+"+ *$"),We.localMode=y.fencedCodeBlockHighlighting&&x(st[2]||y.fencedCodeBlockDefaultMode),We.localMode&&(We.localState=He.startState(We.localMode)),We.f=We.block=ke,y.highlightFormatting&&(We.formatting="code-block"),We.code=-1,de(We);if(We.setext||(!Je||!$e)&&!We.quote&&We.list===!1&&!We.code&&!ct&&!ce.test(Ie.string)&&(st=Ie.lookAhead(1))&&(st=st.match(ie)))return We.setext?(We.header=We.setext,We.setext=0,Ie.skipToEnd(),y.highlightFormatting&&(We.formatting="header")):(We.header=st[0].charAt(0)=="="?1:2,We.setext=We.header),We.thisLine.header=!0,We.f=We.inline,de(We);if(ct)return Ie.skipToEnd(),We.hr=!0,We.thisLine.hr=!0,z.hr;if(Ie.peek()==="[")return be(Ie,We,Ze)}return be(Ie,We,We.inline)}function Me(Ie,We){var tt=De.token(Ie,We.htmlState);if(!xe){var rt=He.innerMode(De,We.htmlState);(rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText||We.md_inside&&Ie.current().indexOf(">")>-1)&&(We.f=Se,We.block=Te,We.htmlState=null)}return tt}function ke(Ie,We){var tt=We.listStack[We.listStack.length-1]||0,rt=We.indentation<tt,et=tt+3;if(We.fencedEndRE&&We.indentation<=et&&(rt||Ie.match(We.fencedEndRE))){y.highlightFormatting&&(We.formatting="code-block");var Ke;return rt||(Ke=de(We)),We.localMode=We.localState=null,We.block=Te,We.f=Se,We.fencedEndRE=null,We.code=0,We.thisLine.fencedCodeEnd=!0,rt?me(Ie,We,We.block):Ke}else return We.localMode?We.localMode.token(Ie,We.localState):(Ie.skipToEnd(),z.code)}function de(Ie){var We=[];if(Ie.formatting){We.push(z.formatting),typeof Ie.formatting=="string"&&(Ie.formatting=[Ie.formatting]);for(var tt=0;tt<Ie.formatting.length;tt++)We.push(z.formatting+"-"+Ie.formatting[tt]),Ie.formatting[tt]==="header"&&We.push(z.formatting+"-"+Ie.formatting[tt]+"-"+Ie.header),Ie.formatting[tt]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ie.quote?We.push(z.formatting+"-"+Ie.formatting[tt]+"-"+Ie.quote):We.push("error"))}if(Ie.taskOpen)return We.push("meta"),We.length?We.join(" "):null;if(Ie.taskClosed)return We.push("property"),We.length?We.join(" "):null;if(Ie.linkHref?We.push(z.linkHref,"url"):(Ie.strong&&We.push(z.strong),Ie.em&&We.push(z.em),Ie.strikethrough&&We.push(z.strikethrough),Ie.emoji&&We.push(z.emoji),Ie.linkText&&We.push(z.linkText),Ie.code&&We.push(z.code),Ie.image&&We.push(z.image),Ie.imageAltText&&We.push(z.imageAltText,"link"),Ie.imageMarker&&We.push(z.imageMarker)),Ie.header&&We.push(z.header,z.header+"-"+Ie.header),Ie.quote&&(We.push(z.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ie.quote?We.push(z.quote+"-"+Ie.quote):We.push(z.quote+"-"+y.maxBlockquoteDepth)),Ie.list!==!1){var rt=(Ie.listStack.length-1)%3;rt?rt===1?We.push(z.list2):We.push(z.list3):We.push(z.list1)}return Ie.trailingSpaceNewLine?We.push("trailing-space-new-line"):Ie.trailingSpace&&We.push("trailing-space-"+(Ie.trailingSpace%2?"a":"b")),We.length?We.join(" "):null}function ye(Ie,We){if(Ie.match(re,!0))return de(We)}function Se(Ie,We){var tt=We.text(Ie,We);if(typeof tt!="undefined")return tt;if(We.list)return We.list=null,de(We);if(We.taskList){var rt=Ie.match(fe,!0)[1]===" ";return rt?We.taskOpen=!0:We.taskClosed=!0,y.highlightFormatting&&(We.formatting="task"),We.taskList=!1,de(We)}if(We.taskOpen=!1,We.taskClosed=!1,We.header&&Ie.match(/^#+$/,!0))return y.highlightFormatting&&(We.formatting="header"),de(We);var et=Ie.next();if(We.linkTitle){We.linkTitle=!1;var Ke=et;et==="("&&(Ke=")"),Ke=(Ke+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+Ke+"\\\\]+|\\\\\\\\|\\\\.)"+Ke;if(Ie.match(new RegExp($e),!0))return z.linkHref}if(et==="`"){var Ge=We.formatting;y.highlightFormatting&&(We.formatting="code"),Ie.eatWhile("`");var ot=Ie.current().length;if(We.code==0&&(!We.quote||ot==1))return We.code=ot,de(We);if(ot==We.code){var Je=de(We);return We.code=0,Je}else return We.formatting=Ge,de(We)}else if(We.code)return de(We);if(et==="\\"&&(Ie.next(),y.highlightFormatting)){var ct=de(We),st=z.formatting+"-escape";return ct?ct+" "+st:st}if(et==="!"&&Ie.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return We.imageMarker=!0,We.image=!0,y.highlightFormatting&&(We.formatting="image"),de(We);if(et==="["&&We.imageMarker&&Ie.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return We.imageMarker=!1,We.imageAltText=!0,y.highlightFormatting&&(We.formatting="image"),de(We);if(et==="]"&&We.imageAltText){y.highlightFormatting&&(We.formatting="image");var ct=de(We);return We.imageAltText=!1,We.image=!1,We.inline=We.f=Ne,ct}if(et==="["&&!We.image)return We.linkText&&Ie.match(/^.*?\]/)||(We.linkText=!0,y.highlightFormatting&&(We.formatting="link")),de(We);if(et==="]"&&We.linkText){y.highlightFormatting&&(We.formatting="link");var ct=de(We);return We.linkText=!1,We.inline=We.f=Ie.match(/\(.*?\)| ?\[.*?\]/,!1)?Ne:Se,ct}if(et==="<"&&Ie.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Oe,y.highlightFormatting&&(We.formatting="link");var ct=de(We);return ct?ct+=" ":ct="",ct+z.linkInline}if(et==="<"&&Ie.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Oe,y.highlightFormatting&&(We.formatting="link");var ct=de(We);return ct?ct+=" ":ct="",ct+z.linkEmail}if(y.xml&&et==="<"&&Ie.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ye=Ie.string.indexOf(">",Ie.pos);if(Ye!=-1){var Le=Ie.string.substring(Ie.start,Ye);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Le)&&(We.md_inside=!0)}return Ie.backUp(1),We.htmlState=He.startState(De),me(Ie,We,Me)}if(y.xml&&et==="<"&&Ie.match(/^\/\w*?>/))return We.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var _e=1,te=Ie.pos==1?" ":Ie.string.charAt(Ie.pos-2);_e<3&&Ie.eat(et);)_e++;var ue=Ie.peek()||" ",Re=!/\s/.test(ue)&&(!he.test(ue)||/\s/.test(te)||he.test(te)),Fe=!/\s/.test(te)&&(!he.test(te)||/\s/.test(ue)||he.test(ue)),we=null,Ee=null;if(_e%2&&(!We.em&&Re&&(et==="*"||!Fe||he.test(te))?we=!0:We.em==et&&Fe&&(et==="*"||!Re||he.test(ue))&&(we=!1)),_e>1&&(!We.strong&&Re&&(et==="*"||!Fe||he.test(te))?Ee=!0:We.strong==et&&Fe&&(et==="*"||!Re||he.test(ue))&&(Ee=!1)),Ee!=null||we!=null){y.highlightFormatting&&(We.formatting=we==null?"strong":Ee==null?"em":"strong em"),we===!0&&(We.em=et),Ee===!0&&(We.strong=et);var Je=de(We);return we===!1&&(We.em=!1),Ee===!1&&(We.strong=!1),Je}}else if(et===" "&&(Ie.eat("*")||Ie.eat("_"))){if(Ie.peek()===" ")return de(We);Ie.backUp(1)}if(y.strikethrough){if(et==="~"&&Ie.eatWhile(et)){if(We.strikethrough){y.highlightFormatting&&(We.formatting="strikethrough");var Je=de(We);return We.strikethrough=!1,Je}else if(Ie.match(/^[^\s]/,!1))return We.strikethrough=!0,y.highlightFormatting&&(We.formatting="strikethrough"),de(We)}else if(et===" "&&Ie.match(/^~~/,!0)){if(Ie.peek()===" ")return de(We);Ie.backUp(2)}}if(y.emoji&&et===":"&&Ie.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){We.emoji=!0,y.highlightFormatting&&(We.formatting="emoji");var Pe=de(We);return We.emoji=!1,Pe}return et===" "&&(Ie.match(/^ +$/,!1)?We.trailingSpace++:We.trailingSpace&&(We.trailingSpaceNewLine=!0)),de(We)}function Oe(Ie,We){var tt=Ie.next();if(tt===">"){We.f=We.inline=Se,y.highlightFormatting&&(We.formatting="link");var rt=de(We);return rt?rt+=" ":rt="",rt+z.linkInline}return Ie.match(/^[^>]+/,!0),z.linkInline}function Ne(Ie,We){if(Ie.eatSpace())return null;var tt=Ie.next();return tt==="("||tt==="["?(We.f=We.inline=je(tt==="("?")":"]"),y.highlightFormatting&&(We.formatting="link-string"),We.linkHref=!0,de(We)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function je(Ie){return function(We,tt){var rt=We.next();if(rt===Ie){tt.f=tt.inline=Se,y.highlightFormatting&&(tt.formatting="link-string");var et=de(tt);return tt.linkHref=!1,et}return We.match(Ae[Ie]),tt.linkHref=!0,de(tt)}}function Ze(Ie,We){return Ie.match(/^([^\]\\]|\\.)*\]:/,!1)?(We.f=ze,Ie.next(),y.highlightFormatting&&(We.formatting="link"),We.linkText=!0,de(We)):be(Ie,We,Se)}function ze(Ie,We){if(Ie.match(/^\]:/,!0)){We.f=We.inline=Ve,y.highlightFormatting&&(We.formatting="link");var tt=de(We);return We.linkText=!1,tt}return Ie.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function Ve(Ie,We){return Ie.eatSpace()?null:(Ie.match(/^[^\s]+/,!0),Ie.peek()===void 0?We.linkTitle=!0:Ie.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),We.f=We.inline=Se,z.linkHref+" url")}var it={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:Se,text:ye,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(Ie){return{f:Ie.f,prevLine:Ie.prevLine,thisLine:Ie.thisLine,block:Ie.block,htmlState:Ie.htmlState&&He.copyState(De,Ie.htmlState),indentation:Ie.indentation,localMode:Ie.localMode,localState:Ie.localMode?He.copyState(Ie.localMode,Ie.localState):null,inline:Ie.inline,text:Ie.text,formatting:!1,linkText:Ie.linkText,linkTitle:Ie.linkTitle,linkHref:Ie.linkHref,code:Ie.code,em:Ie.em,strong:Ie.strong,strikethrough:Ie.strikethrough,emoji:Ie.emoji,header:Ie.header,setext:Ie.setext,hr:Ie.hr,taskList:Ie.taskList,list:Ie.list,listStack:Ie.listStack.slice(0),quote:Ie.quote,indentedCode:Ie.indentedCode,trailingSpace:Ie.trailingSpace,trailingSpaceNewLine:Ie.trailingSpaceNewLine,md_inside:Ie.md_inside,fencedEndRE:Ie.fencedEndRE}},token:function(Ie,We){if(We.formatting=!1,Ie!=We.thisLine.stream){if(We.header=0,We.hr=!1,Ie.match(/^\s*$/,!0))return Ce(We),null;if(We.prevLine=We.thisLine,We.thisLine={stream:Ie},We.taskList=!1,We.trailingSpace=0,We.trailingSpaceNewLine=!1,!We.localState&&(We.f=We.block,We.f!=Me)){var tt=Ie.match(/^\s*/,!0)[0].replace(/\t/g,ge).length;if(We.indentation=tt,We.indentationDiff=null,tt>0)return null}}return We.f(Ie,We)},innerMode:function(Ie){return Ie.block==Me?{state:Ie.htmlState,mode:De}:Ie.localState?{state:Ie.localState,mode:Ie.localMode}:{state:Ie,mode:it}},indent:function(Ie,We,tt){return Ie.block==Me&&De.indent?De.indent(Ie.htmlState,We,tt):Ie.localState&&Ie.localMode.indent?Ie.localMode.indent(Ie.localState,We,tt):He.Pass},blankLine:Ce,getType:de,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),He.defineMIME("text/markdown","markdown"),He.defineMIME("text/x-markdown","markdown")})},98101:function(lr,Gt,Xe){(function(He){He(Xe(89780))})(function(He){"use strict";He.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 xt=0;xt<He.modeInfo.length;xt++){var y=He.modeInfo[xt];y.mimes&&(y.mime=y.mimes[0])}He.findModeByMIME=function(De){De=De.toLowerCase();for(var xe=0;xe<He.modeInfo.length;xe++){var x=He.modeInfo[xe];if(x.mime==De)return x;if(x.mimes){for(var z=0;z<x.mimes.length;z++)if(x.mimes[z]==De)return x}}if(/\+xml$/.test(De))return He.findModeByMIME("application/xml");if(/\+json$/.test(De))return He.findModeByMIME("application/json")},He.findModeByExtension=function(De){De=De.toLowerCase();for(var xe=0;xe<He.modeInfo.length;xe++){var x=He.modeInfo[xe];if(x.ext){for(var z=0;z<x.ext.length;z++)if(x.ext[z]==De)return x}}},He.findModeByFileName=function(De){for(var xe=0;xe<He.modeInfo.length;xe++){var x=He.modeInfo[xe];if(x.file&&x.file.test(De))return x}var z=De.lastIndexOf("."),oe=z>-1&&De.substring(z+1,De.length);if(oe)return He.findModeByExtension(oe)},He.findModeByName=function(De){De=De.toLowerCase();for(var xe=0;xe<He.modeInfo.length;xe++){var x=He.modeInfo[xe];if(x.name.toLowerCase()==De)return x;if(x.alias){for(var z=0;z<x.alias.length;z++)if(x.alias[z].toLowerCase()==De)return x}}}})},67549:function(lr,Gt,Xe){(function(He){He(Xe(89780))})(function(He){"use strict";He.defineMode("stex",function(xt,y){"use strict";function De(re,le){re.cmdState.push(le)}function xe(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function x(re){var le=re.cmdState.pop();le&&le.closeBracket()}function z(re){for(var le=re.cmdState,ce=le.length-1;ce>=0;ce--){var he=le[ce];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function oe(re,le,ce){return function(){this.name=re,this.bracketNo=0,this.style=le,this.styles=ce,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var se={};se.importmodule=oe("importmodule","tag",["string","builtin"]),se.documentclass=oe("documentclass","tag",["","atom"]),se.usepackage=oe("usepackage","tag",["atom"]),se.begin=oe("begin","tag",["atom"]),se.end=oe("end","tag",["atom"]),se.label=oe("label","tag",["atom"]),se.ref=oe("ref","tag",["atom"]),se.eqref=oe("eqref","tag",["atom"]),se.cite=oe("cite","tag",["atom"]),se.bibitem=oe("bibitem","tag",["atom"]),se.Bibitem=oe("Bibitem","tag",["atom"]),se.RBibitem=oe("RBibitem","tag",["atom"]),se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,le){re.f=le}function fe(re,le){var ce;if(re.match(/^\\[a-zA-Z@]+/)){var he=re.current().slice(1);return ce=se.hasOwnProperty(he)?se[he]:se.DEFAULT,ce=new ce,De(le,ce),ee(le,ie),ce.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(le,function(be,me){return E(be,me,"\\]")}),"keyword";if(re.match("\\("))return ee(le,function(be,me){return E(be,me,"\\)")}),"keyword";if(re.match("$$"))return ee(le,function(be,me){return E(be,me,"$$")}),"keyword";if(re.match("$"))return ee(le,function(be,me){return E(be,me,"$")}),"keyword";var ge=re.next();if(ge=="%")return re.skipToEnd(),"comment";if(ge=="}"||ge=="]"){if(ce=xe(le),ce)ce.closeBracket(ge),ee(le,ie);else return"error";return"bracket"}else return ge=="{"||ge=="["?(ce=se.DEFAULT,ce=new ce,De(le,ce),"bracket"):/\d/.test(ge)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),ce=z(le),ce.name=="begin"&&(ce.argument=re.current()),ce.styleIdentifier())}function E(re,le,ce){if(re.eatSpace())return null;if(ce&&re.match(ce))return ee(le,fe),"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 ie(re,le){var ce=re.peek(),he;return ce=="{"||ce=="["?(he=xe(le),he.openBracket(ce),re.eat(ce),ee(le,fe),"bracket"):/[ \t\r]/.test(ce)?(re.eat(ce),null):(ee(le,fe),x(le),fe(re,le))}return{startState:function(){var re=y.inMathMode?function(le,ce){return E(le,ce)}:fe;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,le){return le.f(re,le)},blankLine:function(re){re.f=fe,re.cmdState.length=0},lineComment:"%"}}),He.defineMIME("text/x-stex","stex"),He.defineMIME("text/x-latex","stex")})},15525:function(lr,Gt,Xe){(function(He){He(Xe(89780))})(function(He){"use strict";var xt={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};He.defineMode("xml",function(De,xe){var x=De.indentUnit,z={},oe=xe.htmlMode?xt:y;for(var se in oe)z[se]=oe[se];for(var se in xe)z[se]=xe[se];var ee,fe;function E(Oe,Ne){function Ae(ze){return Ne.tokenize=ze,ze(Oe,Ne)}var je=Oe.next();if(je=="<")return Oe.eat("!")?Oe.eat("[")?Oe.match("CDATA[")?Ae(le("atom","]]>")):null:Oe.match("--")?Ae(le("comment","-->")):Oe.match("DOCTYPE",!0,!0)?(Oe.eatWhile(/[\w\._\-]/),Ae(ce(1))):null:Oe.eat("?")?(Oe.eatWhile(/[\w\._\-]/),Ne.tokenize=le("meta","?>"),"meta"):(ee=Oe.eat("/")?"closeTag":"openTag",Ne.tokenize=ie,"tag bracket");if(je=="&"){var Ze;return Oe.eat("#")?Oe.eat("x")?Ze=Oe.eatWhile(/[a-fA-F\d]/)&&Oe.eat(";"):Ze=Oe.eatWhile(/[\d]/)&&Oe.eat(";"):Ze=Oe.eatWhile(/[\w\.\-:]/)&&Oe.eat(";"),Ze?"atom":"error"}else return Oe.eatWhile(/[^&<]/),null}E.isInText=!0;function ie(Oe,Ne){var Ae=Oe.next();if(Ae==">"||Ae=="/"&&Oe.eat(">"))return Ne.tokenize=E,ee=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return ee="equals",null;if(Ae=="<"){Ne.tokenize=E,Ne.state=me,Ne.tagName=Ne.tagStart=null;var je=Ne.tokenize(Oe,Ne);return je?je+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Ne.tokenize=re(Ae),Ne.stringStartCol=Oe.column(),Ne.tokenize(Oe,Ne)):(Oe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(Oe){var Ne=function(Ae,je){for(;!Ae.eol();)if(Ae.next()==Oe){je.tokenize=ie;break}return"string"};return Ne.isInAttribute=!0,Ne}function le(Oe,Ne){return function(Ae,je){for(;!Ae.eol();){if(Ae.match(Ne)){je.tokenize=E;break}Ae.next()}return Oe}}function ce(Oe){return function(Ne,Ae){for(var je;(je=Ne.next())!=null;){if(je=="<")return Ae.tokenize=ce(Oe+1),Ae.tokenize(Ne,Ae);if(je==">")if(Oe==1){Ae.tokenize=E;break}else return Ae.tokenize=ce(Oe-1),Ae.tokenize(Ne,Ae)}return"meta"}}function he(Oe,Ne,Ae){this.prev=Oe.context,this.tagName=Ne,this.indent=Oe.indented,this.startOfLine=Ae,(z.doNotIndent.hasOwnProperty(Ne)||Oe.context&&Oe.context.noIndent)&&(this.noIndent=!0)}function ge(Oe){Oe.context&&(Oe.context=Oe.context.prev)}function be(Oe,Ne){for(var Ae;;){if(!Oe.context||(Ae=Oe.context.tagName,!z.contextGrabbers.hasOwnProperty(Ae)||!z.contextGrabbers[Ae].hasOwnProperty(Ne)))return;ge(Oe)}}function me(Oe,Ne,Ae){return Oe=="openTag"?(Ae.tagStart=Ne.column(),ve):Oe=="closeTag"?Ce:me}function ve(Oe,Ne,Ae){return Oe=="word"?(Ae.tagName=Ne.current(),fe="tag",ke):z.allowMissingTagName&&Oe=="endTag"?(fe="tag bracket",ke(Oe,Ne,Ae)):(fe="error",ve)}function Ce(Oe,Ne,Ae){if(Oe=="word"){var je=Ne.current();return Ae.context&&Ae.context.tagName!=je&&z.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&ge(Ae),Ae.context&&Ae.context.tagName==je||z.matchClosing===!1?(fe="tag",Te):(fe="tag error",Me)}else return z.allowMissingTagName&&Oe=="endTag"?(fe="tag bracket",Te(Oe,Ne,Ae)):(fe="error",Me)}function Te(Oe,Ne,Ae){return Oe!="endTag"?(fe="error",Te):(ge(Ae),me)}function Me(Oe,Ne,Ae){return fe="error",Te(Oe,Ne,Ae)}function ke(Oe,Ne,Ae){if(Oe=="word")return fe="attribute",de;if(Oe=="endTag"||Oe=="selfcloseTag"){var je=Ae.tagName,Ze=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Oe=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(je)?be(Ae,je):(be(Ae,je),Ae.context=new he(Ae,je,Ze==Ae.indented)),me}return fe="error",ke}function de(Oe,Ne,Ae){return Oe=="equals"?ye:(z.allowMissing||(fe="error"),ke(Oe,Ne,Ae))}function ye(Oe,Ne,Ae){return Oe=="string"?Se:Oe=="word"&&z.allowUnquoted?(fe="string",ke):(fe="error",ke(Oe,Ne,Ae))}function Se(Oe,Ne,Ae){return Oe=="string"?Se:ke(Oe,Ne,Ae)}return{startState:function(Oe){var Ne={tokenize:E,state:me,indented:Oe||0,tagName:null,tagStart:null,context:null};return Oe!=null&&(Ne.baseIndent=Oe),Ne},token:function(Oe,Ne){if(!Ne.tagName&&Oe.sol()&&(Ne.indented=Oe.indentation()),Oe.eatSpace())return null;ee=null;var Ae=Ne.tokenize(Oe,Ne);return(Ae||ee)&&Ae!="comment"&&(fe=null,Ne.state=Ne.state(ee||Ae,Oe,Ne),fe&&(Ae=fe=="error"?Ae+" error":fe)),Ae},indent:function(Oe,Ne,Ae){var je=Oe.context;if(Oe.tokenize.isInAttribute)return Oe.tagStart==Oe.indented?Oe.stringStartCol+1:Oe.indented+x;if(je&&je.noIndent)return He.Pass;if(Oe.tokenize!=ie&&Oe.tokenize!=E)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Oe.tagName)return z.multilineTagIndentPastTag!==!1?Oe.tagStart+Oe.tagName.length+2:Oe.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(Ne))return 0;var Ze=Ne&&/^<(\/)?([\w_:\.-]*)/.exec(Ne);if(Ze&&Ze[1])for(;je;)if(je.tagName==Ze[2]){je=je.prev;break}else if(z.implicitlyClosed.hasOwnProperty(je.tagName))je=je.prev;else break;else if(Ze)for(;je;){var ze=z.contextGrabbers[je.tagName];if(ze&&ze.hasOwnProperty(Ze[2]))je=je.prev;else break}for(;je&&je.prev&&!je.startOfLine;)je=je.prev;return je?je.indent+x:Oe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Oe){Oe.state==ye&&(Oe.state=ke)},xmlCurrentTag:function(Oe){return Oe.tagName?{name:Oe.tagName,close:Oe.type=="closeTag"}:null},xmlCurrentContext:function(Oe){for(var Ne=[],Ae=Oe.context;Ae;Ae=Ae.prev)Ae.tagName&&Ne.push(Ae.tagName);return Ne.reverse()}}}),He.defineMIME("text/xml","xml"),He.defineMIME("application/xml","xml"),He.mimeModes.hasOwnProperty("text/html")||He.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{hP:function(){return Le}});var He=function(_e,te){return(He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,Re){ue.__proto__=Re}||function(ue,Re){for(var Fe in Re)Object.prototype.hasOwnProperty.call(Re,Fe)&&(ue[Fe]=Re[Fe])})(_e,te)};function xt(_e,te){function ue(){this.constructor=_e}He(_e,te),_e.prototype=te===null?Object.create(te):(ue.prototype=te.prototype,new ue)}function y(_e,te,ue,Re){return new(ue||(ue=Promise))(function(Fe,we){function Ee(qe){try{Ue(Re.next(qe))}catch(nt){we(nt)}}function Pe(qe){try{Ue(Re.throw(qe))}catch(nt){we(nt)}}function Ue(qe){var nt;qe.done?Fe(qe.value):(nt=qe.value,nt instanceof ue?nt:new ue(function(dt){dt(nt)})).then(Ee,Pe)}Ue((Re=Re.apply(_e,te||[])).next())})}function De(_e,te){var ue,Re,Fe,we,Ee={label:0,sent:function(){if(1&Fe[0])throw Fe[1];return Fe[1]},trys:[],ops:[]};return we={next:Pe(0),throw:Pe(1),return:Pe(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function Pe(Ue){return function(qe){return function(nt){if(ue)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(ue=1,Re&&(Fe=2&nt[0]?Re.return:nt[0]?Re.throw||((Fe=Re.return)&&Fe.call(Re),0):Re.next)&&!(Fe=Fe.call(Re,nt[1])).done)return Fe;switch(Re=0,Fe&&(nt=[2&nt[0],Fe.value]),nt[0]){case 0:case 1:Fe=nt;break;case 4:return Ee.label++,{value:nt[1],done:!1};case 5:Ee.label++,Re=nt[1],nt=[0];continue;case 7:nt=Ee.ops.pop(),Ee.trys.pop();continue;default:if(Fe=Ee.trys,!((Fe=Fe.length>0&&Fe[Fe.length-1])||nt[0]!==6&&nt[0]!==2)){Ee=0;continue}if(nt[0]===3&&(!Fe||nt[1]>Fe[0]&&nt[1]<Fe[3])){Ee.label=nt[1];break}if(nt[0]===6&&Ee.label<Fe[1]){Ee.label=Fe[1],Fe=nt;break}if(Fe&&Ee.label<Fe[2]){Ee.label=Fe[2],Ee.ops.push(nt);break}Fe[2]&&Ee.ops.pop(),Ee.trys.pop();continue}nt=te.call(_e,Ee)}catch(dt){nt=[6,dt],Re=0}finally{ue=Fe=0}if(5&nt[0])throw nt[1];return{value:nt[0]?nt[1]:void 0,done:!0}}([Ue,qe])}}}function xe(){for(var _e=0,te=0,ue=arguments.length;te<ue;te++)_e+=arguments[te].length;var Re=Array(_e),Fe=0;for(te=0;te<ue;te++)for(var we=arguments[te],Ee=0,Pe=we.length;Ee<Pe;Ee++,Fe++)Re[Fe]=we[Ee];return Re}var x=function(){function _e(){}return _e.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},_e.setAttributes=function(te,ue){for(var Re=0,Fe=ue;Re<Fe.length;Re++){var we=Fe[Re],Ee=we[0],Pe=we[1];te.setAttribute(Ee,Pe)}},_e.createRect=function(te,ue,Re){var Fe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Fe.setAttribute("width",te.toString()),Fe.setAttribute("height",ue.toString()),Re&&_e.setAttributes(Fe,Re),Fe},_e.createLine=function(te,ue,Re,Fe,we){var Ee=document.createElementNS("http://www.w3.org/2000/svg","line");return Ee.setAttribute("x1",te.toString()),Ee.setAttribute("y1",ue.toString()),Ee.setAttribute("x2",Re.toString()),Ee.setAttribute("y2",Fe.toString()),we&&_e.setAttributes(Ee,we),Ee},_e.createPolygon=function(te,ue){var Re=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Re.setAttribute("points",te),ue&&_e.setAttributes(Re,ue),Re},_e.createCircle=function(te,ue){var Re=document.createElementNS("http://www.w3.org/2000/svg","circle");return Re.setAttribute("cx",(te/2).toString()),Re.setAttribute("cy",(te/2).toString()),Re.setAttribute("r",te.toString()),ue&&_e.setAttributes(Re,ue),Re},_e.createEllipse=function(te,ue,Re){var Fe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Fe.setAttribute("cx",(te/2).toString()),Fe.setAttribute("cy",(ue/2).toString()),Fe.setAttribute("rx",(te/2).toString()),Fe.setAttribute("ry",(ue/2).toString()),Re&&_e.setAttributes(Fe,Re),Fe},_e.createGroup=function(te){var ue=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&_e.setAttributes(ue,te),ue},_e.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},_e.createMarker=function(te,ue,Re,Fe,we,Ee,Pe){var Ue=document.createElementNS("http://www.w3.org/2000/svg","marker");return _e.setAttributes(Ue,[["id",te],["orient",ue],["markerWidth",Re.toString()],["markerHeight",Fe.toString()],["refX",we.toString()],["refY",Ee.toString()]]),Ue.appendChild(Pe),Ue},_e.createText=function(te){var ue=document.createElementNS("http://www.w3.org/2000/svg","text");return ue.setAttribute("x","0"),ue.setAttribute("y","0"),te&&_e.setAttributes(ue,te),ue},_e.createTSpan=function(te,ue){var Re=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Re.textContent=te,ue&&_e.setAttributes(Re,ue),Re},_e.createImage=function(te){var ue=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&_e.setAttributes(ue,te),ue},_e.createPoint=function(te,ue){var Re=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Re.x=te,Re.y=ue,Re},_e.createPath=function(te,ue){var Re=document.createElementNS("http://www.w3.org/2000/svg","path");return Re.setAttribute("d",te),ue&&_e.setAttributes(Re,ue),Re},_e}(),z=function(){function _e(){}return _e.addKey=function(te){_e.key=te},Object.defineProperty(_e,"isLicensed",{get:function(){return!!_e.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(_e.key)},enumerable:!1,configurable:!0}),_e}(),oe=function(){function _e(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return _e.prototype.rasterize=function(te,ue,Re){var Fe=this;return new Promise(function(we){var Ee=Re!==void 0?Re:document.createElement("canvas");te===null&&(Fe.markersOnly=!0,Fe.naturalSize=!1);var Pe=document.createElementNS("http://www.w3.org/2000/svg","svg");Pe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Pe.setAttribute("width",ue.width.baseVal.valueAsString),Pe.setAttribute("height",ue.height.baseVal.valueAsString),Pe.setAttribute("viewBox","0 0 "+ue.viewBox.baseVal.width.toString()+" "+ue.viewBox.baseVal.height.toString()),Pe.innerHTML=ue.innerHTML,Fe.naturalSize===!0?(Pe.width.baseVal.value=te.naturalWidth,Pe.height.baseVal.value=te.naturalHeight):Fe.width!==void 0&&Fe.height!==void 0&&(Pe.width.baseVal.value=Fe.width,Pe.height.baseVal.value=Fe.height),Ee.width=Pe.width.baseVal.value,Ee.height=Pe.height.baseVal.value;var Ue=Pe.outerHTML,qe=Ee.getContext("2d");Fe.markersOnly!==!0&&qe.drawImage(te,0,0,Ee.width,Ee.height);var nt=window.URL,dt=new Image(Ee.width,Ee.height);dt.setAttribute("crossOrigin","anonymous");var lt=new Blob([Ue],{type:"image/svg+xml"}),ht=nt.createObjectURL(lt);dt.onload=function(){qe.drawImage(dt,0,0),nt.revokeObjectURL(ht);var St=Ee.toDataURL(Fe.imageType,Fe.imageQuality);we(St)},dt.src=ht})},_e}(),se=function(){},ee=function(){function _e(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(_e.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(_e.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(_e.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),_e.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},_e.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)},_e.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 fe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new fe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new fe("@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;
`))},_e.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},_e}(),fe=function(_e,te){this.selector=_e,this.style=te},E=function(_e,te){this.localName=_e,this.style=te},ie=function(){function _e(te,ue,Re,Fe,we){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ue,this.markerItems=Re,this.uiStyleSettings=Fe,this.styles=we,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return _e.prototype.show=function(te){var ue=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 Re=document.createElement("div");Re.className=this.toolbarBlockStyleClass.name,Re.style.whiteSpace="nowrap",this.uiContainer.appendChild(Re),this.addActionButton(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(we){var Ee=document.createElement("div");Ee.className=""+ue.toolbarButtonStyleClass.name,Ee.setAttribute("data-type-name",we.typeName),Ee.innerHTML=we.icon,Ee.addEventListener("click",function(){ue.markerToolbarButtonClicked(Ee,we)}),ue.buttons.push(Ee),ue.markerButtons.push(Ee)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Fe=document.createElement("div");Fe.className=this.toolbarBlockStyleClass.name,Fe.style.whiteSpace="nowrap",Fe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Fe),this.addActionButton(Fe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Fe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},_e.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},_e.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},_e.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},_e.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 ue=0;ue<this.markerButtons.length;ue++)ue<te||ue===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ue]):(ue===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ue]))}},_e.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")},_e.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ue){ue.className=ue.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ue.className=ue.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},_e.prototype.addActionButton=function(te,ue,Re){var Fe=this,we=document.createElement("div");switch(we.className=""+this.toolbarButtonStyleClass.name,we.innerHTML=ue,we.setAttribute("data-action",Re),we.addEventListener("click",function(){Fe.actionToolbarButtonClicked(we,Re)}),Re){case"select":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":we.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":we.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":we.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(we),this.buttons.push(we)},_e.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 fe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new fe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},_e.prototype.markerToolbarButtonClicked=function(te,ue){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Re){return Re("marker",ue)}),this.markerButtonOverflowBlock.style.display="none"},_e.prototype.actionToolbarButtonClicked=function(te,ue){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Re){return Re("action",ue)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},_e.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)},_e.prototype.setActiveMarkerButton=function(te){var ue=this.markerButtons.find(function(Re){return Re.getAttribute("data-type-name")===te});ue&&this.setActiveButton(ue)},_e.prototype.setCurrentMarker=function(te){var ue=this;this.currentMarker=te,this.buttons.filter(function(Re){return/delete|notes/.test(Re.getAttribute("data-action"))}).forEach(function(Re){ue.currentMarker===void 0?(Re.style.fillOpacity="0.4",Re.style.pointerEvents="none"):(Re.style.fillOpacity="1",Re.style.pointerEvents="all")})},_e}(),re=function(){function _e(te,ue,Re,Fe){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ue,this.uiStyleSettings=Re,this.styles=Fe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return _e.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 ue=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*ue)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
padding: `+ue+`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 fe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new fe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},_e.prototype.show=function(te){var ue;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},_e.prototype.setPanelButtons=function(te){var ue,Re,Fe=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ue=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ue!==void 0?ue:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(we){var Ee;we.uiStyleSettings=Fe.uiStyleSettings;var Pe=document.createElement("div");Pe.className=Fe.toolboxButtonStyleClass.name+" "+((Ee=Fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ee!==void 0?Ee:Fe.toolboxButtonStyleColorsClass.name),Pe.innerHTML=we.icon,Pe.title=we.title,Pe.addEventListener("click",function(){Fe.panelButtonClick(we)}),Fe.panelButtons.push(Pe),Fe.buttonRow.appendChild(Pe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},_e.prototype.panelButtonClick=function(te){var ue=this,Re=-1;if(te!==this.activePanel){Re=this.panels.indexOf(te),this.panelRow.innerHTML="";var Fe=te.getUi();Fe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Fe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ue.displayMode==="inline"?ue.panelRow.style.display="none":ue.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(we,Ee){var Pe,Ue;we.className=ue.toolboxButtonStyleClass.name+" "+(Ee===Re?""+((Pe=ue.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Pe!==void 0?Pe:ue.toolboxActiveButtonStyleColorsClass.name):""+((Ue=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:ue.toolboxButtonStyleColorsClass.name))})},_e}(),le=function(_e,te){this.title=_e,this.icon=te},ce=function(_e){function te(ue,Re,Fe,we){var Ee=_e.call(this,ue,we||'<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 Ee.colors=[],Ee.addTransparent=!1,Ee.colorBoxes=[],Ee.colors=Re,Ee.currentColor=Fe,Ee.setCurrentColor=Ee.setCurrentColor.bind(Ee),Ee.getColorBox=Ee.getColorBox.bind(Ee),Ee}return xt(te,_e),te.prototype.getUi=function(){var ue=this,Re=document.createElement("div");return Re.style.overflow="hidden",Re.style.whiteSpace="nowrap",this.colors.forEach(function(Fe){var we=ue.getColorBox(Fe);Re.appendChild(we),ue.colorBoxes.push(we)}),Re},te.prototype.getColorBox=function(ue){var Re=this,Fe=this.uiStyleSettings.toolbarHeight/4,we=this.uiStyleSettings.toolbarHeight-Fe,Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.boxSizing="content-box",Ee.style.width=we-2+"px",Ee.style.height=we-2+"px",Ee.style.padding="1px",Ee.style.marginRight="2px",Ee.style.marginBottom="2px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderRadius=(we+2)/2+"px",Ee.style.borderColor=ue===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Re.setCurrentColor(ue,Ee)});var Pe=document.createElement("div");return Pe.style.display="inline-block",Pe.style.width=we-2+"px",Pe.style.height=we-2+"px",Pe.style.backgroundColor=ue,Pe.style.borderRadius=we/2+"px",ue==="transparent"&&(Pe.style.fill=this.uiStyleSettings.toolboxAccentColor,Pe.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>`),Ee.appendChild(Pe),Ee},te.prototype.setCurrentColor=function(ue,Re){var Fe=this;this.currentColor=ue,this.colorBoxes.forEach(function(we){we.style.borderColor=we===Re?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ue)},te}(le),he=function(){function _e(te,ue,Re){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ue,this.globalSettings=Re,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(_e.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),_e.prototype.ownsTarget=function(te){return!1},Object.defineProperty(_e.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),_e.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},_e.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},_e.prototype.pointerDown=function(te,ue){},_e.prototype.dblClick=function(te,ue){},_e.prototype.manipulate=function(te){},_e.prototype.pointerUp=function(te){this.stateChanged()},_e.prototype.dispose=function(){},_e.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},_e.prototype.getState=function(){return{typeName:_e.typeName,state:this.state,notes:this.notes}},_e.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},_e.prototype.scale=function(te,ue){},_e.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},_e.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},_e.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)}},_e.typeName="MarkerBase",_e}(),ge=function(){function _e(){this.findGripByVisual=this.findGripByVisual.bind(this)}return _e.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},_e}(),be=function(){function _e(){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 _e.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},_e}(),me=function(){function _e(){}return _e.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},_e.toSVGMatrix=function(te,ue){return te.a=ue.a,te.b=ue.b,te.c=ue.c,te.d=ue.d,te.e=ue.e,te.f=ue.f,te},_e}(),ve=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.left=0,we.top=0,we.width=0,we.height=0,we.defaultSize={x:50,y:20},we.offsetX=0,we.offsetY=0,we.rotationAngle=0,we.CB_DISTANCE=10,we._suppressMarkerCreateEvent=!1,we.container.transform.baseVal.appendItem(x.createTransform()),we.setupControlBox(),we}return xt(te,_e),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(ue){this._visual=ue;var Re=x.createTransform();this._visual.transform.baseVal.appendItem(Re)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ue){return!!_e.prototype.ownsTarget.call(this,ue)||!!(this.controlGrips.findGripByVisual(ue)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ue))},te.prototype.pointerDown=function(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.state==="new"&&(this.left=ue.x,this.top=ue.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Fe=this.unrotatePoint(ue);if(this.manipulationStartX=Fe.x,this.manipulationStartY=Fe.y,this.offsetX=Fe.x-this.left,this.offsetY=Fe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Re),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Re)){this.activeGrip=this.rotatorGrip;var we=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=we.x-this.width/2,this.top=we.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ue){var Re=this.state;_e.prototype.pointerUp.call(this,ue),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ue),this._state="select",Re==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ue){this.visual.style.transform="translate("+ue.x+"px, "+ue.y+"px)"},te.prototype.manipulate=function(ue){var Re=this.unrotatePoint(ue);this.state==="creating"?this.resize(ue):this.state==="move"?(this.left=this.manipulationStartLeft+(Re.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Re.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Re):this.state==="rotate"&&this.rotate(ue)},te.prototype.resize=function(ue){var Re=this.manipulationStartLeft,Fe=this.manipulationStartWidth,we=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Re=this.manipulationStartLeft+ue.x-this.manipulationStartX,Fe=this.manipulationStartWidth+this.manipulationStartLeft-Re;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Fe=this.manipulationStartWidth+ue.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:we=this.manipulationStartTop+ue.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-we;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+ue.y-this.manipulationStartY}Fe>=0?(this.left=Re,this.width=Fe):(this.left=Re+Fe,this.width=-Fe),Ee>=0?(this.top=we,this.height=Ee):(this.top=we+Ee,this.height=-Ee),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ue){if(Math.abs(ue.x-this.centerX)>.1){var Re=Math.sign(ue.x-this.centerX);this.rotationAngle=180*Math.atan((ue.y-this.centerY)/(ue.x-this.centerX))/Math.PI+90*Re,this.applyRotation()}},te.prototype.applyRotation=function(){var ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0)},te.prototype.rotatePoint=function(ue){if(this.rotationAngle===0)return ue;var Re=this.container.getCTM(),Fe=x.createPoint(ue.x,ue.y);return{x:(Fe=Fe.matrixTransform(Re)).x,y:Fe.y}},te.prototype.unrotatePoint=function(ue){if(this.rotationAngle===0)return ue;var Re=this.container.getCTM();Re=Re.inverse();var Fe=x.createPoint(ue.x,ue.y);return{x:(Fe=Fe.matrixTransform(Re)).x,y:Fe.y}},te.prototype.select=function(){_e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){_e.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=x.createGroup();var ue=x.createTransform();ue.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ue),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 ge,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ue=this.controlBox.transform.baseVal.getItem(0);ue.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ue,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 ue=new be;return ue.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(ue.visual),ue},te.prototype.positionGrips=function(){var ue=this.controlGrips.topLeft.GRIP_SIZE,Re=-ue/2,Fe=Re,we=(this.width+this.CB_DISTANCE)/2-ue/2,Ee=(this.height+this.CB_DISTANCE)/2-ue/2,Pe=this.height+this.CB_DISTANCE-ue/2,Ue=this.width+this.CB_DISTANCE-ue/2;this.positionGrip(this.controlGrips.topLeft.visual,Re,Fe),this.positionGrip(this.controlGrips.topCenter.visual,we,Fe),this.positionGrip(this.controlGrips.topRight.visual,Ue,Fe),this.positionGrip(this.controlGrips.centerLeft.visual,Re,Ee),this.positionGrip(this.controlGrips.centerRight.visual,Ue,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,Re,Pe),this.positionGrip(this.controlGrips.bottomCenter.visual,we,Pe),this.positionGrip(this.controlGrips.bottomRight.visual,Ue,Pe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,we,Fe-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ue,Re,Fe){var we=ue.transform.baseVal.getItem(0);we.setTranslate(Re,Fe),ue.transform.baseVal.replaceItem(we,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:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},_e.prototype.getState.call(this))},te.prototype.restoreState=function(ue){_e.prototype.restoreState.call(this,ue);var Re=ue;this.left=Re.left,this.top=Re.top,this.width=Re.width,this.height=Re.height,this.rotationAngle=Re.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Re.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Re.containerTransformMatrix))},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re);var Fe=this.rotatePoint({x:this.left,y:this.top}),we=this.unrotatePoint({x:Fe.x*ue,y:Fe.y*Re});this.left=we.x,this.top=we.y,this.width=this.width*ue,this.height=this.height*Re,this.adjustControlBox()},te}(he),Ce=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},te.prototype.manipulate=function(ue){_e.prototype.manipulate.call(this,ue)},te.prototype.resize=function(ue){_e.prototype.resize.call(this,ue),this.setSize()},te.prototype.setSize=function(){_e.prototype.setSize.call(this),x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ue){_e.prototype.pointerUp.call(this,ue),this.setSize()},te.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},te.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,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},_e.prototype.getState.call(this))},te.prototype.restoreState=function(ue){var Re=ue;this.fillColor=Re.fillColor,this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.opacity=Re.opacity,this.createVisual(),_e.prototype.restoreState.call(this,ue),this.setSize()},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),this.setSize()},te.title="Rectangle marker",te}(ve),Te=function(_e){function te(ue,Re,Fe,we){var Ee=_e.call(this,ue,we||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=Re,Ee.currentWidth=Fe,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return xt(te,_e),te.prototype.getUi=function(){var ue=this,Re=document.createElement("div");return Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2",this.widths.forEach(function(Fe){var we=document.createElement("div");we.style.display="flex",we.style.flexGrow="2",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=Fe===ue.currentWidth?ue.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ue.setCurrentWidth(Fe,we)}),Re.appendChild(we);var Ee=document.createElement("div");Ee.innerText=Fe.toString(),Ee.style.marginRight="5px",we.appendChild(Ee);var Pe=document.createElement("div");Pe.style.minHeight="20px",Pe.style.flexGrow="2",Pe.style.display="flex",Pe.style.alignItems="center";var Ue=document.createElement("hr");Ue.style.minWidth="20px",Ue.style.border="0px",Ue.style.borderTop=Fe+"px solid "+ue.uiStyleSettings.toolboxColor,Ue.style.flexGrow="2",Pe.appendChild(Ue),we.appendChild(Pe),ue.widthBoxes.push(we)}),Re},te.prototype.setCurrentWidth=function(ue,Re){var Fe=this;this.currentWidth=ue,this.widthBoxes.forEach(function(we){we.style.borderColor=we===Re?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(le),Me=function(_e){function te(ue,Re,Fe,we){var Ee=_e.call(this,ue,we||'<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 Ee.styles=[],Ee.styleBoxes=[],Ee.styles=Re,Ee.currentStyle=Fe,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return xt(te,_e),te.prototype.getUi=function(){var ue=this,Re=document.createElement("div");return Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2",this.styles.forEach(function(Fe){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/ue.styles.length-5+"%",we.style.borderColor=Fe===ue.currentStyle?ue.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ue.setCurrentStyle(Fe,we)}),Re.appendChild(we);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var Pe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ue.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Fe!==""?'stroke-dasharray="'+Fe+'"':"")+` />
</svg>`;Ee.innerHTML=Pe,we.appendChild(Ee),ue.styleBoxes.push(we)}),Re},te.prototype.setCurrentStyle=function(ue,Re){var Fe=this;this.currentStyle=ue,this.styleBoxes.forEach(function(we){we.style.borderColor=we===Re?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(le),ke=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.strokePanel=new ce("Line color",Fe.defaultColorSet,Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Me("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return xt(te,_e),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ue=_e.prototype.getState.call(this);return ue.typeName=te.typeName,ue},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(Ce),de=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"},ye=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.x1=0,we.y1=0,we.x2=0,we.y2=0,we.defaultLength=50,we.manipulationStartX=0,we.manipulationStartY=0,we.manipulationStartX1=0,we.manipulationStartY1=0,we.manipulationStartX2=0,we.manipulationStartY2=0,we.setupControlBox(),we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!!_e.prototype.ownsTarget.call(this,ue)||!(!this.grip1.ownsTarget(ue)&&!this.grip2.ownsTarget(ue))},te.prototype.pointerDown=function(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.state==="new"&&(this.x1=ue.x,this.y1=ue.y,this.x2=ue.x,this.y2=ue.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(Re)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Re)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ue){var Re=this.state;_e.prototype.pointerUp.call(this,ue),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(ue),this._state="select",Re==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ue){this.state==="creating"?this.resize(ue):this.state==="move"?(this.x1=this.manipulationStartX1+ue.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ue.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ue.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ue.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ue)},te.prototype.resize=function(ue){switch(this.activeGrip){case this.grip1:this.x1=ue.x,this.y1=ue.y;break;case this.grip2:case void 0:this.x2=ue.x,this.y2=ue.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){_e.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){_e.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 ue=new be;return ue.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(ue.visual),ue},te.prototype.positionGrips=function(){var ue=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ue/2,this.y1-ue/2),this.positionGrip(this.grip2.visual,this.x2-ue/2,this.y2-ue/2)},te.prototype.positionGrip=function(ue,Re,Fe){var we=ue.transform.baseVal.getItem(0);we.setTranslate(Re,Fe),ue.transform.baseVal.replaceItem(we,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},_e.prototype.getState.call(this))},te.prototype.restoreState=function(ue){_e.prototype.restoreState.call(this,ue);var Re=ue;this.x1=Re.x1,this.y1=Re.y1,this.x2=Re.x2,this.y2=Re.y2},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),this.x1=this.x1*ue,this.y1=this.y1*Re,this.x2=this.x2*ue,this.y2=this.y2*Re,this.adjustVisual(),this.adjustControlBox()},te}(he),Se=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.strokePanel=new ce("Line color",Fe.defaultColorSet,Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Me("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorLine&&ue!==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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),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(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},te.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,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 ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){_e.prototype.restoreState.call(this,ue);var Re=ue;this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.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}(ye),Oe=function(_e){function te(ue,Re,Fe,we){var Ee=_e.call(this,ue,we||'<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 Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=Re,Ee.currentFont=Fe,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return xt(te,_e),te.prototype.getUi=function(){var ue=this,Re=document.createElement("div");return Re.style.overflow="hidden",Re.style.flexGrow="2",this.fonts.forEach(function(Fe){var we=document.createElement("div");we.style.display="inline-block",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/ue.fonts.length-5+"%",we.style.borderColor=Fe===ue.currentFont?ue.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ue.setCurrentFont(Fe,we)}),Re.appendChild(we);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=Fe,Ee.style.overflow="hidden";var Pe=document.createElement("div");Pe.style.whiteSpace="nowrap",Pe.style.overflow="hidden",Pe.style.textOverflow="ellipsis",Pe.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Pe),we.appendChild(Ee),ue.fontBoxes.push(we)}),Re},te.prototype.setCurrentFont=function(ue,Re){var Fe=this;this.currentFont=ue,this.fontBoxes.forEach(function(we){we.style.borderColor=we===Re?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(le),Ne=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.color="transparent",we.padding=5,we.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",we.text=we.DEFAULT_TEXT,we.isMoved=!1,we.color=Fe.defaultColor,we.fontFamily=Fe.defaultFontFamily,we.defaultSize={x:100,y:30},we.setColor=we.setColor.bind(we),we.setFont=we.setFont.bind(we),we.renderText=we.renderText.bind(we),we.sizeText=we.sizeText.bind(we),we.textEditDivClicked=we.textEditDivClicked.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.setSize=we.setSize.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.colorPanel=new ce("Color",Fe.defaultColorSet,Fe.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.fontFamilyPanel=new Oe("Font",Fe.defaultFontFamilies,Fe.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){if(_e.prototype.ownsTarget.call(this,ue)||ue===this.visual||ue===this.textElement||ue===this.bgRectangle)return!0;var Re=!1;return this.textElement.childNodes.forEach(function(Fe){Fe===ue&&(Re=!0)}),Re},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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},te.prototype.renderText=function(){var ue=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(Re){ue.textElement.appendChild(x.createTSpan(Re.trim()===""?" ":Re.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ue=this.textElement.getBBox(),Re=1;if(ue.width>0&&ue.height>0){var Fe=(1*this.width-this.width*this.padding*2/100)/ue.width,we=(1*this.height-this.height*this.padding*2/100)/ue.height;Re=Math.min(Fe,we)}return Re},te.prototype.getTextPosition=function(ue){var Re=this.textElement.getBBox(),Fe=0,we=0;return Re.width>0&&Re.height>0&&(Fe=(this.width-Re.width*ue)/2,we=this.height/2-Re.height*ue/2),{x:Fe,y:we}},te.prototype.sizeText=function(){var ue=this.textElement.getBBox(),Re=this.getTextScale(),Fe=this.getTextPosition(Re);Fe.y-=ue.y*Re,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Fe.x+"px, "+Fe.y+"px) scale("+Re+", "+Re+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Fe.x,Fe.y),this.textElement.transform.baseVal.getItem(1).setScale(Re,Re))},te.prototype.manipulate=function(ue){_e.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ue){_e.prototype.resize.call(this,ue),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){_e.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(ue){var Re=this.state;Re==="creating"&&(this._suppressMarkerCreateEvent=!0),_e.prototype.pointerUp.call(this,ue),this.setSize(),(Re==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ue=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(Re){Re.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Re=Number.parseFloat(ue.textEditor.style.fontSize);ue.textEditor.clientWidth>=Number.parseInt(ue.textEditor.style.maxWidth)&&Re>.9;)Re-=.1,ue.textEditor.style.fontSize=Math.max(Re,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Re){Re.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Re){if(Re.clipboardData){var Fe=Re.clipboardData.getData("text"),we=window.getSelection();if(!we.rangeCount)return!1;we.deleteFromDocument(),we.getRangeAt(0).insertNode(document.createTextNode(Fe)),Re.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ue.textEditDivClicked(ue.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 ue=this.getTextScale(),Re=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Fe=this.textElement.getBBox(),we={x:Fe.width*ue,y:Fe.height*ue};Re.x-=we.x/2,Re.y-=we.y/2,this.textEditor.style.top=Re.y+"px",this.textEditor.style.left=Re.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Re.x+"px",this.textEditor.style.fontSize=Math.max(16*ue,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ue){this.text=ue.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){_e.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),_e.prototype.deselect.call(this)},te.prototype.dblClick=function(ue,Re){_e.prototype.dblClick.call(this,ue,Re),this.showTextEditor()},te.prototype.setColor=function(ue){this.textElement&&x.setAttributes(this.textElement,[["fill",ue]]),this.color=ue,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ue)},te.prototype.setFont=function(ue){this.textElement&&x.setAttributes(this.textElement,[["font-family",ue]]),this.fontFamily=ue,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 ue=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){var Re=ue;this.color=Re.color,this.fontFamily=Re.fontFamily,this.padding=Re.padding,this.text=Re.text,this.createVisual(),_e.prototype.restoreState.call(this,ue),this.setSize()},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),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}(ve),Ae=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.color="transparent",we.lineWidth=3,we.drawing=!1,we.pixelRatio=1,we.color=Fe.defaultColor,we.lineWidth=Fe.defaultStrokeWidth,we.pixelRatio=Fe.freehandPixelRatio,we.setColor=we.setColor.bind(we),we.addCanvas=we.addCanvas.bind(we),we.finishCreation=we.finishCreation.bind(we),we.setLineWidth=we.setLineWidth.bind(we),we.colorPanel=new ce("Color",Fe.defaultColorSet,Fe.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.lineWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.lineWidthPanel.onWidthChanged=we.setLineWidth,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.drawingImage=x.createImage(),this.visual.appendChild(this.drawingImage);var ue=x.createTransform();this.visual.transform.baseVal.appendItem(ue),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ue,Re){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(ue.x,ue.y),this.drawing=!0):_e.prototype.pointerDown.call(this,ue,Re)},te.prototype.manipulate=function(ue){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ue.x,ue.y),this.canvasContext.stroke()):_e.prototype.manipulate.call(this,ue)},te.prototype.resize=function(ue){_e.prototype.resize.call(this,ue),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(ue){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):_e.prototype.pointerUp.call(this,ue)},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(),_e.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),_e.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ue=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Re=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Fe=Re[0],we=Re[1],Ee=Re[2],Pe=Re[3],Ue=!1,qe=0;qe<this.canvasElement.height;qe++)for(var nt=0;nt<this.canvasElement.width;nt++)ue.data[qe*this.canvasElement.width*4+4*nt+3]>0&&(Ue=!0,qe<we&&(we=qe),nt<Fe&&(Fe=nt),qe>Pe&&(Pe=qe),nt>Ee&&(Ee=nt));if(Ue){this.left=Fe/this.pixelRatio,this.top=we/this.pixelRatio,this.width=(Ee-Fe)/this.pixelRatio,this.height=(Pe-we)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=Ee-Fe,dt.height=Pe-we,dt.getContext("2d").putImageData(this.canvasContext.getImageData(Fe,we,Ee-Fe,Pe-we),0,0),this.drawingImgUrl=dt.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(ue){this.color=ue,this.colorChanged(ue)},te.prototype.setLineWidth=function(ue){this.lineWidth=ue},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 ue=Object.assign({drawingImgUrl:this.drawingImgUrl},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){this.createVisual(),_e.prototype.restoreState.call(this,ue),this.drawingImgUrl=ue.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),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}(ve),je=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Fe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return we.typeBoxes=[],we.currentType=Re,we.setCurrentType=we.setCurrentType.bind(we),we}return xt(te,_e),te.prototype.getUi=function(){var ue=this,Re=document.createElement("div");Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2";for(var Fe=function(Pe){var Ue="both";switch(Pe){case 0:Ue="both";break;case 1:Ue="start";break;case 2:Ue="end";break;case 3:Ue="none"}var qe=document.createElement("div");if(qe.style.display="flex",qe.style.flexGrow="2",qe.style.alignItems="center",qe.style.justifyContent="space-between",qe.style.padding="5px",qe.style.borderWidth="2px",qe.style.borderStyle="solid",qe.style.borderColor=Ue===we.currentType?we.uiStyleSettings.toolboxAccentColor:"transparent",qe.addEventListener("click",function(){ue.setCurrentType(Ue,qe)}),Re.appendChild(qe),Ue==="both"||Ue==="start"){var nt=document.createElement("div");nt.style.display="flex",nt.style.alignItems="center",nt.style.minHeight="20px",nt.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,nt.style.marginLeft="5px",qe.appendChild(nt)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var lt=document.createElement("hr");if(lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop="3px solid "+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee"),lt.style.flexGrow="2",dt.appendChild(lt),qe.appendChild(dt),Ue==="both"||Ue==="end"){var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ht.style.marginRight="5px",qe.appendChild(ht)}we.typeBoxes.push(qe)},we=this,Ee=0;Ee<4;Ee++)Fe(Ee);return Re},te.prototype.setCurrentType=function(ue,Re){var Fe=this;this.currentType=ue,this.typeBoxes.forEach(function(we){we.style.borderColor=we===Re?Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(le),Ze=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.arrowType="end",we.arrowBaseHeight=10,we.arrowBaseWidth=10,we.getArrowPoints=we.getArrowPoints.bind(we),we.setArrowType=we.setArrowType.bind(we),we.arrowTypePanel=new je("Arrow type","end"),we.arrowTypePanel.onArrowTypeChanged=we.setArrowType,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==this.arrow1&&ue!==this.arrow2)},te.prototype.getArrowPoints=function(ue,Re){var Fe=this.arrowBaseWidth+2*this.strokeWidth,we=this.arrowBaseHeight+2*this.strokeWidth;return ue-Fe/2+","+(Re+we/2)+" "+ue+","+(Re-we/2)+" "+(ue+Fe/2)+","+(Re+we/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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(_e.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 ue=0;Math.abs(this.x1-this.x2)>.1&&(ue=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Re=this.arrow1.transform.baseVal.getItem(0);Re.setRotate(ue,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Re,0);var Fe=this.arrow2.transform.baseVal.getItem(0);Fe.setRotate(ue+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Fe,0)}},te.prototype.setArrowType=function(ue){this.arrowType=ue,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 ue=Object.assign({arrowType:this.arrowType},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){_e.prototype.restoreState.call(this,ue);var Re=ue;this.arrowType=Re.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),ze=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.fillColor=Fe.defaultFillColor,we.strokeWidth=0,we.fillPanel=new ce("Color",Fe.defaultColorSet,Fe.defaultFillColor),we.fillPanel.onColorChanged=we.setFillColor,we}return xt(te,_e),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ue=_e.prototype.getState.call(this);return ue.typeName=te.typeName,ue},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(Ce),Ve=function(_e){function te(ue,Re,Fe,we){var Ee=_e.call(this,ue,we||'<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 Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=Re,Ee.currentOpacity=Fe,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return xt(te,_e),te.prototype.getUi=function(){var ue=this,Re=document.createElement("div");return Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2",Re.style.justifyContent="space-between",this.opacities.forEach(function(Fe){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="center",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=Fe===ue.currentOpacity?ue.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ue.setCurrentOpacity(Fe,we)}),Re.appendChild(we);var Ee=document.createElement("div");Ee.innerText=100*Fe+"%",we.appendChild(Ee),ue.opacityBoxes.push(we)}),Re},te.prototype.setCurrentOpacity=function(ue,Re){var Fe=this;this.currentOpacity=ue,this.opacityBoxes.forEach(function(we){we.style.borderColor=we===Re?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(le),it=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.setOpacity=we.setOpacity.bind(we),we.fillColor=Fe.defaultHighlightColor,we.strokeWidth=0,we.opacity=Fe.defaultHighlightOpacity,we.fillPanel=new ce("Color",Fe.defaultColorSet,we.fillColor),we.fillPanel.onColorChanged=we.setFillColor,we.opacityPanel=new Ve("Opacity",Fe.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return xt(te,_e),te.prototype.setOpacity=function(ue){this.opacity=ue,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 ue=_e.prototype.getState.call(this);return ue.typeName=te.typeName,ue},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}(ze),Ie='<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>',tt=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.bgColor="transparent",we.tipPosition={x:0,y:0},we.tipBase1Position={x:0,y:0},we.tipBase2Position={x:0,y:0},we.tipMoving=!1,we.color=Fe.defaultStrokeColor,we.bgColor=Fe.defaultFillColor,we.fontFamily=Fe.defaultFontFamily,we.defaultSize={x:100,y:30},we.setBgColor=we.setBgColor.bind(we),we.getTipPoints=we.getTipPoints.bind(we),we.positionTip=we.positionTip.bind(we),we.setTipPoints=we.setTipPoints.bind(we),we.colorPanel=new ce("Text color",Fe.defaultColorSet,we.color,Ie),we.colorPanel.onColorChanged=we.setColor,we.bgColorPanel=new ce("Fill color",Fe.defaultColorSet,we.bgColor,We),we.bgColorPanel.onColorChanged=we.setBgColor,we.fontFamilyPanel=new Oe("Font",Fe.defaultFontFamilies,Fe.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.tipGrip=new be,we.tipGrip.visual.transform.baseVal.appendItem(x.createTransform()),we.controlBox.appendChild(we.tipGrip.visual),we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return _e.prototype.ownsTarget.call(this,ue)||this.tipGrip.ownsTarget(ue)||this.tip===ue},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(ue,Re){this.state==="new"&&_e.prototype.pointerDown.call(this,ue,Re),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Re)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):_e.prototype.pointerDown.call(this,ue,Re)},te.prototype.pointerUp=function(ue){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,_e.prototype.pointerUp.call(this,ue);else{var Re=this.state==="creating";_e.prototype.pointerUp.call(this,ue),this.setTipPoints(Re),this.positionTip()}},te.prototype.manipulate=function(ue){if(this.tipMoving){var Re=this.unrotatePoint(ue);this.tipPosition={x:Re.x-this.manipulationStartLeft,y:Re.y-this.manipulationStartTop},this.positionTip()}else _e.prototype.manipulate.call(this,ue)},te.prototype.setBgColor=function(ue){this.bgRectangle&&this.tip&&(x.setAttributes(this.bgRectangle,[["fill",ue]]),x.setAttributes(this.tip,[["fill",ue]])),this.bgColor=ue,this.fillColorChanged(ue)},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(ue){ue===void 0&&(ue=!1);var Re=Math.min(this.height/2,15),Fe=this.height/5;ue&&(this.tipPosition={x:Re+Fe/2,y:this.height+20});var we=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Fe=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:Re,y:0},this.tipBase2Position={x:Re+Fe,y:0}):(this.tipBase1Position={x:0,y:Re},this.tipBase2Position={x:0,y:Re+Fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Fe=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Re-Fe,y:0},this.tipBase2Position={x:this.width-Re,y:0}):(this.tipBase1Position={x:this.width,y:Re},this.tipBase2Position={x:this.width,y:Re+Fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?we<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Fe=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Re-Fe,y:this.height},this.tipBase2Position={x:this.width-Re,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Re-Fe},this.tipBase2Position={x:this.width,y:this.height-Re}):we<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Fe=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:Re,y:this.height},this.tipBase2Position={x:Re+Fe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Re},this.tipBase2Position={x:0,y:this.height-Re-Fe})},te.prototype.resize=function(ue){_e.prototype.resize.call(this,ue),this.positionTip()},te.prototype.positionTip=function(){x.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ue=this.tipGrip.visual.transform.baseVal.getItem(0);ue.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ue,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(),_e.prototype.select.call(this)},te.prototype.getState=function(){var ue=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){var Re=ue;this.bgColor=Re.bgColor,this.tipPosition=Re.tipPosition,_e.prototype.restoreState.call(this,ue),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),this.tipPosition={x:this.tipPosition.x*ue,y:this.tipPosition.y*Re},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}(Ne),rt=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.fillColor=Fe.defaultFillColor,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.setOpacity=we.setOpacity.bind(we),we.createVisual=we.createVisual.bind(we),we.strokePanel=new ce("Line color",xe(Fe.defaultColorSet,["transparent"]),Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ce("Fill color",xe(Fe.defaultColorSet,["transparent"]),we.fillColor,We),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Me("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.opacityPanel=new Ve("Opacity",Fe.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},te.prototype.manipulate=function(ue){_e.prototype.manipulate.call(this,ue)},te.prototype.resize=function(ue){_e.prototype.resize.call(this,ue),this.setSize()},te.prototype.setSize=function(){_e.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(ue){_e.prototype.pointerUp.call(this,ue),this.setSize()},te.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.visual&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},te.prototype.setFillColor=function(ue){this.fillColor=ue,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},te.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.visual&&x.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ue){this.opacity=ue,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 ue=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){var Re=ue;this.fillColor=Re.fillColor,this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.opacity=Re.opacity,this.createVisual(),_e.prototype.restoreState.call(this,ue),this.setSize()},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),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}(ve),et=function(_e){function te(ue,Re,Fe){return _e.call(this,ue,Re,Fe)||this}return xt(te,_e),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==this.tip1&&ue!==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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(_e.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 ue=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Re=this.tip1.transform.baseVal.getItem(0);Re.setRotate(ue,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Re,0);var Fe=this.tip2.transform.baseVal.getItem(0);Fe.setRotate(ue+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Fe,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ue=_e.prototype.getState.call(this);return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){_e.prototype.restoreState.call(this,ue),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),Ke=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.strokePanel.colors=Fe.defaultColorSet,we.fillColor="transparent",we}return xt(te,_e),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ue=_e.prototype.getState.call(this);return ue.typeName=te.typeName,ue},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),$e=function(){function _e(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(_e.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),_e.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))},_e.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},_e.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},_e.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}},_e.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},_e}(),Ge=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.curveX=0,we.curveY=0,we.manipulationStartCurveX=0,we.manipulationStartCurveY=0,we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.positionGrips=we.positionGrips.bind(we),we.addControlGrips=we.addControlGrips.bind(we),we.adjustVisual=we.adjustVisual.bind(we),we.setupControlBox=we.setupControlBox.bind(we),we.resize=we.resize.bind(we),we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.strokePanel=new ce("Line color",Fe.defaultColorSet,Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Me("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.selectorCurve&&ue!==this.visibleCurve&&!this.curveGrip.ownsTarget(ue))},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(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ue.x,this.curveY=ue.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Re)&&(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(){_e.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,_e.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){_e.prototype.positionGrips.call(this);var ue=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ue/2,this.curveY-ue/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(ue){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ue.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ue.y-this.manipulationStartY),_e.prototype.manipulate.call(this,ue)},te.prototype.resize=function(ue){this.activeGrip===this.curveGrip&&(this.curveX=ue.x,this.curveY=ue.y),_e.prototype.resize.call(this,ue),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(ue){this.strokeColor=ue,this.adjustVisual(),this.colorChanged(ue)},te.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,this.adjustVisual()},te.prototype.scale=function(ue,Re){this.curveX=this.curveX*ue,this.curveY=this.curveY*Re,_e.prototype.scale.call(this,ue,Re)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ue=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},_e.prototype.getState.call(this));return ue.typeName=te.typeName,ue},te.prototype.restoreState=function(ue){_e.prototype.restoreState.call(this,ue);var Re=ue;this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.curveX=Re.curveX,this.curveY=Re.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}(ye),ot=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,Re,Fe)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.textColor="transparent",we.fontSize="1rem",we.isMoved=!1,we.captionText="Caption",we.PADDING=5,we.captionBoxWidth=0,we.captionBoxHeight=0,we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.fillColor=Fe.defaultFillColor,we.textColor=Fe.defaultStrokeColor,we.fontFamily=Fe.defaultFontFamily,we.fontSize=Fe.defaultCaptionFontSize,we.captionText=Fe.defaultCaptionText,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we.sizeCaption=we.sizeCaption.bind(we),we.setCaptionText=we.setCaptionText.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.finishTextEditing=we.finishTextEditing.bind(we),we.setFont=we.setFont.bind(we),we.setTextColor=we.setTextColor.bind(we),we.strokePanel=new ce("Line color",xe(Fe.defaultColorSet,["transparent"]),we.strokeColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ce("Fill color",xe(Fe.defaultColorSet,["transparent"]),we.fillColor,We),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Me("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.fontFamilyPanel=new Oe("Font",Fe.defaultFontFamilies,Fe.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.textColorPanel=new ce("Text color",Fe.defaultColorSet,we.textColor,Ie),we.textColorPanel.onColorChanged=we.setTextColor,we}return xt(te,_e),te.prototype.ownsTarget=function(ue){return!(!_e.prototype.ownsTarget.call(this,ue)&&ue!==this.visual&&ue!==this.frame&&ue!==this.captionBg&&ue!==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(ue){this.captionText=ue,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ue,Re){_e.prototype.pointerDown.call(this,ue,Re),this.isMoved=!1,this.pointerDownPoint=ue,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ue),this._state="creating")},te.prototype.manipulate=function(ue){_e.prototype.manipulate.call(this,ue),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ue.x-this.pointerDownPoint.x)>5||Math.abs(ue.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ue){_e.prototype.resize.call(this,ue),this.setSize()},te.prototype.sizeCaption=function(){var ue=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ue.width+2*this.PADDING,this.captionBoxHeight=ue.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 ue=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(Re){Re.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Re){Re.key==="Enter"&&ue.finishTextEditing(ue.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Re){Re.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ue.finishTextEditing(ue.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ue.finishTextEditing(ue.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(ue){this.setCaptionText(ue.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ue){this.captionElement&&x.setAttributes(this.captionElement,[["font-family",ue]]),this.fontFamily=ue,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ue){this.captionElement&&x.setAttributes(this.captionElement,[["fill",ue]]),this.textColor=ue,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){_e.prototype.setSize.call(this),x.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ue){_e.prototype.pointerUp.call(this,ue),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ue,Re){_e.prototype.dblClick.call(this,ue,Re),this.showTextEditor()},te.prototype.setStrokeColor=function(ue){this.strokeColor=ue,this.frame&&x.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ue),this.stateChanged()},te.prototype.setFillColor=function(ue){this.fillColor=ue,this.captionBg&&x.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ue),this.stateChanged()},te.prototype.setStrokeWidth=function(ue){this.strokeWidth=ue,this.frame&&x.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ue){this.strokeDasharray=ue,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 ue=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},_e.prototype.getState.call(this));return ue.typeName=this.typeName,ue},te.prototype.restoreState=function(ue){var Re=ue;this.fillColor=Re.fillColor,this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.textColor=Re.textColor,this.fontFamily=Re.fontFamily,this.captionText=Re.captionText,this.fontSize=Re.fontSize,this.createVisual(),_e.prototype.restoreState.call(this,ue),this.setSize()},te.prototype.scale=function(ue,Re){_e.prototype.scale.call(this,ue,Re),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}(ve),Je=function(){function _e(te,ue){ue===void 0&&(ue=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ue}return Object.defineProperty(_e.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),_e.prototype.preventDefault=function(){this._defaultPrevented=!0},_e}(),ct=function(_e){function te(ue,Re,Fe){var we=_e.call(this,ue,!1)||this;return we.dataUrl=Re,we.state=Fe,we}return xt(te,_e),te}(Je),st=function(_e){function te(ue,Re,Fe){Fe===void 0&&(Fe=!1);var we=_e.call(this,ue,Fe)||this;return we.marker=Re,we}return xt(te,_e),te}(Je),Ye=function(){function _e(){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 _e.prototype.addEventListener=function(te,ue){this[te].push(ue)},_e.prototype.removeEventListener=function(te,ue){var Re=this[te].indexOf(ue);Re>-1&&this[te].splice(Re,1)},_e}(),Le=function(){function _e(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 de,this._isOpen=!1,this.undoRedoManager=new $e,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ye,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=_e.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(_e.prototype,"ALL_MARKER_TYPES",{get:function(){return[ke,Ae,Ze,Ne,Ke,rt,it,tt,et,ze,Se,Ge,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ke,Ae,Ze,Ne,rt,it,tt]},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ke,Ae,Ze,Ne,it]},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ue=this;this._availableMarkerTypes.splice(0),te.forEach(function(Re){if(typeof Re=="string"){var Fe=ue.ALL_MARKER_TYPES.find(function(we){return we.typeName===Re});Fe!==void 0&&ue._availableMarkerTypes.push(Fe)}else ue._availableMarkerTypes.push(Re)})},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.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(_e.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),_e.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},_e.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ue){return ue(new Je(te))})},_e.prototype.render=function(){return y(this,void 0,void 0,function(){var te;return De(this,function(ue){switch(ue.label){case 0:return this.setCurrentMarker(),(te=new oe).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 ue.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ue.sent()]}})})},_e.prototype.close=function(te){var ue=this;if(te===void 0&&(te=!1),this.isOpen){var Re=!1;te||this.eventListeners.beforeclose.forEach(function(Fe){var we=new Je(ue,!0);Fe(we),we.defaultPrevented&&(Re=!0)}),Re||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Fe){return Fe(new Je(ue))}),this.detachEvents(),this._isOpen=!1)}},_e.prototype.addMarkersToToolbar=function(){for(var te,ue=[],Re=0;Re<arguments.length;Re++)ue[Re]=arguments[Re];(te=this._availableMarkerTypes).push.apply(te,ue)},_e.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ue){te(ue.dataUrl,ue.state)})},_e.prototype.removeRenderEventListener=function(te){},_e.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},_e.prototype.removeCloseEventListener=function(te){},_e.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))},_e.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ue=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,Re=ue<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ue,Re)},_e.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},_e.prototype.resize=function(te,ue){this._isResizing=!0;var Re=te/this.imageWidth,Fe=ue/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ue),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(Re,Fe),this._isResizing=!1},_e.prototype.scaleMarkers=function(te,ue){var Re,Fe=this;this._currentMarker&&this._currentMarker instanceof Ne?this._currentMarker.scale(te,ue):(Re=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(we){we!==Fe._currentMarker&&we.scale(te,ue)}),Re!==void 0&&this.setCurrentMarker(Re)},_e.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"},_e.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ue=this.editorCanvas.getBoundingClientRect();this.left=te.left-ue.left,this.top=te.top-ue.top},_e.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)},_e.prototype.addDefs=function(){for(var te,ue=[],Re=0;Re<arguments.length;Re++)ue[Re]=arguments[Re];this.defs=x.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ue)},_e.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},_e.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)},_e.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},_e.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},_e.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)},_e.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},_e.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)},_e.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()},_e.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")},_e.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"},_e.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},_e.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 ie(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")},_e.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},_e.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},_e.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())},_e.prototype.toolbarButtonClicked=function(te,ue){if(te==="marker"&&ue!==void 0)this.createNewMarker(ue);else if(te==="action")switch(ue){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()}},_e.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ue=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Fe){var we=new st(te,te._currentMarker,!0);Fe(we),we.defaultPrevented&&(ue=!0)}),!ue){var Re=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Fe){return Fe(new st(te,Re))})}}},_e.prototype.clear=function(){var te=this,ue=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Pe=new st(te,void 0,!0);Ee(Pe),Pe.defaultPrevented&&(ue=!0)}),!ue)){this.setCurrentMarker();for(var Re=function(Ee){var Pe=Fe.markers[Ee];Fe.setCurrentMarker(Fe.markers[Ee]),Fe._currentMarker.dispose(),Fe.markerImage.removeChild(Fe._currentMarker.container),Fe.markers.splice(Fe.markers.indexOf(Fe._currentMarker),1),Fe.eventListeners.markerdelete.forEach(function(Ue){return Ue(new st(te,Pe))})},Fe=this,we=this.markers.length-1;we>=0;we--)Re(we);this.addUndoStep()}},Object.defineProperty(_e.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),_e.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))},_e.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)},_e.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},_e.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ue=this.getState(),Re=this.undoRedoManager.getLastUndoStep();if(!Re||Re.width===ue.width&&Re.height===ue.height){var Fe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ue),Fe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(we){return we(new Je(te))})}else this.undoRedoManager.replaceLastUndoStep(ue),this.eventListeners.statechange.forEach(function(we){return we(new Je(te))})}},_e.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},_e.prototype.undoStep=function(){var te=this,ue=this.undoRedoManager.undo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Re){return Re(new Je(te))}))},_e.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},_e.prototype.redoStep=function(){var te=this,ue=this.undoRedoManager.redo();ue!==void 0&&(this.restoreState(ue),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Re){return Re(new Je(te))}))},_e.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},_e.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},_e.prototype.startRenderAndClose=function(){return y(this,void 0,void 0,function(){var te,ue,Re=this;return De(this,function(Fe){switch(Fe.label){case 0:return[4,this.render()];case 1:return te=Fe.sent(),ue=this.getState(),this.eventListeners.render.forEach(function(we){return we(new ct(Re,te,ue))}),this.close(!0),[2]}})})},_e.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ue={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Re){return ue.markers.push(Re.getState())}),ue},_e.prototype.restoreState=function(te){var ue=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(Re){var Fe=ue._availableMarkerTypes.find(function(Ee){return Ee.typeName===Re.typeName});if(Fe!==void 0){var we=ue.addNewMarker(Fe);we.restoreState(Re),ue.markers.push(we)}}),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(Re){return Re(new Je(ue))})},_e.prototype.addNewMarker=function(te){var ue=x.createGroup();return this.markerImage.appendChild(ue),new te(ue,this.overlayContainer,this.settings)},_e.prototype.createNewMarker=function(te){var ue,Re=this;(ue=typeof te=="string"?this._availableMarkerTypes.find(function(Fe){return Fe.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ue),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(ue.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Fe){return Fe(new st(Re,Re._currentMarker))}))},_e.prototype.markerCreated=function(te){var ue=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(Re){return Re(new st(ue,ue._currentMarker))})},_e.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},_e.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},_e.prototype.markerStateChanged=function(te){var ue=this;this.eventListeners.markerchange.forEach(function(Re){return Re(new st(ue,te))})},_e.prototype.setCurrentMarker=function(te){var ue=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Re){return Re(new st(ue,ue._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(Re){return Re(new st(ue,ue._currentMarker))}))},_e.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 ue=this.markers.find(function(Re){return Re.ownsTarget(te.target)});ue!==void 0?(this.setCurrentMarker(ue),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))},_e.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ue=this.markers.find(function(Re){return Re.ownsTarget(te.target)});ue!==void 0&&ue!==this._currentMarker&&this.setCurrentMarker(ue),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},_e.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}))},_e.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()},_e.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},_e.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},_e.prototype.clientToLocalCoordinates=function(te,ue){var Re=this.markerImage.getBoundingClientRect();return{x:(te-Re.left)/this.zoomLevel,y:(ue-Re.top)/this.zoomLevel}},_e.prototype.onWindowResize=function(){this.positionUI()},_e.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()},_e.prototype.addLicenseKey=function(te){z.addKey(te)},_e.prototype.addEventListener=function(te,ue){this.eventListeners.addEventListener(te,ue)},_e.prototype.removeEventListener=function(te,ue){this.eventListeners.removeEventListener(te,ue)},_e.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(_e.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),_e.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(ue){return ue(new Je(te))}))},_e.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ue){return ue(new Je(te))}))},_e.instanceCounter=0,_e}()},66042:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return Ne}});var He=Xe(98506),xt=Xe(16886),y=Xe(43403),De=Xe(34280),xe=Xe(59301),x=xe.createContext(null),z=xe.createContext({}),oe=x,se=Xe(52873),ee=Xe(67711),fe=Xe(92310),E=Xe.n(fe),ie=Xe(77900),re=Xe(10228),le=Xe(26112),ce=Xe(33346),he=Xe(8654),ge=["prefixCls","className","containerRef"],be=function(je){var Ze=je.prefixCls,ze=je.className,Ve=je.containerRef,it=(0,ce.Z)(je,ge),Ie=xe.useContext(z),We=Ie.panel,tt=(0,he.x1)(We,Ve);return xe.createElement("div",(0,ee.Z)({className:E()("".concat(Ze,"-content"),ze),role:"dialog",ref:tt},(0,le.Z)(je,{aria:!0}),{"aria-modal":"true"},it))},me=be,ve=Xe(48736);function Ce(Ae){return typeof Ae=="string"&&String(Number(Ae))===Ae?((0,ve.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 Me={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ke(Ae,je){var Ze,ze,Ve,it=Ae.prefixCls,Ie=Ae.open,We=Ae.placement,tt=Ae.inline,rt=Ae.push,et=Ae.forceRender,Ke=Ae.autoFocus,$e=Ae.keyboard,Ge=Ae.classNames,ot=Ae.rootClassName,Je=Ae.rootStyle,ct=Ae.zIndex,st=Ae.className,Ye=Ae.id,Le=Ae.style,_e=Ae.motion,te=Ae.width,ue=Ae.height,Re=Ae.children,Fe=Ae.mask,we=Ae.maskClosable,Ee=Ae.maskMotion,Pe=Ae.maskClassName,Ue=Ae.maskStyle,qe=Ae.afterOpenChange,nt=Ae.onClose,dt=Ae.onMouseEnter,lt=Ae.onMouseOver,ht=Ae.onMouseLeave,St=Ae.onClick,gt=Ae.onKeyDown,yt=Ae.onKeyUp,mt=Ae.styles,Ct=Ae.drawerRender,wt=xe.useRef(),pt=xe.useRef(),Ot=xe.useRef();xe.useImperativeHandle(je,function(){return wt.current});var At=function(jr){var Dt=jr.keyCode,jt=jr.shiftKey;switch(Dt){case re.Z.TAB:{if(Dt===re.Z.TAB){if(!jt&&document.activeElement===Ot.current){var Mt;(Mt=pt.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}else if(jt&&document.activeElement===pt.current){var ar;(ar=Ot.current)===null||ar===void 0||ar.focus({preventScroll:!0})}}break}case re.Z.ESC:{nt&&$e&&(jr.stopPropagation(),nt(jr));break}}};xe.useEffect(function(){if(Ie&&Ke){var Rr;(Rr=wt.current)===null||Rr===void 0||Rr.focus({preventScroll:!0})}},[Ie]);var Nt=xe.useState(!1),Ht=(0,xt.Z)(Nt,2),gr=Ht[0],$t=Ht[1],Ar=xe.useContext(oe),er;typeof rt=="boolean"?er=rt?{}:{distance:0}:er=rt||{};var Ir=(Ze=(ze=(Ve=er)===null||Ve===void 0?void 0:Ve.distance)!==null&&ze!==void 0?ze:Ar==null?void 0:Ar.pushDistance)!==null&&Ze!==void 0?Ze:180,$r=xe.useMemo(function(){return{pushDistance:Ir,push:function(){$t(!0)},pull:function(){$t(!1)}}},[Ir]);xe.useEffect(function(){if(Ie){var Rr;Ar==null||(Rr=Ar.push)===null||Rr===void 0||Rr.call(Ar)}else{var jr;Ar==null||(jr=Ar.pull)===null||jr===void 0||jr.call(Ar)}},[Ie]),xe.useEffect(function(){return function(){var Rr;Ar==null||(Rr=Ar.pull)===null||Rr===void 0||Rr.call(Ar)}},[]);var nn=Fe&&xe.createElement(ie.default,(0,ee.Z)({key:"mask"},Ee,{visible:Ie}),function(Rr,jr){var Dt=Rr.className,jt=Rr.style;return xe.createElement("div",{className:E()("".concat(it,"-mask"),Dt,Ge==null?void 0:Ge.mask,Pe),style:(0,He.Z)((0,He.Z)((0,He.Z)({},jt),Ue),mt==null?void 0:mt.mask),onClick:we&&Ie?nt:void 0,ref:jr})}),dn=typeof _e=="function"?_e(We):_e,tn={};if(gr&&Ir)switch(We){case"top":tn.transform="translateY(".concat(Ir,"px)");break;case"bottom":tn.transform="translateY(".concat(-Ir,"px)");break;case"left":tn.transform="translateX(".concat(Ir,"px)");break;default:tn.transform="translateX(".concat(-Ir,"px)");break}We==="left"||We==="right"?tn.width=Ce(te):tn.height=Ce(ue);var Dr={onMouseEnter:dt,onMouseOver:lt,onMouseLeave:ht,onClick:St,onKeyDown:gt,onKeyUp:yt},fn=xe.createElement(ie.default,(0,ee.Z)({key:"panel"},dn,{visible:Ie,forceRender:et,onVisibleChanged:function(jr){qe==null||qe(jr)},removeOnLeave:!1,leavedClassName:"".concat(it,"-content-wrapper-hidden")}),function(Rr,jr){var Dt=Rr.className,jt=Rr.style,Mt=xe.createElement(me,(0,ee.Z)({id:Ye,containerRef:jr,prefixCls:it,className:E()(st,Ge==null?void 0:Ge.content),style:(0,He.Z)((0,He.Z)({},Le),mt==null?void 0:mt.content)},(0,le.Z)(Ae,{aria:!0}),Dr),Re);return xe.createElement("div",(0,ee.Z)({className:E()("".concat(it,"-content-wrapper"),Ge==null?void 0:Ge.wrapper,Dt),style:(0,He.Z)((0,He.Z)((0,He.Z)({},tn),jt),mt==null?void 0:mt.wrapper)},(0,le.Z)(Ae,{data:!0})),Ct?Ct(Mt):Mt)}),hn=(0,He.Z)({},Je);return ct&&(hn.zIndex=ct),xe.createElement(oe.Provider,{value:$r},xe.createElement("div",{className:E()(it,"".concat(it,"-").concat(We),ot,(0,se.Z)((0,se.Z)({},"".concat(it,"-open"),Ie),"".concat(it,"-inline"),tt)),style:hn,tabIndex:-1,ref:wt,onKeyDown:At},nn,xe.createElement("div",{tabIndex:0,ref:pt,style:Me,"aria-hidden":"true","data-sentinel":"start"}),fn,xe.createElement("div",{tabIndex:0,ref:Ot,style:Me,"aria-hidden":"true","data-sentinel":"end"})))}var de=xe.forwardRef(ke),ye=de,Se=function(je){var Ze=je.open,ze=Ze===void 0?!1:Ze,Ve=je.prefixCls,it=Ve===void 0?"rc-drawer":Ve,Ie=je.placement,We=Ie===void 0?"right":Ie,tt=je.autoFocus,rt=tt===void 0?!0:tt,et=je.keyboard,Ke=et===void 0?!0:et,$e=je.width,Ge=$e===void 0?378:$e,ot=je.mask,Je=ot===void 0?!0:ot,ct=je.maskClosable,st=ct===void 0?!0:ct,Ye=je.getContainer,Le=je.forceRender,_e=je.afterOpenChange,te=je.destroyOnClose,ue=je.onMouseEnter,Re=je.onMouseOver,Fe=je.onMouseLeave,we=je.onClick,Ee=je.onKeyDown,Pe=je.onKeyUp,Ue=je.panelRef,qe=xe.useState(!1),nt=(0,xt.Z)(qe,2),dt=nt[0],lt=nt[1],ht=xe.useState(!1),St=(0,xt.Z)(ht,2),gt=St[0],yt=St[1];(0,De.Z)(function(){yt(!0)},[]);var mt=gt?ze:!1,Ct=xe.useRef(),wt=xe.useRef();(0,De.Z)(function(){mt&&(wt.current=document.activeElement)},[mt]);var pt=function(gr){var $t;if(lt(gr),_e==null||_e(gr),!gr&&wt.current&&!(($t=Ct.current)!==null&&$t!==void 0&&$t.contains(wt.current))){var Ar;(Ar=wt.current)===null||Ar===void 0||Ar.focus({preventScroll:!0})}},Ot=xe.useMemo(function(){return{panel:Ue}},[Ue]);if(!Le&&!dt&&!mt&&te)return null;var At={onMouseEnter:ue,onMouseOver:Re,onMouseLeave:Fe,onClick:we,onKeyDown:Ee,onKeyUp:Pe},Nt=(0,He.Z)((0,He.Z)({},je),{},{open:mt,prefixCls:it,placement:We,autoFocus:rt,keyboard:Ke,width:Ge,mask:Je,maskClosable:st,inline:Ye===!1,afterOpenChange:pt,ref:Ct},At);return xe.createElement(z.Provider,{value:Ot},xe.createElement(y.Z,{open:mt||Le||dt,autoDestroy:!1,getContainer:Ye,autoLock:Je&&(mt||dt)},xe.createElement(ye,Nt)))},Oe=Se,Ne=Oe},23425:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return Me}});var He=Xe(52873),xt=Xe(67711),y=Xe(26420),De=Xe(98506),xe=Xe(16886),x=Xe(92310),z=Xe.n(x),oe=Xe(18929),se=Xe(10228),ee=Xe(26112),fe=Xe(48736),E=Xe(59301),ie=Xe(17119),re=[10,20,50,100],le=function(de){var ye=de.pageSizeOptions,Se=ye===void 0?re:ye,Oe=de.locale,Ne=de.changeSize,Ae=de.pageSize,je=de.goButton,Ze=de.quickGo,ze=de.rootPrefixCls,Ve=de.disabled,it=de.buildOptionText,Ie=de.showSizeChanger,We=de.sizeChangerRender,tt=E.useState(""),rt=(0,xe.Z)(tt,2),et=rt[0],Ke=rt[1],$e=function(){return!et||Number.isNaN(et)?void 0:Number(et)},Ge=typeof it=="function"?it:function(ue){return"".concat(ue," ").concat(Oe.items_per_page)},ot=function(Re){Ke(Re.target.value)},Je=function(Re){je||et===""||(Ke(""),!(Re.relatedTarget&&(Re.relatedTarget.className.indexOf("".concat(ze,"-item-link"))>=0||Re.relatedTarget.className.indexOf("".concat(ze,"-item"))>=0))&&(Ze==null||Ze($e())))},ct=function(Re){et!==""&&(Re.keyCode===se.Z.ENTER||Re.type==="click")&&(Ke(""),Ze==null||Ze($e()))},st=function(){return Se.some(function(Re){return Re.toString()===Ae.toString()})?Se:Se.concat([Ae]).sort(function(Re,Fe){var we=Number.isNaN(Number(Re))?0:Number(Re),Ee=Number.isNaN(Number(Fe))?0:Number(Fe);return we-Ee})},Ye="".concat(ze,"-options");if(!Ie&&!Ze)return null;var Le=null,_e=null,te=null;return Ie&&We&&(Le=We({disabled:Ve,size:Ae,onSizeChange:function(Re){Ne==null||Ne(Number(Re))},"aria-label":Oe.page_size,className:"".concat(Ye,"-size-changer"),options:st().map(function(ue){return{label:Ge(ue),value:ue}})})),Ze&&(je&&(te=typeof je=="boolean"?E.createElement("button",{type:"button",onClick:ct,onKeyUp:ct,disabled:Ve,className:"".concat(Ye,"-quick-jumper-button")},Oe.jump_to_confirm):E.createElement("span",{onClick:ct,onKeyUp:ct},je)),_e=E.createElement("div",{className:"".concat(Ye,"-quick-jumper")},Oe.jump_to,E.createElement("input",{disabled:Ve,type:"text",value:et,onChange:ot,onKeyUp:ct,onBlur:Je,"aria-label":Oe.page}),Oe.page,te)),E.createElement("li",{className:Ye},Le,_e)},ce=le,he=function(de){var ye=de.rootPrefixCls,Se=de.page,Oe=de.active,Ne=de.className,Ae=de.showTitle,je=de.onClick,Ze=de.onKeyPress,ze=de.itemRender,Ve="".concat(ye,"-item"),it=z()(Ve,"".concat(Ve,"-").concat(Se),(0,He.Z)((0,He.Z)({},"".concat(Ve,"-active"),Oe),"".concat(Ve,"-disabled"),!Se),Ne),Ie=function(){je(Se)},We=function(et){Ze(et,je,Se)},tt=ze(Se,"page",E.createElement("a",{rel:"nofollow"},Se));return tt?E.createElement("li",{title:Ae?String(Se):null,className:it,onClick:Ie,onKeyDown:We,tabIndex:0},tt):null},ge=he,be=function(de,ye,Se){return Se};function me(){}function ve(ke){var de=Number(ke);return typeof de=="number"&&!Number.isNaN(de)&&isFinite(de)&&Math.floor(de)===de}function Ce(ke,de,ye){var Se=typeof ke=="undefined"?de:ke;return Math.floor((ye-1)/Se)+1}var Te=function(de){var ye=de.prefixCls,Se=ye===void 0?"rc-pagination":ye,Oe=de.selectPrefixCls,Ne=Oe===void 0?"rc-select":Oe,Ae=de.className,je=de.current,Ze=de.defaultCurrent,ze=Ze===void 0?1:Ze,Ve=de.total,it=Ve===void 0?0:Ve,Ie=de.pageSize,We=de.defaultPageSize,tt=We===void 0?10:We,rt=de.onChange,et=rt===void 0?me:rt,Ke=de.hideOnSinglePage,$e=de.align,Ge=de.showPrevNextJumpers,ot=Ge===void 0?!0:Ge,Je=de.showQuickJumper,ct=de.showLessItems,st=de.showTitle,Ye=st===void 0?!0:st,Le=de.onShowSizeChange,_e=Le===void 0?me:Le,te=de.locale,ue=te===void 0?ie.Z:te,Re=de.style,Fe=de.totalBoundaryShowSizeChanger,we=Fe===void 0?50:Fe,Ee=de.disabled,Pe=de.simple,Ue=de.showTotal,qe=de.showSizeChanger,nt=qe===void 0?it>we:qe,dt=de.sizeChangerRender,lt=de.pageSizeOptions,ht=de.itemRender,St=ht===void 0?be:ht,gt=de.jumpPrevIcon,yt=de.jumpNextIcon,mt=de.prevIcon,Ct=de.nextIcon,wt=E.useRef(null),pt=(0,oe.Z)(10,{value:Ie,defaultValue:tt}),Ot=(0,xe.Z)(pt,2),At=Ot[0],Nt=Ot[1],Ht=(0,oe.Z)(1,{value:je,defaultValue:ze,postState:function(Hr){return Math.max(1,Math.min(Hr,Ce(void 0,At,it)))}}),gr=(0,xe.Z)(Ht,2),$t=gr[0],Ar=gr[1],er=E.useState($t),Ir=(0,xe.Z)(er,2),$r=Ir[0],nn=Ir[1];(0,E.useEffect)(function(){nn($t)},[$t]);var dn=et!==me,tn="current"in de,Dr=Math.max(1,$t-(ct?3:5)),fn=Math.min(Ce(void 0,At,it),$t+(ct?3:5));function hn(kr,Hr){var mn=kr||E.createElement("button",{type:"button","aria-label":Hr,className:"".concat(Se,"-item-link")});return typeof kr=="function"&&(mn=E.createElement(kr,(0,De.Z)({},de))),mn}function Rr(kr){var Hr=kr.target.value,mn=Ce(void 0,At,it),On;return Hr===""?On=Hr:Number.isNaN(Number(Hr))?On=$r:Hr>=mn?On=mn:On=Number(Hr),On}function jr(kr){return ve(kr)&&kr!==$t&&ve(it)&&it>0}var Dt=it>At?Je:!1;function jt(kr){(kr.keyCode===se.Z.UP||kr.keyCode===se.Z.DOWN)&&kr.preventDefault()}function Mt(kr){var Hr=Rr(kr);switch(Hr!==$r&&nn(Hr),kr.keyCode){case se.Z.ENTER:wr(Hr);break;case se.Z.UP:wr(Hr-1);break;case se.Z.DOWN:wr(Hr+1);break;default:break}}function ar(kr){wr(Rr(kr))}function Or(kr){var Hr=Ce(kr,At,it),mn=$t>Hr&&Hr!==0?Hr:$t;Nt(kr),nn(mn),_e==null||_e($t,kr),Ar(mn),et==null||et(mn,kr)}function wr(kr){if(jr(kr)&&!Ee){var Hr=Ce(void 0,At,it),mn=kr;return kr>Hr?mn=Hr:kr<1&&(mn=1),mn!==$r&&nn(mn),Ar(mn),et==null||et(mn,At),mn}return $t}var vr=$t>1,Pr=$t<Ce(void 0,At,it);function dr(){vr&&wr($t-1)}function Cr(){Pr&&wr($t+1)}function Lr(){wr(Dr)}function Xr(){wr(fn)}function or(kr,Hr){if(kr.key==="Enter"||kr.charCode===se.Z.ENTER||kr.keyCode===se.Z.ENTER){for(var mn=arguments.length,On=new Array(mn>2?mn-2:0),_n=2;_n<mn;_n++)On[_n-2]=arguments[_n];Hr.apply(void 0,On)}}function Ut(kr){or(kr,dr)}function Xt(kr){or(kr,Cr)}function Yr(kr){or(kr,Lr)}function qr(kr){or(kr,Xr)}function Et(kr){var Hr=St(kr,"prev",hn(mt,"prev page"));return E.isValidElement(Hr)?E.cloneElement(Hr,{disabled:!vr}):Hr}function kt(kr){var Hr=St(kr,"next",hn(Ct,"next page"));return E.isValidElement(Hr)?E.cloneElement(Hr,{disabled:!Pr}):Hr}function fr(kr){(kr.type==="click"||kr.keyCode===se.Z.ENTER)&&wr($r)}var qt=null,Rt=(0,ee.Z)(de,{aria:!0,data:!0}),rr=Ue&&E.createElement("li",{className:"".concat(Se,"-total-text")},Ue(it,[it===0?0:($t-1)*At+1,$t*At>it?it:$t*At])),mr=null,hr=Ce(void 0,At,it);if(Ke&&it<=At)return null;var ir=[],Lt={rootPrefixCls:Se,onClick:wr,onKeyPress:or,showTitle:Ye,itemRender:St,page:-1},br=$t-1>0?$t-1:0,nr=$t+1<hr?$t+1:hr,Jr=Je&&Je.goButton,yr=(0,y.Z)(Pe)==="object"?Pe.readOnly:!Pe,Nr=Jr,Zr=null;Pe&&(Jr&&(typeof Jr=="boolean"?Nr=E.createElement("button",{type:"button",onClick:fr,onKeyUp:fr},ue.jump_to_confirm):Nr=E.createElement("span",{onClick:fr,onKeyUp:fr},Jr),Nr=E.createElement("li",{title:Ye?"".concat(ue.jump_to).concat($t,"/").concat(hr):null,className:"".concat(Se,"-simple-pager")},Nr)),Zr=E.createElement("li",{title:Ye?"".concat($t,"/").concat(hr):null,className:"".concat(Se,"-simple-pager")},yr?$r:E.createElement("input",{type:"text","aria-label":ue.jump_to,value:$r,disabled:Ee,onKeyDown:jt,onKeyUp:Mt,onChange:Mt,onBlur:ar,size:3}),E.createElement("span",{className:"".concat(Se,"-slash")},"/"),hr));var an=ct?1:2;if(hr<=3+an*2){hr||ir.push(E.createElement(ge,(0,xt.Z)({},Lt,{key:"noPager",page:1,className:"".concat(Se,"-item-disabled")})));for(var un=1;un<=hr;un+=1)ir.push(E.createElement(ge,(0,xt.Z)({},Lt,{key:un,page:un,active:$t===un})))}else{var Cn=ct?ue.prev_3:ue.prev_5,Wn=ct?ue.next_3:ue.next_5,Rn=St(Dr,"jump-prev",hn(gt,"prev page")),pn=St(fn,"jump-next",hn(yt,"next page"));ot&&(qt=Rn?E.createElement("li",{title:Ye?Cn:null,key:"prev",onClick:Lr,tabIndex:0,onKeyDown:Yr,className:z()("".concat(Se,"-jump-prev"),(0,He.Z)({},"".concat(Se,"-jump-prev-custom-icon"),!!gt))},Rn):null,mr=pn?E.createElement("li",{title:Ye?Wn:null,key:"next",onClick:Xr,tabIndex:0,onKeyDown:qr,className:z()("".concat(Se,"-jump-next"),(0,He.Z)({},"".concat(Se,"-jump-next-custom-icon"),!!yt))},pn):null);var rn=Math.max(1,$t-an),zn=Math.min($t+an,hr);$t-1<=an&&(zn=1+an*2),hr-$t<=an&&(rn=hr-an*2);for(var Jn=rn;Jn<=zn;Jn+=1)ir.push(E.createElement(ge,(0,xt.Z)({},Lt,{key:Jn,page:Jn,active:$t===Jn})));if($t-1>=an*2&&$t!==3&&(ir[0]=E.cloneElement(ir[0],{className:z()("".concat(Se,"-item-after-jump-prev"),ir[0].props.className)}),ir.unshift(qt)),hr-$t>=an*2&&$t!==hr-2){var Un=ir[ir.length-1];ir[ir.length-1]=E.cloneElement(Un,{className:z()("".concat(Se,"-item-before-jump-next"),Un.props.className)}),ir.push(mr)}rn!==1&&ir.unshift(E.createElement(ge,(0,xt.Z)({},Lt,{key:1,page:1}))),zn!==hr&&ir.push(E.createElement(ge,(0,xt.Z)({},Lt,{key:hr,page:hr})))}var Vn=Et(br);if(Vn){var Gn=!vr||!hr;Vn=E.createElement("li",{title:Ye?ue.prev_page:null,onClick:dr,tabIndex:Gn?null:0,onKeyDown:Ut,className:z()("".concat(Se,"-prev"),(0,He.Z)({},"".concat(Se,"-disabled"),Gn)),"aria-disabled":Gn},Vn)}var Er=kt(nr);if(Er){var _r,pr;Pe?(_r=!Pr,pr=vr?0:null):(_r=!Pr||!hr,pr=_r?null:0),Er=E.createElement("li",{title:Ye?ue.next_page:null,onClick:Cr,tabIndex:pr,onKeyDown:Xt,className:z()("".concat(Se,"-next"),(0,He.Z)({},"".concat(Se,"-disabled"),_r)),"aria-disabled":_r},Er)}var Fr=z()(Se,Ae,(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(Se,"-start"),$e==="start"),"".concat(Se,"-center"),$e==="center"),"".concat(Se,"-end"),$e==="end"),"".concat(Se,"-simple"),Pe),"".concat(Se,"-disabled"),Ee));return E.createElement("ul",(0,xt.Z)({className:Fr,style:Re,ref:wt},Rt),rr,Vn,Pe?Zr:ir,Er,E.createElement(ce,{locale:ue,rootPrefixCls:Se,disabled:Ee,selectPrefixCls:Ne,changeSize:Or,pageSize:At,pageSizeOptions:lt,quickGo:Dt?wr:null,goButton:Nr,showSizeChanger:nt,sizeChangerRender:dt}))},Me=Te},25930:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Cd:function(){return Se}});var He=Xe(67711),xt=Xe(98506),y=Xe(33346),De=Xe(59301),xe=Xe(92310),x=Xe.n(xe),z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var Ae=(0,De.useRef)([]),je=(0,De.useRef)(null);return(0,De.useEffect)(function(){var Ze=Date.now(),ze=!1;Ae.current.forEach(function(Ve){if(Ve){ze=!0;var it=Ve.style;it.transitionDuration=".3s, .3s, .3s, .06s",je.current&&Ze-je.current<100&&(it.transitionDuration="0s, 0s")}}),ze&&(je.current=Date.now())}),Ae.current},se=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Ae){var je=(0,xt.Z)((0,xt.Z)({},z),Ae),Ze=je.className,ze=je.percent,Ve=je.prefixCls,it=je.strokeColor,Ie=je.strokeLinecap,We=je.strokeWidth,tt=je.style,rt=je.trailColor,et=je.trailWidth,Ke=je.transition,$e=(0,y.Z)(je,se);delete $e.gapPosition;var Ge=Array.isArray(ze)?ze:[ze],ot=Array.isArray(it)?it:[it],Je=oe(),ct=We/2,st=100-We/2,Ye="M ".concat(Ie==="round"?ct:0,",").concat(ct,`
L `).concat(Ie==="round"?st:100,",").concat(ct),Le="0 0 100 ".concat(We),_e=0;return De.createElement("svg",(0,He.Z)({className:x()("".concat(Ve,"-line"),Ze),viewBox:Le,preserveAspectRatio:"none",style:tt},$e),De.createElement("path",{className:"".concat(Ve,"-line-trail"),d:Ye,strokeLinecap:Ie,stroke:rt,strokeWidth:et||We,fillOpacity:"0"}),Ge.map(function(te,ue){var Re=1;switch(Ie){case"round":Re=1-We/100;break;case"square":Re=1-We/2/100;break;default:Re=1;break}var Fe={strokeDasharray:"".concat(te*Re,"px, 100px"),strokeDashoffset:"-".concat(_e,"px"),transition:Ke||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},we=ot[ue]||ot[ot.length-1];return _e+=te,De.createElement("path",{key:ue,className:"".concat(Ve,"-line-path"),d:Ye,strokeLinecap:Ie,stroke:we,strokeWidth:We,fillOpacity:"0",ref:function(Pe){Je[ue]=Pe},style:Fe})}))},fe=ee,E=Xe(26420),ie=Xe(16886),re=Xe(47273),le=0,ce=(0,re.Z)();function he(){var Ne;return ce?(Ne=le,le+=1):Ne="TEST_OR_SSR",Ne}var ge=function(Ne){var Ae=De.useState(),je=(0,ie.Z)(Ae,2),Ze=je[0],ze=je[1];return De.useEffect(function(){ze("rc_progress_".concat(he()))},[]),Ne||Ze},be=function(Ae){var je=Ae.bg,Ze=Ae.children;return De.createElement("div",{style:{width:"100%",height:"100%",background:je}},Ze)};function me(Ne,Ae){return Object.keys(Ne).map(function(je){var Ze=parseFloat(je),ze="".concat(Math.floor(Ze*Ae),"%");return"".concat(Ne[je]," ").concat(ze)})}var ve=De.forwardRef(function(Ne,Ae){var je=Ne.prefixCls,Ze=Ne.color,ze=Ne.gradientId,Ve=Ne.radius,it=Ne.style,Ie=Ne.ptg,We=Ne.strokeLinecap,tt=Ne.strokeWidth,rt=Ne.size,et=Ne.gapDegree,Ke=Ze&&(0,E.Z)(Ze)==="object",$e=Ke?"#FFF":void 0,Ge=rt/2,ot=De.createElement("circle",{className:"".concat(je,"-circle-path"),r:Ve,cx:Ge,cy:Ge,stroke:$e,strokeLinecap:We,strokeWidth:tt,opacity:Ie===0?0:1,style:it,ref:Ae});if(!Ke)return ot;var Je="".concat(ze,"-conic"),ct=et?"".concat(180+et/2,"deg"):"0deg",st=me(Ze,(360-et)/360),Ye=me(Ze,1),Le="conic-gradient(from ".concat(ct,", ").concat(st.join(", "),")"),_e="linear-gradient(to ".concat(et?"bottom":"top",", ").concat(Ye.join(", "),")");return De.createElement(De.Fragment,null,De.createElement("mask",{id:Je},ot),De.createElement("foreignObject",{x:0,y:0,width:rt,height:rt,mask:"url(#".concat(Je,")")},De.createElement(be,{bg:_e},De.createElement(be,{bg:Le}))))}),Ce=ve,Te=100,Me=function(Ae,je,Ze,ze,Ve,it,Ie,We,tt,rt){var et=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ke=Ze/100*360*((360-it)/360),$e=it===0?0:{bottom:0,top:180,left:90,right:-90}[Ie],Ge=(100-ze)/100*je;tt==="round"&&ze!==100&&(Ge+=rt/2,Ge>=je&&(Ge=je-.01));var ot=Te/2;return{stroke:typeof We=="string"?We:void 0,strokeDasharray:"".concat(je,"px ").concat(Ae),strokeDashoffset:Ge+et,transform:"rotate(".concat(Ve+Ke+$e,"deg)"),transformOrigin:"".concat(ot,"px ").concat(ot,"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}},ke=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function de(Ne){var Ae=Ne!=null?Ne:[];return Array.isArray(Ae)?Ae:[Ae]}var ye=function(Ae){var je=(0,xt.Z)((0,xt.Z)({},z),Ae),Ze=je.id,ze=je.prefixCls,Ve=je.steps,it=je.strokeWidth,Ie=je.trailWidth,We=je.gapDegree,tt=We===void 0?0:We,rt=je.gapPosition,et=je.trailColor,Ke=je.strokeLinecap,$e=je.style,Ge=je.className,ot=je.strokeColor,Je=je.percent,ct=(0,y.Z)(je,ke),st=Te/2,Ye=ge(Ze),Le="".concat(Ye,"-gradient"),_e=st-it/2,te=Math.PI*2*_e,ue=tt>0?90+tt/2:-90,Re=te*((360-tt)/360),Fe=(0,E.Z)(Ve)==="object"?Ve:{count:Ve,gap:2},we=Fe.count,Ee=Fe.gap,Pe=de(Je),Ue=de(ot),qe=Ue.find(function(yt){return yt&&(0,E.Z)(yt)==="object"}),nt=qe&&(0,E.Z)(qe)==="object",dt=nt?"butt":Ke,lt=Me(te,Re,0,100,ue,tt,rt,et,dt,it),ht=oe(),St=function(){var mt=0;return Pe.map(function(Ct,wt){var pt=Ue[wt]||Ue[Ue.length-1],Ot=Me(te,Re,mt,Ct,ue,tt,rt,pt,dt,it);return mt+=Ct,De.createElement(Ce,{key:wt,color:pt,ptg:Ct,radius:_e,prefixCls:ze,gradientId:Le,style:Ot,strokeLinecap:dt,strokeWidth:it,gapDegree:tt,ref:function(Nt){ht[wt]=Nt},size:Te})}).reverse()},gt=function(){var mt=Math.round(we*(Pe[0]/100)),Ct=100/we,wt=0;return new Array(we).fill(null).map(function(pt,Ot){var At=Ot<=mt-1?Ue[0]:et,Nt=At&&(0,E.Z)(At)==="object"?"url(#".concat(Le,")"):void 0,Ht=Me(te,Re,wt,Ct,ue,tt,rt,At,"butt",it,Ee);return wt+=(Re-Ht.strokeDashoffset+Ee)*100/Re,De.createElement("circle",{key:Ot,className:"".concat(ze,"-circle-path"),r:_e,cx:st,cy:st,stroke:Nt,strokeWidth:it,opacity:1,style:Ht,ref:function($t){ht[Ot]=$t}})})};return De.createElement("svg",(0,He.Z)({className:x()("".concat(ze,"-circle"),Ge),viewBox:"0 0 ".concat(Te," ").concat(Te),style:$e,id:Ze,role:"presentation"},ct),!we&&De.createElement("circle",{className:"".concat(ze,"-circle-trail"),r:_e,cx:st,cy:st,stroke:et,strokeLinecap:dt,strokeWidth:Ie||it,style:lt}),we?gt():St())},Se=ye,Oe={Line:fe,Circle:Se}},738:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return me}});var He=Xe(67711),xt=Xe(52873),y=Xe(16886),De=Xe(33346),xe=Xe(92310),x=Xe.n(xe),z=Xe(18929),oe=Xe(10228),se=Xe(26112),ee=Xe(59301);function fe(ve,Ce){var Te=ve.disabled,Me=ve.prefixCls,ke=ve.character,de=ve.characterRender,ye=ve.index,Se=ve.count,Oe=ve.value,Ne=ve.allowHalf,Ae=ve.focused,je=ve.onHover,Ze=ve.onClick,ze=function(Ke){je(Ke,ye)},Ve=function(Ke){Ze(Ke,ye)},it=function(Ke){Ke.keyCode===oe.Z.ENTER&&Ze(Ke,ye)},Ie=ye+1,We=new Set([Me]);Oe===0&&ye===0&&Ae?We.add("".concat(Me,"-focused")):Ne&&Oe+.5>=Ie&&Oe<Ie?(We.add("".concat(Me,"-half")),We.add("".concat(Me,"-active")),Ae&&We.add("".concat(Me,"-focused"))):(Ie<=Oe?We.add("".concat(Me,"-full")):We.add("".concat(Me,"-zero")),Ie===Oe&&Ae&&We.add("".concat(Me,"-focused")));var tt=typeof ke=="function"?ke(ve):ke,rt=ee.createElement("li",{className:x()(Array.from(We)),ref:Ce},ee.createElement("div",{onClick:Te?null:Ve,onKeyDown:Te?null:it,onMouseMove:Te?null:ze,role:"radio","aria-checked":Oe>ye?"true":"false","aria-posinset":ye+1,"aria-setsize":Se,tabIndex:Te?-1:0},ee.createElement("div",{className:"".concat(Me,"-first")},tt),ee.createElement("div",{className:"".concat(Me,"-second")},tt)));return de&&(rt=de(rt,ve)),rt}var E=ee.forwardRef(fe);function ie(){var ve=ee.useRef({});function Ce(Me){return ve.current[Me]}function Te(Me){return function(ke){ve.current[Me]=ke}}return[Ce,Te]}function re(ve){var Ce=ve.pageXOffset,Te="scrollLeft";if(typeof Ce!="number"){var Me=ve.document;Ce=Me.documentElement[Te],typeof Ce!="number"&&(Ce=Me.body[Te])}return Ce}function le(ve){var Ce,Te,Me=ve.ownerDocument,ke=Me.body,de=Me&&Me.documentElement,ye=ve.getBoundingClientRect();return Ce=ye.left,Te=ye.top,Ce-=de.clientLeft||ke.clientLeft||0,Te-=de.clientTop||ke.clientTop||0,{left:Ce,top:Te}}function ce(ve){var Ce=le(ve),Te=ve.ownerDocument,Me=Te.defaultView||Te.parentWindow;return Ce.left+=re(Me),Ce.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ge(ve,Ce){var Te=ve.prefixCls,Me=Te===void 0?"rc-rate":Te,ke=ve.className,de=ve.defaultValue,ye=ve.value,Se=ve.count,Oe=Se===void 0?5:Se,Ne=ve.allowHalf,Ae=Ne===void 0?!1:Ne,je=ve.allowClear,Ze=je===void 0?!0:je,ze=ve.keyboard,Ve=ze===void 0?!0:ze,it=ve.character,Ie=it===void 0?"\u2605":it,We=ve.characterRender,tt=ve.disabled,rt=ve.direction,et=rt===void 0?"ltr":rt,Ke=ve.tabIndex,$e=Ke===void 0?0:Ke,Ge=ve.autoFocus,ot=ve.onHoverChange,Je=ve.onChange,ct=ve.onFocus,st=ve.onBlur,Ye=ve.onKeyDown,Le=ve.onMouseLeave,_e=(0,De.Z)(ve,he),te=ie(),ue=(0,y.Z)(te,2),Re=ue[0],Fe=ue[1],we=ee.useRef(null),Ee=function(){if(!tt){var Dr;(Dr=we.current)===null||Dr===void 0||Dr.focus()}};ee.useImperativeHandle(Ce,function(){return{focus:Ee,blur:function(){if(!tt){var Dr;(Dr=we.current)===null||Dr===void 0||Dr.blur()}}}});var Pe=(0,z.Z)(de||0,{value:ye}),Ue=(0,y.Z)(Pe,2),qe=Ue[0],nt=Ue[1],dt=(0,z.Z)(null),lt=(0,y.Z)(dt,2),ht=lt[0],St=lt[1],gt=function(Dr,fn){var hn=et==="rtl",Rr=Dr+1;if(Ae){var jr=Re(Dr),Dt=ce(jr),jt=jr.clientWidth;(hn&&fn-Dt>jt/2||!hn&&fn-Dt<jt/2)&&(Rr-=.5)}return Rr},yt=function(Dr){nt(Dr),Je==null||Je(Dr)},mt=ee.useState(!1),Ct=(0,y.Z)(mt,2),wt=Ct[0],pt=Ct[1],Ot=function(){pt(!0),ct==null||ct()},At=function(){pt(!1),st==null||st()},Nt=ee.useState(null),Ht=(0,y.Z)(Nt,2),gr=Ht[0],$t=Ht[1],Ar=function(Dr,fn){var hn=gt(fn,Dr.pageX);hn!==ht&&($t(hn),St(null)),ot==null||ot(hn)},er=function(Dr){tt||($t(null),St(null),ot==null||ot(void 0)),Dr&&(Le==null||Le(Dr))},Ir=function(Dr,fn){var hn=gt(fn,Dr.pageX),Rr=!1;Ze&&(Rr=hn===qe),er(),yt(Rr?0:hn),St(Rr?hn:null)},$r=function(Dr){var fn=Dr.keyCode,hn=et==="rtl",Rr=Ae?.5:1;Ve&&(fn===oe.Z.RIGHT&&qe<Oe&&!hn?(yt(qe+Rr),Dr.preventDefault()):fn===oe.Z.LEFT&&qe>0&&!hn||fn===oe.Z.RIGHT&&qe>0&&hn?(yt(qe-Rr),Dr.preventDefault()):fn===oe.Z.LEFT&&qe<Oe&&hn&&(yt(qe+Rr),Dr.preventDefault())),Ye==null||Ye(Dr)};ee.useEffect(function(){Ge&&!tt&&Ee()},[]);var nn=new Array(Oe).fill(0).map(function(tn,Dr){return ee.createElement(E,{ref:Fe(Dr),index:Dr,count:Oe,disabled:tt,prefixCls:"".concat(Me,"-star"),allowHalf:Ae,value:gr===null?qe:gr,onClick:Ir,onHover:Ar,key:tn||Dr,character:Ie,characterRender:We,focused:wt})}),dn=x()(Me,ke,(0,xt.Z)((0,xt.Z)({},"".concat(Me,"-disabled"),tt),"".concat(Me,"-rtl"),et==="rtl"));return ee.createElement("ul",(0,He.Z)({className:dn,onMouseLeave:er,tabIndex:tt?-1:$e,onFocus:tt?null:Ot,onBlur:tt?null:At,onKeyDown:tt?null:$r,ref:we},(0,se.Z)(_e,{aria:!0,data:!0,attr:!0})),nn)}var be=ee.forwardRef(ge),me=be},6551:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{ZP:function(){return z}});var He=Xe(16886),xt=Xe(59301),y=Xe(47273),De=0,xe=(0,y.Z)();function x(){var oe;return xe?(oe=De,De+=1):oe="TEST_OR_SSR",oe}function z(oe){var se=xt.useState(),ee=(0,He.Z)(se,2),fe=ee[0],E=ee[1];return xt.useEffect(function(){E("rc_select_".concat(x()))},[]),oe||fe}},37463:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Ac:function(){return pt},Xo:function(){return At},Wx:function(){return Ht},ZP:function(){return qr},lk:function(){return me}});var He=Xe(67711),xt=Xe(15142),y=Xe(52873),De=Xe(98506),xe=Xe(16886),x=Xe(33346),z=Xe(26420),oe=Xe(18929),se=Xe(48736),ee=Xe(59301),fe=Xe(92310),E=Xe.n(fe),ie=Xe(34280),re=Xe(49658),le=Xe(8654),ce=function(kt){var fr=kt.className,qt=kt.customizeIcon,Rt=kt.customizeIconProps,rr=kt.children,mr=kt.onMouseDown,hr=kt.onClick,ir=typeof qt=="function"?qt(Rt):qt;return ee.createElement("span",{className:fr,onMouseDown:function(br){br.preventDefault(),mr==null||mr(br)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:hr,"aria-hidden":!0},ir!==void 0?ir:ee.createElement("span",{className:E()(fr.split(/\s+/).map(function(Lt){return"".concat(Lt,"-icon")}))},rr))},he=ce,ge=function(kt,fr,qt,Rt,rr){var mr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,hr=arguments.length>6?arguments[6]:void 0,ir=arguments.length>7?arguments[7]:void 0,Lt=ee.useMemo(function(){if((0,z.Z)(Rt)==="object")return Rt.clearIcon;if(rr)return rr},[Rt,rr]),br=ee.useMemo(function(){return!!(!mr&&Rt&&(qt.length||hr)&&!(ir==="combobox"&&hr===""))},[Rt,mr,qt.length,hr,ir]);return{allowClear:br,clearIcon:ee.createElement(he,{className:"".concat(kt,"-clear"),onMouseDown:fr,customizeIcon:Lt},"\xD7")}},be=ee.createContext(null);function me(){return ee.useContext(be)}function ve(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,kt=ee.useState(!1),fr=(0,xe.Z)(kt,2),qt=fr[0],Rt=fr[1],rr=ee.useRef(null),mr=function(){window.clearTimeout(rr.current)};ee.useEffect(function(){return mr},[]);var hr=function(Lt,br){mr(),rr.current=window.setTimeout(function(){Rt(Lt),br&&br()},Et)};return[qt,hr,mr]}function Ce(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,kt=ee.useRef(null),fr=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(fr.current)}},[]);function qt(Rt){(Rt||kt.current===null)&&(kt.current=Rt),window.clearTimeout(fr.current),fr.current=window.setTimeout(function(){kt.current=null},Et)}return[function(){return kt.current},qt]}function Te(Et,kt,fr,qt){var Rt=ee.useRef(null);Rt.current={open:kt,triggerOpen:fr,customizedTrigger:qt},ee.useEffect(function(){function rr(mr){var hr;if(!((hr=Rt.current)!==null&&hr!==void 0&&hr.customizedTrigger)){var ir=mr.target;ir.shadowRoot&&mr.composed&&(ir=mr.composedPath()[0]||ir),Rt.current.open&&Et().filter(function(Lt){return Lt}).every(function(Lt){return!Lt.contains(ir)&&Lt!==ir})&&Rt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",rr),function(){return window.removeEventListener("mousedown",rr)}},[])}var Me=Xe(10228);function ke(Et){return Et&&![Me.Z.ESC,Me.Z.SHIFT,Me.Z.BACKSPACE,Me.Z.TAB,Me.Z.WIN_KEY,Me.Z.ALT,Me.Z.META,Me.Z.WIN_KEY_RIGHT,Me.Z.CTRL,Me.Z.SEMICOLON,Me.Z.EQUALS,Me.Z.CAPS_LOCK,Me.Z.CONTEXT_MENU,Me.Z.F1,Me.Z.F2,Me.Z.F3,Me.Z.F4,Me.Z.F5,Me.Z.F6,Me.Z.F7,Me.Z.F8,Me.Z.F9,Me.Z.F10,Me.Z.F11,Me.Z.F12].includes(Et)}var de=Xe(26112),ye=Xe(11780);function Se(Et,kt,fr){var qt=(0,De.Z)((0,De.Z)({},Et),fr?kt:{});return Object.keys(kt).forEach(function(Rt){var rr=kt[Rt];typeof rr=="function"&&(qt[Rt]=function(){for(var mr,hr=arguments.length,ir=new Array(hr),Lt=0;Lt<hr;Lt++)ir[Lt]=arguments[Lt];return rr.apply(void 0,ir),(mr=Et[Rt])===null||mr===void 0?void 0:mr.call.apply(mr,[Et].concat(ir))})}),qt}var Oe=Se,Ne=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(kt,fr){var qt=kt.prefixCls,Rt=kt.id,rr=kt.inputElement,mr=kt.autoFocus,hr=kt.autoComplete,ir=kt.editable,Lt=kt.activeDescendantId,br=kt.value,nr=kt.open,Jr=kt.attrs,yr=(0,x.Z)(kt,Ne),Nr=rr||ee.createElement("input",null),Zr=Nr,an=Zr.ref,un=Zr.props;return(0,se.Kp)(!("maxLength"in Nr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Nr=ee.cloneElement(Nr,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},Oe(yr,un,!0)),{},{id:Rt,ref:(0,le.sQ)(fr,an),autoComplete:hr||"off",autoFocus:mr,className:E()("".concat(qt,"-selection-search-input"),un==null?void 0:un.className),role:"combobox","aria-expanded":nr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Rt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Rt,"_list"),"aria-activedescendant":nr?Lt:void 0},Jr),{},{value:ir?br:"",readOnly:!ir,unselectable:ir?null:"on",style:(0,De.Z)((0,De.Z)({},un.style),{},{opacity:ir?null:0})})),Nr},je=ee.forwardRef(Ae),Ze=je;function ze(Et){return Array.isArray(Et)?Et:Et!==void 0?[Et]:[]}var Ve=typeof window!="undefined"&&window.document&&window.document.documentElement,it=Ve;function Ie(Et){return Et!=null}function We(Et){return!Et&&Et!==0}function tt(Et){return["string","number"].includes((0,z.Z)(Et))}function rt(Et){var kt=void 0;return Et&&(tt(Et.title)?kt=Et.title.toString():tt(Et.label)&&(kt=Et.label.toString())),kt}function et(Et,kt){it?ee.useLayoutEffect(Et,kt):ee.useEffect(Et,kt)}function Ke(Et){var kt;return(kt=Et.key)!==null&&kt!==void 0?kt:Et.value}var $e=function(kt){kt.preventDefault(),kt.stopPropagation()},Ge=function(kt){var fr=kt.id,qt=kt.prefixCls,Rt=kt.values,rr=kt.open,mr=kt.searchValue,hr=kt.autoClearSearchValue,ir=kt.inputRef,Lt=kt.placeholder,br=kt.disabled,nr=kt.mode,Jr=kt.showSearch,yr=kt.autoFocus,Nr=kt.autoComplete,Zr=kt.activeDescendantId,an=kt.tabIndex,un=kt.removeIcon,Cn=kt.maxTagCount,Wn=kt.maxTagTextLength,Rn=kt.maxTagPlaceholder,pn=Rn===void 0?function(Pt){return"+ ".concat(Pt.length," ...")}:Rn,rn=kt.tagRender,zn=kt.onToggleOpen,Jn=kt.onRemove,Un=kt.onInputChange,Vn=kt.onInputPaste,Gn=kt.onInputKeyDown,Er=kt.onInputMouseDown,_r=kt.onInputCompositionStart,pr=kt.onInputCompositionEnd,Fr=kt.onInputBlur,kr=ee.useRef(null),Hr=(0,ee.useState)(0),mn=(0,xe.Z)(Hr,2),On=mn[0],_n=mn[1],In=(0,ee.useState)(!1),Qn=(0,xe.Z)(In,2),vt=Qn[0],Bt=Qn[1],Ft="".concat(qt,"-selection"),zt=rr||nr==="multiple"&&hr===!1||nr==="tags"?mr:"",Jt=nr==="tags"||nr==="multiple"&&hr===!1||Jr&&(rr||vt);et(function(){_n(kr.current.scrollWidth)},[zt]);var Qt=function(_t,Wt,Yt,xr,Tr){return ee.createElement("span",{title:rt(_t),className:E()("".concat(Ft,"-item"),(0,y.Z)({},"".concat(Ft,"-item-disabled"),Yt))},ee.createElement("span",{className:"".concat(Ft,"-item-content")},Wt),xr&&ee.createElement(he,{className:"".concat(Ft,"-item-remove"),onMouseDown:$e,onClick:Tr,customizeIcon:un},"\xD7"))},ur=function(_t,Wt,Yt,xr,Tr,Wr){var Kr=function(on){$e(on),zn(!rr)};return ee.createElement("span",{onMouseDown:Kr},rn({label:Wt,value:_t,disabled:Yt,closable:xr,onClose:Tr,isMaxTag:!!Wr}))},sr=function(_t){var Wt=_t.disabled,Yt=_t.label,xr=_t.value,Tr=!br&&!Wt,Wr=Yt;if(typeof Wn=="number"&&(typeof Yt=="string"||typeof Yt=="number")){var Kr=String(Wr);Kr.length>Wn&&(Wr="".concat(Kr.slice(0,Wn),"..."))}var Br=function(Qr){Qr&&Qr.stopPropagation(),Jn(_t)};return typeof rn=="function"?ur(xr,Wr,Wt,Tr,Br):Qt(_t,Wr,Wt,Tr,Br)},tr=function(_t){if(!Rt.length)return null;var Wt=typeof pn=="function"?pn(_t):pn;return typeof rn=="function"?ur(void 0,Wt,!1,!1,void 0,!0):Qt({title:Wt},Wt,!1)},It=ee.createElement("div",{className:"".concat(Ft,"-search"),style:{width:On},onFocus:function(){Bt(!0)},onBlur:function(){Bt(!1)}},ee.createElement(Ze,{ref:ir,open:rr,prefixCls:qt,id:fr,inputElement:null,disabled:br,autoFocus:yr,autoComplete:Nr,editable:Jt,activeDescendantId:Zr,value:zt,onKeyDown:Gn,onMouseDown:Er,onChange:Un,onPaste:Vn,onCompositionStart:_r,onCompositionEnd:pr,onBlur:Fr,tabIndex:an,attrs:(0,de.Z)(kt,!0)}),ee.createElement("span",{ref:kr,className:"".concat(Ft,"-search-mirror"),"aria-hidden":!0},zt,"\xA0")),Vt=ee.createElement(ye.Z,{prefixCls:"".concat(Ft,"-overflow"),data:Rt,renderItem:sr,renderRest:tr,suffix:It,itemKey:Ke,maxCount:Cn});return ee.createElement("span",{className:"".concat(Ft,"-wrap")},Vt,!Rt.length&&!zt&&ee.createElement("span",{className:"".concat(Ft,"-placeholder")},Lt))},ot=Ge,Je=function(kt){var fr=kt.inputElement,qt=kt.prefixCls,Rt=kt.id,rr=kt.inputRef,mr=kt.disabled,hr=kt.autoFocus,ir=kt.autoComplete,Lt=kt.activeDescendantId,br=kt.mode,nr=kt.open,Jr=kt.values,yr=kt.placeholder,Nr=kt.tabIndex,Zr=kt.showSearch,an=kt.searchValue,un=kt.activeValue,Cn=kt.maxLength,Wn=kt.onInputKeyDown,Rn=kt.onInputMouseDown,pn=kt.onInputChange,rn=kt.onInputPaste,zn=kt.onInputCompositionStart,Jn=kt.onInputCompositionEnd,Un=kt.onInputBlur,Vn=kt.title,Gn=ee.useState(!1),Er=(0,xe.Z)(Gn,2),_r=Er[0],pr=Er[1],Fr=br==="combobox",kr=Fr||Zr,Hr=Jr[0],mn=an||"";Fr&&un&&!_r&&(mn=un),ee.useEffect(function(){Fr&&pr(!1)},[Fr,un]);var On=br!=="combobox"&&!nr&&!Zr?!1:!!mn,_n=Vn===void 0?rt(Hr):Vn,In=ee.useMemo(function(){return Hr?null:ee.createElement("span",{className:"".concat(qt,"-selection-placeholder"),style:On?{visibility:"hidden"}:void 0},yr)},[Hr,On,yr,qt]);return ee.createElement("span",{className:"".concat(qt,"-selection-wrap")},ee.createElement("span",{className:"".concat(qt,"-selection-search")},ee.createElement(Ze,{ref:rr,prefixCls:qt,id:Rt,open:nr,inputElement:fr,disabled:mr,autoFocus:hr,autoComplete:ir,editable:kr,activeDescendantId:Lt,value:mn,onKeyDown:Wn,onMouseDown:Rn,onChange:function(vt){pr(!0),pn(vt)},onPaste:rn,onCompositionStart:zn,onCompositionEnd:Jn,onBlur:Un,tabIndex:Nr,attrs:(0,de.Z)(kt,!0),maxLength:Fr?Cn:void 0})),!Fr&&Hr?ee.createElement("span",{className:"".concat(qt,"-selection-item"),title:_n,style:On?{visibility:"hidden"}:void 0},Hr.label):null,In)},ct=Je,st=function(kt,fr){var qt=(0,ee.useRef)(null),Rt=(0,ee.useRef)(!1),rr=kt.prefixCls,mr=kt.open,hr=kt.mode,ir=kt.showSearch,Lt=kt.tokenWithEnter,br=kt.disabled,nr=kt.prefix,Jr=kt.autoClearSearchValue,yr=kt.onSearch,Nr=kt.onSearchSubmit,Zr=kt.onToggleOpen,an=kt.onInputKeyDown,un=kt.onInputBlur,Cn=kt.domRef;ee.useImperativeHandle(fr,function(){return{focus:function(_n){qt.current.focus(_n)},blur:function(){qt.current.blur()}}});var Wn=Ce(0),Rn=(0,xe.Z)(Wn,2),pn=Rn[0],rn=Rn[1],zn=function(_n){var In=_n.which,Qn=qt.current instanceof HTMLTextAreaElement;!Qn&&mr&&(In===Me.Z.UP||In===Me.Z.DOWN)&&_n.preventDefault(),an&&an(_n),In===Me.Z.ENTER&&hr==="tags"&&!Rt.current&&!mr&&(Nr==null||Nr(_n.target.value)),!(Qn&&!mr&&~[Me.Z.UP,Me.Z.DOWN,Me.Z.LEFT,Me.Z.RIGHT].indexOf(In))&&ke(In)&&Zr(!0)},Jn=function(){rn(!0)},Un=(0,ee.useRef)(null),Vn=function(_n){yr(_n,!0,Rt.current)!==!1&&Zr(!0)},Gn=function(){Rt.current=!0},Er=function(_n){Rt.current=!1,hr!=="combobox"&&Vn(_n.target.value)},_r=function(_n){var In=_n.target.value;if(Lt&&Un.current&&/[\r\n]/.test(Un.current)){var Qn=Un.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");In=In.replace(Qn,Un.current)}Un.current=null,Vn(In)},pr=function(_n){var In=_n.clipboardData,Qn=In==null?void 0:In.getData("text");Un.current=Qn||""},Fr=function(_n){var In=_n.target;if(In!==qt.current){var Qn=document.body.style.msTouchAction!==void 0;Qn?setTimeout(function(){qt.current.focus()}):qt.current.focus()}},kr=function(_n){var In=pn();_n.target!==qt.current&&!In&&!(hr==="combobox"&&br)&&_n.preventDefault(),(hr!=="combobox"&&(!ir||!In)||!mr)&&(mr&&Jr!==!1&&yr("",!0,!1),Zr())},Hr={inputRef:qt,onInputKeyDown:zn,onInputMouseDown:Jn,onInputChange:_r,onInputPaste:pr,onInputCompositionStart:Gn,onInputCompositionEnd:Er,onInputBlur:un},mn=hr==="multiple"||hr==="tags"?ee.createElement(ot,(0,He.Z)({},kt,Hr)):ee.createElement(ct,(0,He.Z)({},kt,Hr));return ee.createElement("div",{ref:Cn,className:"".concat(rr,"-selector"),onClick:Fr,onMouseDown:kr},nr&&ee.createElement("div",{className:"".concat(rr,"-prefix")},nr),mn)},Ye=ee.forwardRef(st),Le=Ye,_e=Xe(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ue=function(kt){var fr=kt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fr,adjustY:1},htmlRegion:"scroll"}}},Re=function(kt,fr){var qt=kt.prefixCls,Rt=kt.disabled,rr=kt.visible,mr=kt.children,hr=kt.popupElement,ir=kt.animation,Lt=kt.transitionName,br=kt.dropdownStyle,nr=kt.dropdownClassName,Jr=kt.direction,yr=Jr===void 0?"ltr":Jr,Nr=kt.placement,Zr=kt.builtinPlacements,an=kt.dropdownMatchSelectWidth,un=kt.dropdownRender,Cn=kt.dropdownAlign,Wn=kt.getPopupContainer,Rn=kt.empty,pn=kt.getTriggerDOMNode,rn=kt.onPopupVisibleChange,zn=kt.onPopupMouseEnter,Jn=(0,x.Z)(kt,te),Un="".concat(qt,"-dropdown"),Vn=hr;un&&(Vn=un(hr));var Gn=ee.useMemo(function(){return Zr||ue(an)},[Zr,an]),Er=ir?"".concat(Un,"-").concat(ir):Lt,_r=typeof an=="number",pr=ee.useMemo(function(){return _r?null:an===!1?"minWidth":"width"},[an,_r]),Fr=br;_r&&(Fr=(0,De.Z)((0,De.Z)({},Fr),{},{width:an}));var kr=ee.useRef(null);return ee.useImperativeHandle(fr,function(){return{getPopupElement:function(){var mn;return(mn=kr.current)===null||mn===void 0?void 0:mn.popupElement}}}),ee.createElement(_e.Z,(0,He.Z)({},Jn,{showAction:rn?["click"]:[],hideAction:rn?["click"]:[],popupPlacement:Nr||(yr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Gn,prefixCls:Un,popupTransitionName:Er,popup:ee.createElement("div",{onMouseEnter:zn},Vn),ref:kr,stretch:pr,popupAlign:Cn,popupVisible:rr,getPopupContainer:Wn,popupClassName:E()(nr,(0,y.Z)({},"".concat(Un,"-empty"),Rn)),popupStyle:Fr,getTriggerDOMNode:pn,onPopupVisibleChange:rn}),mr)},Fe=ee.forwardRef(Re),we=Fe,Ee=Xe(57879);function Pe(Et,kt){var fr=Et.key,qt;return"value"in Et&&(qt=Et.value),fr!=null?fr:qt!==void 0?qt:"rc-index-key-".concat(kt)}function Ue(Et){return typeof Et!="undefined"&&!Number.isNaN(Et)}function qe(Et,kt){var fr=Et||{},qt=fr.label,Rt=fr.value,rr=fr.options,mr=fr.groupLabel,hr=qt||(kt?"children":"label");return{label:hr,value:Rt||"value",options:rr||"options",groupLabel:mr||hr}}function nt(Et){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fr=kt.fieldNames,qt=kt.childrenAsData,Rt=[],rr=qe(fr,!1),mr=rr.label,hr=rr.value,ir=rr.options,Lt=rr.groupLabel;function br(nr,Jr){Array.isArray(nr)&&nr.forEach(function(yr){if(Jr||!(ir in yr)){var Nr=yr[hr];Rt.push({key:Pe(yr,Rt.length),groupOption:Jr,data:yr,label:yr[mr],value:Nr})}else{var Zr=yr[Lt];Zr===void 0&&qt&&(Zr=yr.label),Rt.push({key:Pe(yr,Rt.length),group:!0,data:yr,label:Zr}),br(yr[ir],!0)}})}return br(Et,!1),Rt}function dt(Et){var kt=(0,De.Z)({},Et);return"props"in kt||Object.defineProperty(kt,"props",{get:function(){return(0,se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),kt}}),kt}var lt=function(kt,fr,qt){if(!fr||!fr.length)return null;var Rt=!1,rr=function hr(ir,Lt){var br=(0,Ee.Z)(Lt),nr=br[0],Jr=br.slice(1);if(!nr)return[ir];var yr=ir.split(nr);return Rt=Rt||yr.length>1,yr.reduce(function(Nr,Zr){return[].concat((0,xt.Z)(Nr),(0,xt.Z)(hr(Zr,Jr)))},[]).filter(Boolean)},mr=rr(kt,fr);return Rt?typeof qt!="undefined"?mr.slice(0,qt):mr:null},ht=ee.createContext(null),St=ht;function gt(Et){var kt=Et.visible,fr=Et.values;if(!kt)return null;var qt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(fr.slice(0,qt).map(function(Rt){var rr=Rt.label,mr=Rt.value;return["number","string"].includes((0,z.Z)(rr))?rr:mr}).join(", ")),fr.length>qt?", ...":null)}var yt=["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"],mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ct=function(kt){return kt==="tags"||kt==="multiple"},wt=ee.forwardRef(function(Et,kt){var fr,qt=Et.id,Rt=Et.prefixCls,rr=Et.className,mr=Et.showSearch,hr=Et.tagRender,ir=Et.direction,Lt=Et.omitDomProps,br=Et.displayValues,nr=Et.onDisplayValuesChange,Jr=Et.emptyOptions,yr=Et.notFoundContent,Nr=yr===void 0?"Not Found":yr,Zr=Et.onClear,an=Et.mode,un=Et.disabled,Cn=Et.loading,Wn=Et.getInputElement,Rn=Et.getRawInputElement,pn=Et.open,rn=Et.defaultOpen,zn=Et.onDropdownVisibleChange,Jn=Et.activeValue,Un=Et.onActiveValueChange,Vn=Et.activeDescendantId,Gn=Et.searchValue,Er=Et.autoClearSearchValue,_r=Et.onSearch,pr=Et.onSearchSplit,Fr=Et.tokenSeparators,kr=Et.allowClear,Hr=Et.prefix,mn=Et.suffixIcon,On=Et.clearIcon,_n=Et.OptionList,In=Et.animation,Qn=Et.transitionName,vt=Et.dropdownStyle,Bt=Et.dropdownClassName,Ft=Et.dropdownMatchSelectWidth,zt=Et.dropdownRender,Jt=Et.dropdownAlign,Qt=Et.placement,ur=Et.builtinPlacements,sr=Et.getPopupContainer,tr=Et.showAction,It=tr===void 0?[]:tr,Vt=Et.onFocus,Pt=Et.onBlur,_t=Et.onKeyUp,Wt=Et.onKeyDown,Yt=Et.onMouseDown,xr=(0,x.Z)(Et,yt),Tr=Ct(an),Wr=(mr!==void 0?mr:Tr)||an==="combobox",Kr=(0,De.Z)({},xr);mt.forEach(function(Kn){delete Kr[Kn]}),Lt==null||Lt.forEach(function(Kn){delete Kr[Kn]});var Br=ee.useState(!1),on=(0,xe.Z)(Br,2),Qr=on[0],bn=on[1];ee.useEffect(function(){bn((0,re.Z)())},[]);var Mn=ee.useRef(null),Nn=ee.useRef(null),kn=ee.useRef(null),Ln=ee.useRef(null),Pn=ee.useRef(null),Tn=ee.useRef(!1),Dn=ve(),Ur=(0,xe.Z)(Dn,3),Vr=Ur[0],ln=Ur[1],vn=Ur[2];ee.useImperativeHandle(kt,function(){var Kn,Fn;return{focus:(Kn=Ln.current)===null||Kn===void 0?void 0:Kn.focus,blur:(Fn=Ln.current)===null||Fn===void 0?void 0:Fn.blur,scrollTo:function(hi){var bi;return(bi=Pn.current)===null||bi===void 0?void 0:bi.scrollTo(hi)},nativeElement:Mn.current||Nn.current}});var jn=ee.useMemo(function(){var Kn;if(an!=="combobox")return Gn;var Fn=(Kn=br[0])===null||Kn===void 0?void 0:Kn.value;return typeof Fn=="string"||typeof Fn=="number"?String(Fn):""},[Gn,an,br]),Sn=an==="combobox"&&typeof Wn=="function"&&Wn()||null,gn=typeof Rn=="function"&&Rn(),$n=(0,le.x1)(Nn,gn==null||(fr=gn.props)===null||fr===void 0?void 0:fr.ref),Ei=ee.useState(!1),Ci=(0,xe.Z)(Ei,2),oa=Ci[0],Bi=Ci[1];(0,ie.Z)(function(){Bi(!0)},[]);var ri=(0,oe.Z)(!1,{defaultValue:rn,value:pn}),ei=(0,xe.Z)(ri,2),ti=ei[0],ki=ei[1],ai=oa?ti:!1,li=!Nr&&Jr;(un||li&&ai&&an==="combobox")&&(ai=!1);var oi=li?!1:ai,sn=ee.useCallback(function(Kn){var Fn=Kn!==void 0?Kn:!ai;un||(ki(Fn),ai!==Fn&&(zn==null||zn(Fn)))},[un,ai,ki,zn]),wn=ee.useMemo(function(){return(Fr||[]).some(function(Kn){return[`
`,`\r
`].includes(Kn)})},[Fr]),xn=ee.useContext(St)||{},En=xn.maxCount,Xn=xn.rawValues,qn=function(Fn,vi,hi){if(!(Tr&&Ue(En)&&(Xn==null?void 0:Xn.size)>=En)){var bi=!0,Ti=Fn;Un==null||Un(null);var la=lt(Fn,Fr,Ue(En)?En-Xn.size:void 0),na=hi?null:la;return an!=="combobox"&&na&&(Ti="",pr==null||pr(na),sn(!1),bi=!1),_r&&jn!==Ti&&_r(Ti,{source:vi?"typing":"effect"}),bi}},Zi=function(Fn){!Fn||!Fn.trim()||_r(Fn,{source:"submit"})};ee.useEffect(function(){!ai&&!Tr&&an!=="combobox"&&qn("",!1,!1)},[ai]),ee.useEffect(function(){ti&&un&&ki(!1),un&&!Tn.current&&ln(!1)},[un]);var fi=Ce(),ci=(0,xe.Z)(fi,2),Bn=ci[0],yi=ci[1],Gi=ee.useRef(!1),ni=function(Fn){var vi=Bn(),hi=Fn.key,bi=hi==="Enter";if(bi&&(an!=="combobox"&&Fn.preventDefault(),ai||sn(!0)),yi(!!jn),hi==="Backspace"&&!vi&&Tr&&!jn&&br.length){for(var Ti=(0,xt.Z)(br),la=null,na=Ti.length-1;na>=0;na-=1){var va=Ti[na];if(!va.disabled){Ti.splice(na,1),la=va;break}}la&&nr(Ti,{type:"remove",values:[la]})}for(var pi=arguments.length,ji=new Array(pi>1?pi-1:0),Ji=1;Ji<pi;Ji++)ji[Ji-1]=arguments[Ji];if(ai&&(!bi||!Gi.current)){var ua;bi&&(Gi.current=!0),(ua=Pn.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[Fn].concat(ji))}Wt==null||Wt.apply(void 0,[Fn].concat(ji))},sa=function(Fn){for(var vi=arguments.length,hi=new Array(vi>1?vi-1:0),bi=1;bi<vi;bi++)hi[bi-1]=arguments[bi];if(ai){var Ti;(Ti=Pn.current)===null||Ti===void 0||Ti.onKeyUp.apply(Ti,[Fn].concat(hi))}Fn.key==="Enter"&&(Gi.current=!1),_t==null||_t.apply(void 0,[Fn].concat(hi))},Ki=function(Fn){var vi=br.filter(function(hi){return hi!==Fn});nr(vi,{type:"remove",values:[Fn]})},Yi=function(){Gi.current=!1},mi=ee.useRef(!1),ro=function(){ln(!0),un||(Vt&&!mi.current&&Vt.apply(void 0,arguments),It.includes("focus")&&sn(!0)),mi.current=!0},Ya=function(){Tn.current=!0,ln(!1,function(){mi.current=!1,Tn.current=!1,sn(!1)}),!un&&(jn&&(an==="tags"?_r(jn,{source:"submit"}):an==="multiple"&&_r("",{source:"blur"})),Pt&&Pt.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(Fn){var vi,hi=Fn.target,bi=(vi=kn.current)===null||vi===void 0?void 0:vi.getPopupElement();if(bi&&bi.contains(hi)){var Ti=setTimeout(function(){var pi=pa.indexOf(Ti);if(pi!==-1&&pa.splice(pi,1),vn(),!Qr&&!bi.contains(document.activeElement)){var ji;(ji=Ln.current)===null||ji===void 0||ji.focus()}});pa.push(Ti)}for(var la=arguments.length,na=new Array(la>1?la-1:0),va=1;va<la;va++)na[va-1]=arguments[va];Yt==null||Yt.apply(void 0,[Fn].concat(na))},ra=ee.useState({}),Ea=(0,xe.Z)(ra,2),no=Ea[1];function io(){no({})}var ao;gn&&(ao=function(Fn){sn(Fn)}),Te(function(){var Kn;return[Mn.current,(Kn=kn.current)===null||Kn===void 0?void 0:Kn.getPopupElement()]},oi,sn,!!gn);var La=ee.useMemo(function(){return(0,De.Z)((0,De.Z)({},Et),{},{notFoundContent:Nr,open:ai,triggerOpen:oi,id:qt,showSearch:Wr,multiple:Tr,toggleOpen:sn})},[Et,Nr,oi,ai,qt,Wr,Tr,sn]),Ja=!!mn||Cn,Ba;Ja&&(Ba=ee.createElement(he,{className:E()("".concat(Rt,"-arrow"),(0,y.Z)({},"".concat(Rt,"-arrow-loading"),Cn)),customizeIcon:mn,customizeIconProps:{loading:Cn,searchValue:jn,open:ai,focused:Vr,showSearch:Wr}}));var Ca=function(){var Fn;Zr==null||Zr(),(Fn=Ln.current)===null||Fn===void 0||Fn.focus(),nr([],{type:"clear",values:br}),qn("",!1,!1)},Qa=ge(Rt,Ca,br,kr,On,un,jn,an),oo=Qa.allowClear,Fa=Qa.clearIcon,ka=ee.createElement(_n,{ref:Pn}),Ta=E()(Rt,rr,(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(Rt,"-focused"),Vr),"".concat(Rt,"-multiple"),Tr),"".concat(Rt,"-single"),!Tr),"".concat(Rt,"-allow-clear"),kr),"".concat(Rt,"-show-arrow"),Ja),"".concat(Rt,"-disabled"),un),"".concat(Rt,"-loading"),Cn),"".concat(Rt,"-open"),ai),"".concat(Rt,"-customize-input"),Sn),"".concat(Rt,"-show-search"),Wr)),Fi=ee.createElement(we,{ref:kn,disabled:un,prefixCls:Rt,visible:oi,popupElement:ka,animation:In,transitionName:Qn,dropdownStyle:vt,dropdownClassName:Bt,direction:ir,dropdownMatchSelectWidth:Ft,dropdownRender:zt,dropdownAlign:Jt,placement:Qt,builtinPlacements:ur,getPopupContainer:sr,empty:Jr,getTriggerDOMNode:function(Fn){return Nn.current||Fn},onPopupVisibleChange:ao,onPopupMouseEnter:io},gn?ee.cloneElement(gn,{ref:$n}):ee.createElement(Le,(0,He.Z)({},Et,{domRef:Nn,prefixCls:Rt,inputElement:Sn,ref:Ln,id:qt,prefix:Hr,showSearch:Wr,autoClearSearchValue:Er,mode:an,activeDescendantId:Vn,tagRender:hr,values:br,open:ai,onToggleOpen:sn,activeValue:Jn,searchValue:jn,onSearch:qn,onSearchSubmit:Zi,onRemove:Ki,tokenWithEnter:wn,onInputBlur:Yi}))),di;return gn?di=Fi:di=ee.createElement("div",(0,He.Z)({className:Ta},Kr,{ref:Mn,onMouseDown:ma,onKeyDown:ni,onKeyUp:sa,onFocus:ro,onBlur:Ya}),ee.createElement(gt,{visible:Vr&&!ai,values:br}),Fi,Ba,oo&&Fa),ee.createElement(be.Provider,{value:La},di)}),pt=wt,Ot=function(){return null};Ot.isSelectOptGroup=!0;var At=Ot,Nt=function(){return null};Nt.isSelectOption=!0;var Ht=Nt,gr=Xe(80547),$t=Xe(2738),Ar=Xe(6790);function er(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ir=["disabled","title","children","style","className"];function $r(Et){return typeof Et=="string"||typeof Et=="number"}var nn=function(kt,fr){var qt=me(),Rt=qt.prefixCls,rr=qt.id,mr=qt.open,hr=qt.multiple,ir=qt.mode,Lt=qt.searchValue,br=qt.toggleOpen,nr=qt.notFoundContent,Jr=qt.onPopupScroll,yr=ee.useContext(St),Nr=yr.maxCount,Zr=yr.flattenOptions,an=yr.onActiveValue,un=yr.defaultActiveFirstOption,Cn=yr.onSelect,Wn=yr.menuItemSelectedIcon,Rn=yr.rawValues,pn=yr.fieldNames,rn=yr.virtual,zn=yr.direction,Jn=yr.listHeight,Un=yr.listItemHeight,Vn=yr.optionRender,Gn="".concat(Rt,"-item"),Er=(0,gr.Z)(function(){return Zr},[mr,Zr],function(tr,It){return It[0]&&tr[1]!==It[1]}),_r=ee.useRef(null),pr=ee.useMemo(function(){return hr&&Ue(Nr)&&(Rn==null?void 0:Rn.size)>=Nr},[hr,Nr,Rn==null?void 0:Rn.size]),Fr=function(It){It.preventDefault()},kr=function(It){var Vt;(Vt=_r.current)===null||Vt===void 0||Vt.scrollTo(typeof It=="number"?{index:It}:It)},Hr=ee.useCallback(function(tr){return ir==="combobox"?!1:Rn.has(tr)},[ir,(0,xt.Z)(Rn).toString(),Rn.size]),mn=function(It){for(var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pt=Er.length,_t=0;_t<Pt;_t+=1){var Wt=(It+_t*Vt+Pt)%Pt,Yt=Er[Wt]||{},xr=Yt.group,Tr=Yt.data;if(!xr&&!(Tr!=null&&Tr.disabled)&&(Hr(Tr.value)||!pr))return Wt}return-1},On=ee.useState(function(){return mn(0)}),_n=(0,xe.Z)(On,2),In=_n[0],Qn=_n[1],vt=function(It){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qn(It);var Pt={source:Vt?"keyboard":"mouse"},_t=Er[It];if(!_t){an(null,-1,Pt);return}an(_t.value,It,Pt)};(0,ee.useEffect)(function(){vt(un!==!1?mn(0):-1)},[Er.length,Lt]);var Bt=ee.useCallback(function(tr){return ir==="combobox"?String(tr).toLowerCase()===Lt.toLowerCase():Rn.has(tr)},[ir,Lt,(0,xt.Z)(Rn).toString(),Rn.size]);(0,ee.useEffect)(function(){var tr=setTimeout(function(){if(!hr&&mr&&Rn.size===1){var Vt=Array.from(Rn)[0],Pt=Er.findIndex(function(_t){var Wt=_t.data;return Lt?String(Wt.value).startsWith(Lt):Wt.value===Vt});Pt!==-1&&(vt(Pt),kr(Pt))}});if(mr){var It;(It=_r.current)===null||It===void 0||It.scrollTo(void 0)}return function(){return clearTimeout(tr)}},[mr,Lt]);var Ft=function(It){It!==void 0&&Cn(It,{selected:!Rn.has(It)}),hr||br(!1)};if(ee.useImperativeHandle(fr,function(){return{onKeyDown:function(It){var Vt=It.which,Pt=It.ctrlKey;switch(Vt){case Me.Z.N:case Me.Z.P:case Me.Z.UP:case Me.Z.DOWN:{var _t=0;if(Vt===Me.Z.UP?_t=-1:Vt===Me.Z.DOWN?_t=1:er()&&Pt&&(Vt===Me.Z.N?_t=1:Vt===Me.Z.P&&(_t=-1)),_t!==0){var Wt=mn(In+_t,_t);kr(Wt),vt(Wt,!0)}break}case Me.Z.TAB:case Me.Z.ENTER:{var Yt,xr=Er[In];xr&&!(xr!=null&&(Yt=xr.data)!==null&&Yt!==void 0&&Yt.disabled)&&!pr?Ft(xr.value):Ft(void 0),mr&&It.preventDefault();break}case Me.Z.ESC:br(!1),mr&&It.stopPropagation()}},onKeyUp:function(){},scrollTo:function(It){kr(It)}}}),Er.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(rr,"_list"),className:"".concat(Gn,"-empty"),onMouseDown:Fr},nr);var zt=Object.keys(pn).map(function(tr){return pn[tr]}),Jt=function(It){return It.label};function Qt(tr,It){var Vt=tr.group;return{role:Vt?"presentation":"option",id:"".concat(rr,"_list_").concat(It)}}var ur=function(It){var Vt=Er[It];if(!Vt)return null;var Pt=Vt.data||{},_t=Pt.value,Wt=Vt.group,Yt=(0,de.Z)(Pt,!0),xr=Jt(Vt);return Vt?ee.createElement("div",(0,He.Z)({"aria-label":typeof xr=="string"&&!Wt?xr:null},Yt,{key:It},Qt(Vt,It),{"aria-selected":Bt(_t)}),_t):null},sr={role:"listbox",id:"".concat(rr,"_list")};return ee.createElement(ee.Fragment,null,rn&&ee.createElement("div",(0,He.Z)({},sr,{style:{height:0,width:0,overflow:"hidden"}}),ur(In-1),ur(In),ur(In+1)),ee.createElement(Ar.Z,{itemKey:"key",ref:_r,data:Er,height:Jn,itemHeight:Un,fullHeight:!1,onMouseDown:Fr,onScroll:Jr,virtual:rn,direction:zn,innerProps:rn?null:sr},function(tr,It){var Vt=tr.group,Pt=tr.groupOption,_t=tr.data,Wt=tr.label,Yt=tr.value,xr=_t.key;if(Vt){var Tr,Wr=(Tr=_t.title)!==null&&Tr!==void 0?Tr:$r(Wt)?Wt.toString():void 0;return ee.createElement("div",{className:E()(Gn,"".concat(Gn,"-group"),_t.className),title:Wr},Wt!==void 0?Wt:xr)}var Kr=_t.disabled,Br=_t.title,on=_t.children,Qr=_t.style,bn=_t.className,Mn=(0,x.Z)(_t,Ir),Nn=(0,$t.Z)(Mn,zt),kn=Hr(Yt),Ln=Kr||!kn&&pr,Pn="".concat(Gn,"-option"),Tn=E()(Gn,Pn,bn,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Pn,"-grouped"),Pt),"".concat(Pn,"-active"),In===It&&!Ln),"".concat(Pn,"-disabled"),Ln),"".concat(Pn,"-selected"),kn)),Dn=Jt(tr),Ur=!Wn||typeof Wn=="function"||kn,Vr=typeof Dn=="number"?Dn:Dn||Yt,ln=$r(Vr)?Vr.toString():void 0;return Br!==void 0&&(ln=Br),ee.createElement("div",(0,He.Z)({},(0,de.Z)(Nn),rn?{}:Qt(tr,It),{"aria-selected":Bt(Yt),className:Tn,title:ln,onMouseMove:function(){In===It||Ln||vt(It)},onClick:function(){Ln||Ft(Yt)},style:Qr}),ee.createElement("div",{className:"".concat(Pn,"-content")},typeof Vn=="function"?Vn(tr,{index:It}):Vr),ee.isValidElement(Wn)||kn,Ur&&ee.createElement(he,{className:"".concat(Gn,"-option-state"),customizeIcon:Wn,customizeIconProps:{value:Yt,disabled:Ln,isSelected:kn}},kn?"\u2713":null))}))},dn=ee.forwardRef(nn),tn=dn,Dr=function(Et,kt){var fr=ee.useRef({values:new Map,options:new Map}),qt=ee.useMemo(function(){var rr=fr.current,mr=rr.values,hr=rr.options,ir=Et.map(function(nr){if(nr.label===void 0){var Jr;return(0,De.Z)((0,De.Z)({},nr),{},{label:(Jr=mr.get(nr.value))===null||Jr===void 0?void 0:Jr.label})}return nr}),Lt=new Map,br=new Map;return ir.forEach(function(nr){Lt.set(nr.value,nr),br.set(nr.value,kt.get(nr.value)||hr.get(nr.value))}),fr.current.values=Lt,fr.current.options=br,ir},[Et,kt]),Rt=ee.useCallback(function(rr){return kt.get(rr)||fr.current.options.get(rr)},[kt]);return[qt,Rt]};function fn(Et,kt){return ze(Et).join("").toUpperCase().includes(kt)}var hn=function(Et,kt,fr,qt,Rt){return ee.useMemo(function(){if(!fr||qt===!1)return Et;var rr=kt.options,mr=kt.label,hr=kt.value,ir=[],Lt=typeof qt=="function",br=fr.toUpperCase(),nr=Lt?qt:function(yr,Nr){return Rt?fn(Nr[Rt],br):Nr[rr]?fn(Nr[mr!=="children"?mr:"label"],br):fn(Nr[hr],br)},Jr=Lt?function(yr){return dt(yr)}:function(yr){return yr};return Et.forEach(function(yr){if(yr[rr]){var Nr=nr(fr,Jr(yr));if(Nr)ir.push(yr);else{var Zr=yr[rr].filter(function(an){return nr(fr,Jr(an))});Zr.length&&ir.push((0,De.Z)((0,De.Z)({},yr),{},(0,y.Z)({},rr,Zr)))}return}nr(fr,Jr(yr))&&ir.push(yr)}),ir},[Et,qt,Rt,fr,kt])},Rr=Xe(6551),jr=Xe(11592),Dt=["children","value"],jt=["children"];function Mt(Et){var kt=Et,fr=kt.key,qt=kt.props,Rt=qt.children,rr=qt.value,mr=(0,x.Z)(qt,Dt);return(0,De.Z)({key:fr,value:rr!==void 0?rr:fr,children:Rt},mr)}function ar(Et){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,jr.Z)(Et).map(function(fr,qt){if(!ee.isValidElement(fr)||!fr.type)return null;var Rt=fr,rr=Rt.type.isSelectOptGroup,mr=Rt.key,hr=Rt.props,ir=hr.children,Lt=(0,x.Z)(hr,jt);return kt||!rr?Mt(fr):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(mr===null?qt:mr,"__"),label:mr},Lt),{},{options:ar(ir)})}).filter(function(fr){return fr})}var Or=function(kt,fr,qt,Rt,rr){return ee.useMemo(function(){var mr=kt,hr=!kt;hr&&(mr=ar(fr));var ir=new Map,Lt=new Map,br=function(yr,Nr,Zr){Zr&&typeof Zr=="string"&&yr.set(Nr[Zr],Nr)},nr=function Jr(yr){for(var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zr=0;Zr<yr.length;Zr+=1){var an=yr[Zr];!an[qt.options]||Nr?(ir.set(an[qt.value],an),br(Lt,an,qt.label),br(Lt,an,Rt),br(Lt,an,rr)):Jr(an[qt.options],!0)}};return nr(mr),{options:mr,valueOptions:ir,labelOptions:Lt}},[kt,fr,qt,Rt,rr])},wr=Or;function vr(Et){var kt=ee.useRef();kt.current=Et;var fr=ee.useCallback(function(){return kt.current.apply(kt,arguments)},[]);return fr}function Pr(Et){var kt=Et.mode,fr=Et.options,qt=Et.children,Rt=Et.backfill,rr=Et.allowClear,mr=Et.placeholder,hr=Et.getInputElement,ir=Et.showSearch,Lt=Et.onSearch,br=Et.defaultOpen,nr=Et.autoFocus,Jr=Et.labelInValue,yr=Et.value,Nr=Et.inputValue,Zr=Et.optionLabelProp,an=isMultiple(kt),un=ir!==void 0?ir:an||kt==="combobox",Cn=fr||convertChildrenToData(qt);if(warning(kt!=="tags"||Cn.every(function(rn){return!rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),kt==="tags"||kt==="combobox"){var Wn=Cn.some(function(rn){return rn.options?rn.options.some(function(zn){return typeof("value"in zn?zn.value:zn.key)=="number"}):typeof("value"in rn?rn.value:rn.key)=="number"});warning(!Wn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(kt!=="combobox"||!Zr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(kt==="combobox"||!Rt,"`backfill` only works with `combobox` mode."),warning(kt==="combobox"||!hr,"`getInputElement` only work with `combobox` mode."),noteOnce(kt!=="combobox"||!hr||!rr||!mr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Lt&&!un&&kt!=="combobox"&&kt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!br||nr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),yr!=null){var Rn=toArray(yr);warning(!Jr||Rn.every(function(rn){return _typeof(rn)==="object"&&("key"in rn||"value"in rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!an||Array.isArray(yr),"`value` should be array when `mode` is `multiple` or `tags`")}if(qt){var pn=null;toNodeArray(qt).some(function(rn){if(!React.isValidElement(rn)||!rn.type)return!1;var zn=rn,Jn=zn.type;if(Jn.isSelectOption)return!1;if(Jn.isSelectOptGroup){var Un=toNodeArray(rn.props.children).every(function(Vn){return!React.isValidElement(Vn)||!rn.type||Vn.type.isSelectOption?!0:(pn=Vn.type,!1)});return!Un}return pn=Jn,!0}),pn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(pn.displayName||pn.name||pn,"`.")),warning(Nr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function dr(Et,kt){if(Et){var fr=function qt(Rt){for(var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mr=0;mr<Rt.length;mr++){var hr=Rt[mr];if(hr[kt==null?void 0:kt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!rr&&Array.isArray(hr[kt==null?void 0:kt.options])&&qt(hr[kt==null?void 0:kt.options],!0))break}};fr(Et)}}var Cr=null,Lr=["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"],Xr=["inputValue"];function or(Et){return!Et||(0,z.Z)(Et)!=="object"}var Ut=ee.forwardRef(function(Et,kt){var fr=Et.id,qt=Et.mode,Rt=Et.prefixCls,rr=Rt===void 0?"rc-select":Rt,mr=Et.backfill,hr=Et.fieldNames,ir=Et.inputValue,Lt=Et.searchValue,br=Et.onSearch,nr=Et.autoClearSearchValue,Jr=nr===void 0?!0:nr,yr=Et.onSelect,Nr=Et.onDeselect,Zr=Et.dropdownMatchSelectWidth,an=Zr===void 0?!0:Zr,un=Et.filterOption,Cn=Et.filterSort,Wn=Et.optionFilterProp,Rn=Et.optionLabelProp,pn=Et.options,rn=Et.optionRender,zn=Et.children,Jn=Et.defaultActiveFirstOption,Un=Et.menuItemSelectedIcon,Vn=Et.virtual,Gn=Et.direction,Er=Et.listHeight,_r=Er===void 0?200:Er,pr=Et.listItemHeight,Fr=pr===void 0?20:pr,kr=Et.labelRender,Hr=Et.value,mn=Et.defaultValue,On=Et.labelInValue,_n=Et.onChange,In=Et.maxCount,Qn=(0,x.Z)(Et,Lr),vt=(0,Rr.ZP)(fr),Bt=Ct(qt),Ft=!!(!pn&&zn),zt=ee.useMemo(function(){return un===void 0&&qt==="combobox"?!1:un},[un,qt]),Jt=ee.useMemo(function(){return qe(hr,Ft)},[JSON.stringify(hr),Ft]),Qt=(0,oe.Z)("",{value:Lt!==void 0?Lt:ir,postState:function(wn){return wn||""}}),ur=(0,xe.Z)(Qt,2),sr=ur[0],tr=ur[1],It=wr(pn,zn,Jt,Wn,Rn),Vt=It.valueOptions,Pt=It.labelOptions,_t=It.options,Wt=ee.useCallback(function(sn){var wn=ze(sn);return wn.map(function(xn){var En,Xn,qn,Zi,fi;if(or(xn))En=xn;else{var ci;qn=xn.key,Xn=xn.label,En=(ci=xn.value)!==null&&ci!==void 0?ci:qn}var Bn=Vt.get(En);if(Bn){var yi;if(Xn===void 0&&(Xn=Bn==null?void 0:Bn[Rn||Jt.label]),qn===void 0&&(qn=(yi=Bn==null?void 0:Bn.key)!==null&&yi!==void 0?yi:En),Zi=Bn==null?void 0:Bn.disabled,fi=Bn==null?void 0:Bn.title,0)var Gi}return{label:Xn,value:En,key:qn,disabled:Zi,title:fi}})},[Jt,Rn,Vt]),Yt=(0,oe.Z)(mn,{value:Hr}),xr=(0,xe.Z)(Yt,2),Tr=xr[0],Wr=xr[1],Kr=ee.useMemo(function(){var sn,wn=Bt&&Tr===null?[]:Tr,xn=Wt(wn);return qt==="combobox"&&We((sn=xn[0])===null||sn===void 0?void 0:sn.value)?[]:xn},[Tr,Wt,qt,Bt]),Br=Dr(Kr,Vt),on=(0,xe.Z)(Br,2),Qr=on[0],bn=on[1],Mn=ee.useMemo(function(){if(!qt&&Qr.length===1){var sn=Qr[0];if(sn.value===null&&(sn.label===null||sn.label===void 0))return[]}return Qr.map(function(wn){var xn;return(0,De.Z)((0,De.Z)({},wn),{},{label:(xn=typeof kr=="function"?kr(wn):wn.label)!==null&&xn!==void 0?xn:wn.value})})},[qt,Qr,kr]),Nn=ee.useMemo(function(){return new Set(Qr.map(function(sn){return sn.value}))},[Qr]);ee.useEffect(function(){if(qt==="combobox"){var sn,wn=(sn=Qr[0])===null||sn===void 0?void 0:sn.value;tr(Ie(wn)?String(wn):"")}},[Qr]);var kn=vr(function(sn,wn){var xn=wn!=null?wn:sn;return(0,y.Z)((0,y.Z)({},Jt.value,sn),Jt.label,xn)}),Ln=ee.useMemo(function(){if(qt!=="tags")return _t;var sn=(0,xt.Z)(_t),wn=function(En){return Vt.has(En)};return(0,xt.Z)(Qr).sort(function(xn,En){return xn.value<En.value?-1:1}).forEach(function(xn){var En=xn.value;wn(En)||sn.push(kn(En,xn.label))}),sn},[kn,_t,Vt,Qr,qt]),Pn=hn(Ln,Jt,sr,zt,Wn),Tn=ee.useMemo(function(){return qt!=="tags"||!sr||Pn.some(function(sn){return sn[Wn||"value"]===sr})||Pn.some(function(sn){return sn[Jt.value]===sr})?Pn:[kn(sr)].concat((0,xt.Z)(Pn))},[kn,Wn,qt,Pn,sr,Jt]),Dn=function sn(wn){var xn=(0,xt.Z)(wn).sort(function(En,Xn){return Cn(En,Xn,{searchValue:sr})});return xn.map(function(En){return Array.isArray(En.options)?(0,De.Z)((0,De.Z)({},En),{},{options:En.options.length>0?sn(En.options):En.options}):En})},Ur=ee.useMemo(function(){return Cn?Dn(Tn):Tn},[Tn,Cn,sr]),Vr=ee.useMemo(function(){return nt(Ur,{fieldNames:Jt,childrenAsData:Ft})},[Ur,Jt,Ft]),ln=function(wn){var xn=Wt(wn);if(Wr(xn),_n&&(xn.length!==Qr.length||xn.some(function(qn,Zi){var fi;return((fi=Qr[Zi])===null||fi===void 0?void 0:fi.value)!==(qn==null?void 0:qn.value)}))){var En=On?xn:xn.map(function(qn){return qn.value}),Xn=xn.map(function(qn){return dt(bn(qn.value))});_n(Bt?En:En[0],Bt?Xn:Xn[0])}},vn=ee.useState(null),jn=(0,xe.Z)(vn,2),Sn=jn[0],gn=jn[1],$n=ee.useState(0),Ei=(0,xe.Z)($n,2),Ci=Ei[0],oa=Ei[1],Bi=Jn!==void 0?Jn:qt!=="combobox",ri=ee.useCallback(function(sn,wn){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},En=xn.source,Xn=En===void 0?"keyboard":En;oa(wn),mr&&qt==="combobox"&&sn!==null&&Xn==="keyboard"&&gn(String(sn))},[mr,qt]),ei=function(wn,xn,En){var Xn=function(){var Ki,Yi=bn(wn);return[On?{label:Yi==null?void 0:Yi[Jt.label],value:wn,key:(Ki=Yi==null?void 0:Yi.key)!==null&&Ki!==void 0?Ki:wn}:wn,dt(Yi)]};if(xn&&yr){var qn=Xn(),Zi=(0,xe.Z)(qn,2),fi=Zi[0],ci=Zi[1];yr(fi,ci)}else if(!xn&&Nr&&En!=="clear"){var Bn=Xn(),yi=(0,xe.Z)(Bn,2),Gi=yi[0],ni=yi[1];Nr(Gi,ni)}},ti=vr(function(sn,wn){var xn,En=Bt?wn.selected:!0;En?xn=Bt?[].concat((0,xt.Z)(Qr),[sn]):[sn]:xn=Qr.filter(function(Xn){return Xn.value!==sn}),ln(xn),ei(sn,En),qt==="combobox"?gn(""):(!Ct||Jr)&&(tr(""),gn(""))}),ki=function(wn,xn){ln(wn);var En=xn.type,Xn=xn.values;(En==="remove"||En==="clear")&&Xn.forEach(function(qn){ei(qn.value,!1,En)})},ai=function(wn,xn){if(tr(wn),gn(null),xn.source==="submit"){var En=(wn||"").trim();if(En){var Xn=Array.from(new Set([].concat((0,xt.Z)(Nn),[En])));ln(Xn),ei(En,!0),tr("")}return}xn.source!=="blur"&&(qt==="combobox"&&ln(wn),br==null||br(wn))},li=function(wn){var xn=wn;qt!=="tags"&&(xn=wn.map(function(Xn){var qn=Pt.get(Xn);return qn==null?void 0:qn.value}).filter(function(Xn){return Xn!==void 0}));var En=Array.from(new Set([].concat((0,xt.Z)(Nn),(0,xt.Z)(xn))));ln(En),En.forEach(function(Xn){ei(Xn,!0)})},oi=ee.useMemo(function(){var sn=Vn!==!1&&an!==!1;return(0,De.Z)((0,De.Z)({},It),{},{flattenOptions:Vr,onActiveValue:ri,defaultActiveFirstOption:Bi,onSelect:ti,menuItemSelectedIcon:Un,rawValues:Nn,fieldNames:Jt,virtual:sn,direction:Gn,listHeight:_r,listItemHeight:Fr,childrenAsData:Ft,maxCount:In,optionRender:rn})},[In,It,Vr,ri,Bi,ti,Un,Nn,Jt,Vn,an,Gn,_r,Fr,Ft,rn]);return ee.createElement(St.Provider,{value:oi},ee.createElement(pt,(0,He.Z)({},Qn,{id:vt,prefixCls:rr,ref:kt,omitDomProps:Xr,mode:qt,displayValues:Mn,onDisplayValuesChange:ki,direction:Gn,searchValue:sr,onSearch:ai,autoClearSearchValue:Jr,onSearchSplit:li,dropdownMatchSelectWidth:an,OptionList:tn,emptyOptions:!Vr.length,activeValue:Sn,activeDescendantId:"".concat(vt,"_list_").concat(Ci)})))}),Xt=Ut;Xt.Option=Ht,Xt.OptGroup=At;var Yr=Xt,qr=Yr},63158:function(lr,Gt,Xe){"use strict";var He=Xe(67711),xt=Xe(52873),y=Xe(16886),De=Xe(33346),xe=Xe(59301),x=Xe(92310),z=Xe.n(x),oe=Xe(18929),se=Xe(10228),ee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],fe=xe.forwardRef(function(E,ie){var re,le=E.prefixCls,ce=le===void 0?"rc-switch":le,he=E.className,ge=E.checked,be=E.defaultChecked,me=E.disabled,ve=E.loadingIcon,Ce=E.checkedChildren,Te=E.unCheckedChildren,Me=E.onClick,ke=E.onChange,de=E.onKeyDown,ye=(0,De.Z)(E,ee),Se=(0,oe.Z)(!1,{value:ge,defaultValue:be}),Oe=(0,y.Z)(Se,2),Ne=Oe[0],Ae=Oe[1];function je(it,Ie){var We=Ne;return me||(We=it,Ae(We),ke==null||ke(We,Ie)),We}function Ze(it){it.which===se.Z.LEFT?je(!1,it):it.which===se.Z.RIGHT&&je(!0,it),de==null||de(it)}function ze(it){var Ie=je(!Ne,it);Me==null||Me(Ie,it)}var Ve=z()(ce,he,(re={},(0,xt.Z)(re,"".concat(ce,"-checked"),Ne),(0,xt.Z)(re,"".concat(ce,"-disabled"),me),re));return xe.createElement("button",(0,He.Z)({},ye,{type:"button",role:"switch","aria-checked":Ne,disabled:me,className:Ve,ref:ie,onKeyDown:Ze,onClick:ze}),ve,xe.createElement("span",{className:"".concat(ce,"-inner")},xe.createElement("span",{className:"".concat(ce,"-inner-checked")},Ce),xe.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Te)))});fe.displayName="Switch",Gt.Z=fe},86351:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{R:function(){return xt},w:function(){return He}});var He={},xt="rc-table-internal-hook"},97347:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{L:function(){return ce},Z:function(){return ve}});var He=Xe(16886),xt=Xe(52873),y=Xe(15142),De=Xe(26420),xe=Xe(98506),x=Xe(33346),z=Xe(11592),oe=Xe(48736),se=Xe(59301),ee=Xe(86351),fe=Xe(54451);function E(Ce){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ce*parseFloat(Te)/100:null}function ie(Ce,Te,Me){return se.useMemo(function(){if(Te&&Te>0){var ke=0,de=0;Ce.forEach(function(ze){var Ve=E(Te,ze.width);Ve?ke+=Ve:de+=1});var ye=Math.max(Te,Me),Se=Math.max(ye-ke,de),Oe=de,Ne=Se/de,Ae=0,je=Ce.map(function(ze){var Ve=(0,xe.Z)({},ze),it=E(Te,Ve.width);if(it)Ve.width=it;else{var Ie=Math.floor(Ne);Ve.width=Oe===1?Se:Ie,Se-=Ie,Oe-=1}return Ae+=Ve.width,Ve});if(Ae<ye){var Ze=ye/Ae;Se=ye,je.forEach(function(ze,Ve){var it=Math.floor(ze.width*Ze);ze.width=Ve===je.length-1?Se:it,Se-=it})}return[je,Math.max(Ae,ye)]}return[Ce,Te]},[Ce,Te,Me])}var re=["children"],le=["fixed"];function ce(Ce){return(0,z.Z)(Ce).filter(function(Te){return se.isValidElement(Te)}).map(function(Te){var Me=Te.key,ke=Te.props,de=ke.children,ye=(0,x.Z)(ke,re),Se=(0,xe.Z)({key:Me},ye);return de&&(Se.children=ce(de)),Se})}function he(Ce){return Ce.filter(function(Te){return Te&&(0,De.Z)(Te)==="object"&&!Te.hidden}).map(function(Te){var Me=Te.children;return Me&&Me.length>0?(0,xe.Z)((0,xe.Z)({},Te),{},{children:he(Me)}):Te})}function ge(Ce){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ce.filter(function(Me){return Me&&(0,De.Z)(Me)==="object"}).reduce(function(Me,ke,de){var ye=ke.fixed,Se=ye===!0?"left":ye,Oe="".concat(Te,"-").concat(de),Ne=ke.children;return Ne&&Ne.length>0?[].concat((0,y.Z)(Me),(0,y.Z)(ge(Ne,Oe).map(function(Ae){return(0,xe.Z)({fixed:Se},Ae)}))):[].concat((0,y.Z)(Me),[(0,xe.Z)((0,xe.Z)({key:Oe},ke),{},{fixed:Se})])},[])}function be(Ce){return Ce.map(function(Te){var Me=Te.fixed,ke=(0,x.Z)(Te,le),de=Me;return Me==="left"?de="right":Me==="right"&&(de="left"),(0,xe.Z)({fixed:de},ke)})}function me(Ce,Te){var Me=Ce.prefixCls,ke=Ce.columns,de=Ce.children,ye=Ce.expandable,Se=Ce.expandedKeys,Oe=Ce.columnTitle,Ne=Ce.getRowKey,Ae=Ce.onTriggerExpand,je=Ce.expandIcon,Ze=Ce.rowExpandable,ze=Ce.expandIconColumnIndex,Ve=Ce.direction,it=Ce.expandRowByClick,Ie=Ce.columnWidth,We=Ce.fixed,tt=Ce.scrollWidth,rt=Ce.clientWidth,et=se.useMemo(function(){var Le=ke||ce(de)||[];return he(Le.slice())},[ke,de]),Ke=se.useMemo(function(){if(ye){var Le=et.slice();if(!Le.includes(ee.w)){var _e=ze||0;_e>=0&&(_e||We==="left"||!We)&&Le.splice(_e,0,ee.w),We==="right"&&Le.splice(et.length,0,ee.w)}var te=Le.indexOf(ee.w);Le=Le.filter(function(we,Ee){return we!==ee.w||Ee===te});var ue=et[te],Re;We?Re=We:Re=ue?ue.fixed:null;var Fe=(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)({},fe.v,{className:"".concat(Me,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Oe),"fixed",Re),"className","".concat(Me,"-row-expand-icon-cell")),"width",Ie),"render",function(Ee,Pe,Ue){var qe=Ne(Pe,Ue),nt=Se.has(qe),dt=Ze?Ze(Pe):!0,lt=je({prefixCls:Me,expanded:nt,expandable:dt,record:Pe,onExpand:Ae});return it?se.createElement("span",{onClick:function(St){return St.stopPropagation()}},lt):lt});return Le.map(function(we){return we===ee.w?Fe:we})}return et.filter(function(we){return we!==ee.w})},[ye,et,Ne,Se,je,Ve]),$e=se.useMemo(function(){var Le=Ke;return Te&&(Le=Te(Le)),Le.length||(Le=[{render:function(){return null}}]),Le},[Te,Ke,Ve]),Ge=se.useMemo(function(){return Ve==="rtl"?be(ge($e)):ge($e)},[$e,Ve,tt]),ot=se.useMemo(function(){for(var Le=-1,_e=Ge.length-1;_e>=0;_e-=1){var te=Ge[_e].fixed;if(te==="left"||te===!0){Le=_e;break}}if(Le>=0)for(var ue=0;ue<=Le;ue+=1){var Re=Ge[ue].fixed;if(Re!=="left"&&Re!==!0)return!0}var Fe=Ge.findIndex(function(Pe){var Ue=Pe.fixed;return Ue==="right"});if(Fe>=0)for(var we=Fe;we<Ge.length;we+=1){var Ee=Ge[we].fixed;if(Ee!=="right")return!0}return!1},[Ge]),Je=ie(Ge,tt,rt),ct=(0,He.Z)(Je,2),st=ct[0],Ye=ct[1];return[$e,st,Ye,ot]}var ve=me},4030:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{w2:function(){return He.w},vP:function(){return $r.v},RQ:function(){return He.R},ER:function(){return qe},Q$:function(){return un},TN:function(){return _n}});var He=Xe(86351),xt=Xe(16886),y=Xe(6089),De=Xe(34280),xe=Xe(13697),x=Xe(59301),z=Xe(4676);function oe(vt){var Bt=x.createContext(void 0),Ft=function(Jt){var Qt=Jt.value,ur=Jt.children,sr=x.useRef(Qt);sr.current=Qt;var tr=x.useState(function(){return{getValue:function(){return sr.current},listeners:new Set}}),It=(0,xt.Z)(tr,1),Vt=It[0];return(0,De.Z)(function(){(0,z.unstable_batchedUpdates)(function(){Vt.listeners.forEach(function(Pt){Pt(Qt)})})},[Qt]),x.createElement(Bt.Provider,{value:Vt},ur)};return{Context:Bt,Provider:Ft,defaultValue:vt}}function se(vt,Bt){var Ft=(0,y.Z)(typeof Bt=="function"?Bt:function(Pt){if(Bt===void 0)return Pt;if(!Array.isArray(Bt))return Pt[Bt];var _t={};return Bt.forEach(function(Wt){_t[Wt]=Pt[Wt]}),_t}),zt=x.useContext(vt==null?void 0:vt.Context),Jt=zt||{},Qt=Jt.listeners,ur=Jt.getValue,sr=x.useRef();sr.current=Ft(zt?ur():vt==null?void 0:vt.defaultValue);var tr=x.useState({}),It=(0,xt.Z)(tr,2),Vt=It[1];return(0,De.Z)(function(){if(!zt)return;function Pt(_t){var Wt=Ft(_t);(0,xe.Z)(sr.current,Wt,!0)||Vt({})}return Qt.add(Pt),function(){Qt.delete(Pt)}},[zt]),sr.current}var ee=Xe(67711),fe=Xe(8654);function E(){var vt=x.createContext(null);function Bt(){return x.useContext(vt)}function Ft(Jt,Qt){var ur=(0,fe.Yr)(Jt),sr=function(It,Vt){var Pt=ur?{ref:Vt}:{},_t=x.useRef(0),Wt=x.useRef(It),Yt=Bt();return Yt!==null?x.createElement(Jt,(0,ee.Z)({},It,Pt)):((!Qt||Qt(Wt.current,It))&&(_t.current+=1),Wt.current=It,x.createElement(vt.Provider,{value:_t.current},x.createElement(Jt,(0,ee.Z)({},It,Pt))))};return ur?x.forwardRef(sr):sr}function zt(Jt,Qt){var ur=(0,fe.Yr)(Jt),sr=function(It,Vt){var Pt=ur?{ref:Vt}:{};return Bt(),x.createElement(Jt,(0,ee.Z)({},It,Pt))};return ur?x.memo(x.forwardRef(sr),Qt):x.memo(sr,Qt)}return{makeImmutable:Ft,responseImmutable:zt,useImmutableMark:Bt}}var ie=E(),re=ie.makeImmutable,le=ie.responseImmutable,ce=ie.useImmutableMark,he=E(),ge=he.makeImmutable,be=he.responseImmutable,me=he.useImmutableMark,ve=oe(),Ce=ve;function Te(vt,Bt){var Ft=React.useRef(0);Ft.current+=1;var zt=React.useRef(vt),Jt=[];Object.keys(vt||{}).map(function(ur){var sr;(vt==null?void 0:vt[ur])!==((sr=zt.current)===null||sr===void 0?void 0:sr[ur])&&Jt.push(ur)}),zt.current=vt;var Qt=React.useRef([]);return Jt.length&&(Qt.current=Jt),React.useDebugValue(Ft.current),React.useDebugValue(Qt.current.join(", ")),Bt&&console.log("".concat(Bt,":"),Ft.current,Qt.current),Ft.current}var Me=null,ke=null,de=Xe(26420),ye=Xe(98506),Se=Xe(52873),Oe=Xe(92310),Ne=Xe.n(Oe),Ae=Xe(80547),je=Xe(97938),Ze=Xe(48736),ze=x.createContext({renderWithProps:!1}),Ve=ze,it="RC_TABLE_KEY";function Ie(vt){return vt==null?[]:Array.isArray(vt)?vt:[vt]}function We(vt){var Bt=[],Ft={};return vt.forEach(function(zt){for(var Jt=zt||{},Qt=Jt.key,ur=Jt.dataIndex,sr=Qt||Ie(ur).join("-")||it;Ft[sr];)sr="".concat(sr,"_next");Ft[sr]=!0,Bt.push(sr)}),Bt}function tt(vt){return vt!=null}function rt(vt){return typeof vt=="number"&&!Number.isNaN(vt)}function et(vt){return vt&&(0,de.Z)(vt)==="object"&&!Array.isArray(vt)&&!x.isValidElement(vt)}function Ke(vt,Bt,Ft,zt,Jt,Qt){var ur=x.useContext(Ve),sr=me(),tr=(0,Ae.Z)(function(){if(tt(zt))return[zt];var It=Bt==null||Bt===""?[]:Array.isArray(Bt)?Bt:[Bt],Vt=(0,je.Z)(vt,It),Pt=Vt,_t=void 0;if(Jt){var Wt=Jt(Vt,vt,Ft);et(Wt)?(Pt=Wt.children,_t=Wt.props,ur.renderWithProps=!0):Pt=Wt}return[Pt,_t]},[sr,vt,zt,Bt,Jt,Ft],function(It,Vt){if(Qt){var Pt=(0,xt.Z)(It,2),_t=Pt[1],Wt=(0,xt.Z)(Vt,2),Yt=Wt[1];return Qt(Yt,_t)}return ur.renderWithProps?!0:!(0,xe.Z)(It,Vt,!0)});return tr}function $e(vt,Bt,Ft,zt){var Jt=vt+Bt-1;return vt<=zt&&Jt>=Ft}function Ge(vt,Bt){return se(Ce,function(Ft){var zt=$e(vt,Bt||1,Ft.hoverStartRow,Ft.hoverEndRow);return[zt,Ft.onHover]})}var ot=Xe(70425),Je=function(Bt){var Ft=Bt.ellipsis,zt=Bt.rowType,Jt=Bt.children,Qt,ur=Ft===!0?{showTitle:!0}:Ft;return ur&&(ur.showTitle||zt==="header")&&(typeof Jt=="string"||typeof Jt=="number"?Qt=Jt.toString():x.isValidElement(Jt)&&typeof Jt.props.children=="string"&&(Qt=Jt.props.children)),Qt};function ct(vt){var Bt,Ft,zt,Jt,Qt,ur,sr,tr,It=vt.component,Vt=vt.children,Pt=vt.ellipsis,_t=vt.scope,Wt=vt.prefixCls,Yt=vt.className,xr=vt.align,Tr=vt.record,Wr=vt.render,Kr=vt.dataIndex,Br=vt.renderIndex,on=vt.shouldCellUpdate,Qr=vt.index,bn=vt.rowType,Mn=vt.colSpan,Nn=vt.rowSpan,kn=vt.fixLeft,Ln=vt.fixRight,Pn=vt.firstFixLeft,Tn=vt.lastFixLeft,Dn=vt.firstFixRight,Ur=vt.lastFixRight,Vr=vt.appendNode,ln=vt.additionalProps,vn=ln===void 0?{}:ln,jn=vt.isSticky,Sn="".concat(Wt,"-cell"),gn=se(Ce,["supportSticky","allColumnsFixedLeft","rowHoverable"]),$n=gn.supportSticky,Ei=gn.allColumnsFixedLeft,Ci=gn.rowHoverable,oa=Ke(Tr,Kr,Br,Vt,Wr,on),Bi=(0,xt.Z)(oa,2),ri=Bi[0],ei=Bi[1],ti={},ki=typeof kn=="number"&&$n,ai=typeof Ln=="number"&&$n;ki&&(ti.position="sticky",ti.left=kn),ai&&(ti.position="sticky",ti.right=Ln);var li=(Bt=(Ft=(zt=ei==null?void 0:ei.colSpan)!==null&&zt!==void 0?zt:vn.colSpan)!==null&&Ft!==void 0?Ft:Mn)!==null&&Bt!==void 0?Bt:1,oi=(Jt=(Qt=(ur=ei==null?void 0:ei.rowSpan)!==null&&ur!==void 0?ur:vn.rowSpan)!==null&&Qt!==void 0?Qt:Nn)!==null&&Jt!==void 0?Jt:1,sn=Ge(Qr,oi),wn=(0,xt.Z)(sn,2),xn=wn[0],En=wn[1],Xn=(0,ot.zX)(function(Gi){var ni;Tr&&En(Qr,Qr+oi-1),vn==null||(ni=vn.onMouseEnter)===null||ni===void 0||ni.call(vn,Gi)}),qn=(0,ot.zX)(function(Gi){var ni;Tr&&En(-1,-1),vn==null||(ni=vn.onMouseLeave)===null||ni===void 0||ni.call(vn,Gi)});if(li===0||oi===0)return null;var Zi=(sr=vn.title)!==null&&sr!==void 0?sr:Je({rowType:bn,ellipsis:Pt,children:ri}),fi=Ne()(Sn,Yt,(tr={},(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)(tr,"".concat(Sn,"-fix-left"),ki&&$n),"".concat(Sn,"-fix-left-first"),Pn&&$n),"".concat(Sn,"-fix-left-last"),Tn&&$n),"".concat(Sn,"-fix-left-all"),Tn&&Ei&&$n),"".concat(Sn,"-fix-right"),ai&&$n),"".concat(Sn,"-fix-right-first"),Dn&&$n),"".concat(Sn,"-fix-right-last"),Ur&&$n),"".concat(Sn,"-ellipsis"),Pt),"".concat(Sn,"-with-append"),Vr),"".concat(Sn,"-fix-sticky"),(ki||ai)&&jn&&$n),(0,Se.Z)(tr,"".concat(Sn,"-row-hover"),!ei&&xn)),vn.className,ei==null?void 0:ei.className),ci={};xr&&(ci.textAlign=xr);var Bn=(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},ei==null?void 0:ei.style),ti),ci),vn.style),yi=ri;return(0,de.Z)(yi)==="object"&&!Array.isArray(yi)&&!x.isValidElement(yi)&&(yi=null),Pt&&(Tn||Dn)&&(yi=x.createElement("span",{className:"".concat(Sn,"-content")},yi)),x.createElement(It,(0,ee.Z)({},ei,vn,{className:fi,style:Bn,title:Zi,scope:_t,onMouseEnter:Ci?Xn:void 0,onMouseLeave:Ci?qn:void 0,colSpan:li!==1?li:null,rowSpan:oi!==1?oi:null}),Vr,yi)}var st=x.memo(ct);function Ye(vt,Bt,Ft,zt,Jt){var Qt=Ft[vt]||{},ur=Ft[Bt]||{},sr,tr;Qt.fixed==="left"?sr=zt.left[Jt==="rtl"?Bt:vt]:ur.fixed==="right"&&(tr=zt.right[Jt==="rtl"?vt:Bt]);var It=!1,Vt=!1,Pt=!1,_t=!1,Wt=Ft[Bt+1],Yt=Ft[vt-1],xr=Wt&&!Wt.fixed||Yt&&!Yt.fixed||Ft.every(function(on){return on.fixed==="left"});if(Jt==="rtl"){if(sr!==void 0){var Tr=Yt&&Yt.fixed==="left";_t=!Tr&&xr}else if(tr!==void 0){var Wr=Wt&&Wt.fixed==="right";Pt=!Wr&&xr}}else if(sr!==void 0){var Kr=Wt&&Wt.fixed==="left";It=!Kr&&xr}else if(tr!==void 0){var Br=Yt&&Yt.fixed==="right";Vt=!Br&&xr}return{fixLeft:sr,fixRight:tr,lastFixLeft:It,firstFixRight:Vt,lastFixRight:Pt,firstFixLeft:_t,isSticky:zt.isSticky}}var Le=x.createContext({}),_e=Le;function te(vt){var Bt=vt.className,Ft=vt.index,zt=vt.children,Jt=vt.colSpan,Qt=Jt===void 0?1:Jt,ur=vt.rowSpan,sr=vt.align,tr=se(Ce,["prefixCls","direction"]),It=tr.prefixCls,Vt=tr.direction,Pt=x.useContext(_e),_t=Pt.scrollColumnIndex,Wt=Pt.stickyOffsets,Yt=Pt.flattenColumns,xr=Ft+Qt-1,Tr=xr+1===_t?Qt+1:Qt,Wr=Ye(Ft,Ft+Tr-1,Yt,Wt,Vt);return x.createElement(st,(0,ee.Z)({className:Bt,index:Ft,component:"td",prefixCls:It,record:null,dataIndex:null,align:sr,colSpan:Tr,rowSpan:ur,render:function(){return zt}},Wr))}var ue=Xe(33346),Re=["children"];function Fe(vt){var Bt=vt.children,Ft=(0,ue.Z)(vt,Re);return x.createElement("tr",Ft,Bt)}function we(vt){var Bt=vt.children;return Bt}we.Row=Fe,we.Cell=te;var Ee=we;function Pe(vt){var Bt=vt.children,Ft=vt.stickyOffsets,zt=vt.flattenColumns,Jt=se(Ce,"prefixCls"),Qt=zt.length-1,ur=zt[Qt],sr=x.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:zt,scrollColumnIndex:ur!=null&&ur.scrollbar?Qt:null}},[ur,zt,Qt,Ft]);return x.createElement(_e.Provider,{value:sr},x.createElement("tfoot",{className:"".concat(Jt,"-summary")},Bt))}var Ue=be(Pe),qe=Ee,nt=Xe(29301),dt=Xe(24514),lt=Xe(75152),ht=Xe(26112);function St(vt,Bt,Ft,zt,Jt,Qt,ur){vt.push({record:Bt,indent:Ft,index:ur});var sr=Qt(Bt),tr=Jt==null?void 0:Jt.has(sr);if(Bt&&Array.isArray(Bt[zt])&&tr)for(var It=0;It<Bt[zt].length;It+=1)St(vt,Bt[zt][It],Ft+1,zt,Jt,Qt,It)}function gt(vt,Bt,Ft,zt){var Jt=x.useMemo(function(){if(Ft!=null&&Ft.size){for(var Qt=[],ur=0;ur<(vt==null?void 0:vt.length);ur+=1){var sr=vt[ur];St(Qt,sr,0,Bt,Ft,zt,ur)}return Qt}return vt==null?void 0:vt.map(function(tr,It){return{record:tr,indent:0,index:It}})},[vt,Bt,Ft,zt]);return Jt}function yt(vt,Bt,Ft,zt){var Jt=se(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Qt=Jt.flattenColumns,ur=Jt.expandableType,sr=Jt.expandedKeys,tr=Jt.childrenColumnName,It=Jt.onTriggerExpand,Vt=Jt.rowExpandable,Pt=Jt.onRow,_t=Jt.expandRowByClick,Wt=Jt.rowClassName,Yt=ur==="nest",xr=ur==="row"&&(!Vt||Vt(vt)),Tr=xr||Yt,Wr=sr&&sr.has(Bt),Kr=tr&&vt&&vt[tr],Br=(0,ot.zX)(It),on=Pt==null?void 0:Pt(vt,Ft),Qr=on==null?void 0:on.onClick,bn=function(Ln){_t&&Tr&&It(vt,Ln);for(var Pn=arguments.length,Tn=new Array(Pn>1?Pn-1:0),Dn=1;Dn<Pn;Dn++)Tn[Dn-1]=arguments[Dn];Qr==null||Qr.apply(void 0,[Ln].concat(Tn))},Mn;typeof Wt=="string"?Mn=Wt:typeof Wt=="function"&&(Mn=Wt(vt,Ft,zt));var Nn=We(Qt);return(0,ye.Z)((0,ye.Z)({},Jt),{},{columnsKey:Nn,nestExpandable:Yt,expanded:Wr,hasNestChildren:Kr,record:vt,onTriggerExpand:Br,rowSupportExpand:xr,expandable:Tr,rowProps:(0,ye.Z)((0,ye.Z)({},on),{},{className:Ne()(Mn,on==null?void 0:on.className),onClick:bn})})}function mt(vt){var Bt=vt.prefixCls,Ft=vt.children,zt=vt.component,Jt=vt.cellComponent,Qt=vt.className,ur=vt.expanded,sr=vt.colSpan,tr=vt.isEmpty,It=se(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Vt=It.scrollbarSize,Pt=It.fixHeader,_t=It.fixColumn,Wt=It.componentWidth,Yt=It.horizonScroll,xr=Ft;return(tr?Yt&&Wt:_t)&&(xr=x.createElement("div",{style:{width:Wt-(Pt&&!tr?Vt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Bt,"-expanded-row-fixed")},xr)),x.createElement(zt,{className:Qt,style:{display:ur?null:"none"}},x.createElement(st,{component:Jt,prefixCls:Bt,colSpan:sr},xr))}var Ct=mt;function wt(vt){var Bt=vt.prefixCls,Ft=vt.record,zt=vt.onExpand,Jt=vt.expanded,Qt=vt.expandable,ur="".concat(Bt,"-row-expand-icon");if(!Qt)return x.createElement("span",{className:Ne()(ur,"".concat(Bt,"-row-spaced"))});var sr=function(It){zt(Ft,It),It.stopPropagation()};return x.createElement("span",{className:Ne()(ur,(0,Se.Z)((0,Se.Z)({},"".concat(Bt,"-row-expanded"),Jt),"".concat(Bt,"-row-collapsed"),!Jt)),onClick:sr})}function pt(vt,Bt,Ft){var zt=[];function Jt(Qt){(Qt||[]).forEach(function(ur,sr){zt.push(Bt(ur,sr)),Jt(ur[Ft])})}return Jt(vt),zt}function Ot(vt,Bt,Ft,zt){return typeof vt=="string"?vt:typeof vt=="function"?vt(Bt,Ft,zt):""}function At(vt,Bt,Ft,zt,Jt){var Qt=vt.record,ur=vt.prefixCls,sr=vt.columnsKey,tr=vt.fixedInfoList,It=vt.expandIconColumnIndex,Vt=vt.nestExpandable,Pt=vt.indentSize,_t=vt.expandIcon,Wt=vt.expanded,Yt=vt.hasNestChildren,xr=vt.onTriggerExpand,Tr=sr[Ft],Wr=tr[Ft],Kr;Ft===(It||0)&&Vt&&(Kr=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(Pt*zt,"px")},className:"".concat(ur,"-row-indent indent-level-").concat(zt)}),_t({prefixCls:ur,expanded:Wt,expandable:Yt,record:Qt,onExpand:xr})));var Br;return Bt.onCell&&(Br=Bt.onCell(Qt,Jt)),{key:Tr,fixedInfo:Wr,appendCellNode:Kr,additionalCellProps:Br||{}}}function Nt(vt){var Bt=vt.className,Ft=vt.style,zt=vt.record,Jt=vt.index,Qt=vt.renderIndex,ur=vt.rowKey,sr=vt.indent,tr=sr===void 0?0:sr,It=vt.rowComponent,Vt=vt.cellComponent,Pt=vt.scopeCellComponent,_t=yt(zt,ur,Jt,tr),Wt=_t.prefixCls,Yt=_t.flattenColumns,xr=_t.expandedRowClassName,Tr=_t.expandedRowRender,Wr=_t.rowProps,Kr=_t.expanded,Br=_t.rowSupportExpand,on=x.useRef(!1);on.current||(on.current=Kr);var Qr=Ot(xr,zt,Jt,tr),bn=x.createElement(It,(0,ee.Z)({},Wr,{"data-row-key":ur,className:Ne()(Bt,"".concat(Wt,"-row"),"".concat(Wt,"-row-level-").concat(tr),Wr==null?void 0:Wr.className,(0,Se.Z)({},Qr,tr>=1)),style:(0,ye.Z)((0,ye.Z)({},Ft),Wr==null?void 0:Wr.style)}),Yt.map(function(kn,Ln){var Pn=kn.render,Tn=kn.dataIndex,Dn=kn.className,Ur=At(_t,kn,Ln,tr,Jt),Vr=Ur.key,ln=Ur.fixedInfo,vn=Ur.appendCellNode,jn=Ur.additionalCellProps;return x.createElement(st,(0,ee.Z)({className:Dn,ellipsis:kn.ellipsis,align:kn.align,scope:kn.rowScope,component:kn.rowScope?Pt:Vt,prefixCls:Wt,key:Vr,record:zt,index:Jt,renderIndex:Qt,dataIndex:Tn,render:Pn,shouldCellUpdate:kn.shouldCellUpdate},ln,{appendNode:vn,additionalProps:jn}))})),Mn;if(Br&&(on.current||Kr)){var Nn=Tr(zt,Jt,tr+1,Kr);Mn=x.createElement(Ct,{expanded:Kr,className:Ne()("".concat(Wt,"-expanded-row"),"".concat(Wt,"-expanded-row-level-").concat(tr+1),Qr),prefixCls:Wt,component:It,cellComponent:Vt,colSpan:Yt.length,isEmpty:!1},Nn)}return x.createElement(x.Fragment,null,bn,Mn)}var Ht=be(Nt);function gr(vt){var Bt=vt.columnKey,Ft=vt.onColumnResize,zt=x.useRef();return(0,De.Z)(function(){zt.current&&Ft(Bt,zt.current.offsetWidth)},[]),x.createElement(nt.Z,{data:Bt},x.createElement("td",{ref:zt,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var $t=Xe(29194);function Ar(vt){var Bt=vt.prefixCls,Ft=vt.columnsKey,zt=vt.onColumnResize,Jt=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(Bt,"-measure-row"),style:{height:0,fontSize:0},ref:Jt},x.createElement(nt.Z.Collection,{onBatchResize:function(ur){(0,$t.Z)(Jt.current)&&ur.forEach(function(sr){var tr=sr.data,It=sr.size;zt(tr,It.offsetWidth)})}},Ft.map(function(Qt){return x.createElement(gr,{key:Qt,columnKey:Qt,onColumnResize:zt})})))}function er(vt){var Bt=vt.data,Ft=vt.measureColumnWidth,zt=se(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Jt=zt.prefixCls,Qt=zt.getComponent,ur=zt.onColumnResize,sr=zt.flattenColumns,tr=zt.getRowKey,It=zt.expandedKeys,Vt=zt.childrenColumnName,Pt=zt.emptyNode,_t=gt(Bt,Vt,It,tr),Wt=x.useRef({renderWithProps:!1}),Yt=Qt(["body","wrapper"],"tbody"),xr=Qt(["body","row"],"tr"),Tr=Qt(["body","cell"],"td"),Wr=Qt(["body","cell"],"th"),Kr;Bt.length?Kr=_t.map(function(on,Qr){var bn=on.record,Mn=on.indent,Nn=on.index,kn=tr(bn,Qr);return x.createElement(Ht,{key:kn,rowKey:kn,record:bn,index:Qr,renderIndex:Nn,rowComponent:xr,cellComponent:Tr,scopeCellComponent:Wr,indent:Mn})}):Kr=x.createElement(Ct,{expanded:!0,className:"".concat(Jt,"-placeholder"),prefixCls:Jt,component:xr,cellComponent:Tr,colSpan:sr.length,isEmpty:!0},Pt);var Br=We(sr);return x.createElement(Ve.Provider,{value:Wt.current},x.createElement(Yt,{className:"".concat(Jt,"-tbody")},Ft&&x.createElement(Ar,{prefixCls:Jt,columnsKey:Br,onColumnResize:ur}),Kr))}var Ir=be(er),$r=Xe(54451),nn=["columnType"];function dn(vt){for(var Bt=vt.colWidths,Ft=vt.columns,zt=vt.columCount,Jt=se(Ce,["tableLayout"]),Qt=Jt.tableLayout,ur=[],sr=zt||Ft.length,tr=!1,It=sr-1;It>=0;It-=1){var Vt=Bt[It],Pt=Ft&&Ft[It],_t=void 0,Wt=void 0;if(Pt&&(_t=Pt[$r.v],Qt==="auto"&&(Wt=Pt.minWidth)),Vt||Wt||_t||tr){var Yt=_t||{},xr=Yt.columnType,Tr=(0,ue.Z)(Yt,nn);ur.unshift(x.createElement("col",(0,ee.Z)({key:It,style:{width:Vt,minWidth:Wt}},Tr))),tr=!0}}return x.createElement("colgroup",null,ur)}var tn=dn,Dr=Xe(15142),fn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function hn(vt,Bt){return(0,x.useMemo)(function(){for(var Ft=[],zt=0;zt<Bt;zt+=1){var Jt=vt[zt];if(Jt!==void 0)Ft[zt]=Jt;else return null}return Ft},[vt.join("_"),Bt])}var Rr=x.forwardRef(function(vt,Bt){var Ft=vt.className,zt=vt.noData,Jt=vt.columns,Qt=vt.flattenColumns,ur=vt.colWidths,sr=vt.columCount,tr=vt.stickyOffsets,It=vt.direction,Vt=vt.fixHeader,Pt=vt.stickyTopOffset,_t=vt.stickyBottomOffset,Wt=vt.stickyClassName,Yt=vt.onScroll,xr=vt.maxContentScroll,Tr=vt.children,Wr=(0,ue.Z)(vt,fn),Kr=se(Ce,["prefixCls","scrollbarSize","isSticky","getComponent"]),Br=Kr.prefixCls,on=Kr.scrollbarSize,Qr=Kr.isSticky,bn=Kr.getComponent,Mn=bn(["header","table"],"table"),Nn=Qr&&!Vt?0:on,kn=x.useRef(null),Ln=x.useCallback(function(jn){(0,fe.mH)(Bt,jn),(0,fe.mH)(kn,jn)},[]);x.useEffect(function(){var jn;function Sn(gn){var $n=gn,Ei=$n.currentTarget,Ci=$n.deltaX;Ci&&(Yt({currentTarget:Ei,scrollLeft:Ei.scrollLeft+Ci}),gn.preventDefault())}return(jn=kn.current)===null||jn===void 0||jn.addEventListener("wheel",Sn,{passive:!1}),function(){var gn;(gn=kn.current)===null||gn===void 0||gn.removeEventListener("wheel",Sn)}},[]);var Pn=x.useMemo(function(){return Qt.every(function(jn){return jn.width})},[Qt]),Tn=Qt[Qt.length-1],Dn={fixed:Tn?Tn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Br,"-cell-scrollbar")}}},Ur=(0,x.useMemo)(function(){return Nn?[].concat((0,Dr.Z)(Jt),[Dn]):Jt},[Nn,Jt]),Vr=(0,x.useMemo)(function(){return Nn?[].concat((0,Dr.Z)(Qt),[Dn]):Qt},[Nn,Qt]),ln=(0,x.useMemo)(function(){var jn=tr.right,Sn=tr.left;return(0,ye.Z)((0,ye.Z)({},tr),{},{left:It==="rtl"?[].concat((0,Dr.Z)(Sn.map(function(gn){return gn+Nn})),[0]):Sn,right:It==="rtl"?jn:[].concat((0,Dr.Z)(jn.map(function(gn){return gn+Nn})),[0]),isSticky:Qr})},[Nn,tr,Qr]),vn=hn(ur,sr);return x.createElement("div",{style:(0,ye.Z)({overflow:"hidden"},Qr?{top:Pt,bottom:_t}:{}),ref:Ln,className:Ne()(Ft,(0,Se.Z)({},Wt,!!Wt))},x.createElement(Mn,{style:{tableLayout:"fixed",visibility:zt||vn?null:"hidden"}},(!zt||!xr||Pn)&&x.createElement(tn,{colWidths:vn?[].concat((0,Dr.Z)(vn),[Nn]):[],columCount:sr+1,columns:Vr}),Tr((0,ye.Z)((0,ye.Z)({},Wr),{},{stickyOffsets:ln,columns:Ur,flattenColumns:Vr}))))}),jr=x.memo(Rr),Dt=function(Bt){var Ft=Bt.cells,zt=Bt.stickyOffsets,Jt=Bt.flattenColumns,Qt=Bt.rowComponent,ur=Bt.cellComponent,sr=Bt.onHeaderRow,tr=Bt.index,It=se(Ce,["prefixCls","direction"]),Vt=It.prefixCls,Pt=It.direction,_t;sr&&(_t=sr(Ft.map(function(Yt){return Yt.column}),tr));var Wt=We(Ft.map(function(Yt){return Yt.column}));return x.createElement(Qt,_t,Ft.map(function(Yt,xr){var Tr=Yt.column,Wr=Ye(Yt.colStart,Yt.colEnd,Jt,zt,Pt),Kr;return Tr&&Tr.onHeaderCell&&(Kr=Yt.column.onHeaderCell(Tr)),x.createElement(st,(0,ee.Z)({},Yt,{scope:Tr.title?Yt.colSpan>1?"colgroup":"col":null,ellipsis:Tr.ellipsis,align:Tr.align,component:ur,prefixCls:Vt,key:Wt[xr]},Wr,{additionalProps:Kr,rowType:"header"}))}))},jt=Dt;function Mt(vt){var Bt=[];function Ft(ur,sr){var tr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Bt[tr]=Bt[tr]||[];var It=sr,Vt=ur.filter(Boolean).map(function(Pt){var _t={key:Pt.key,className:Pt.className||"",children:Pt.title,column:Pt,colStart:It},Wt=1,Yt=Pt.children;return Yt&&Yt.length>0&&(Wt=Ft(Yt,It,tr+1).reduce(function(xr,Tr){return xr+Tr},0),_t.hasSubColumns=!0),"colSpan"in Pt&&(Wt=Pt.colSpan),"rowSpan"in Pt&&(_t.rowSpan=Pt.rowSpan),_t.colSpan=Wt,_t.colEnd=_t.colStart+Wt-1,Bt[tr].push(_t),It+=Wt,Wt});return Vt}Ft(vt,0);for(var zt=Bt.length,Jt=function(sr){Bt[sr].forEach(function(tr){!("rowSpan"in tr)&&!tr.hasSubColumns&&(tr.rowSpan=zt-sr)})},Qt=0;Qt<zt;Qt+=1)Jt(Qt);return Bt}var ar=function(Bt){var Ft=Bt.stickyOffsets,zt=Bt.columns,Jt=Bt.flattenColumns,Qt=Bt.onHeaderRow,ur=se(Ce,["prefixCls","getComponent"]),sr=ur.prefixCls,tr=ur.getComponent,It=x.useMemo(function(){return Mt(zt)},[zt]),Vt=tr(["header","wrapper"],"thead"),Pt=tr(["header","row"],"tr"),_t=tr(["header","cell"],"th");return x.createElement(Vt,{className:"".concat(sr,"-thead")},It.map(function(Wt,Yt){var xr=x.createElement(jt,{key:Yt,flattenColumns:Jt,cells:Wt,stickyOffsets:Ft,rowComponent:Pt,cellComponent:_t,onHeaderRow:Qt,index:Yt});return xr}))},Or=be(ar),wr=Xe(97347);function vr(vt,Bt,Ft){var zt=(0,$r.g)(vt),Jt=zt.expandIcon,Qt=zt.expandedRowKeys,ur=zt.defaultExpandedRowKeys,sr=zt.defaultExpandAllRows,tr=zt.expandedRowRender,It=zt.onExpand,Vt=zt.onExpandedRowsChange,Pt=zt.childrenColumnName,_t=Jt||wt,Wt=Pt||"children",Yt=x.useMemo(function(){return tr?"row":vt.expandable&&vt.internalHooks===He.R&&vt.expandable.__PARENT_RENDER_ICON__||Bt.some(function(Qr){return Qr&&(0,de.Z)(Qr)==="object"&&Qr[Wt]})?"nest":!1},[!!tr,Bt]),xr=x.useState(function(){return ur||(sr?pt(Bt,Ft,Wt):[])}),Tr=(0,xt.Z)(xr,2),Wr=Tr[0],Kr=Tr[1],Br=x.useMemo(function(){return new Set(Qt||Wr||[])},[Qt,Wr]),on=x.useCallback(function(Qr){var bn=Ft(Qr,Bt.indexOf(Qr)),Mn,Nn=Br.has(bn);Nn?(Br.delete(bn),Mn=(0,Dr.Z)(Br)):Mn=[].concat((0,Dr.Z)(Br),[bn]),Kr(Mn),It&&It(!Nn,Qr),Vt&&Vt(Mn)},[Ft,Br,Bt,It,Vt]);return[zt,Yt,Br,_t,Wt,on]}function Pr(vt,Bt,Ft){var zt=vt.map(function(Jt,Qt){return Ye(Qt,Qt,vt,Bt,Ft)});return(0,Ae.Z)(function(){return zt},[zt],function(Jt,Qt){return!(0,xe.Z)(Jt,Qt)})}function dr(vt){var Bt=(0,x.useRef)(vt),Ft=(0,x.useState)({}),zt=(0,xt.Z)(Ft,2),Jt=zt[1],Qt=(0,x.useRef)(null),ur=(0,x.useRef)([]);function sr(tr){ur.current.push(tr);var It=Promise.resolve();Qt.current=It,It.then(function(){if(Qt.current===It){var Vt=ur.current,Pt=Bt.current;ur.current=[],Vt.forEach(function(_t){Bt.current=_t(Bt.current)}),Qt.current=null,Pt!==Bt.current&&Jt({})}})}return(0,x.useEffect)(function(){return function(){Qt.current=null}},[]),[Bt.current,sr]}function Cr(vt){var Bt=(0,x.useRef)(vt||null),Ft=(0,x.useRef)();function zt(){window.clearTimeout(Ft.current)}function Jt(ur){Bt.current=ur,zt(),Ft.current=window.setTimeout(function(){Bt.current=null,Ft.current=void 0},100)}function Qt(){return Bt.current}return(0,x.useEffect)(function(){return zt},[]),[Jt,Qt]}function Lr(){var vt=x.useState(-1),Bt=(0,xt.Z)(vt,2),Ft=Bt[0],zt=Bt[1],Jt=x.useState(-1),Qt=(0,xt.Z)(Jt,2),ur=Qt[0],sr=Qt[1],tr=x.useCallback(function(It,Vt){zt(It),sr(Vt)},[]);return[Ft,ur,tr]}var Xr=Xe(47273),or=(0,Xr.Z)()?window:null;function Ut(vt,Bt){var Ft=(0,de.Z)(vt)==="object"?vt:{},zt=Ft.offsetHeader,Jt=zt===void 0?0:zt,Qt=Ft.offsetSummary,ur=Qt===void 0?0:Qt,sr=Ft.offsetScroll,tr=sr===void 0?0:sr,It=Ft.getContainer,Vt=It===void 0?function(){return or}:It,Pt=Vt()||or,_t=!!vt;return x.useMemo(function(){return{isSticky:_t,stickyClassName:_t?"".concat(Bt,"-sticky-holder"):"",offsetHeader:Jt,offsetSummary:ur,offsetScroll:tr,container:Pt}},[_t,tr,Jt,ur,Bt,Pt])}function Xt(vt,Bt,Ft){var zt=(0,x.useMemo)(function(){var Jt=Bt.length,Qt=function(It,Vt,Pt){for(var _t=[],Wt=0,Yt=It;Yt!==Vt;Yt+=Pt)_t.push(Wt),Bt[Yt].fixed&&(Wt+=vt[Yt]||0);return _t},ur=Qt(0,Jt,1),sr=Qt(Jt-1,-1,-1).reverse();return Ft==="rtl"?{left:sr,right:ur}:{left:ur,right:sr}},[vt,Bt,Ft]);return zt}var Yr=Xt;function qr(vt){var Bt=vt.className,Ft=vt.children;return x.createElement("div",{className:Bt},Ft)}var Et=qr,kt=Xe(8224),fr=Xe(16089),qt=Xe(76846);function Rt(vt){var Bt=(0,qt.bn)(vt),Ft=Bt.getBoundingClientRect(),zt=document.documentElement;return{left:Ft.left+(window.pageXOffset||zt.scrollLeft)-(zt.clientLeft||document.body.clientLeft||0),top:Ft.top+(window.pageYOffset||zt.scrollTop)-(zt.clientTop||document.body.clientTop||0)}}var rr=function(Bt,Ft){var zt,Jt,Qt=Bt.scrollBodyRef,ur=Bt.onScroll,sr=Bt.offsetScroll,tr=Bt.container,It=Bt.direction,Vt=se(Ce,"prefixCls"),Pt=((zt=Qt.current)===null||zt===void 0?void 0:zt.scrollWidth)||0,_t=((Jt=Qt.current)===null||Jt===void 0?void 0:Jt.clientWidth)||0,Wt=Pt&&_t*(_t/Pt),Yt=x.useRef(),xr=dr({scrollLeft:0,isHiddenScrollBar:!0}),Tr=(0,xt.Z)(xr,2),Wr=Tr[0],Kr=Tr[1],Br=x.useRef({delta:0,x:0}),on=x.useState(!1),Qr=(0,xt.Z)(on,2),bn=Qr[0],Mn=Qr[1],Nn=x.useRef(null);x.useEffect(function(){return function(){fr.Z.cancel(Nn.current)}},[]);var kn=function(){Mn(!1)},Ln=function(Vr){Vr.persist(),Br.current.delta=Vr.pageX-Wr.scrollLeft,Br.current.x=0,Mn(!0),Vr.preventDefault()},Pn=function(Vr){var ln,vn=Vr||((ln=window)===null||ln===void 0?void 0:ln.event),jn=vn.buttons;if(!bn||jn===0){bn&&Mn(!1);return}var Sn=Br.current.x+Vr.pageX-Br.current.x-Br.current.delta,gn=It==="rtl";Sn=Math.max(gn?Wt-_t:0,Math.min(gn?0:_t-Wt,Sn));var $n=!gn||Math.abs(Sn)+Math.abs(Wt)<_t;$n&&(ur({scrollLeft:Sn/_t*(Pt+2)}),Br.current.x=Vr.pageX)},Tn=function(){fr.Z.cancel(Nn.current),Nn.current=(0,fr.Z)(function(){if(Qt.current){var Vr=Rt(Qt.current).top,ln=Vr+Qt.current.offsetHeight,vn=tr===window?document.documentElement.scrollTop+window.innerHeight:Rt(tr).top+tr.clientHeight;ln-(0,lt.Z)()<=vn||Vr>=vn-sr?Kr(function(jn){return(0,ye.Z)((0,ye.Z)({},jn),{},{isHiddenScrollBar:!0})}):Kr(function(jn){return(0,ye.Z)((0,ye.Z)({},jn),{},{isHiddenScrollBar:!1})})}})},Dn=function(Vr){Kr(function(ln){return(0,ye.Z)((0,ye.Z)({},ln),{},{scrollLeft:Vr/Pt*_t||0})})};return x.useImperativeHandle(Ft,function(){return{setScrollLeft:Dn,checkScrollBarVisible:Tn}}),x.useEffect(function(){var Ur=(0,kt.Z)(document.body,"mouseup",kn,!1),Vr=(0,kt.Z)(document.body,"mousemove",Pn,!1);return Tn(),function(){Ur.remove(),Vr.remove()}},[Wt,bn]),x.useEffect(function(){if(Qt.current){for(var Ur=[],Vr=(0,qt.bn)(Qt.current);Vr;)Ur.push(Vr),Vr=Vr.parentElement;return Ur.forEach(function(ln){return ln.addEventListener("scroll",Tn,!1)}),window.addEventListener("resize",Tn,!1),window.addEventListener("scroll",Tn,!1),tr.addEventListener("scroll",Tn,!1),function(){Ur.forEach(function(ln){return ln.removeEventListener("scroll",Tn)}),window.removeEventListener("resize",Tn),window.removeEventListener("scroll",Tn),tr.removeEventListener("scroll",Tn)}}},[tr]),x.useEffect(function(){Wr.isHiddenScrollBar||Kr(function(Ur){var Vr=Qt.current;return Vr?(0,ye.Z)((0,ye.Z)({},Ur),{},{scrollLeft:Vr.scrollLeft/Vr.scrollWidth*Vr.clientWidth}):Ur})},[Wr.isHiddenScrollBar]),Pt<=_t||!Wt||Wr.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,lt.Z)(),width:_t,bottom:sr},className:"".concat(Vt,"-sticky-scroll")},x.createElement("div",{onMouseDown:Ln,ref:Yt,className:Ne()("".concat(Vt,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Vt,"-sticky-scroll-bar-active"),bn)),style:{width:"".concat(Wt,"px"),transform:"translate3d(".concat(Wr.scrollLeft,"px, 0, 0)")}}))},mr=x.forwardRef(rr);function hr(vt){return null}var ir=hr;function Lt(vt){return null}var br=Lt,nr="rc-table",Jr=[],yr={};function Nr(){return"No Data"}function Zr(vt,Bt){var Ft=(0,ye.Z)({rowKey:"key",prefixCls:nr,emptyText:Nr},vt),zt=Ft.prefixCls,Jt=Ft.className,Qt=Ft.rowClassName,ur=Ft.style,sr=Ft.data,tr=Ft.rowKey,It=Ft.scroll,Vt=Ft.tableLayout,Pt=Ft.direction,_t=Ft.title,Wt=Ft.footer,Yt=Ft.summary,xr=Ft.caption,Tr=Ft.id,Wr=Ft.showHeader,Kr=Ft.components,Br=Ft.emptyText,on=Ft.onRow,Qr=Ft.onHeaderRow,bn=Ft.onScroll,Mn=Ft.internalHooks,Nn=Ft.transformColumns,kn=Ft.internalRefs,Ln=Ft.tailor,Pn=Ft.getContainerWidth,Tn=Ft.sticky,Dn=Ft.rowHoverable,Ur=Dn===void 0?!0:Dn,Vr=sr||Jr,ln=!!Vr.length,vn=Mn===He.R,jn=x.useCallback(function(Zn,Hn){return(0,je.Z)(Kr,Zn)||Hn},[Kr]),Sn=x.useMemo(function(){return typeof tr=="function"?tr:function(Zn){var Hn=Zn&&Zn[tr];return Hn}},[tr]),gn=jn(["body"]),$n=Lr(),Ei=(0,xt.Z)($n,3),Ci=Ei[0],oa=Ei[1],Bi=Ei[2],ri=vr(Ft,Vr,Sn),ei=(0,xt.Z)(ri,6),ti=ei[0],ki=ei[1],ai=ei[2],li=ei[3],oi=ei[4],sn=ei[5],wn=It==null?void 0:It.x,xn=x.useState(0),En=(0,xt.Z)(xn,2),Xn=En[0],qn=En[1],Zi=(0,wr.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Ft),ti),{},{expandable:!!ti.expandedRowRender,columnTitle:ti.columnTitle,expandedKeys:ai,getRowKey:Sn,onTriggerExpand:sn,expandIcon:li,expandIconColumnIndex:ti.expandIconColumnIndex,direction:Pt,scrollWidth:vn&&Ln&&typeof wn=="number"?wn:null,clientWidth:Xn}),vn?Nn:null),fi=(0,xt.Z)(Zi,4),ci=fi[0],Bn=fi[1],yi=fi[2],Gi=fi[3],ni=yi!=null?yi:wn,sa=x.useMemo(function(){return{columns:ci,flattenColumns:Bn}},[ci,Bn]),Ki=x.useRef(),Yi=x.useRef(),mi=x.useRef(),ro=x.useRef();x.useImperativeHandle(Bt,function(){return{nativeElement:Ki.current,scrollTo:function(Hn){var xi;if(mi.current instanceof HTMLElement){var Ri=Hn.index,Oi=Hn.top,Ra=Hn.key;if(rt(Oi)){var xa;(xa=mi.current)===null||xa===void 0||xa.scrollTo({top:Oi})}else{var Ma,fa=Ra!=null?Ra:Sn(Vr[Ri]);(Ma=mi.current.querySelector('[data-row-key="'.concat(fa,'"]')))===null||Ma===void 0||Ma.scrollIntoView()}}else(xi=mi.current)!==null&&xi!==void 0&&xi.scrollTo&&mi.current.scrollTo(Hn)}}});var Ya=x.useRef(),pa=x.useState(!1),ma=(0,xt.Z)(pa,2),ra=ma[0],Ea=ma[1],no=x.useState(!1),io=(0,xt.Z)(no,2),ao=io[0],La=io[1],Ja=x.useState(new Map),Ba=(0,xt.Z)(Ja,2),Ca=Ba[0],Qa=Ba[1],oo=We(Bn),Fa=oo.map(function(Zn){return Ca.get(Zn)}),ka=x.useMemo(function(){return Fa},[Fa.join("_")]),Ta=Yr(ka,Bn,Pt),Fi=It&&tt(It.y),di=It&&tt(ni)||!!ti.fixed,Kn=di&&Bn.some(function(Zn){var Hn=Zn.fixed;return Hn}),Fn=x.useRef(),vi=Ut(Tn,zt),hi=vi.isSticky,bi=vi.offsetHeader,Ti=vi.offsetSummary,la=vi.offsetScroll,na=vi.stickyClassName,va=vi.container,pi=x.useMemo(function(){return Yt==null?void 0:Yt(Vr)},[Yt,Vr]),ji=(Fi||hi)&&x.isValidElement(pi)&&pi.type===Ee&&pi.props.fixed,Ji,ua,$a;Fi&&(ua={overflowY:ln?"scroll":"auto",maxHeight:It.y}),di&&(Ji={overflowX:"auto"},Fi||(ua={overflowY:"hidden"}),$a={width:ni===!0?"auto":ni,minWidth:"100%"});var Eo=x.useCallback(function(Zn,Hn){Qa(function(xi){if(xi.get(Zn)!==Hn){var Ri=new Map(xi);return Ri.set(Zn,Hn),Ri}return xi})},[]),Co=Cr(null),wa=(0,xt.Z)(Co,2),Aa=wa[0],Wi=wa[1];function ca(Zn,Hn){Hn&&(typeof Hn=="function"?Hn(Zn):Hn.scrollLeft!==Zn&&(Hn.scrollLeft=Zn,Hn.scrollLeft!==Zn&&setTimeout(function(){Hn.scrollLeft=Zn},0)))}var Qi=(0,y.Z)(function(Zn){var Hn=Zn.currentTarget,xi=Zn.scrollLeft,Ri=Pt==="rtl",Oi=typeof xi=="number"?xi:Hn.scrollLeft,Ra=Hn||yr;if(!Wi()||Wi()===Ra){var xa;Aa(Ra),ca(Oi,Yi.current),ca(Oi,mi.current),ca(Oi,Ya.current),ca(Oi,(xa=Fn.current)===null||xa===void 0?void 0:xa.setScrollLeft)}var Ma=Hn||Yi.current;if(Ma){var fa=vn&&Ln&&typeof ni=="number"?ni:Ma.scrollWidth,ga=Ma.clientWidth;if(fa===ga){Ea(!1),La(!1);return}Ri?(Ea(-Oi<fa-ga),La(-Oi>0)):(Ea(Oi>0),La(Oi<fa-ga))}}),so=(0,y.Z)(function(Zn){Qi(Zn),bn==null||bn(Zn)}),Qo=function(){if(di&&mi.current){var Hn;Qi({currentTarget:(0,qt.bn)(mi.current),scrollLeft:(Hn=mi.current)===null||Hn===void 0?void 0:Hn.scrollLeft})}else Ea(!1),La(!1)},$o=function(Hn){var xi,Ri=Hn.width;(xi=Fn.current)===null||xi===void 0||xi.checkScrollBarVisible();var Oi=Ki.current?Ki.current.offsetWidth:Ri;vn&&Pn&&Ki.current&&(Oi=Pn(Ki.current,Oi)||Oi),Oi!==Xn&&(Qo(),qn(Oi))},Wa=x.useRef(!1);x.useEffect(function(){Wa.current&&Qo()},[di,sr,ci.length]),x.useEffect(function(){Wa.current=!0},[]);var qo=x.useState(0),ko=(0,xt.Z)(qo,2),_a=ko[0],es=ko[1],To=x.useState(!0),Ao=(0,xt.Z)(To,2),_o=Ao[0],Do=Ao[1];(0,De.Z)(function(){(!Ln||!vn)&&(mi.current instanceof Element?es((0,lt.o)(mi.current).width):es((0,lt.o)(ro.current).width)),Do((0,dt.G)("position","sticky"))},[]),x.useEffect(function(){vn&&kn&&(kn.body.current=mi.current)});var Ua=x.useCallback(function(Zn){return x.createElement(x.Fragment,null,x.createElement(Or,Zn),ji==="top"&&x.createElement(Ue,Zn,pi))},[ji,pi]),lo=x.useCallback(function(Zn){return x.createElement(Ue,Zn,pi)},[pi]),jo=jn(["table"],"table"),Da=x.useMemo(function(){return Vt||(Kn?ni==="max-content"?"auto":"fixed":Fi||hi||Bn.some(function(Zn){var Hn=Zn.ellipsis;return Hn})?"fixed":"auto")},[Fi,Kn,Bn,Vt,hi]),Oo,Po={colWidths:ka,columCount:Bn.length,stickyOffsets:Ta,onHeaderRow:Qr,fixHeader:Fi,scroll:It},ts=x.useMemo(function(){return ln?null:typeof Br=="function"?Br():Br},[ln,Br]),uo=x.createElement(Ir,{data:Vr,measureColumnWidth:Fi||di||hi}),co=x.createElement(tn,{colWidths:Bn.map(function(Zn){var Hn=Zn.width;return Hn}),columns:Bn}),ja=xr!=null?x.createElement("caption",{className:"".concat(zt,"-caption")},xr):void 0,qa=(0,ht.Z)(Ft,{data:!0}),rs=(0,ht.Z)(Ft,{aria:!0});if(Fi||hi){var Za;typeof gn=="function"?(Za=gn(Vr,{scrollbarSize:_a,ref:mi,onScroll:Qi}),Po.colWidths=Bn.map(function(Zn,Hn){var xi=Zn.width,Ri=Hn===Bn.length-1?xi-_a:xi;return typeof Ri=="number"&&!Number.isNaN(Ri)?Ri:0})):Za=x.createElement("div",{style:(0,ye.Z)((0,ye.Z)({},Ji),ua),onScroll:so,ref:mi,className:Ne()("".concat(zt,"-body"))},x.createElement(jo,(0,ee.Z)({style:(0,ye.Z)((0,ye.Z)({},$a),{},{tableLayout:Da})},rs),ja,co,uo,!ji&&pi&&x.createElement(Ue,{stickyOffsets:Ta,flattenColumns:Bn},pi)));var Ro=(0,ye.Z)((0,ye.Z)((0,ye.Z)({noData:!Vr.length,maxContentScroll:di&&ni==="max-content"},Po),sa),{},{direction:Pt,stickyClassName:na,onScroll:Qi});Oo=x.createElement(x.Fragment,null,Wr!==!1&&x.createElement(jr,(0,ee.Z)({},Ro,{stickyTopOffset:bi,className:"".concat(zt,"-header"),ref:Yi}),Ua),Za,ji&&ji!=="top"&&x.createElement(jr,(0,ee.Z)({},Ro,{stickyBottomOffset:Ti,className:"".concat(zt,"-summary"),ref:Ya}),lo),hi&&mi.current&&mi.current instanceof Element&&x.createElement(mr,{ref:Fn,offsetScroll:la,scrollBodyRef:mi,onScroll:Qi,container:va,direction:Pt}))}else Oo=x.createElement("div",{style:(0,ye.Z)((0,ye.Z)({},Ji),ua),className:Ne()("".concat(zt,"-content")),onScroll:Qi,ref:mi},x.createElement(jo,(0,ee.Z)({style:(0,ye.Z)((0,ye.Z)({},$a),{},{tableLayout:Da})},rs),ja,co,Wr!==!1&&x.createElement(Or,(0,ee.Z)({},Po,sa)),uo,pi&&x.createElement(Ue,{stickyOffsets:Ta,flattenColumns:Bn},pi)));var Oa=x.createElement("div",(0,ee.Z)({className:Ne()(zt,Jt,(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(zt,"-rtl"),Pt==="rtl"),"".concat(zt,"-ping-left"),ra),"".concat(zt,"-ping-right"),ao),"".concat(zt,"-layout-fixed"),Vt==="fixed"),"".concat(zt,"-fixed-header"),Fi),"".concat(zt,"-fixed-column"),Kn),"".concat(zt,"-fixed-column-gapped"),Kn&&Gi),"".concat(zt,"-scroll-horizontal"),di),"".concat(zt,"-has-fix-left"),Bn[0]&&Bn[0].fixed),"".concat(zt,"-has-fix-right"),Bn[Bn.length-1]&&Bn[Bn.length-1].fixed==="right")),style:ur,id:Tr,ref:Ki},qa),_t&&x.createElement(Et,{className:"".concat(zt,"-title")},_t(Vr)),x.createElement("div",{ref:ro,className:"".concat(zt,"-container")},Oo),Wt&&x.createElement(Et,{className:"".concat(zt,"-footer")},Wt(Vr)));di&&(Oa=x.createElement(nt.Z,{onResize:$o},Oa));var Mo=Pr(Bn,Ta,Pt),Pa=x.useMemo(function(){return{scrollX:ni,prefixCls:zt,getComponent:jn,scrollbarSize:_a,direction:Pt,fixedInfoList:Mo,isSticky:hi,supportSticky:_o,componentWidth:Xn,fixHeader:Fi,fixColumn:Kn,horizonScroll:di,tableLayout:Da,rowClassName:Qt,expandedRowClassName:ti.expandedRowClassName,expandIcon:li,expandableType:ki,expandRowByClick:ti.expandRowByClick,expandedRowRender:ti.expandedRowRender,onTriggerExpand:sn,expandIconColumnIndex:ti.expandIconColumnIndex,indentSize:ti.indentSize,allColumnsFixedLeft:Bn.every(function(Zn){return Zn.fixed==="left"}),emptyNode:ts,columns:ci,flattenColumns:Bn,onColumnResize:Eo,hoverStartRow:Ci,hoverEndRow:oa,onHover:Bi,rowExpandable:ti.rowExpandable,onRow:on,getRowKey:Sn,expandedKeys:ai,childrenColumnName:oi,rowHoverable:Ur}},[ni,zt,jn,_a,Pt,Mo,hi,_o,Xn,Fi,Kn,di,Da,Qt,ti.expandedRowClassName,li,ki,ti.expandRowByClick,ti.expandedRowRender,sn,ti.expandIconColumnIndex,ti.indentSize,ts,ci,Bn,Eo,Ci,oa,Bi,ti.rowExpandable,on,Sn,ai,oi,Ur]);return x.createElement(Ce.Provider,{value:Pa},Oa)}var an=x.forwardRef(Zr);function un(vt){return ge(an,vt)}var Cn=un();Cn.EXPAND_COLUMN=He.w,Cn.INTERNAL_HOOKS=He.R,Cn.Column=ir,Cn.ColumnGroup=br,Cn.Summary=qe;var Wn=Cn,Rn=Xe(6790),pn=oe(null),rn=oe(null);function zn(vt,Bt,Ft){var zt=Bt||1;return Ft[vt+zt]-(Ft[vt]||0)}function Jn(vt){var Bt=vt.rowInfo,Ft=vt.column,zt=vt.colIndex,Jt=vt.indent,Qt=vt.index,ur=vt.component,sr=vt.renderIndex,tr=vt.record,It=vt.style,Vt=vt.className,Pt=vt.inverse,_t=vt.getHeight,Wt=Ft.render,Yt=Ft.dataIndex,xr=Ft.className,Tr=Ft.width,Wr=se(rn,["columnsOffset"]),Kr=Wr.columnsOffset,Br=At(Bt,Ft,zt,Jt,Qt),on=Br.key,Qr=Br.fixedInfo,bn=Br.appendCellNode,Mn=Br.additionalCellProps,Nn=Mn.style,kn=Mn.colSpan,Ln=kn===void 0?1:kn,Pn=Mn.rowSpan,Tn=Pn===void 0?1:Pn,Dn=zt-1,Ur=zn(Dn,Ln,Kr),Vr=Ln>1?Tr-Ur:0,ln=(0,ye.Z)((0,ye.Z)((0,ye.Z)({},Nn),It),{},{flex:"0 0 ".concat(Ur,"px"),width:"".concat(Ur,"px"),marginRight:Vr,pointerEvents:"auto"}),vn=x.useMemo(function(){return Pt?Tn<=1:Ln===0||Tn===0||Tn>1},[Tn,Ln,Pt]);vn?ln.visibility="hidden":Pt&&(ln.height=_t==null?void 0:_t(Tn));var jn=vn?function(){return null}:Wt,Sn={};return(Tn===0||Ln===0)&&(Sn.rowSpan=1,Sn.colSpan=1),x.createElement(st,(0,ee.Z)({className:Ne()(xr,Vt),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:ur,prefixCls:Bt.prefixCls,key:on,record:tr,index:Qt,renderIndex:sr,dataIndex:Yt,render:jn,shouldCellUpdate:Ft.shouldCellUpdate},Qr,{appendNode:bn,additionalProps:(0,ye.Z)((0,ye.Z)({},Mn),{},{style:ln},Sn)}))}var Un=Jn,Vn=["data","index","className","rowKey","style","extra","getHeight"],Gn=x.forwardRef(function(vt,Bt){var Ft=vt.data,zt=vt.index,Jt=vt.className,Qt=vt.rowKey,ur=vt.style,sr=vt.extra,tr=vt.getHeight,It=(0,ue.Z)(vt,Vn),Vt=Ft.record,Pt=Ft.indent,_t=Ft.index,Wt=se(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Yt=Wt.scrollX,xr=Wt.flattenColumns,Tr=Wt.prefixCls,Wr=Wt.fixColumn,Kr=Wt.componentWidth,Br=se(pn,["getComponent"]),on=Br.getComponent,Qr=yt(Vt,Qt,zt,Pt),bn=on(["body","row"],"div"),Mn=on(["body","cell"],"div"),Nn=Qr.rowSupportExpand,kn=Qr.expanded,Ln=Qr.rowProps,Pn=Qr.expandedRowRender,Tn=Qr.expandedRowClassName,Dn;if(Nn&&kn){var Ur=Pn(Vt,zt,Pt+1,kn),Vr=Ot(Tn,Vt,zt,Pt),ln={};Wr&&(ln={style:(0,Se.Z)({},"--virtual-width","".concat(Kr,"px"))});var vn="".concat(Tr,"-expanded-row-cell");Dn=x.createElement(bn,{className:Ne()("".concat(Tr,"-expanded-row"),"".concat(Tr,"-expanded-row-level-").concat(Pt+1),Vr)},x.createElement(st,{component:Mn,prefixCls:Tr,className:Ne()(vn,(0,Se.Z)({},"".concat(vn,"-fixed"),Wr)),additionalProps:ln},Ur))}var jn=(0,ye.Z)((0,ye.Z)({},ur),{},{width:Yt});sr&&(jn.position="absolute",jn.pointerEvents="none");var Sn=x.createElement(bn,(0,ee.Z)({},Ln,It,{"data-row-key":Qt,ref:Nn?null:Bt,className:Ne()(Jt,"".concat(Tr,"-row"),Ln==null?void 0:Ln.className,(0,Se.Z)({},"".concat(Tr,"-row-extra"),sr)),style:(0,ye.Z)((0,ye.Z)({},jn),Ln==null?void 0:Ln.style)}),xr.map(function(gn,$n){return x.createElement(Un,{key:$n,component:Mn,rowInfo:Qr,column:gn,colIndex:$n,indent:Pt,index:zt,renderIndex:_t,record:Vt,inverse:sr,getHeight:tr})}));return Nn?x.createElement("div",{ref:Bt},Sn,Dn):Sn}),Er=be(Gn),_r=Er,pr=x.forwardRef(function(vt,Bt){var Ft=vt.data,zt=vt.onScroll,Jt=se(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Qt=Jt.flattenColumns,ur=Jt.onColumnResize,sr=Jt.getRowKey,tr=Jt.expandedKeys,It=Jt.prefixCls,Vt=Jt.childrenColumnName,Pt=Jt.scrollX,_t=Jt.direction,Wt=se(pn),Yt=Wt.sticky,xr=Wt.scrollY,Tr=Wt.listItemHeight,Wr=Wt.getComponent,Kr=Wt.onScroll,Br=x.useRef(),on=gt(Ft,Vt,tr,sr),Qr=x.useMemo(function(){var Dn=0;return Qt.map(function(Ur){var Vr=Ur.width,ln=Ur.key;return Dn+=Vr,[ln,Vr,Dn]})},[Qt]),bn=x.useMemo(function(){return Qr.map(function(Dn){return Dn[2]})},[Qr]);x.useEffect(function(){Qr.forEach(function(Dn){var Ur=(0,xt.Z)(Dn,2),Vr=Ur[0],ln=Ur[1];ur(Vr,ln)})},[Qr]),x.useImperativeHandle(Bt,function(){var Dn,Ur={scrollTo:function(ln){var vn;(vn=Br.current)===null||vn===void 0||vn.scrollTo(ln)},nativeElement:(Dn=Br.current)===null||Dn===void 0?void 0:Dn.nativeElement};return Object.defineProperty(Ur,"scrollLeft",{get:function(){var ln;return((ln=Br.current)===null||ln===void 0?void 0:ln.getScrollInfo().x)||0},set:function(ln){var vn;(vn=Br.current)===null||vn===void 0||vn.scrollTo({left:ln})}}),Ur});var Mn=function(Ur,Vr){var ln,vn=(ln=on[Vr])===null||ln===void 0?void 0:ln.record,jn=Ur.onCell;if(jn){var Sn,gn=jn(vn,Vr);return(Sn=gn==null?void 0:gn.rowSpan)!==null&&Sn!==void 0?Sn:1}return 1},Nn=function(Ur){var Vr=Ur.start,ln=Ur.end,vn=Ur.getSize,jn=Ur.offsetY;if(ln<0)return null;for(var Sn=Qt.filter(function(li){return Mn(li,Vr)===0}),gn=Vr,$n=function(oi){if(Sn=Sn.filter(function(sn){return Mn(sn,oi)===0}),!Sn.length)return gn=oi,1},Ei=Vr;Ei>=0&&!$n(Ei);Ei-=1);for(var Ci=Qt.filter(function(li){return Mn(li,ln)!==1}),oa=ln,Bi=function(oi){if(Ci=Ci.filter(function(sn){return Mn(sn,oi)!==1}),!Ci.length)return oa=Math.max(oi-1,ln),1},ri=ln;ri<on.length&&!Bi(ri);ri+=1);for(var ei=[],ti=function(oi){var sn=on[oi];if(!sn)return 1;Qt.some(function(wn){return Mn(wn,oi)>1})&&ei.push(oi)},ki=gn;ki<=oa;ki+=1)ti(ki);var ai=ei.map(function(li){var oi=on[li],sn=sr(oi.record,li),wn=function(Xn){var qn=li+Xn-1,Zi=sr(on[qn].record,qn),fi=vn(sn,Zi);return fi.bottom-fi.top},xn=vn(sn);return x.createElement(_r,{key:li,data:oi,rowKey:sn,index:li,style:{top:-jn+xn.top},extra:!0,getHeight:wn})});return ai},kn=x.useMemo(function(){return{columnsOffset:bn}},[bn]),Ln="".concat(It,"-tbody"),Pn=Wr(["body","wrapper"]),Tn={};return Yt&&(Tn.position="sticky",Tn.bottom=0,(0,de.Z)(Yt)==="object"&&Yt.offsetScroll&&(Tn.bottom=Yt.offsetScroll)),x.createElement(rn.Provider,{value:kn},x.createElement(Rn.Z,{fullHeight:!1,ref:Br,prefixCls:"".concat(Ln,"-virtual"),styles:{horizontalScrollBar:Tn},className:Ln,height:xr,itemHeight:Tr||24,data:on,itemKey:function(Ur){return sr(Ur.record)},component:Pn,scrollWidth:Pt,direction:_t,onVirtualScroll:function(Ur){var Vr,ln=Ur.x;zt({currentTarget:(Vr=Br.current)===null||Vr===void 0?void 0:Vr.nativeElement,scrollLeft:ln})},onScroll:Kr,extraRender:Nn},function(Dn,Ur,Vr){var ln=sr(Dn.record,Ur);return x.createElement(_r,{data:Dn,rowKey:ln,index:Ur,style:Vr.style})}))}),Fr=be(pr),kr=Fr,Hr=function(Bt,Ft){var zt=Ft.ref,Jt=Ft.onScroll;return x.createElement(kr,{ref:zt,data:Bt,onScroll:Jt})};function mn(vt,Bt){var Ft=vt.data,zt=vt.columns,Jt=vt.scroll,Qt=vt.sticky,ur=vt.prefixCls,sr=ur===void 0?nr:ur,tr=vt.className,It=vt.listItemHeight,Vt=vt.components,Pt=vt.onScroll,_t=Jt||{},Wt=_t.x,Yt=_t.y;typeof Wt!="number"&&(Wt=1),typeof Yt!="number"&&(Yt=500);var xr=(0,ot.zX)(function(Kr,Br){return(0,je.Z)(Vt,Kr)||Br}),Tr=(0,ot.zX)(Pt),Wr=x.useMemo(function(){return{sticky:Qt,scrollY:Yt,listItemHeight:It,getComponent:xr,onScroll:Tr}},[Qt,Yt,It,xr,Tr]);return x.createElement(pn.Provider,{value:Wr},x.createElement(Wn,(0,ee.Z)({},vt,{className:Ne()(tr,"".concat(sr,"-virtual")),scroll:(0,ye.Z)((0,ye.Z)({},Jt),{},{x:Wt}),components:(0,ye.Z)((0,ye.Z)({},Vt),{},{body:Ft!=null&&Ft.length?Hr:void 0}),columns:zt,internalHooks:He.R,tailor:!0,ref:Bt})))}var On=x.forwardRef(mn);function _n(vt){return ge(On,vt)}var In=_n(),Qn=null},54451:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{g:function(){return x},v:function(){return xe}});var He=Xe(98506),xt=Xe(33346),y=Xe(48736),De=["expandable"],xe="RC_TABLE_INTERNAL_COL_DEFINE";function x(z){var oe=z.expandable,se=(0,xt.Z)(z,De),ee;return"expandable"in z?ee=(0,He.Z)((0,He.Z)({},se),oe):ee=se,ee.showExpandColumn===!1&&(ee.expandIconColumnIndex=-1),ee}},22711:function(lr,Gt,Xe){"use strict";Xe.r(Gt),Xe.d(Gt,{ResizableTextArea:function(){return Oe},default:function(){return Ze}});var He=Xe(67711),xt=Xe(52873),y=Xe(98506),De=Xe(15142),xe=Xe(16886),x=Xe(33346),z=Xe(92310),oe=Xe.n(z),se=Xe(36901),ee=Xe(66003),fe=Xe(30292),E=Xe(18929),ie=Xe(59301),re=Xe(26420),le=Xe(29301),ce=Xe(34280),he=Xe(16089),ge=`
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;
`,be=["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"],me={},ve;function Ce(ze){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=ze.getAttribute("id")||ze.getAttribute("data-reactid")||ze.getAttribute("name");if(Ve&&me[it])return me[it];var Ie=window.getComputedStyle(ze),We=Ie.getPropertyValue("box-sizing")||Ie.getPropertyValue("-moz-box-sizing")||Ie.getPropertyValue("-webkit-box-sizing"),tt=parseFloat(Ie.getPropertyValue("padding-bottom"))+parseFloat(Ie.getPropertyValue("padding-top")),rt=parseFloat(Ie.getPropertyValue("border-bottom-width"))+parseFloat(Ie.getPropertyValue("border-top-width")),et=be.map(function($e){return"".concat($e,":").concat(Ie.getPropertyValue($e))}).join(";"),Ke={sizingStyle:et,paddingSize:tt,borderSize:rt,boxSizing:We};return Ve&&it&&(me[it]=Ke),Ke}function Te(ze){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),ve.setAttribute("name","hiddenTextarea"),document.body.appendChild(ve)),ze.getAttribute("wrap")?ve.setAttribute("wrap",ze.getAttribute("wrap")):ve.removeAttribute("wrap");var We=Ce(ze,Ve),tt=We.paddingSize,rt=We.borderSize,et=We.boxSizing,Ke=We.sizingStyle;ve.setAttribute("style","".concat(Ke,";").concat(ge)),ve.value=ze.value||ze.placeholder||"";var $e=void 0,Ge=void 0,ot,Je=ve.scrollHeight;if(et==="border-box"?Je+=rt:et==="content-box"&&(Je-=tt),it!==null||Ie!==null){ve.value=" ";var ct=ve.scrollHeight-tt;it!==null&&($e=ct*it,et==="border-box"&&($e=$e+tt+rt),Je=Math.max($e,Je)),Ie!==null&&(Ge=ct*Ie,et==="border-box"&&(Ge=Ge+tt+rt),ot=Je>Ge?"":"hidden",Je=Math.min(Ge,Je))}var st={height:Je,overflowY:ot,resize:"none"};return $e&&(st.minHeight=$e),Ge&&(st.maxHeight=Ge),st}var Me=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ke=0,de=1,ye=2,Se=ie.forwardRef(function(ze,Ve){var it=ze,Ie=it.prefixCls,We=it.defaultValue,tt=it.value,rt=it.autoSize,et=it.onResize,Ke=it.className,$e=it.style,Ge=it.disabled,ot=it.onChange,Je=it.onInternalAutoSize,ct=(0,x.Z)(it,Me),st=(0,E.Z)(We,{value:tt,postState:function(Ht){return Ht!=null?Ht:""}}),Ye=(0,xe.Z)(st,2),Le=Ye[0],_e=Ye[1],te=function(Ht){_e(Ht.target.value),ot==null||ot(Ht)},ue=ie.useRef();ie.useImperativeHandle(Ve,function(){return{textArea:ue.current}});var Re=ie.useMemo(function(){return rt&&(0,re.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),Fe=(0,xe.Z)(Re,2),we=Fe[0],Ee=Fe[1],Pe=!!rt,Ue=function(){try{if(document.activeElement===ue.current){var Ht=ue.current,gr=Ht.selectionStart,$t=Ht.selectionEnd,Ar=Ht.scrollTop;ue.current.setSelectionRange(gr,$t),ue.current.scrollTop=Ar}}catch(er){}},qe=ie.useState(ye),nt=(0,xe.Z)(qe,2),dt=nt[0],lt=nt[1],ht=ie.useState(),St=(0,xe.Z)(ht,2),gt=St[0],yt=St[1],mt=function(){lt(ke)};(0,ce.Z)(function(){Pe&&mt()},[tt,we,Ee,Pe]),(0,ce.Z)(function(){if(dt===ke)lt(de);else if(dt===de){var Nt=Te(ue.current,!1,we,Ee);lt(ye),yt(Nt)}else Ue()},[dt]);var Ct=ie.useRef(),wt=function(){he.Z.cancel(Ct.current)},pt=function(Ht){dt===ye&&(et==null||et(Ht),rt&&(wt(),Ct.current=(0,he.Z)(function(){mt()})))};ie.useEffect(function(){return wt},[]);var Ot=Pe?gt:null,At=(0,y.Z)((0,y.Z)({},$e),Ot);return(dt===ke||dt===de)&&(At.overflowY="hidden",At.overflowX="hidden"),ie.createElement(le.Z,{onResize:pt,disabled:!(rt||et)},ie.createElement("textarea",(0,He.Z)({},ct,{ref:ue,style:At,className:oe()(Ie,Ke,(0,xt.Z)({},"".concat(Ie,"-disabled"),Ge)),disabled:Ge,value:Le,onChange:te})))}),Oe=Se,Ne=["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=ie.forwardRef(function(ze,Ve){var it,Ie=ze.defaultValue,We=ze.value,tt=ze.onFocus,rt=ze.onBlur,et=ze.onChange,Ke=ze.allowClear,$e=ze.maxLength,Ge=ze.onCompositionStart,ot=ze.onCompositionEnd,Je=ze.suffix,ct=ze.prefixCls,st=ct===void 0?"rc-textarea":ct,Ye=ze.showCount,Le=ze.count,_e=ze.className,te=ze.style,ue=ze.disabled,Re=ze.hidden,Fe=ze.classNames,we=ze.styles,Ee=ze.onResize,Pe=ze.onClear,Ue=ze.onPressEnter,qe=ze.readOnly,nt=ze.autoSize,dt=ze.onKeyDown,lt=(0,x.Z)(ze,Ne),ht=(0,E.Z)(Ie,{value:We,defaultValue:Ie}),St=(0,xe.Z)(ht,2),gt=St[0],yt=St[1],mt=gt==null?"":String(gt),Ct=ie.useState(!1),wt=(0,xe.Z)(Ct,2),pt=wt[0],Ot=wt[1],At=ie.useRef(!1),Nt=ie.useState(null),Ht=(0,xe.Z)(Nt,2),gr=Ht[0],$t=Ht[1],Ar=(0,ie.useRef)(null),er=(0,ie.useRef)(null),Ir=function(){var Xt;return(Xt=er.current)===null||Xt===void 0?void 0:Xt.textArea},$r=function(){Ir().focus()};(0,ie.useImperativeHandle)(Ve,function(){var Ut;return{resizableTextArea:er.current,focus:$r,blur:function(){Ir().blur()},nativeElement:((Ut=Ar.current)===null||Ut===void 0?void 0:Ut.nativeElement)||Ir()}}),(0,ie.useEffect)(function(){Ot(function(Ut){return!ue&&Ut})},[ue]);var nn=ie.useState(null),dn=(0,xe.Z)(nn,2),tn=dn[0],Dr=dn[1];ie.useEffect(function(){if(tn){var Ut;(Ut=Ir()).setSelectionRange.apply(Ut,(0,De.Z)(tn))}},[tn]);var fn=(0,ee.Z)(Le,Ye),hn=(it=fn.max)!==null&&it!==void 0?it:$e,Rr=Number(hn)>0,jr=fn.strategy(mt),Dt=!!hn&&jr>hn,jt=function(Xt,Yr){var qr=Yr;!At.current&&fn.exceedFormatter&&fn.max&&fn.strategy(Yr)>fn.max&&(qr=fn.exceedFormatter(Yr,{max:fn.max}),Yr!==qr&&Dr([Ir().selectionStart||0,Ir().selectionEnd||0])),yt(qr),(0,fe.rJ)(Xt.currentTarget,Xt,et,qr)},Mt=function(Xt){At.current=!0,Ge==null||Ge(Xt)},ar=function(Xt){At.current=!1,jt(Xt,Xt.currentTarget.value),ot==null||ot(Xt)},Or=function(Xt){jt(Xt,Xt.target.value)},wr=function(Xt){Xt.key==="Enter"&&Ue&&Ue(Xt),dt==null||dt(Xt)},vr=function(Xt){Ot(!0),tt==null||tt(Xt)},Pr=function(Xt){Ot(!1),rt==null||rt(Xt)},dr=function(Xt){yt(""),$r(),(0,fe.rJ)(Ir(),Xt,et)},Cr=Je,Lr;fn.show&&(fn.showFormatter?Lr=fn.showFormatter({value:mt,count:jr,maxLength:hn}):Lr="".concat(jr).concat(Rr?" / ".concat(hn):""),Cr=ie.createElement(ie.Fragment,null,Cr,ie.createElement("span",{className:oe()("".concat(st,"-data-count"),Fe==null?void 0:Fe.count),style:we==null?void 0:we.count},Lr)));var Xr=function(Xt){var Yr;Ee==null||Ee(Xt),(Yr=Ir())!==null&&Yr!==void 0&&Yr.style.height&&$t(!0)},or=!nt&&!Ye&&!Ke;return ie.createElement(se.BaseInput,{ref:Ar,value:mt,allowClear:Ke,handleReset:dr,suffix:Cr,prefixCls:st,classNames:(0,y.Z)((0,y.Z)({},Fe),{},{affixWrapper:oe()(Fe==null?void 0:Fe.affixWrapper,(0,xt.Z)((0,xt.Z)({},"".concat(st,"-show-count"),Ye),"".concat(st,"-textarea-allow-clear"),Ke))}),disabled:ue,focused:pt,className:oe()(_e,Dt&&"".concat(st,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},te),gr&&!or?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Lr=="string"?Lr:void 0}},hidden:Re,readOnly:qe,onClear:Pe},ie.createElement(Oe,(0,He.Z)({},lt,{autoSize:nt,maxLength:$e,onKeyDown:wr,onChange:Or,onFocus:vr,onBlur:Pr,onCompositionStart:Mt,onCompositionEnd:ar,className:oe()(Fe==null?void 0:Fe.textarea),style:(0,y.Z)((0,y.Z)({},we==null?void 0:we.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ue,prefixCls:st,onResize:Xr,ref:er,readOnly:qe})))}),je=Ae,Ze=je},639:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return me}});var He=Xe(67711),xt=Xe(52873),y=Xe(98506),De=Xe(16886),xe=Xe(33346),x=Xe(59301),z=Xe(92310),oe=Xe.n(z),se=Xe(26112),ee=Xe(30699),fe=function(Ce){for(var Te=Ce.prefixCls,Me=Ce.level,ke=Ce.isStart,de=Ce.isEnd,ye="".concat(Te,"-indent-unit"),Se=[],Oe=0;Oe<Me;Oe+=1)Se.push(x.createElement("span",{key:Oe,className:oe()(ye,(0,xt.Z)((0,xt.Z)({},"".concat(ye,"-start"),ke[Oe]),"".concat(ye,"-end"),de[Oe]))}));return x.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Se)},E=x.memo(fe),ie=Xe(65065),re=Xe(34061),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ce="open",he="close",ge="---",be=function(Ce){var Te,Me,ke,de=Ce.eventKey,ye=Ce.className,Se=Ce.style,Oe=Ce.dragOver,Ne=Ce.dragOverGapTop,Ae=Ce.dragOverGapBottom,je=Ce.isLeaf,Ze=Ce.isStart,ze=Ce.isEnd,Ve=Ce.expanded,it=Ce.selected,Ie=Ce.checked,We=Ce.halfChecked,tt=Ce.loading,rt=Ce.domRef,et=Ce.active,Ke=Ce.data,$e=Ce.onMouseMove,Ge=Ce.selectable,ot=(0,xe.Z)(Ce,le),Je=x.useContext(ee.k),ct=x.useContext(ee.y),st=x.useRef(null),Ye=x.useState(!1),Le=(0,De.Z)(Ye,2),_e=Le[0],te=Le[1],ue=!!(Je.disabled||Ce.disabled||(Te=ct.nodeDisabled)!==null&&Te!==void 0&&Te.call(ct,Ke)),Re=x.useMemo(function(){return!Je.checkable||Ce.checkable===!1?!1:Je.checkable},[Je.checkable,Ce.checkable]),Fe=function(jr){ue||Je.onNodeSelect(jr,(0,re.F)(Ce))},we=function(jr){ue||!Re||Ce.disableCheckbox||Je.onNodeCheck(jr,(0,re.F)(Ce),!Ie)},Ee=x.useMemo(function(){return typeof Ge=="boolean"?Ge:Je.selectable},[Ge,Je.selectable]),Pe=function(jr){Je.onNodeClick(jr,(0,re.F)(Ce)),Ee?Fe(jr):we(jr)},Ue=function(jr){Je.onNodeDoubleClick(jr,(0,re.F)(Ce))},qe=function(jr){Je.onNodeMouseEnter(jr,(0,re.F)(Ce))},nt=function(jr){Je.onNodeMouseLeave(jr,(0,re.F)(Ce))},dt=function(jr){Je.onNodeContextMenu(jr,(0,re.F)(Ce))},lt=x.useMemo(function(){return!!(Je.draggable&&(!Je.draggable.nodeDraggable||Je.draggable.nodeDraggable(Ke)))},[Je.draggable,Ke]),ht=function(jr){jr.stopPropagation(),te(!0),Je.onNodeDragStart(jr,Ce);try{jr.dataTransfer.setData("text/plain","")}catch(Dt){}},St=function(jr){jr.preventDefault(),jr.stopPropagation(),Je.onNodeDragEnter(jr,Ce)},gt=function(jr){jr.preventDefault(),jr.stopPropagation(),Je.onNodeDragOver(jr,Ce)},yt=function(jr){jr.stopPropagation(),Je.onNodeDragLeave(jr,Ce)},mt=function(jr){jr.stopPropagation(),te(!1),Je.onNodeDragEnd(jr,Ce)},Ct=function(jr){jr.preventDefault(),jr.stopPropagation(),te(!1),Je.onNodeDrop(jr,Ce)},wt=function(jr){tt||Je.onNodeExpand(jr,(0,re.F)(Ce))},pt=x.useMemo(function(){var Rr=(0,ie.Z)(Je.keyEntities,de)||{},jr=Rr.children;return!!(jr||[]).length},[Je.keyEntities,de]),Ot=x.useMemo(function(){return je===!1?!1:je||!Je.loadData&&!pt||Je.loadData&&Ce.loaded&&!pt},[je,Je.loadData,pt,Ce.loaded]);x.useEffect(function(){tt||typeof Je.loadData=="function"&&Ve&&!Ot&&!Ce.loaded&&Je.onNodeLoad((0,re.F)(Ce))},[tt,Je.loadData,Je.onNodeLoad,Ve,Ot,Ce]);var At=x.useMemo(function(){var Rr;return(Rr=Je.draggable)!==null&&Rr!==void 0&&Rr.icon?x.createElement("span",{className:"".concat(Je.prefixCls,"-draggable-icon")},Je.draggable.icon):null},[Je.draggable]),Nt=function(jr){var Dt=Ce.switcherIcon||Je.switcherIcon;return typeof Dt=="function"?Dt((0,y.Z)((0,y.Z)({},Ce),{},{isLeaf:jr})):Dt},Ht=function(){if(Ot){var jr=Nt(!0);return jr!==!1?x.createElement("span",{className:oe()("".concat(Je.prefixCls,"-switcher"),"".concat(Je.prefixCls,"-switcher-noop"))},jr):null}var Dt=Nt(!1);return Dt!==!1?x.createElement("span",{onClick:wt,className:oe()("".concat(Je.prefixCls,"-switcher"),"".concat(Je.prefixCls,"-switcher_").concat(Ve?ce:he))},Dt):null},gr=x.useMemo(function(){if(!Re)return null;var Rr=typeof Re!="boolean"?Re:null;return x.createElement("span",{className:oe()("".concat(Je.prefixCls,"-checkbox"),(0,xt.Z)((0,xt.Z)((0,xt.Z)({},"".concat(Je.prefixCls,"-checkbox-checked"),Ie),"".concat(Je.prefixCls,"-checkbox-indeterminate"),!Ie&&We),"".concat(Je.prefixCls,"-checkbox-disabled"),ue||Ce.disableCheckbox)),onClick:we,role:"checkbox","aria-checked":We?"mixed":Ie,"aria-disabled":ue||Ce.disableCheckbox,"aria-label":"Select ".concat(typeof Ce.title=="string"?Ce.title:"tree node")},Rr)},[Re,Ie,We,ue,Ce.disableCheckbox,Ce.title]),$t=x.useMemo(function(){return Ot?null:Ve?ce:he},[Ot,Ve]),Ar=x.useMemo(function(){return x.createElement("span",{className:oe()("".concat(Je.prefixCls,"-iconEle"),"".concat(Je.prefixCls,"-icon__").concat($t||"docu"),(0,xt.Z)({},"".concat(Je.prefixCls,"-icon_loading"),tt))})},[Je.prefixCls,$t,tt]),er=x.useMemo(function(){var Rr=!!Je.draggable,jr=!Ce.disabled&&Rr&&Je.dragOverNodeKey===de;return jr?Je.dropIndicatorRender({dropPosition:Je.dropPosition,dropLevelOffset:Je.dropLevelOffset,indent:Je.indent,prefixCls:Je.prefixCls,direction:Je.direction}):null},[Je.dropPosition,Je.dropLevelOffset,Je.indent,Je.prefixCls,Je.direction,Je.draggable,Je.dragOverNodeKey,Je.dropIndicatorRender]),Ir=x.useMemo(function(){var Rr=Ce.title,jr=Rr===void 0?ge:Rr,Dt="".concat(Je.prefixCls,"-node-content-wrapper"),jt;if(Je.showIcon){var Mt=Ce.icon||Je.icon;jt=Mt?x.createElement("span",{className:oe()("".concat(Je.prefixCls,"-iconEle"),"".concat(Je.prefixCls,"-icon__customize"))},typeof Mt=="function"?Mt(Ce):Mt):Ar}else Je.loadData&&tt&&(jt=Ar);var ar;return typeof jr=="function"?ar=jr(Ke):Je.titleRender?ar=Je.titleRender(Ke):ar=jr,x.createElement("span",{ref:st,title:typeof jr=="string"?jr:"",className:oe()(Dt,"".concat(Dt,"-").concat($t||"normal"),(0,xt.Z)({},"".concat(Je.prefixCls,"-node-selected"),!ue&&(it||_e))),onMouseEnter:qe,onMouseLeave:nt,onContextMenu:dt,onClick:Pe,onDoubleClick:Ue},jt,x.createElement("span",{className:"".concat(Je.prefixCls,"-title")},ar),er)},[Je.prefixCls,Je.showIcon,Ce,Je.icon,Ar,Je.titleRender,Ke,$t,qe,nt,dt,Pe,Ue]),$r=(0,se.Z)(ot,{aria:!0,data:!0}),nn=(0,ie.Z)(Je.keyEntities,de)||{},dn=nn.level,tn=ze[ze.length-1],Dr=!ue&&lt,fn=Je.draggingNodeKey===de,hn=Ge!==void 0?{"aria-selected":!!Ge}:void 0;return x.createElement("div",(0,He.Z)({ref:rt,role:"treeitem","aria-expanded":je?void 0:Ve,className:oe()(ye,"".concat(Je.prefixCls,"-treenode"),(ke={},(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)(ke,"".concat(Je.prefixCls,"-treenode-disabled"),ue),"".concat(Je.prefixCls,"-treenode-switcher-").concat(Ve?"open":"close"),!je),"".concat(Je.prefixCls,"-treenode-checkbox-checked"),Ie),"".concat(Je.prefixCls,"-treenode-checkbox-indeterminate"),We),"".concat(Je.prefixCls,"-treenode-selected"),it),"".concat(Je.prefixCls,"-treenode-loading"),tt),"".concat(Je.prefixCls,"-treenode-active"),et),"".concat(Je.prefixCls,"-treenode-leaf-last"),tn),"".concat(Je.prefixCls,"-treenode-draggable"),lt),"dragging",fn),(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)(ke,"drop-target",Je.dropTargetKey===de),"drop-container",Je.dropContainerKey===de),"drag-over",!ue&&Oe),"drag-over-gap-top",!ue&&Ne),"drag-over-gap-bottom",!ue&&Ae),"filter-node",(Me=Je.filterTreeNode)===null||Me===void 0?void 0:Me.call(Je,(0,re.F)(Ce))),"".concat(Je.prefixCls,"-treenode-leaf"),Ot))),style:Se,draggable:Dr,onDragStart:Dr?ht:void 0,onDragEnter:lt?St:void 0,onDragOver:lt?gt:void 0,onDragLeave:lt?yt:void 0,onDrop:lt?Ct:void 0,onDragEnd:lt?mt:void 0,onMouseMove:$e},hn,$r),x.createElement(E,{prefixCls:Je.prefixCls,level:dn,isStart:Ze,isEnd:ze}),At,Ht(),gr,Ir)};be.isTreeNode=1;var me=be},30699:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{k:function(){return xt},y:function(){return y}});var He=Xe(59301),xt=He.createContext(null),y=He.createContext({})},71598:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{OF:function(){return de.Z},y6:function(){return he.y},ZP:function(){return ue}});var He=Xe(67711),xt=Xe(26420),y=Xe(98506),De=Xe(15142),xe=Xe(42573),x=Xe(58698),z=Xe(62437),oe=Xe(74700),se=Xe(45080),ee=Xe(52873),fe=Xe(92310),E=Xe.n(fe),ie=Xe(10228),re=Xe(26112),le=Xe(48736),ce=Xe(59301),he=Xe(30699),ge=function(Fe){var we=Fe.dropPosition,Ee=Fe.dropLevelOffset,Pe=Fe.indent,Ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(we){case-1:Ue.top=0,Ue.left=-Ee*Pe;break;case 1:Ue.bottom=0,Ue.left=-Ee*Pe;break;case 0:Ue.bottom=0,Ue.left=Pe;break}return ce.createElement("div",{style:Ue})},be=ge;function me(Re){if(Re==null)throw new TypeError("Cannot destructure "+Re)}var ve=Xe(16886),Ce=Xe(33346),Te=Xe(34280),Me=Xe(6790),ke=Xe(77900),de=Xe(639);function ye(Re,Fe){var we=ce.useState(!1),Ee=(0,ve.Z)(we,2),Pe=Ee[0],Ue=Ee[1];(0,Te.Z)(function(){if(Pe)return Re(),function(){Fe()}},[Pe]),(0,Te.Z)(function(){return Ue(!0),function(){Ue(!1)}},[])}var Se=ye,Oe=Xe(34061),Ne=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=ce.forwardRef(function(Re,Fe){var we=Re.className,Ee=Re.style,Pe=Re.motion,Ue=Re.motionNodes,qe=Re.motionType,nt=Re.onMotionStart,dt=Re.onMotionEnd,lt=Re.active,ht=Re.treeNodeRequiredProps,St=(0,Ce.Z)(Re,Ne),gt=ce.useState(!0),yt=(0,ve.Z)(gt,2),mt=yt[0],Ct=yt[1],wt=ce.useContext(he.k),pt=wt.prefixCls,Ot=Ue&&qe!=="hide";(0,Te.Z)(function(){Ue&&Ot!==mt&&Ct(Ot)},[Ue]);var At=function(){Ue&&nt()},Nt=ce.useRef(!1),Ht=function(){Ue&&!Nt.current&&(Nt.current=!0,dt())};Se(At,Ht);var gr=function(Ar){Ot===Ar&&Ht()};return Ue?ce.createElement(ke.default,(0,He.Z)({ref:Fe,visible:mt},Pe,{motionAppear:qe==="show",onVisibleChanged:gr}),function($t,Ar){var er=$t.className,Ir=$t.style;return ce.createElement("div",{ref:Ar,className:E()("".concat(pt,"-treenode-motion"),er),style:Ir},Ue.map(function($r){var nn=Object.assign({},(me($r.data),$r.data)),dn=$r.title,tn=$r.key,Dr=$r.isStart,fn=$r.isEnd;delete nn.children;var hn=(0,Oe.H8)(tn,ht);return ce.createElement(de.Z,(0,He.Z)({},nn,hn,{title:dn,active:lt,data:$r.data,key:tn,isStart:Dr,isEnd:fn}))}))}):ce.createElement(de.Z,(0,He.Z)({domRef:Fe,className:we,style:Ee},St,{active:lt}))}),je=Ae;function Ze(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],we=Re.length,Ee=Fe.length;if(Math.abs(we-Ee)!==1)return{add:!1,key:null};function Pe(Ue,qe){var nt=new Map;Ue.forEach(function(lt){nt.set(lt,!0)});var dt=qe.filter(function(lt){return!nt.has(lt)});return dt.length===1?dt[0]:null}return we<Ee?{add:!0,key:Pe(Re,Fe)}:{add:!1,key:Pe(Fe,Re)}}function ze(Re,Fe,we){var Ee=Re.findIndex(function(nt){return nt.key===we}),Pe=Re[Ee+1],Ue=Fe.findIndex(function(nt){return nt.key===we});if(Pe){var qe=Fe.findIndex(function(nt){return nt.key===Pe.key});return Fe.slice(Ue+1,qe)}return Fe.slice(Ue+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"],it={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ie=function(){},We="RC_TREE_MOTION_".concat(Math.random()),tt={key:We},rt={key:We,level:0,index:0,pos:"0",node:tt,nodes:[tt]},et={parent:null,children:[],pos:rt.pos,data:tt,title:null,key:We,isStart:[],isEnd:[]};function Ke(Re,Fe,we,Ee){return Fe===!1||!we?Re:Re.slice(0,Math.ceil(we/Ee)+1)}function $e(Re){var Fe=Re.key,we=Re.pos;return(0,Oe.km)(Fe,we)}function Ge(Re){for(var Fe=String(Re.data.key),we=Re;we.parent;)we=we.parent,Fe="".concat(we.data.key," > ").concat(Fe);return Fe}var ot=ce.forwardRef(function(Re,Fe){var we=Re.prefixCls,Ee=Re.data,Pe=Re.selectable,Ue=Re.checkable,qe=Re.expandedKeys,nt=Re.selectedKeys,dt=Re.checkedKeys,lt=Re.loadedKeys,ht=Re.loadingKeys,St=Re.halfCheckedKeys,gt=Re.keyEntities,yt=Re.disabled,mt=Re.dragging,Ct=Re.dragOverNodeKey,wt=Re.dropPosition,pt=Re.motion,Ot=Re.height,At=Re.itemHeight,Nt=Re.virtual,Ht=Re.scrollWidth,gr=Re.focusable,$t=Re.activeItem,Ar=Re.focused,er=Re.tabIndex,Ir=Re.onKeyDown,$r=Re.onFocus,nn=Re.onBlur,dn=Re.onActiveChange,tn=Re.onListChangeStart,Dr=Re.onListChangeEnd,fn=(0,Ce.Z)(Re,Ve),hn=ce.useRef(null),Rr=ce.useRef(null);ce.useImperativeHandle(Fe,function(){return{scrollTo:function(hr){hn.current.scrollTo(hr)},getIndentWidth:function(){return Rr.current.offsetWidth}}});var jr=ce.useState(qe),Dt=(0,ve.Z)(jr,2),jt=Dt[0],Mt=Dt[1],ar=ce.useState(Ee),Or=(0,ve.Z)(ar,2),wr=Or[0],vr=Or[1],Pr=ce.useState(Ee),dr=(0,ve.Z)(Pr,2),Cr=dr[0],Lr=dr[1],Xr=ce.useState([]),or=(0,ve.Z)(Xr,2),Ut=or[0],Xt=or[1],Yr=ce.useState(null),qr=(0,ve.Z)(Yr,2),Et=qr[0],kt=qr[1],fr=ce.useRef(Ee);fr.current=Ee;function qt(){var mr=fr.current;vr(mr),Lr(mr),Xt([]),kt(null),Dr()}(0,Te.Z)(function(){Mt(qe);var mr=Ze(jt,qe);if(mr.key!==null)if(mr.add){var hr=wr.findIndex(function(yr){var Nr=yr.key;return Nr===mr.key}),ir=Ke(ze(wr,Ee,mr.key),Nt,Ot,At),Lt=wr.slice();Lt.splice(hr+1,0,et),Lr(Lt),Xt(ir),kt("show")}else{var br=Ee.findIndex(function(yr){var Nr=yr.key;return Nr===mr.key}),nr=Ke(ze(Ee,wr,mr.key),Nt,Ot,At),Jr=Ee.slice();Jr.splice(br+1,0,et),Lr(Jr),Xt(nr),kt("hide")}else wr!==Ee&&(vr(Ee),Lr(Ee))},[qe,Ee]),ce.useEffect(function(){mt||qt()},[mt]);var Rt=pt?Cr:Ee,rr={expandedKeys:qe,selectedKeys:nt,loadedKeys:lt,loadingKeys:ht,checkedKeys:dt,halfCheckedKeys:St,dragOverNodeKey:Ct,dropPosition:wt,keyEntities:gt};return ce.createElement(ce.Fragment,null,Ar&&$t&&ce.createElement("span",{style:it,"aria-live":"assertive"},Ge($t)),ce.createElement("div",null,ce.createElement("input",{style:it,disabled:gr===!1||yt,tabIndex:gr!==!1?er:null,onKeyDown:Ir,onFocus:$r,onBlur:nn,value:"",onChange:Ie,"aria-label":"for screen reader"})),ce.createElement("div",{className:"".concat(we,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ce.createElement("div",{className:"".concat(we,"-indent")},ce.createElement("div",{ref:Rr,className:"".concat(we,"-indent-unit")}))),ce.createElement(Me.Z,(0,He.Z)({},fn,{data:Rt,itemKey:$e,height:Ot,fullHeight:!1,virtual:Nt,itemHeight:At,scrollWidth:Ht,prefixCls:"".concat(we,"-list"),ref:hn,role:"tree",onVisibleChange:function(hr){hr.every(function(ir){return $e(ir)!==We})&&qt()}}),function(mr){var hr=mr.pos,ir=Object.assign({},(me(mr.data),mr.data)),Lt=mr.title,br=mr.key,nr=mr.isStart,Jr=mr.isEnd,yr=(0,Oe.km)(br,hr);delete ir.key,delete ir.children;var Nr=(0,Oe.H8)(yr,rr);return ce.createElement(je,(0,He.Z)({},ir,Nr,{title:Lt,active:!!$t&&br===$t.key,pos:hr,data:mr.data,isStart:nr,isEnd:Jr,motion:pt,motionNodes:br===We?Ut:null,motionType:Et,onMotionStart:tn,onMotionEnd:qt,treeNodeRequiredProps:rr,onMouseMove:function(){dn(null)}}))}))}),Je=ot,ct=Xe(82661),st=Xe(34643),Ye=Xe(65065),Le=10,_e=function(Re){(0,oe.Z)(we,Re);var Fe=(0,se.Z)(we);function we(){var Ee;(0,xe.Z)(this,we);for(var Pe=arguments.length,Ue=new Array(Pe),qe=0;qe<Pe;qe++)Ue[qe]=arguments[qe];return Ee=Fe.call.apply(Fe,[this].concat(Ue)),(0,ee.Z)((0,z.Z)(Ee),"destroyed",!1),(0,ee.Z)((0,z.Z)(Ee),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,z.Z)(Ee),"loadingRetryTimes",{}),(0,ee.Z)((0,z.Z)(Ee),"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,Oe.w$)()}),(0,ee.Z)((0,z.Z)(Ee),"dragStartMousePosition",null),(0,ee.Z)((0,z.Z)(Ee),"dragNodeProps",null),(0,ee.Z)((0,z.Z)(Ee),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,z.Z)(Ee),"listRef",ce.createRef()),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragStart",function(nt,dt){var lt=Ee.state,ht=lt.expandedKeys,St=lt.keyEntities,gt=Ee.props.onDragStart,yt=dt.eventKey;Ee.dragNodeProps=dt,Ee.dragStartMousePosition={x:nt.clientX,y:nt.clientY};var mt=(0,ct._5)(ht,yt);Ee.setState({draggingNodeKey:yt,dragChildrenKeys:(0,ct.wA)(yt,St),indent:Ee.listRef.current.getIndentWidth()}),Ee.setExpandedKeys(mt),window.addEventListener("dragend",Ee.onWindowDragEnd),gt==null||gt({event:nt,node:(0,Oe.F)(dt)})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragEnter",function(nt,dt){var lt=Ee.state,ht=lt.expandedKeys,St=lt.keyEntities,gt=lt.dragChildrenKeys,yt=lt.flattenNodes,mt=lt.indent,Ct=Ee.props,wt=Ct.onDragEnter,pt=Ct.onExpand,Ot=Ct.allowDrop,At=Ct.direction,Nt=dt.pos,Ht=dt.eventKey;if(Ee.currentMouseOverDroppableNodeKey!==Ht&&(Ee.currentMouseOverDroppableNodeKey=Ht),!Ee.dragNodeProps){Ee.resetDragState();return}var gr=(0,ct.OM)(nt,Ee.dragNodeProps,dt,mt,Ee.dragStartMousePosition,Ot,yt,St,ht,At),$t=gr.dropPosition,Ar=gr.dropLevelOffset,er=gr.dropTargetKey,Ir=gr.dropContainerKey,$r=gr.dropTargetPos,nn=gr.dropAllowed,dn=gr.dragOverNodeKey;if(gt.includes(er)||!nn){Ee.resetDragState();return}if(Ee.delayedDragEnterLogic||(Ee.delayedDragEnterLogic={}),Object.keys(Ee.delayedDragEnterLogic).forEach(function(tn){clearTimeout(Ee.delayedDragEnterLogic[tn])}),Ee.dragNodeProps.eventKey!==dt.eventKey&&(nt.persist(),Ee.delayedDragEnterLogic[Nt]=window.setTimeout(function(){if(Ee.state.draggingNodeKey!==null){var tn=(0,De.Z)(ht),Dr=(0,Ye.Z)(St,dt.eventKey);Dr&&(Dr.children||[]).length&&(tn=(0,ct.L0)(ht,dt.eventKey)),Ee.props.hasOwnProperty("expandedKeys")||Ee.setExpandedKeys(tn),pt==null||pt(tn,{node:(0,Oe.F)(dt),expanded:!0,nativeEvent:nt.nativeEvent})}},800)),Ee.dragNodeProps.eventKey===er&&Ar===0){Ee.resetDragState();return}Ee.setState({dragOverNodeKey:dn,dropPosition:$t,dropLevelOffset:Ar,dropTargetKey:er,dropContainerKey:Ir,dropTargetPos:$r,dropAllowed:nn}),wt==null||wt({event:nt,node:(0,Oe.F)(dt),expandedKeys:ht})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragOver",function(nt,dt){var lt=Ee.state,ht=lt.dragChildrenKeys,St=lt.flattenNodes,gt=lt.keyEntities,yt=lt.expandedKeys,mt=lt.indent,Ct=Ee.props,wt=Ct.onDragOver,pt=Ct.allowDrop,Ot=Ct.direction;if(Ee.dragNodeProps){var At=(0,ct.OM)(nt,Ee.dragNodeProps,dt,mt,Ee.dragStartMousePosition,pt,St,gt,yt,Ot),Nt=At.dropPosition,Ht=At.dropLevelOffset,gr=At.dropTargetKey,$t=At.dropContainerKey,Ar=At.dropTargetPos,er=At.dropAllowed,Ir=At.dragOverNodeKey;ht.includes(gr)||!er||(Ee.dragNodeProps.eventKey===gr&&Ht===0?Ee.state.dropPosition===null&&Ee.state.dropLevelOffset===null&&Ee.state.dropTargetKey===null&&Ee.state.dropContainerKey===null&&Ee.state.dropTargetPos===null&&Ee.state.dropAllowed===!1&&Ee.state.dragOverNodeKey===null||Ee.resetDragState():Nt===Ee.state.dropPosition&&Ht===Ee.state.dropLevelOffset&&gr===Ee.state.dropTargetKey&&$t===Ee.state.dropContainerKey&&Ar===Ee.state.dropTargetPos&&er===Ee.state.dropAllowed&&Ir===Ee.state.dragOverNodeKey||Ee.setState({dropPosition:Nt,dropLevelOffset:Ht,dropTargetKey:gr,dropContainerKey:$t,dropTargetPos:Ar,dropAllowed:er,dragOverNodeKey:Ir}),wt==null||wt({event:nt,node:(0,Oe.F)(dt)}))}}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragLeave",function(nt,dt){Ee.currentMouseOverDroppableNodeKey===dt.eventKey&&!nt.currentTarget.contains(nt.relatedTarget)&&(Ee.resetDragState(),Ee.currentMouseOverDroppableNodeKey=null);var lt=Ee.props.onDragLeave;lt==null||lt({event:nt,node:(0,Oe.F)(dt)})}),(0,ee.Z)((0,z.Z)(Ee),"onWindowDragEnd",function(nt){Ee.onNodeDragEnd(nt,null,!0),window.removeEventListener("dragend",Ee.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragEnd",function(nt,dt){var lt=Ee.props.onDragEnd;Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),lt==null||lt({event:nt,node:(0,Oe.F)(dt)}),Ee.dragNodeProps=null,window.removeEventListener("dragend",Ee.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDrop",function(nt,dt){var lt,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=Ee.state,gt=St.dragChildrenKeys,yt=St.dropPosition,mt=St.dropTargetKey,Ct=St.dropTargetPos,wt=St.dropAllowed;if(wt){var pt=Ee.props.onDrop;if(Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),mt!==null){var Ot=(0,y.Z)((0,y.Z)({},(0,Oe.H8)(mt,Ee.getTreeNodeRequiredProps())),{},{active:((lt=Ee.getActiveItem())===null||lt===void 0?void 0:lt.key)===mt,data:(0,Ye.Z)(Ee.state.keyEntities,mt).node}),At=gt.includes(mt);(0,le.ZP)(!At,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Nt=(0,ct.yx)(Ct),Ht={event:nt,node:(0,Oe.F)(Ot),dragNode:Ee.dragNodeProps?(0,Oe.F)(Ee.dragNodeProps):null,dragNodesKeys:[Ee.dragNodeProps.eventKey].concat(gt),dropToGap:yt!==0,dropPosition:yt+Number(Nt[Nt.length-1])};ht||pt==null||pt(Ht),Ee.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(Ee),"cleanDragState",function(){var nt=Ee.state.draggingNodeKey;nt!==null&&Ee.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ee.dragStartMousePosition=null,Ee.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,z.Z)(Ee),"triggerExpandActionExpand",function(nt,dt){var lt=Ee.state,ht=lt.expandedKeys,St=lt.flattenNodes,gt=dt.expanded,yt=dt.key,mt=dt.isLeaf;if(!(mt||nt.shiftKey||nt.metaKey||nt.ctrlKey)){var Ct=St.filter(function(pt){return pt.key===yt})[0],wt=(0,Oe.F)((0,y.Z)((0,y.Z)({},(0,Oe.H8)(yt,Ee.getTreeNodeRequiredProps())),{},{data:Ct.data}));Ee.setExpandedKeys(gt?(0,ct._5)(ht,yt):(0,ct.L0)(ht,yt)),Ee.onNodeExpand(nt,wt)}}),(0,ee.Z)((0,z.Z)(Ee),"onNodeClick",function(nt,dt){var lt=Ee.props,ht=lt.onClick,St=lt.expandAction;St==="click"&&Ee.triggerExpandActionExpand(nt,dt),ht==null||ht(nt,dt)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDoubleClick",function(nt,dt){var lt=Ee.props,ht=lt.onDoubleClick,St=lt.expandAction;St==="doubleClick"&&Ee.triggerExpandActionExpand(nt,dt),ht==null||ht(nt,dt)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeSelect",function(nt,dt){var lt=Ee.state.selectedKeys,ht=Ee.state,St=ht.keyEntities,gt=ht.fieldNames,yt=Ee.props,mt=yt.onSelect,Ct=yt.multiple,wt=dt.selected,pt=dt[gt.key],Ot=!wt;Ot?Ct?lt=(0,ct.L0)(lt,pt):lt=[pt]:lt=(0,ct._5)(lt,pt);var At=lt.map(function(Nt){var Ht=(0,Ye.Z)(St,Nt);return Ht?Ht.node:null}).filter(Boolean);Ee.setUncontrolledState({selectedKeys:lt}),mt==null||mt(lt,{event:"select",selected:Ot,node:dt,selectedNodes:At,nativeEvent:nt.nativeEvent})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeCheck",function(nt,dt,lt){var ht=Ee.state,St=ht.keyEntities,gt=ht.checkedKeys,yt=ht.halfCheckedKeys,mt=Ee.props,Ct=mt.checkStrictly,wt=mt.onCheck,pt=dt.key,Ot,At={event:"check",node:dt,checked:lt,nativeEvent:nt.nativeEvent};if(Ct){var Nt=lt?(0,ct.L0)(gt,pt):(0,ct._5)(gt,pt),Ht=(0,ct._5)(yt,pt);Ot={checked:Nt,halfChecked:Ht},At.checkedNodes=Nt.map(function($r){return(0,Ye.Z)(St,$r)}).filter(Boolean).map(function($r){return $r.node}),Ee.setUncontrolledState({checkedKeys:Nt})}else{var gr=(0,st.S)([].concat((0,De.Z)(gt),[pt]),!0,St),$t=gr.checkedKeys,Ar=gr.halfCheckedKeys;if(!lt){var er=new Set($t);er.delete(pt);var Ir=(0,st.S)(Array.from(er),{checked:!1,halfCheckedKeys:Ar},St);$t=Ir.checkedKeys,Ar=Ir.halfCheckedKeys}Ot=$t,At.checkedNodes=[],At.checkedNodesPositions=[],At.halfCheckedKeys=Ar,$t.forEach(function($r){var nn=(0,Ye.Z)(St,$r);if(nn){var dn=nn.node,tn=nn.pos;At.checkedNodes.push(dn),At.checkedNodesPositions.push({node:dn,pos:tn})}}),Ee.setUncontrolledState({checkedKeys:$t},!1,{halfCheckedKeys:Ar})}wt==null||wt(Ot,At)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeLoad",function(nt){var dt,lt=nt.key,ht=Ee.state.keyEntities,St=(0,Ye.Z)(ht,lt);if(!(St!=null&&(dt=St.children)!==null&&dt!==void 0&&dt.length)){var gt=new Promise(function(yt,mt){Ee.setState(function(Ct){var wt=Ct.loadedKeys,pt=wt===void 0?[]:wt,Ot=Ct.loadingKeys,At=Ot===void 0?[]:Ot,Nt=Ee.props,Ht=Nt.loadData,gr=Nt.onLoad;if(!Ht||pt.includes(lt)||At.includes(lt))return null;var $t=Ht(nt);return $t.then(function(){var Ar=Ee.state.loadedKeys,er=(0,ct.L0)(Ar,lt);gr==null||gr(er,{event:"load",node:nt}),Ee.setUncontrolledState({loadedKeys:er}),Ee.setState(function(Ir){return{loadingKeys:(0,ct._5)(Ir.loadingKeys,lt)}}),yt()}).catch(function(Ar){if(Ee.setState(function(Ir){return{loadingKeys:(0,ct._5)(Ir.loadingKeys,lt)}}),Ee.loadingRetryTimes[lt]=(Ee.loadingRetryTimes[lt]||0)+1,Ee.loadingRetryTimes[lt]>=Le){var er=Ee.state.loadedKeys;(0,le.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ee.setUncontrolledState({loadedKeys:(0,ct.L0)(er,lt)}),yt()}mt(Ar)}),{loadingKeys:(0,ct.L0)(At,lt)}})});return gt.catch(function(){}),gt}}),(0,ee.Z)((0,z.Z)(Ee),"onNodeMouseEnter",function(nt,dt){var lt=Ee.props.onMouseEnter;lt==null||lt({event:nt,node:dt})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeMouseLeave",function(nt,dt){var lt=Ee.props.onMouseLeave;lt==null||lt({event:nt,node:dt})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeContextMenu",function(nt,dt){var lt=Ee.props.onRightClick;lt&&(nt.preventDefault(),lt({event:nt,node:dt}))}),(0,ee.Z)((0,z.Z)(Ee),"onFocus",function(){var nt=Ee.props.onFocus;Ee.setState({focused:!0});for(var dt=arguments.length,lt=new Array(dt),ht=0;ht<dt;ht++)lt[ht]=arguments[ht];nt==null||nt.apply(void 0,lt)}),(0,ee.Z)((0,z.Z)(Ee),"onBlur",function(){var nt=Ee.props.onBlur;Ee.setState({focused:!1}),Ee.onActiveChange(null);for(var dt=arguments.length,lt=new Array(dt),ht=0;ht<dt;ht++)lt[ht]=arguments[ht];nt==null||nt.apply(void 0,lt)}),(0,ee.Z)((0,z.Z)(Ee),"getTreeNodeRequiredProps",function(){var nt=Ee.state,dt=nt.expandedKeys,lt=nt.selectedKeys,ht=nt.loadedKeys,St=nt.loadingKeys,gt=nt.checkedKeys,yt=nt.halfCheckedKeys,mt=nt.dragOverNodeKey,Ct=nt.dropPosition,wt=nt.keyEntities;return{expandedKeys:dt||[],selectedKeys:lt||[],loadedKeys:ht||[],loadingKeys:St||[],checkedKeys:gt||[],halfCheckedKeys:yt||[],dragOverNodeKey:mt,dropPosition:Ct,keyEntities:wt}}),(0,ee.Z)((0,z.Z)(Ee),"setExpandedKeys",function(nt){var dt=Ee.state,lt=dt.treeData,ht=dt.fieldNames,St=(0,Oe.oH)(lt,nt,ht);Ee.setUncontrolledState({expandedKeys:nt,flattenNodes:St},!0)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeExpand",function(nt,dt){var lt=Ee.state.expandedKeys,ht=Ee.state,St=ht.listChanging,gt=ht.fieldNames,yt=Ee.props,mt=yt.onExpand,Ct=yt.loadData,wt=dt.expanded,pt=dt[gt.key];if(!St){var Ot=lt.includes(pt),At=!wt;if((0,le.ZP)(wt&&Ot||!wt&&!Ot,"Expand state not sync with index check"),lt=At?(0,ct.L0)(lt,pt):(0,ct._5)(lt,pt),Ee.setExpandedKeys(lt),mt==null||mt(lt,{node:dt,expanded:At,nativeEvent:nt.nativeEvent}),At&&Ct){var Nt=Ee.onNodeLoad(dt);Nt&&Nt.then(function(){var Ht=(0,Oe.oH)(Ee.state.treeData,lt,gt);Ee.setUncontrolledState({flattenNodes:Ht})}).catch(function(){var Ht=Ee.state.expandedKeys,gr=(0,ct._5)(Ht,pt);Ee.setExpandedKeys(gr)})}}}),(0,ee.Z)((0,z.Z)(Ee),"onListChangeStart",function(){Ee.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,z.Z)(Ee),"onListChangeEnd",function(){setTimeout(function(){Ee.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,z.Z)(Ee),"onActiveChange",function(nt){var dt=Ee.state.activeKey,lt=Ee.props,ht=lt.onActiveChange,St=lt.itemScrollOffset,gt=St===void 0?0:St;dt!==nt&&(Ee.setState({activeKey:nt}),nt!==null&&Ee.scrollTo({key:nt,offset:gt}),ht==null||ht(nt))}),(0,ee.Z)((0,z.Z)(Ee),"getActiveItem",function(){var nt=Ee.state,dt=nt.activeKey,lt=nt.flattenNodes;return dt===null?null:lt.find(function(ht){var St=ht.key;return St===dt})||null}),(0,ee.Z)((0,z.Z)(Ee),"offsetActiveKey",function(nt){var dt=Ee.state,lt=dt.flattenNodes,ht=dt.activeKey,St=lt.findIndex(function(mt){var Ct=mt.key;return Ct===ht});St===-1&&nt<0&&(St=lt.length),St=(St+nt+lt.length)%lt.length;var gt=lt[St];if(gt){var yt=gt.key;Ee.onActiveChange(yt)}else Ee.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(Ee),"onKeyDown",function(nt){var dt=Ee.state,lt=dt.activeKey,ht=dt.expandedKeys,St=dt.checkedKeys,gt=dt.fieldNames,yt=Ee.props,mt=yt.onKeyDown,Ct=yt.checkable,wt=yt.selectable;switch(nt.which){case ie.Z.UP:{Ee.offsetActiveKey(-1),nt.preventDefault();break}case ie.Z.DOWN:{Ee.offsetActiveKey(1),nt.preventDefault();break}}var pt=Ee.getActiveItem();if(pt&&pt.data){var Ot=Ee.getTreeNodeRequiredProps(),At=pt.data.isLeaf===!1||!!(pt.data[gt.children]||[]).length,Nt=(0,Oe.F)((0,y.Z)((0,y.Z)({},(0,Oe.H8)(lt,Ot)),{},{data:pt.data,active:!0}));switch(nt.which){case ie.Z.LEFT:{At&&ht.includes(lt)?Ee.onNodeExpand({},Nt):pt.parent&&Ee.onActiveChange(pt.parent.key),nt.preventDefault();break}case ie.Z.RIGHT:{At&&!ht.includes(lt)?Ee.onNodeExpand({},Nt):pt.children&&pt.children.length&&Ee.onActiveChange(pt.children[0].key),nt.preventDefault();break}case ie.Z.ENTER:case ie.Z.SPACE:{Ct&&!Nt.disabled&&Nt.checkable!==!1&&!Nt.disableCheckbox?Ee.onNodeCheck({},Nt,!St.includes(lt)):!Ct&&wt&&!Nt.disabled&&Nt.selectable!==!1&&Ee.onNodeSelect({},Nt);break}}}mt==null||mt(nt)}),(0,ee.Z)((0,z.Z)(Ee),"setUncontrolledState",function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ee.destroyed){var ht=!1,St=!0,gt={};Object.keys(nt).forEach(function(yt){if(Ee.props.hasOwnProperty(yt)){St=!1;return}ht=!0,gt[yt]=nt[yt]}),ht&&(!dt||St)&&Ee.setState((0,y.Z)((0,y.Z)({},gt),lt))}}),(0,ee.Z)((0,z.Z)(Ee),"scrollTo",function(nt){Ee.listRef.current.scrollTo(nt)}),Ee}return(0,x.Z)(we,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Pe=this.props,Ue=Pe.activeKey,qe=Pe.itemScrollOffset,nt=qe===void 0?0:qe;Ue!==void 0&&Ue!==this.state.activeKey&&(this.setState({activeKey:Ue}),Ue!==null&&this.scrollTo({key:Ue,offset:nt}))}},{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 Pe=this.state,Ue=Pe.focused,qe=Pe.flattenNodes,nt=Pe.keyEntities,dt=Pe.draggingNodeKey,lt=Pe.activeKey,ht=Pe.dropLevelOffset,St=Pe.dropContainerKey,gt=Pe.dropTargetKey,yt=Pe.dropPosition,mt=Pe.dragOverNodeKey,Ct=Pe.indent,wt=this.props,pt=wt.prefixCls,Ot=wt.className,At=wt.style,Nt=wt.showLine,Ht=wt.focusable,gr=wt.tabIndex,$t=gr===void 0?0:gr,Ar=wt.selectable,er=wt.showIcon,Ir=wt.icon,$r=wt.switcherIcon,nn=wt.draggable,dn=wt.checkable,tn=wt.checkStrictly,Dr=wt.disabled,fn=wt.motion,hn=wt.loadData,Rr=wt.filterTreeNode,jr=wt.height,Dt=wt.itemHeight,jt=wt.scrollWidth,Mt=wt.virtual,ar=wt.titleRender,Or=wt.dropIndicatorRender,wr=wt.onContextMenu,vr=wt.onScroll,Pr=wt.direction,dr=wt.rootClassName,Cr=wt.rootStyle,Lr=(0,re.Z)(this.props,{aria:!0,data:!0}),Xr;nn&&((0,xt.Z)(nn)==="object"?Xr=nn:typeof nn=="function"?Xr={nodeDraggable:nn}:Xr={});var or={prefixCls:pt,selectable:Ar,showIcon:er,icon:Ir,switcherIcon:$r,draggable:Xr,draggingNodeKey:dt,checkable:dn,checkStrictly:tn,disabled:Dr,keyEntities:nt,dropLevelOffset:ht,dropContainerKey:St,dropTargetKey:gt,dropPosition:yt,dragOverNodeKey:mt,indent:Ct,direction:Pr,dropIndicatorRender:Or,loadData:hn,filterTreeNode:Rr,titleRender:ar,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 ce.createElement(he.k.Provider,{value:or},ce.createElement("div",{className:E()(pt,Ot,dr,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(pt,"-show-line"),Nt),"".concat(pt,"-focused"),Ue),"".concat(pt,"-active-focused"),lt!==null)),style:Cr},ce.createElement(Je,(0,He.Z)({ref:this.listRef,prefixCls:pt,style:At,data:qe,disabled:Dr,selectable:Ar,checkable:!!dn,motion:fn,dragging:dt!==null,height:jr,itemHeight:Dt,virtual:Mt,focusable:Ht,focused:Ue,tabIndex:$t,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wr,onScroll:vr,scrollWidth:jt},this.getTreeNodeRequiredProps(),Lr))))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Ue){var qe=Ue.prevProps,nt={prevProps:Pe};function dt($t){return!qe&&Pe.hasOwnProperty($t)||qe&&qe[$t]!==Pe[$t]}var lt,ht=Ue.fieldNames;if(dt("fieldNames")&&(ht=(0,Oe.w$)(Pe.fieldNames),nt.fieldNames=ht),dt("treeData")?lt=Pe.treeData:dt("children")&&((0,le.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),lt=(0,Oe.zn)(Pe.children)),lt){nt.treeData=lt;var St=(0,Oe.I8)(lt,{fieldNames:ht});nt.keyEntities=(0,y.Z)((0,ee.Z)({},We,rt),St.keyEntities)}var gt=nt.keyEntities||Ue.keyEntities;if(dt("expandedKeys")||qe&&dt("autoExpandParent"))nt.expandedKeys=Pe.autoExpandParent||!qe&&Pe.defaultExpandParent?(0,ct.r7)(Pe.expandedKeys,gt):Pe.expandedKeys;else if(!qe&&Pe.defaultExpandAll){var yt=(0,y.Z)({},gt);delete yt[We];var mt=[];Object.keys(yt).forEach(function($t){var Ar=yt[$t];Ar.children&&Ar.children.length&&mt.push(Ar.key)}),nt.expandedKeys=mt}else!qe&&Pe.defaultExpandedKeys&&(nt.expandedKeys=Pe.autoExpandParent||Pe.defaultExpandParent?(0,ct.r7)(Pe.defaultExpandedKeys,gt):Pe.defaultExpandedKeys);if(nt.expandedKeys||delete nt.expandedKeys,lt||nt.expandedKeys){var Ct=(0,Oe.oH)(lt||Ue.treeData,nt.expandedKeys||Ue.expandedKeys,ht);nt.flattenNodes=Ct}if(Pe.selectable&&(dt("selectedKeys")?nt.selectedKeys=(0,ct.BT)(Pe.selectedKeys,Pe):!qe&&Pe.defaultSelectedKeys&&(nt.selectedKeys=(0,ct.BT)(Pe.defaultSelectedKeys,Pe))),Pe.checkable){var wt;if(dt("checkedKeys")?wt=(0,ct.E6)(Pe.checkedKeys)||{}:!qe&&Pe.defaultCheckedKeys?wt=(0,ct.E6)(Pe.defaultCheckedKeys)||{}:lt&&(wt=(0,ct.E6)(Pe.checkedKeys)||{checkedKeys:Ue.checkedKeys,halfCheckedKeys:Ue.halfCheckedKeys}),wt){var pt=wt,Ot=pt.checkedKeys,At=Ot===void 0?[]:Ot,Nt=pt.halfCheckedKeys,Ht=Nt===void 0?[]:Nt;if(!Pe.checkStrictly){var gr=(0,st.S)(At,!0,gt);At=gr.checkedKeys,Ht=gr.halfCheckedKeys}nt.checkedKeys=At,nt.halfCheckedKeys=Ht}}return dt("loadedKeys")&&(nt.loadedKeys=Pe.loadedKeys),nt}}]),we}(ce.Component);(0,ee.Z)(_e,"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:be,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(_e,"TreeNode",de.Z);var te=_e,ue=te},82661:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{BT:function(){return ce},E6:function(){return be},L0:function(){return ee},OM:function(){return le},_5:function(){return se},r7:function(){return me},wA:function(){return E},yx:function(){return fe}});var He=Xe(15142),xt=Xe(26420),y=Xe(48736),De=Xe(59301),xe=Xe(639),x=Xe(65065),z=Xe(34061),oe=null;function se(ve,Ce){if(!ve)return[];var Te=ve.slice(),Me=Te.indexOf(Ce);return Me>=0&&Te.splice(Me,1),Te}function ee(ve,Ce){var Te=(ve||[]).slice();return Te.indexOf(Ce)===-1&&Te.push(Ce),Te}function fe(ve){return ve.split("-")}function E(ve,Ce){var Te=[],Me=(0,x.Z)(Ce,ve);function ke(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];de.forEach(function(ye){var Se=ye.key,Oe=ye.children;Te.push(Se),ke(Oe)})}return ke(Me.children),Te}function ie(ve){if(ve.parent){var Ce=fe(ve.pos);return Number(Ce[Ce.length-1])===ve.parent.children.length-1}return!1}function re(ve){var Ce=fe(ve.pos);return Number(Ce[Ce.length-1])===0}function le(ve,Ce,Te,Me,ke,de,ye,Se,Oe,Ne){var Ae,je=ve.clientX,Ze=ve.clientY,ze=ve.target.getBoundingClientRect(),Ve=ze.top,it=ze.height,Ie=(Ne==="rtl"?-1:1)*(((ke==null?void 0:ke.x)||0)-je),We=(Ie-12)/Me,tt=Oe.filter(function(ue){var Re;return(Re=Se[ue])===null||Re===void 0||(Re=Re.children)===null||Re===void 0?void 0:Re.length}),rt=(0,x.Z)(Se,Te.eventKey);if(Ze<Ve+it/2){var et=ye.findIndex(function(ue){return ue.key===rt.key}),Ke=et<=0?0:et-1,$e=ye[Ke].key;rt=(0,x.Z)(Se,$e)}var Ge=rt.key,ot=rt,Je=rt.key,ct=0,st=0;if(!tt.includes(Ge))for(var Ye=0;Ye<We&&ie(rt);Ye+=1)rt=rt.parent,st+=1;var Le=Ce.data,_e=rt.node,te=!0;return re(rt)&&rt.level===0&&Ze<Ve+it/2&&de({dragNode:Le,dropNode:_e,dropPosition:-1})&&rt.key===Te.eventKey?ct=-1:(ot.children||[]).length&&tt.includes(Je)?de({dragNode:Le,dropNode:_e,dropPosition:0})?ct=0:te=!1:st===0?We>-1.5?de({dragNode:Le,dropNode:_e,dropPosition:1})?ct=1:te=!1:de({dragNode:Le,dropNode:_e,dropPosition:0})?ct=0:de({dragNode:Le,dropNode:_e,dropPosition:1})?ct=1:te=!1:de({dragNode:Le,dropNode:_e,dropPosition:1})?ct=1:te=!1,{dropPosition:ct,dropLevelOffset:st,dropTargetKey:rt.key,dropTargetPos:rt.pos,dragOverNodeKey:Je,dropContainerKey:ct===0?null:((Ae=rt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:te}}function ce(ve,Ce){if(ve){var Te=Ce.multiple;return Te?ve.slice():ve.length?[ve[0]]:ve}}var he=function(Ce){return Ce};function ge(ve,Ce){if(!ve)return[];var Te=Ce||{},Me=Te.processProps,ke=Me===void 0?he:Me,de=Array.isArray(ve)?ve:[ve];return de.map(function(ye){var Se=ye.children,Oe=_objectWithoutProperties(ye,oe),Ne=ge(Se,Ce);return React.createElement(TreeNode,_extends({key:Oe.key},ke(Oe)),Ne)})}function be(ve){if(!ve)return null;var Ce;if(Array.isArray(ve))Ce={checkedKeys:ve,halfCheckedKeys:void 0};else if((0,xt.Z)(ve)==="object")Ce={checkedKeys:ve.checked||void 0,halfCheckedKeys:ve.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function me(ve,Ce){var Te=new Set;function Me(ke){if(!Te.has(ke)){var de=(0,x.Z)(Ce,ke);if(de){Te.add(ke);var ye=de.parent,Se=de.node;Se.disabled||ye&&Me(ye.key)}}}return(ve||[]).forEach(function(ke){Me(ke)}),(0,He.Z)(Te)}},34643:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{S:function(){return z}});var He=Xe(48736),xt=Xe(65065);function y(oe,se){var ee=new Set;return oe.forEach(function(fe){se.has(fe)||ee.add(fe)}),ee}function De(oe){var se=oe||{},ee=se.disabled,fe=se.disableCheckbox,E=se.checkable;return!!(ee||fe)||E===!1}function xe(oe,se,ee,fe){for(var E=new Set(oe),ie=new Set,re=0;re<=ee;re+=1){var le=se.get(re)||new Set;le.forEach(function(be){var me=be.key,ve=be.node,Ce=be.children,Te=Ce===void 0?[]:Ce;E.has(me)&&!fe(ve)&&Te.filter(function(Me){return!fe(Me.node)}).forEach(function(Me){E.add(Me.key)})})}for(var ce=new Set,he=ee;he>=0;he-=1){var ge=se.get(he)||new Set;ge.forEach(function(be){var me=be.parent,ve=be.node;if(!(fe(ve)||!be.parent||ce.has(be.parent.key))){if(fe(be.parent.node)){ce.add(me.key);return}var Ce=!0,Te=!1;(me.children||[]).filter(function(Me){return!fe(Me.node)}).forEach(function(Me){var ke=Me.key,de=E.has(ke);Ce&&!de&&(Ce=!1),!Te&&(de||ie.has(ke))&&(Te=!0)}),Ce&&E.add(me.key),Te&&ie.add(me.key),ce.add(me.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(y(ie,E))}}function x(oe,se,ee,fe,E){for(var ie=new Set(oe),re=new Set(se),le=0;le<=fe;le+=1){var ce=ee.get(le)||new Set;ce.forEach(function(me){var ve=me.key,Ce=me.node,Te=me.children,Me=Te===void 0?[]:Te;!ie.has(ve)&&!re.has(ve)&&!E(Ce)&&Me.filter(function(ke){return!E(ke.node)}).forEach(function(ke){ie.delete(ke.key)})})}re=new Set;for(var he=new Set,ge=fe;ge>=0;ge-=1){var be=ee.get(ge)||new Set;be.forEach(function(me){var ve=me.parent,Ce=me.node;if(!(E(Ce)||!me.parent||he.has(me.parent.key))){if(E(me.parent.node)){he.add(ve.key);return}var Te=!0,Me=!1;(ve.children||[]).filter(function(ke){return!E(ke.node)}).forEach(function(ke){var de=ke.key,ye=ie.has(de);Te&&!ye&&(Te=!1),!Me&&(ye||re.has(de))&&(Me=!0)}),Te||ie.delete(ve.key),Me&&re.add(ve.key),he.add(ve.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(y(re,ie))}}function z(oe,se,ee,fe){var E=[],ie;fe?ie=fe:ie=De;var re=new Set(oe.filter(function(ge){var be=!!(0,xt.Z)(ee,ge);return be||E.push(ge),be})),le=new Map,ce=0;Object.keys(ee).forEach(function(ge){var be=ee[ge],me=be.level,ve=le.get(me);ve||(ve=new Set,le.set(me,ve)),ve.add(be),ce=Math.max(ce,me)}),(0,He.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(ge){return"'".concat(ge,"'")}).join(", ")));var he;return se===!0?he=xe(re,le,ce,ie):he=x(re,se.halfCheckedKeys,le,ce,ie),he}},65065:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return He}});function He(xt,y){return xt[y]}},34061:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{F:function(){return me},H8:function(){return be},I8:function(){return ge},km:function(){return E},oH:function(){return ce},w$:function(){return ie},zn:function(){return le}});var He=Xe(26420),xt=Xe(15142),y=Xe(98506),De=Xe(33346),xe=Xe(11592),x=Xe(2738),z=Xe(48736),oe=Xe(65065),se=["children"];function ee(ve,Ce){return"".concat(ve,"-").concat(Ce)}function fe(ve){return ve&&ve.type&&ve.type.isTreeNode}function E(ve,Ce){return ve!=null?ve:Ce}function ie(ve){var Ce=ve||{},Te=Ce.title,Me=Ce._title,ke=Ce.key,de=Ce.children,ye=Te||"title";return{title:ye,_title:Me||[ye],key:ke||"key",children:de||"children"}}function re(ve,Ce){var Te=new Map;function Me(ke){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ke||[]).forEach(function(ye){var Se=ye[Ce.key],Oe=ye[Ce.children];warning(Se!=null,"Tree node must have a certain key: [".concat(de).concat(Se,"]"));var Ne=String(Se);warning(!Te.has(Ne)||Se===null||Se===void 0,"Same 'key' exist in the Tree: ".concat(Ne)),Te.set(Ne,!0),Me(Oe,"".concat(de).concat(Ne," > "))})}Me(ve)}function le(ve){function Ce(Te){var Me=(0,xe.Z)(Te);return Me.map(function(ke){if(!fe(ke))return(0,z.ZP)(!ke,"Tree/TreeNode can only accept TreeNode as children."),null;var de=ke.key,ye=ke.props,Se=ye.children,Oe=(0,De.Z)(ye,se),Ne=(0,y.Z)({key:de},Oe),Ae=Ce(Se);return Ae.length&&(Ne.children=Ae),Ne}).filter(function(ke){return ke})}return Ce(ve)}function ce(ve,Ce,Te){var Me=ie(Te),ke=Me._title,de=Me.key,ye=Me.children,Se=new Set(Ce===!0?[]:Ce),Oe=[];function Ne(Ae){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ze,ze){for(var Ve=ee(je?je.pos:"0",ze),it=E(Ze[de],Ve),Ie,We=0;We<ke.length;We+=1){var tt=ke[We];if(Ze[tt]!==void 0){Ie=Ze[tt];break}}var rt=Object.assign((0,x.Z)(Ze,[].concat((0,xt.Z)(ke),[de,ye])),{title:Ie,key:it,parent:je,pos:Ve,children:null,data:Ze,isStart:[].concat((0,xt.Z)(je?je.isStart:[]),[ze===0]),isEnd:[].concat((0,xt.Z)(je?je.isEnd:[]),[ze===Ae.length-1])});return Oe.push(rt),Ce===!0||Se.has(it)?rt.children=Ne(Ze[ye]||[],rt):rt.children=[],rt})}return Ne(ve),Oe}function he(ve,Ce,Te){var Me={};(0,He.Z)(Te)==="object"?Me=Te:Me={externalGetKey:Te},Me=Me||{};var ke=Me,de=ke.childrenPropName,ye=ke.externalGetKey,Se=ke.fieldNames,Oe=ie(Se),Ne=Oe.key,Ae=Oe.children,je=de||Ae,Ze;ye?typeof ye=="string"?Ze=function(it){return it[ye]}:typeof ye=="function"&&(Ze=function(it){return ye(it)}):Ze=function(it,Ie){return E(it[Ne],Ie)};function ze(Ve,it,Ie,We){var tt=Ve?Ve[je]:ve,rt=Ve?ee(Ie.pos,it):"0",et=Ve?[].concat((0,xt.Z)(We),[Ve]):[];if(Ve){var Ke=Ze(Ve,rt),$e={node:Ve,index:it,pos:rt,key:Ke,parentPos:Ie.node?Ie.pos:null,level:Ie.level+1,nodes:et};Ce($e)}tt&&tt.forEach(function(Ge,ot){ze(Ge,ot,{node:Ve,pos:rt,level:Ie?Ie.level+1:-1},et)})}ze(null)}function ge(ve){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=Ce.initWrapper,Me=Ce.processEntity,ke=Ce.onProcessFinished,de=Ce.externalGetKey,ye=Ce.childrenPropName,Se=Ce.fieldNames,Oe=arguments.length>2?arguments[2]:void 0,Ne=de||Oe,Ae={},je={},Ze={posEntities:Ae,keyEntities:je};return Te&&(Ze=Te(Ze)||Ze),he(ve,function(ze){var Ve=ze.node,it=ze.index,Ie=ze.pos,We=ze.key,tt=ze.parentPos,rt=ze.level,et=ze.nodes,Ke={node:Ve,nodes:et,index:it,key:We,pos:Ie,level:rt},$e=E(We,Ie);Ae[Ie]=Ke,je[$e]=Ke,Ke.parent=Ae[tt],Ke.parent&&(Ke.parent.children=Ke.parent.children||[],Ke.parent.children.push(Ke)),Me&&Me(Ke,Ze)},{externalGetKey:Ne,childrenPropName:ye,fieldNames:Se}),ke&&ke(Ze),Ze}function be(ve,Ce){var Te=Ce.expandedKeys,Me=Ce.selectedKeys,ke=Ce.loadedKeys,de=Ce.loadingKeys,ye=Ce.checkedKeys,Se=Ce.halfCheckedKeys,Oe=Ce.dragOverNodeKey,Ne=Ce.dropPosition,Ae=Ce.keyEntities,je=(0,oe.Z)(Ae,ve),Ze={eventKey:ve,expanded:Te.indexOf(ve)!==-1,selected:Me.indexOf(ve)!==-1,loaded:ke.indexOf(ve)!==-1,loading:de.indexOf(ve)!==-1,checked:ye.indexOf(ve)!==-1,halfChecked:Se.indexOf(ve)!==-1,pos:String(je?je.pos:""),dragOver:Oe===ve&&Ne===0,dragOverGapTop:Oe===ve&&Ne===-1,dragOverGapBottom:Oe===ve&&Ne===1};return Ze}function me(ve){var Ce=ve.data,Te=ve.expanded,Me=ve.selected,ke=ve.checked,de=ve.loaded,ye=ve.loading,Se=ve.halfChecked,Oe=ve.dragOver,Ne=ve.dragOverGapTop,Ae=ve.dragOverGapBottom,je=ve.pos,Ze=ve.active,ze=ve.eventKey,Ve=(0,y.Z)((0,y.Z)({},Ce),{},{expanded:Te,selected:Me,checked:ke,loaded:de,loading:ye,halfChecked:Se,dragOver:Oe,dragOverGapTop:Ne,dragOverGapBottom:Ae,pos:je,active:Ze,key:ze});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`."),ve}}),Ve}},90472:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return ze}});var He=Xe(67711),xt=Xe(42573),y=Xe(58698),De=Xe(62437),xe=Xe(74700),x=Xe(45080),z=Xe(52873),oe=Xe(59301),se=Xe(98506),ee=Xe(33346),fe=Xe(26420),E=Xe(77910),ie=Xe(51343),re=Xe(15142),le=Xe(92310),ce=Xe.n(le),he=Xe(26112),ge=Xe(48736),be=function(Ve,it){if(Ve&&it){var Ie=Array.isArray(it)?it:it.split(","),We=Ve.name||"",tt=Ve.type||"",rt=tt.replace(/\/.*$/,"");return Ie.some(function(et){var Ke=et.trim();if(/^\*(\/\*)?$/.test(et))return!0;if(Ke.charAt(0)==="."){var $e=We.toLowerCase(),Ge=Ke.toLowerCase(),ot=[Ge];return(Ge===".jpg"||Ge===".jpeg")&&(ot=[".jpg",".jpeg"]),ot.some(function(Je){return $e.endsWith(Je)})}return/\/\*$/.test(Ke)?rt===Ke.replace(/\/.*$/,""):tt===Ke?!0:/^\w+$/.test(Ke)?((0,ge.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ke,"'.Skip for check.")),!0):!1})}return!0};function me(Ve,it){var Ie="cannot ".concat(Ve.method," ").concat(Ve.action," ").concat(it.status,"'"),We=new Error(Ie);return We.status=it.status,We.method=Ve.method,We.url=Ve.action,We}function ve(Ve){var it=Ve.responseText||Ve.response;if(!it)return it;try{return JSON.parse(it)}catch(Ie){return it}}function Ce(Ve){var it=new XMLHttpRequest;Ve.onProgress&&it.upload&&(it.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),Ve.onProgress(rt)});var Ie=new FormData;Ve.data&&Object.keys(Ve.data).forEach(function(tt){var rt=Ve.data[tt];if(Array.isArray(rt)){rt.forEach(function(et){Ie.append("".concat(tt,"[]"),et)});return}Ie.append(tt,rt)}),Ve.file instanceof Blob?Ie.append(Ve.filename,Ve.file,Ve.file.name):Ie.append(Ve.filename,Ve.file),it.onerror=function(rt){Ve.onError(rt)},it.onload=function(){return it.status<200||it.status>=300?Ve.onError(me(Ve,it),ve(it)):Ve.onSuccess(ve(it),it)},it.open(Ve.method,Ve.action,!0),Ve.withCredentials&&"withCredentials"in it&&(it.withCredentials=!0);var We=Ve.headers||{};return We["X-Requested-With"]!==null&&it.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(We).forEach(function(tt){We[tt]!==null&&it.setRequestHeader(tt,We[tt])}),it.send(Ie),{abort:function(){it.abort()}}}var Te=function(){var Ve=(0,ie.Z)((0,E.Z)().mark(function it(Ie,We){var tt,rt,et,Ke,$e,Ge,ot,Je;return(0,E.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:Ge=function(){return Ge=(0,ie.Z)((0,E.Z)().mark(function Le(_e){return(0,E.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",new Promise(function(Re){_e.file(function(Fe){We(Fe)?(_e.fullPath&&!Fe.webkitRelativePath&&(Object.defineProperties(Fe,{webkitRelativePath:{writable:!0}}),Fe.webkitRelativePath=_e.fullPath.replace(/^\//,""),Object.defineProperties(Fe,{webkitRelativePath:{writable:!1}})),Re(Fe)):Re(null)})}));case 1:case"end":return ue.stop()}},Le)})),Ge.apply(this,arguments)},$e=function(Le){return Ge.apply(this,arguments)},Ke=function(){return Ke=(0,ie.Z)((0,E.Z)().mark(function Le(_e){var te,ue,Re,Fe,we;return(0,E.Z)().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:te=_e.createReader(),ue=[];case 2:return Pe.next=5,new Promise(function(Ue){te.readEntries(Ue,function(){return Ue([])})});case 5:if(Re=Pe.sent,Fe=Re.length,Fe){Pe.next=9;break}return Pe.abrupt("break",12);case 9:for(we=0;we<Fe;we++)ue.push(Re[we]);Pe.next=2;break;case 12:return Pe.abrupt("return",ue);case 13:case"end":return Pe.stop()}},Le)})),Ke.apply(this,arguments)},et=function(Le){return Ke.apply(this,arguments)},tt=[],rt=[],Ie.forEach(function(Ye){return rt.push(Ye.webkitGetAsEntry())}),ot=function(){var Ye=(0,ie.Z)((0,E.Z)().mark(function Le(_e,te){var ue,Re;return(0,E.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(_e){we.next=2;break}return we.abrupt("return");case 2:if(_e.path=te||"",!_e.isFile){we.next=10;break}return we.next=6,$e(_e);case 6:ue=we.sent,ue&&tt.push(ue),we.next=15;break;case 10:if(!_e.isDirectory){we.next=15;break}return we.next=13,et(_e);case 13:Re=we.sent,rt.push.apply(rt,(0,re.Z)(Re));case 15:case"end":return we.stop()}},Le)}));return function(_e,te){return Ye.apply(this,arguments)}}(),Je=0;case 9:if(!(Je<rt.length)){st.next=15;break}return st.next=12,ot(rt[Je]);case 12:Je++,st.next=9;break;case 15:return st.abrupt("return",tt);case 16:case"end":return st.stop()}},it)}));return function(Ie,We){return Ve.apply(this,arguments)}}(),Me=Te,ke=+new Date,de=0;function ye(){return"rc-upload-".concat(ke,"-").concat(++de)}var Se=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Oe=function(Ve){(0,xe.Z)(Ie,Ve);var it=(0,x.Z)(Ie);function Ie(){var We;(0,xt.Z)(this,Ie);for(var tt=arguments.length,rt=new Array(tt),et=0;et<tt;et++)rt[et]=arguments[et];return We=it.call.apply(it,[this].concat(rt)),(0,z.Z)((0,De.Z)(We),"state",{uid:ye()}),(0,z.Z)((0,De.Z)(We),"reqs",{}),(0,z.Z)((0,De.Z)(We),"fileInput",void 0),(0,z.Z)((0,De.Z)(We),"_isMounted",void 0),(0,z.Z)((0,De.Z)(We),"onChange",function(Ke){var $e=We.props,Ge=$e.accept,ot=$e.directory,Je=Ke.target.files,ct=(0,re.Z)(Je).filter(function(st){return!ot||be(st,Ge)});We.uploadFiles(ct),We.reset()}),(0,z.Z)((0,De.Z)(We),"onClick",function(Ke){var $e=We.fileInput;if($e){var Ge=Ke.target,ot=We.props.onClick;if(Ge&&Ge.tagName==="BUTTON"){var Je=$e.parentNode;Je.focus(),Ge.blur()}$e.click(),ot&&ot(Ke)}}),(0,z.Z)((0,De.Z)(We),"onKeyDown",function(Ke){Ke.key==="Enter"&&We.onClick(Ke)}),(0,z.Z)((0,De.Z)(We),"onFileDrop",function(){var Ke=(0,ie.Z)((0,E.Z)().mark(function $e(Ge){var ot,Je,ct;return(0,E.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(ot=We.props.multiple,Ge.preventDefault(),Ge.type!=="dragover"){Ye.next=4;break}return Ye.abrupt("return");case 4:if(!We.props.directory){Ye.next=11;break}return Ye.next=7,Me(Array.prototype.slice.call(Ge.dataTransfer.items),function(Le){return be(Le,We.props.accept)});case 7:Je=Ye.sent,We.uploadFiles(Je),Ye.next=14;break;case 11:ct=(0,re.Z)(Ge.dataTransfer.files).filter(function(Le){return be(Le,We.props.accept)}),ot===!1&&(ct=ct.slice(0,1)),We.uploadFiles(ct);case 14:case"end":return Ye.stop()}},$e)}));return function($e){return Ke.apply(this,arguments)}}()),(0,z.Z)((0,De.Z)(We),"uploadFiles",function(Ke){var $e=(0,re.Z)(Ke),Ge=$e.map(function(ot){return ot.uid=ye(),We.processFile(ot,$e)});Promise.all(Ge).then(function(ot){var Je=We.props.onBatchStart;Je==null||Je(ot.map(function(ct){var st=ct.origin,Ye=ct.parsedFile;return{file:st,parsedFile:Ye}})),ot.filter(function(ct){return ct.parsedFile!==null}).forEach(function(ct){We.post(ct)})})}),(0,z.Z)((0,De.Z)(We),"processFile",function(){var Ke=(0,ie.Z)((0,E.Z)().mark(function $e(Ge,ot){var Je,ct,st,Ye,Le,_e,te,ue,Re;return(0,E.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(Je=We.props.beforeUpload,ct=Ge,!Je){we.next=14;break}return we.prev=3,we.next=6,Je(Ge,ot);case 6:ct=we.sent,we.next=12;break;case 9:we.prev=9,we.t0=we.catch(3),ct=!1;case 12:if(ct!==!1){we.next=14;break}return we.abrupt("return",{origin:Ge,parsedFile:null,action:null,data:null});case 14:if(st=We.props.action,typeof st!="function"){we.next=21;break}return we.next=18,st(Ge);case 18:Ye=we.sent,we.next=22;break;case 21:Ye=st;case 22:if(Le=We.props.data,typeof Le!="function"){we.next=29;break}return we.next=26,Le(Ge);case 26:_e=we.sent,we.next=30;break;case 29:_e=Le;case 30:return te=((0,fe.Z)(ct)==="object"||typeof ct=="string")&&ct?ct:Ge,te instanceof File?ue=te:ue=new File([te],Ge.name,{type:Ge.type}),Re=ue,Re.uid=Ge.uid,we.abrupt("return",{origin:Ge,data:_e,parsedFile:Re,action:Ye});case 35:case"end":return we.stop()}},$e,null,[[3,9]])}));return function($e,Ge){return Ke.apply(this,arguments)}}()),(0,z.Z)((0,De.Z)(We),"saveFileInput",function(Ke){We.fileInput=Ke}),We}return(0,y.Z)(Ie,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(tt){var rt=this,et=tt.data,Ke=tt.origin,$e=tt.action,Ge=tt.parsedFile;if(this._isMounted){var ot=this.props,Je=ot.onStart,ct=ot.customRequest,st=ot.name,Ye=ot.headers,Le=ot.withCredentials,_e=ot.method,te=Ke.uid,ue=ct||Ce,Re={action:$e,filename:st,data:et,file:Ge,headers:Ye,withCredentials:Le,method:_e||"post",onProgress:function(we){var Ee=rt.props.onProgress;Ee==null||Ee(we,Ge)},onSuccess:function(we,Ee){var Pe=rt.props.onSuccess;Pe==null||Pe(we,Ge,Ee),delete rt.reqs[te]},onError:function(we,Ee){var Pe=rt.props.onError;Pe==null||Pe(we,Ee,Ge),delete rt.reqs[te]}};Je(Ke),this.reqs[te]=ue(Re)}}},{key:"reset",value:function(){this.setState({uid:ye()})}},{key:"abort",value:function(tt){var rt=this.reqs;if(tt){var et=tt.uid?tt.uid:tt;rt[et]&&rt[et].abort&&rt[et].abort(),delete rt[et]}else Object.keys(rt).forEach(function(Ke){rt[Ke]&&rt[Ke].abort&&rt[Ke].abort(),delete rt[Ke]})}},{key:"render",value:function(){var tt=this.props,rt=tt.component,et=tt.prefixCls,Ke=tt.className,$e=tt.classNames,Ge=$e===void 0?{}:$e,ot=tt.disabled,Je=tt.id,ct=tt.name,st=tt.style,Ye=tt.styles,Le=Ye===void 0?{}:Ye,_e=tt.multiple,te=tt.accept,ue=tt.capture,Re=tt.children,Fe=tt.directory,we=tt.openFileDialogOnClick,Ee=tt.onMouseEnter,Pe=tt.onMouseLeave,Ue=tt.hasControlInside,qe=(0,ee.Z)(tt,Se),nt=ce()((0,z.Z)((0,z.Z)((0,z.Z)({},et,!0),"".concat(et,"-disabled"),ot),Ke,Ke)),dt=Fe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},lt=ot?{}:{onClick:we?this.onClick:function(){},onKeyDown:we?this.onKeyDown:function(){},onMouseEnter:Ee,onMouseLeave:Pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ue?void 0:"0"};return oe.createElement(rt,(0,He.Z)({},lt,{className:nt,role:Ue?void 0:"button",style:st}),oe.createElement("input",(0,He.Z)({},(0,he.Z)(qe,{aria:!0,data:!0}),{id:Je,name:ct,disabled:ot,type:"file",ref:this.saveFileInput,onClick:function(St){return St.stopPropagation()},key:this.state.uid,style:(0,se.Z)({display:"none"},Le.input),className:Ge.input,accept:te},dt,{multiple:_e,onChange:this.onChange},ue!=null?{capture:ue}:{})),Re)}}]),Ie}(oe.Component),Ne=Oe;function Ae(){}var je=function(Ve){(0,xe.Z)(Ie,Ve);var it=(0,x.Z)(Ie);function Ie(){var We;(0,xt.Z)(this,Ie);for(var tt=arguments.length,rt=new Array(tt),et=0;et<tt;et++)rt[et]=arguments[et];return We=it.call.apply(it,[this].concat(rt)),(0,z.Z)((0,De.Z)(We),"uploader",void 0),(0,z.Z)((0,De.Z)(We),"saveUploader",function(Ke){We.uploader=Ke}),We}return(0,y.Z)(Ie,[{key:"abort",value:function(tt){this.uploader.abort(tt)}},{key:"render",value:function(){return oe.createElement(Ne,(0,He.Z)({},this.props,{ref:this.saveUploader}))}}]),Ie}(oe.Component);(0,z.Z)(je,"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 Ze=je,ze=Ze},8224:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return xt}});var He=Xe(4676);function xt(y,De,xe,x){var z=He.unstable_batchedUpdates?function(se){He.unstable_batchedUpdates(xe,se)}:xe;return y!=null&&y.addEventListener&&y.addEventListener(De,z,x),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(De,z,x)}}}},24514:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{G:function(){return De}});var He=Xe(47273),xt=function(x){if((0,He.Z)()&&window.document.documentElement){var z=Array.isArray(x)?x:[x],oe=window.document.documentElement;return z.some(function(se){return se in oe.style})}return!1},y=function(x,z){if(!xt(x))return!1;var oe=document.createElement("div"),se=oe.style[x];return oe.style[x]=z,oe.style[x]!==se};function De(xe,x){return!Array.isArray(xe)&&x!==void 0?y(xe,x):xt(xe)}},6790:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return Le}});var He=Xe(67711),xt=Xe(26420),y=Xe(98506),De=Xe(52873),xe=Xe(16886),x=Xe(33346),z=Xe(92310),oe=Xe.n(z),se=Xe(29301),ee=Xe(70425),fe=Xe(34280),E=Xe(59301),ie=Xe(4676),re=E.forwardRef(function(_e,te){var ue=_e.height,Re=_e.offsetY,Fe=_e.offsetX,we=_e.children,Ee=_e.prefixCls,Pe=_e.onInnerResize,Ue=_e.innerProps,qe=_e.rtl,nt=_e.extra,dt={},lt={display:"flex",flexDirection:"column"};return Re!==void 0&&(dt={height:ue,position:"relative",overflow:"hidden"},lt=(0,y.Z)((0,y.Z)({},lt),{},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({transform:"translateY(".concat(Re,"px)")},qe?"marginRight":"marginLeft",-Fe),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:dt},E.createElement(se.Z,{onResize:function(St){var gt=St.offsetHeight;gt&&Pe&&Pe()}},E.createElement("div",(0,He.Z)({style:lt,className:oe()((0,De.Z)({},"".concat(Ee,"-holder-inner"),Ee)),ref:te},Ue),we,nt)))});re.displayName="Filler";var le=re;function ce(_e){var te=_e.children,ue=_e.setRef,Re=E.useCallback(function(Fe){ue(Fe)},[]);return E.cloneElement(te,{ref:Re})}function he(_e,te,ue,Re,Fe,we,Ee,Pe){var Ue=Pe.getKey;return _e.slice(te,ue+1).map(function(qe,nt){var dt=te+nt,lt=Ee(qe,dt,{style:{width:Re},offsetX:Fe}),ht=Ue(qe);return E.createElement(ce,{key:ht,setRef:function(gt){return we(qe,gt)}},lt)})}function ge(_e,te,ue,Re){var Fe=ue-_e,we=te-ue,Ee=Math.min(Fe,we)*2;if(Re<=Ee){var Pe=Math.floor(Re/2);return Re%2?ue+Pe+1:ue-Pe}return Fe>we?ue-(Re-we):ue+(Re-Fe)}function be(_e,te,ue){var Re=_e.length,Fe=te.length,we,Ee;if(Re===0&&Fe===0)return null;Re<Fe?(we=_e,Ee=te):(we=te,Ee=_e);var Pe={__EMPTY_ITEM__:!0};function Ue(St){return St!==void 0?ue(St):Pe}for(var qe=null,nt=Math.abs(Re-Fe)!==1,dt=0;dt<Ee.length;dt+=1){var lt=Ue(we[dt]),ht=Ue(Ee[dt]);if(lt!==ht){qe=dt,nt=nt||lt!==Ue(Ee[dt+1]);break}}return qe===null?null:{index:qe,multiple:nt}}function me(_e,te,ue){var Re=E.useState(_e),Fe=(0,xe.Z)(Re,2),we=Fe[0],Ee=Fe[1],Pe=E.useState(null),Ue=(0,xe.Z)(Pe,2),qe=Ue[0],nt=Ue[1];return E.useEffect(function(){var dt=be(we||[],_e||[],te);(dt==null?void 0:dt.index)!==void 0&&(ue==null||ue(dt.index),nt(_e[dt.index])),Ee(_e)},[_e]),[qe]}var ve=Xe(16089),Ce=(typeof navigator=="undefined"?"undefined":(0,xt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Te=Ce,Me=function(_e,te,ue,Re){var Fe=(0,E.useRef)(!1),we=(0,E.useRef)(null);function Ee(){clearTimeout(we.current),Fe.current=!0,we.current=setTimeout(function(){Fe.current=!1},50)}var Pe=(0,E.useRef)({top:_e,bottom:te,left:ue,right:Re});return Pe.current.top=_e,Pe.current.bottom=te,Pe.current.left=ue,Pe.current.right=Re,function(Ue,qe){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,dt=Ue?qe<0&&Pe.current.left||qe>0&&Pe.current.right:qe<0&&Pe.current.top||qe>0&&Pe.current.bottom;return nt&&dt?(clearTimeout(we.current),Fe.current=!1):(!dt||Fe.current)&&Ee(),!Fe.current&&dt}};function ke(_e,te,ue,Re,Fe,we,Ee){var Pe=(0,E.useRef)(0),Ue=(0,E.useRef)(null),qe=(0,E.useRef)(null),nt=(0,E.useRef)(!1),dt=Me(te,ue,Re,Fe);function lt(Ct,wt){if(ve.Z.cancel(Ue.current),!dt(!1,wt)){var pt=Ct;if(!pt._virtualHandled)pt._virtualHandled=!0;else return;Pe.current+=wt,qe.current=wt,Te||pt.preventDefault(),Ue.current=(0,ve.Z)(function(){var Ot=nt.current?10:1;Ee(Pe.current*Ot,!1),Pe.current=0})}}function ht(Ct,wt){Ee(wt,!0),Te||Ct.preventDefault()}var St=(0,E.useRef)(null),gt=(0,E.useRef)(null);function yt(Ct){if(_e){ve.Z.cancel(gt.current),gt.current=(0,ve.Z)(function(){St.current=null},2);var wt=Ct.deltaX,pt=Ct.deltaY,Ot=Ct.shiftKey,At=wt,Nt=pt;(St.current==="sx"||!St.current&&Ot&&pt&&!wt)&&(At=pt,Nt=0,St.current="sx");var Ht=Math.abs(At),gr=Math.abs(Nt);St.current===null&&(St.current=we&&Ht>gr?"x":"y"),St.current==="y"?lt(Ct,Nt):ht(Ct,At)}}function mt(Ct){_e&&(nt.current=Ct.detail===qe.current)}return[yt,mt]}function de(_e,te,ue,Re){var Fe=E.useMemo(function(){return[new Map,[]]},[_e,ue.id,Re]),we=(0,xe.Z)(Fe,2),Ee=we[0],Pe=we[1],Ue=function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt,lt=Ee.get(nt),ht=Ee.get(dt);if(lt===void 0||ht===void 0)for(var St=_e.length,gt=Pe.length;gt<St;gt+=1){var yt,mt=_e[gt],Ct=te(mt);Ee.set(Ct,gt);var wt=(yt=ue.get(Ct))!==null&&yt!==void 0?yt:Re;if(Pe[gt]=(Pe[gt-1]||0)+wt,Ct===nt&&(lt=gt),Ct===dt&&(ht=gt),lt!==void 0&&ht!==void 0)break}return{top:Pe[lt-1]||0,bottom:Pe[ht]}};return Ue}var ye=Xe(42573),Se=Xe(58698),Oe=function(){function _e(){(0,ye.Z)(this,_e),(0,De.Z)(this,"maps",void 0),(0,De.Z)(this,"id",0),(0,De.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Se.Z)(_e,[{key:"set",value:function(ue,Re){this.diffRecords.set(ue,this.maps[ue]),this.maps[ue]=Re,this.id+=1}},{key:"get",value:function(ue){return this.maps[ue]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),_e}(),Ne=Oe;function Ae(_e){var te=parseFloat(_e);return isNaN(te)?0:te}function je(_e,te,ue){var Re=E.useState(0),Fe=(0,xe.Z)(Re,2),we=Fe[0],Ee=Fe[1],Pe=(0,E.useRef)(new Map),Ue=(0,E.useRef)(new Ne),qe=(0,E.useRef)(0);function nt(){qe.current+=1}function dt(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;nt();var St=function(){var mt=!1;Pe.current.forEach(function(Ct,wt){if(Ct&&Ct.offsetParent){var pt=Ct.offsetHeight,Ot=getComputedStyle(Ct),At=Ot.marginTop,Nt=Ot.marginBottom,Ht=Ae(At),gr=Ae(Nt),$t=pt+Ht+gr;Ue.current.get(wt)!==$t&&(Ue.current.set(wt,$t),mt=!0)}}),mt&&Ee(function(Ct){return Ct+1})};if(ht)St();else{qe.current+=1;var gt=qe.current;Promise.resolve().then(function(){gt===qe.current&&St()})}}function lt(ht,St){var gt=_e(ht),yt=Pe.current.get(gt);St?(Pe.current.set(gt,St),dt()):Pe.current.delete(gt),!yt!=!St&&(St?te==null||te(ht):ue==null||ue(ht))}return(0,E.useEffect)(function(){return nt},[]),[lt,dt,Ue.current,we]}var Ze=14/15;function ze(_e,te,ue){var Re=(0,E.useRef)(!1),Fe=(0,E.useRef)(0),we=(0,E.useRef)(0),Ee=(0,E.useRef)(null),Pe=(0,E.useRef)(null),Ue,qe=function(ht){if(Re.current){var St=Math.ceil(ht.touches[0].pageX),gt=Math.ceil(ht.touches[0].pageY),yt=Fe.current-St,mt=we.current-gt,Ct=Math.abs(yt)>Math.abs(mt);Ct?Fe.current=St:we.current=gt;var wt=ue(Ct,Ct?yt:mt,!1,ht);wt&&ht.preventDefault(),clearInterval(Pe.current),wt&&(Pe.current=setInterval(function(){Ct?yt*=Ze:mt*=Ze;var pt=Math.floor(Ct?yt:mt);(!ue(Ct,pt,!0)||Math.abs(pt)<=.1)&&clearInterval(Pe.current)},16))}},nt=function(){Re.current=!1,Ue()},dt=function(ht){Ue(),ht.touches.length===1&&!Re.current&&(Re.current=!0,Fe.current=Math.ceil(ht.touches[0].pageX),we.current=Math.ceil(ht.touches[0].pageY),Ee.current=ht.target,Ee.current.addEventListener("touchmove",qe,{passive:!1}),Ee.current.addEventListener("touchend",nt,{passive:!0}))};Ue=function(){Ee.current&&(Ee.current.removeEventListener("touchmove",qe),Ee.current.removeEventListener("touchend",nt))},(0,fe.Z)(function(){return _e&&te.current.addEventListener("touchstart",dt,{passive:!0}),function(){var lt;(lt=te.current)===null||lt===void 0||lt.removeEventListener("touchstart",dt),Ue(),clearInterval(Pe.current)}},[_e])}function Ve(_e){return Math.floor(Math.pow(_e,.5))}function it(_e,te){var ue="touches"in _e?_e.touches[0]:_e;return ue[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Ie(_e,te,ue){E.useEffect(function(){var Re=te.current;if(_e&&Re){var Fe=!1,we,Ee,Pe=function(){ve.Z.cancel(we)},Ue=function lt(){Pe(),we=(0,ve.Z)(function(){ue(Ee),lt()})},qe=function(ht){if(!(ht.target.draggable||ht.button!==0)){var St=ht;St._virtualHandled||(St._virtualHandled=!0,Fe=!0)}},nt=function(){Fe=!1,Pe()},dt=function(ht){if(Fe){var St=it(ht,!1),gt=Re.getBoundingClientRect(),yt=gt.top,mt=gt.bottom;if(St<=yt){var Ct=yt-St;Ee=-Ve(Ct),Ue()}else if(St>=mt){var wt=St-mt;Ee=Ve(wt),Ue()}else Pe()}};return Re.addEventListener("mousedown",qe),Re.ownerDocument.addEventListener("mouseup",nt),Re.ownerDocument.addEventListener("mousemove",dt),function(){Re.removeEventListener("mousedown",qe),Re.ownerDocument.removeEventListener("mouseup",nt),Re.ownerDocument.removeEventListener("mousemove",dt),Pe()}}},[_e])}var We=10;function tt(_e,te,ue,Re,Fe,we,Ee,Pe){var Ue=E.useRef(),qe=E.useState(null),nt=(0,xe.Z)(qe,2),dt=nt[0],lt=nt[1];return(0,fe.Z)(function(){if(dt&&dt.times<We){if(!_e.current){lt(function(fn){return(0,y.Z)({},fn)});return}we();var ht=dt.targetAlign,St=dt.originAlign,gt=dt.index,yt=dt.offset,mt=_e.current.clientHeight,Ct=!1,wt=ht,pt=null;if(mt){for(var Ot=ht||St,At=0,Nt=0,Ht=0,gr=Math.min(te.length-1,gt),$t=0;$t<=gr;$t+=1){var Ar=Fe(te[$t]);Nt=At;var er=ue.get(Ar);Ht=Nt+(er===void 0?Re:er),At=Ht}for(var Ir=Ot==="top"?yt:mt-yt,$r=gr;$r>=0;$r-=1){var nn=Fe(te[$r]),dn=ue.get(nn);if(dn===void 0){Ct=!0;break}if(Ir-=dn,Ir<=0)break}switch(Ot){case"top":pt=Nt-yt;break;case"bottom":pt=Ht-mt+yt;break;default:{var tn=_e.current.scrollTop,Dr=tn+mt;Nt<tn?wt="top":Ht>Dr&&(wt="bottom")}}pt!==null&&Ee(pt),pt!==dt.lastTop&&(Ct=!0)}Ct&&lt((0,y.Z)((0,y.Z)({},dt),{},{times:dt.times+1,targetAlign:wt,lastTop:pt}))}},[dt,_e.current]),function(ht){if(ht==null){Pe();return}if(ve.Z.cancel(Ue.current),typeof ht=="number")Ee(ht);else if(ht&&(0,xt.Z)(ht)==="object"){var St,gt=ht.align;"index"in ht?St=ht.index:St=te.findIndex(function(Ct){return Fe(Ct)===ht.key});var yt=ht.offset,mt=yt===void 0?0:yt;lt({times:0,index:St,offset:mt,originAlign:gt})}}}var rt=E.forwardRef(function(_e,te){var ue=_e.prefixCls,Re=_e.rtl,Fe=_e.scrollOffset,we=_e.scrollRange,Ee=_e.onStartMove,Pe=_e.onStopMove,Ue=_e.onScroll,qe=_e.horizontal,nt=_e.spinSize,dt=_e.containerSize,lt=_e.style,ht=_e.thumbStyle,St=_e.showScrollBar,gt=E.useState(!1),yt=(0,xe.Z)(gt,2),mt=yt[0],Ct=yt[1],wt=E.useState(null),pt=(0,xe.Z)(wt,2),Ot=pt[0],At=pt[1],Nt=E.useState(null),Ht=(0,xe.Z)(Nt,2),gr=Ht[0],$t=Ht[1],Ar=!Re,er=E.useRef(),Ir=E.useRef(),$r=E.useState(St),nn=(0,xe.Z)($r,2),dn=nn[0],tn=nn[1],Dr=E.useRef(),fn=function(){St===!0||St===!1||(clearTimeout(Dr.current),tn(!0),Dr.current=setTimeout(function(){tn(!1)},3e3))},hn=we-dt||0,Rr=dt-nt||0,jr=E.useMemo(function(){if(Fe===0||hn===0)return 0;var dr=Fe/hn;return dr*Rr},[Fe,hn,Rr]),Dt=function(Cr){Cr.stopPropagation(),Cr.preventDefault()},jt=E.useRef({top:jr,dragging:mt,pageY:Ot,startTop:gr});jt.current={top:jr,dragging:mt,pageY:Ot,startTop:gr};var Mt=function(Cr){Ct(!0),At(it(Cr,qe)),$t(jt.current.top),Ee(),Cr.stopPropagation(),Cr.preventDefault()};E.useEffect(function(){var dr=function(or){or.preventDefault()},Cr=er.current,Lr=Ir.current;return Cr.addEventListener("touchstart",dr,{passive:!1}),Lr.addEventListener("touchstart",Mt,{passive:!1}),function(){Cr.removeEventListener("touchstart",dr),Lr.removeEventListener("touchstart",Mt)}},[]);var ar=E.useRef();ar.current=hn;var Or=E.useRef();Or.current=Rr,E.useEffect(function(){if(mt){var dr,Cr=function(or){var Ut=jt.current,Xt=Ut.dragging,Yr=Ut.pageY,qr=Ut.startTop;ve.Z.cancel(dr);var Et=er.current.getBoundingClientRect(),kt=dt/(qe?Et.width:Et.height);if(Xt){var fr=(it(or,qe)-Yr)*kt,qt=qr;!Ar&&qe?qt-=fr:qt+=fr;var Rt=ar.current,rr=Or.current,mr=rr?qt/rr:0,hr=Math.ceil(mr*Rt);hr=Math.max(hr,0),hr=Math.min(hr,Rt),dr=(0,ve.Z)(function(){Ue(hr,qe)})}},Lr=function(){Ct(!1),Pe()};return window.addEventListener("mousemove",Cr,{passive:!0}),window.addEventListener("touchmove",Cr,{passive:!0}),window.addEventListener("mouseup",Lr,{passive:!0}),window.addEventListener("touchend",Lr,{passive:!0}),function(){window.removeEventListener("mousemove",Cr),window.removeEventListener("touchmove",Cr),window.removeEventListener("mouseup",Lr),window.removeEventListener("touchend",Lr),ve.Z.cancel(dr)}}},[mt]),E.useEffect(function(){return fn(),function(){clearTimeout(Dr.current)}},[Fe]),E.useImperativeHandle(te,function(){return{delayHidden:fn}});var wr="".concat(ue,"-scrollbar"),vr={position:"absolute",visibility:dn?null:"hidden"},Pr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return qe?(Object.assign(vr,{height:8,left:0,right:0,bottom:0}),Object.assign(Pr,(0,De.Z)({height:"100%",width:nt},Ar?"left":"right",jr))):(Object.assign(vr,(0,De.Z)({width:8,top:0,bottom:0},Ar?"right":"left",0)),Object.assign(Pr,{width:"100%",height:nt,top:jr})),E.createElement("div",{ref:er,className:oe()(wr,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(wr,"-horizontal"),qe),"".concat(wr,"-vertical"),!qe),"".concat(wr,"-visible"),dn)),style:(0,y.Z)((0,y.Z)({},vr),lt),onMouseDown:Dt,onMouseMove:fn},E.createElement("div",{ref:Ir,className:oe()("".concat(wr,"-thumb"),(0,De.Z)({},"".concat(wr,"-thumb-moving"),mt)),style:(0,y.Z)((0,y.Z)({},Pr),ht),onMouseDown:Mt}))}),et=rt,Ke=20;function $e(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ue=_e/te*_e;return isNaN(ue)&&(ue=0),ue=Math.max(ue,Ke),Math.floor(ue)}var Ge=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ot=[],Je={overflowY:"auto",overflowAnchor:"none"};function ct(_e,te){var ue=_e.prefixCls,Re=ue===void 0?"rc-virtual-list":ue,Fe=_e.className,we=_e.height,Ee=_e.itemHeight,Pe=_e.fullHeight,Ue=Pe===void 0?!0:Pe,qe=_e.style,nt=_e.data,dt=_e.children,lt=_e.itemKey,ht=_e.virtual,St=_e.direction,gt=_e.scrollWidth,yt=_e.component,mt=yt===void 0?"div":yt,Ct=_e.onScroll,wt=_e.onVirtualScroll,pt=_e.onVisibleChange,Ot=_e.innerProps,At=_e.extraRender,Nt=_e.styles,Ht=_e.showScrollBar,gr=Ht===void 0?"optional":Ht,$t=(0,x.Z)(_e,Ge),Ar=E.useCallback(function(It){return typeof lt=="function"?lt(It):It==null?void 0:It[lt]},[lt]),er=je(Ar,null,null),Ir=(0,xe.Z)(er,4),$r=Ir[0],nn=Ir[1],dn=Ir[2],tn=Ir[3],Dr=!!(ht!==!1&&we&&Ee),fn=E.useMemo(function(){return Object.values(dn.maps).reduce(function(It,Vt){return It+Vt},0)},[dn.id,dn.maps]),hn=Dr&&nt&&(Math.max(Ee*nt.length,fn)>we||!!gt),Rr=St==="rtl",jr=oe()(Re,(0,De.Z)({},"".concat(Re,"-rtl"),Rr),Fe),Dt=nt||ot,jt=(0,E.useRef)(),Mt=(0,E.useRef)(),ar=(0,E.useRef)(),Or=(0,E.useState)(0),wr=(0,xe.Z)(Or,2),vr=wr[0],Pr=wr[1],dr=(0,E.useState)(0),Cr=(0,xe.Z)(dr,2),Lr=Cr[0],Xr=Cr[1],or=(0,E.useState)(!1),Ut=(0,xe.Z)(or,2),Xt=Ut[0],Yr=Ut[1],qr=function(){Yr(!0)},Et=function(){Yr(!1)},kt={getKey:Ar};function fr(It){Pr(function(Vt){var Pt;typeof It=="function"?Pt=It(Vt):Pt=It;var _t=Jn(Pt);return jt.current.scrollTop=_t,_t})}var qt=(0,E.useRef)({start:0,end:Dt.length}),Rt=(0,E.useRef)(),rr=me(Dt,Ar),mr=(0,xe.Z)(rr,1),hr=mr[0];Rt.current=hr;var ir=E.useMemo(function(){if(!Dr)return{scrollHeight:void 0,start:0,end:Dt.length-1,offset:void 0};if(!hn){var It;return{scrollHeight:((It=Mt.current)===null||It===void 0?void 0:It.offsetHeight)||0,start:0,end:Dt.length-1,offset:void 0}}for(var Vt=0,Pt,_t,Wt,Yt=Dt.length,xr=0;xr<Yt;xr+=1){var Tr=Dt[xr],Wr=Ar(Tr),Kr=dn.get(Wr),Br=Vt+(Kr===void 0?Ee:Kr);Br>=vr&&Pt===void 0&&(Pt=xr,_t=Vt),Br>vr+we&&Wt===void 0&&(Wt=xr),Vt=Br}return Pt===void 0&&(Pt=0,_t=0,Wt=Math.ceil(we/Ee)),Wt===void 0&&(Wt=Dt.length-1),Wt=Math.min(Wt+1,Dt.length-1),{scrollHeight:Vt,start:Pt,end:Wt,offset:_t}},[hn,Dr,vr,Dt,tn,we]),Lt=ir.scrollHeight,br=ir.start,nr=ir.end,Jr=ir.offset;qt.current.start=br,qt.current.end=nr,E.useLayoutEffect(function(){var It=dn.getRecord();if(It.size===1){var Vt=Array.from(It.keys())[0],Pt=It.get(Vt),_t=Dt[br];if(_t&&Pt===void 0){var Wt=Ar(_t);if(Wt===Vt){var Yt=dn.get(Vt),xr=Yt-Ee;fr(function(Tr){return Tr+xr})}}}dn.resetRecord()},[Lt]);var yr=E.useState({width:0,height:we}),Nr=(0,xe.Z)(yr,2),Zr=Nr[0],an=Nr[1],un=function(Vt){an({width:Vt.offsetWidth,height:Vt.offsetHeight})},Cn=(0,E.useRef)(),Wn=(0,E.useRef)(),Rn=E.useMemo(function(){return $e(Zr.width,gt)},[Zr.width,gt]),pn=E.useMemo(function(){return $e(Zr.height,Lt)},[Zr.height,Lt]),rn=Lt-we,zn=(0,E.useRef)(rn);zn.current=rn;function Jn(It){var Vt=It;return Number.isNaN(zn.current)||(Vt=Math.min(Vt,zn.current)),Vt=Math.max(Vt,0),Vt}var Un=vr<=0,Vn=vr>=rn,Gn=Lr<=0,Er=Lr>=gt,_r=Me(Un,Vn,Gn,Er),pr=function(){return{x:Rr?-Lr:Lr,y:vr}},Fr=(0,E.useRef)(pr()),kr=(0,ee.zX)(function(It){if(wt){var Vt=(0,y.Z)((0,y.Z)({},pr()),It);(Fr.current.x!==Vt.x||Fr.current.y!==Vt.y)&&(wt(Vt),Fr.current=Vt)}});function Hr(It,Vt){var Pt=It;Vt?((0,ie.flushSync)(function(){Xr(Pt)}),kr()):fr(Pt)}function mn(It){var Vt=It.currentTarget.scrollTop;Vt!==vr&&fr(Vt),Ct==null||Ct(It),kr()}var On=function(Vt){var Pt=Vt,_t=gt?gt-Zr.width:0;return Pt=Math.max(Pt,0),Pt=Math.min(Pt,_t),Pt},_n=(0,ee.zX)(function(It,Vt){Vt?((0,ie.flushSync)(function(){Xr(function(Pt){var _t=Pt+(Rr?-It:It);return On(_t)})}),kr()):fr(function(Pt){var _t=Pt+It;return _t})}),In=ke(Dr,Un,Vn,Gn,Er,!!gt,_n),Qn=(0,xe.Z)(In,2),vt=Qn[0],Bt=Qn[1];ze(Dr,jt,function(It,Vt,Pt,_t){var Wt=_t;return _r(It,Vt,Pt)?!1:!Wt||!Wt._virtualHandled?(Wt&&(Wt._virtualHandled=!0),vt({preventDefault:function(){},deltaX:It?Vt:0,deltaY:It?0:Vt}),!0):!1}),Ie(hn,jt,function(It){fr(function(Vt){return Vt+It})}),(0,fe.Z)(function(){function It(Pt){var _t=Un&&Pt.detail<0,Wt=Vn&&Pt.detail>0;Dr&&!_t&&!Wt&&Pt.preventDefault()}var Vt=jt.current;return Vt.addEventListener("wheel",vt,{passive:!1}),Vt.addEventListener("DOMMouseScroll",Bt,{passive:!0}),Vt.addEventListener("MozMousePixelScroll",It,{passive:!1}),function(){Vt.removeEventListener("wheel",vt),Vt.removeEventListener("DOMMouseScroll",Bt),Vt.removeEventListener("MozMousePixelScroll",It)}},[Dr,Un,Vn]),(0,fe.Z)(function(){if(gt){var It=On(Lr);Xr(It),kr({x:It})}},[Zr.width,gt]);var Ft=function(){var Vt,Pt;(Vt=Cn.current)===null||Vt===void 0||Vt.delayHidden(),(Pt=Wn.current)===null||Pt===void 0||Pt.delayHidden()},zt=tt(jt,Dt,dn,Ee,Ar,function(){return nn(!0)},fr,Ft);E.useImperativeHandle(te,function(){return{nativeElement:ar.current,getScrollInfo:pr,scrollTo:function(Vt){function Pt(_t){return _t&&(0,xt.Z)(_t)==="object"&&("left"in _t||"top"in _t)}Pt(Vt)?(Vt.left!==void 0&&Xr(On(Vt.left)),zt(Vt.top)):zt(Vt)}}}),(0,fe.Z)(function(){if(pt){var It=Dt.slice(br,nr+1);pt(It,Dt)}},[br,nr,Dt]);var Jt=de(Dt,Ar,dn,Ee),Qt=At==null?void 0:At({start:br,end:nr,virtual:hn,offsetX:Lr,offsetY:Jr,rtl:Rr,getSize:Jt}),ur=he(Dt,br,nr,gt,Lr,$r,dt,kt),sr=null;we&&(sr=(0,y.Z)((0,De.Z)({},Ue?"height":"maxHeight",we),Je),Dr&&(sr.overflowY="hidden",gt&&(sr.overflowX="hidden"),Xt&&(sr.pointerEvents="none")));var tr={};return Rr&&(tr.dir="rtl"),E.createElement("div",(0,He.Z)({ref:ar,style:(0,y.Z)((0,y.Z)({},qe),{},{position:"relative"}),className:jr},tr,$t),E.createElement(se.Z,{onResize:un},E.createElement(mt,{className:"".concat(Re,"-holder"),style:sr,ref:jt,onScroll:mn,onMouseEnter:Ft},E.createElement(le,{prefixCls:Re,height:Lt,offsetX:Lr,offsetY:Jr,scrollWidth:gt,onInnerResize:nn,ref:Mt,innerProps:Ot,rtl:Rr,extra:Qt},ur))),hn&&Lt>we&&E.createElement(et,{ref:Cn,prefixCls:Re,scrollOffset:vr,scrollRange:Lt,rtl:Rr,onScroll:Hr,onStartMove:qr,onStopMove:Et,spinSize:pn,containerSize:Zr.height,style:Nt==null?void 0:Nt.verticalScrollBar,thumbStyle:Nt==null?void 0:Nt.verticalScrollBarThumb,showScrollBar:gr}),hn&&gt>Zr.width&&E.createElement(et,{ref:Wn,prefixCls:Re,scrollOffset:Lr,scrollRange:gt,rtl:Rr,onScroll:Hr,onStartMove:qr,onStopMove:Et,spinSize:Rn,containerSize:Zr.width,horizontal:!0,style:Nt==null?void 0:Nt.horizontalScrollBar,thumbStyle:Nt==null?void 0:Nt.horizontalScrollBarThumb,showScrollBar:gr}))}var st=E.forwardRef(ct);st.displayName="List";var Ye=st,Le=Ye},93314:function(lr){"use strict";lr.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(lr){"use strict";lr.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(lr){"use strict";lr.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(lr){"use strict";lr.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(lr,Gt,Xe){"use strict";Xe.d(Gt,{Z:function(){return oe}});const He=se=>typeof se=="object"&&se!=null&&se.nodeType===1,xt=(se,ee)=>(!ee||se!=="hidden")&&se!=="visible"&&se!=="clip",y=(se,ee)=>{if(se.clientHeight<se.scrollHeight||se.clientWidth<se.scrollWidth){const fe=getComputedStyle(se,null);return xt(fe.overflowY,ee)||xt(fe.overflowX,ee)||(E=>{const ie=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(le){return null}})(E);return!!ie&&(ie.clientHeight<E.scrollHeight||ie.clientWidth<E.scrollWidth)})(se)}return!1},De=(se,ee,fe,E,ie,re,le,ce)=>re<se&&le>ee||re>se&&le<ee?0:re<=se&&ce<=fe||le>=ee&&ce>=fe?re-se-E:le>ee&&ce<fe||re<se&&ce>fe?le-ee+ie:0,xe=se=>{const ee=se.parentElement;return ee==null?se.getRootNode().host||null:ee},x=(se,ee)=>{var fe,E,ie,re;if(typeof document=="undefined")return[];const{scrollMode:le,block:ce,inline:he,boundary:ge,skipOverflowHiddenElements:be}=ee,me=typeof ge=="function"?ge:et=>et!==ge;if(!He(se))throw new TypeError("Invalid target");const ve=document.scrollingElement||document.documentElement,Ce=[];let Te=se;for(;He(Te)&&me(Te);){if(Te=xe(Te),Te===ve){Ce.push(Te);break}Te!=null&&Te===document.body&&y(Te)&&!y(document.documentElement)||Te!=null&&y(Te,be)&&Ce.push(Te)}const Me=(E=(fe=window.visualViewport)==null?void 0:fe.width)!=null?E:innerWidth,ke=(re=(ie=window.visualViewport)==null?void 0:ie.height)!=null?re:innerHeight,{scrollX:de,scrollY:ye}=window,{height:Se,width:Oe,top:Ne,right:Ae,bottom:je,left:Ze}=se.getBoundingClientRect(),{top:ze,right:Ve,bottom:it,left:Ie}=(et=>{const Ke=window.getComputedStyle(et);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(se);let We=ce==="start"||ce==="nearest"?Ne-ze:ce==="end"?je+it:Ne+Se/2-ze+it,tt=he==="center"?Ze+Oe/2-Ie+Ve:he==="end"?Ae+Ve:Ze-Ie;const rt=[];for(let et=0;et<Ce.length;et++){const Ke=Ce[et],{height:$e,width:Ge,top:ot,right:Je,bottom:ct,left:st}=Ke.getBoundingClientRect();if(le==="if-needed"&&Ne>=0&&Ze>=0&&je<=ke&&Ae<=Me&&(Ke===ve&&!y(Ke)||Ne>=ot&&je<=ct&&Ze>=st&&Ae<=Je))return rt;const Ye=getComputedStyle(Ke),Le=parseInt(Ye.borderLeftWidth,10),_e=parseInt(Ye.borderTopWidth,10),te=parseInt(Ye.borderRightWidth,10),ue=parseInt(Ye.borderBottomWidth,10);let Re=0,Fe=0;const we="offsetWidth"in Ke?Ke.offsetWidth-Ke.clientWidth-Le-te:0,Ee="offsetHeight"in Ke?Ke.offsetHeight-Ke.clientHeight-_e-ue:0,Pe="offsetWidth"in Ke?Ke.offsetWidth===0?0:Ge/Ke.offsetWidth:0,Ue="offsetHeight"in Ke?Ke.offsetHeight===0?0:$e/Ke.offsetHeight:0;if(ve===Ke)Re=ce==="start"?We:ce==="end"?We-ke:ce==="nearest"?De(ye,ye+ke,ke,_e,ue,ye+We,ye+We+Se,Se):We-ke/2,Fe=he==="start"?tt:he==="center"?tt-Me/2:he==="end"?tt-Me:De(de,de+Me,Me,Le,te,de+tt,de+tt+Oe,Oe),Re=Math.max(0,Re+ye),Fe=Math.max(0,Fe+de);else{Re=ce==="start"?We-ot-_e:ce==="end"?We-ct+ue+Ee:ce==="nearest"?De(ot,ct,$e,_e,ue+Ee,We,We+Se,Se):We-(ot+$e/2)+Ee/2,Fe=he==="start"?tt-st-Le:he==="center"?tt-(st+Ge/2)+we/2:he==="end"?tt-Je+te+we:De(st,Je,Ge,Le,te+we,tt,tt+Oe,Oe);const{scrollLeft:qe,scrollTop:nt}=Ke;Re=Ue===0?0:Math.max(0,Math.min(nt+Re/Ue,Ke.scrollHeight-$e/Ue+Ee)),Fe=Pe===0?0:Math.max(0,Math.min(qe+Fe/Pe,Ke.scrollWidth-Ge/Pe+we)),We+=nt-Re,tt+=qe-Fe}rt.push({el:Ke,top:Re,left:Fe})}return rt},z=se=>se===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(se)?se:{block:"start",inline:"nearest"};function oe(se,ee){if(!se.isConnected||!(ie=>{let re=ie;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(se))return;const fe=(ie=>{const re=window.getComputedStyle(ie);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(se);if((ie=>typeof ie=="object"&&typeof ie.behavior=="function")(ee))return ee.behavior(x(se,ee));const E=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:ie,top:re,left:le}of x(se,z(ee))){const ce=re-fe.top+fe.bottom,he=le-fe.left+fe.right;ie.scroll({top:ce,left:he,behavior:E})}}}}]);