!(function(){var Hc=Object.defineProperty,Rc=Object.defineProperties;var Oc=Object.getOwnPropertyDescriptors;var zu=Object.getOwnPropertySymbols;var lc=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable;var $u=(xn,wt,ce)=>wt in xn?Hc(xn,wt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):xn[wt]=ce,Vo=(xn,wt)=>{for(var ce in wt||(wt={}))lc.call(wt,ce)&&$u(xn,ce,wt[ce]);if(zu)for(var ce of zu(wt))uc.call(wt,ce)&&$u(xn,ce,wt[ce]);return xn},ec=(xn,wt)=>Rc(xn,Oc(wt));var cc=(xn,wt)=>{var ce={};for(var te in xn)lc.call(xn,te)&&wt.indexOf(te)<0&&(ce[te]=xn[te]);if(xn!=null&&zu)for(var te of zu(xn))wt.indexOf(te)<0&&uc.call(xn,te)&&(ce[te]=xn[te]);return ce};var Sa=(xn,wt,ce)=>$u(xn,typeof wt!="symbol"?wt+"":wt,ce);(self.webpackChunk=self.webpackChunk||[]).push([[342],{95869:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return ke}});var te=ce(54476),Ke=ce(59301),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Ye=Me,_e=ce(7657),ve=function(ge,Xe){return Ke.createElement(_e.Z,(0,te.Z)({},ge,{ref:Xe,icon:Ye}))},Ve=Ke.forwardRef(ve),ke=Ve},2018:function(){"use strict"},40862:function(xn,wt){"use strict";wt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},75544: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 xn={},wt="5.0",ce={},te=null,Ke=!1,Me=!1,Ye=null,_e=!1,ve=null,Ve=null,ke=0;ke4?parseFloat(Ct):5};xn.setHTML5Codebase=function(Ct,$t){Ve=Ct,Ot(Ct,$t)},xn.setJavaCodebase=xn.setJavaCodebaseVersion=xn.isCompiledInstalled=xn.setPreCompiledScriptPath=xn.setPreCompiledResourcePath=function(){},xn.setHTML5CodebaseVersion=function(Ct,$t){var on=parseFloat(Ct);if(on!==NaN&&on<5){console.log("The GeoGebra HTML5 codebase version "+on+" is deprecated. Using version latest instead.");return}ve=Ct,Fe(Ct,$t)},xn.getHTML5CodebaseVersion=function(){return tt},xn.getParameters=function(){return ce},xn.setFontsCSSURL=function(Ct){Je=Ct},xn.setGiacJSURL=function(Ct){},xn.setJNLPFile=function(Ct){ge=Ct},xn.setJNLPBaseDir=function(Ct){},xn.inject=function(){function Ct(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $t="auto",on=ce.id,jn,Dt=!1,vt=0;vt=5)return!0;var Ct=xn.getAppletObject();return Ct&&typeof Ct.recalculateEnvironments=="function"?(Ct.recalculateEnvironments(),!0):!1},xn.startAnimation=function(){var Ct=xn.getAppletObject();return Ct&&typeof Ct.startAnimation=="function"?(Ct.startAnimation(),!0):!1},xn.stopAnimation=function(){var Ct=xn.getAppletObject();return Ct&&typeof Ct.stopAnimation=="function"?(Ct.stopAnimation(),!0):!1},xn.getAppletObject=function(){var Ct=ce.id!==void 0?ce.id:"ggbApplet";return window[Ct]},xn.resize=function(){};var dt=function(Ct,$t,on){var jn=document.createElement("param");jn.setAttribute("name",$t),jn.setAttribute("value",on),Ct.appendChild(jn)},$e=function(Ct){return Ct&&Ct!=="false"},Bt=function(Ct,$t,on){xe(tt)<=4.2&&(on=!0);var jn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==tt||ggbHTML5LoadedCodebaseIsWebSimple&&!Ze)&&(jn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dt=document.createElement("div");Dt.classList.add("appletParameters","notranslate");var vt=$t.width,pt=$t.height;if($t.disableAutoScale=$t.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$t.disableAutoScale,$t.width!==void 0)if(xe(tt)<=4.4)$e($t.showToolBar)&&($t.height-=7),$e($t.showAlgebraInput)&&($t.height-=37),$t.width<605&&$e($t.showToolBar)&&($t.width=605,vt=605);else{var bt=100;($e($t.showToolBar)||$e($t.showMenuBar))&&($t.hasOwnProperty("customToolBar")&&($t.customToolbar=$t.customToolBar),bt=$e($t.showMenuBar)?245:155),vt=5?($t.appletOnLoad=function(re){var de=Ct.querySelector(".ggb_preview");de&&de.parentNode.removeChild(de),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(zt),window.GGBT_wsf_view&&$(window).trigger("resize"),yt(re)},Se||zt.appendChild(se)):Dt.appendChild(se),zt.appendChild(Dt),Se||Ct.appendChild(zt),setTimeout(function(){xn.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Dt),Ct.appendChild(fe),$t.appletOnLoad=function(re){xn.resize(),yt(re)}}function Ue(re,de){de&&typeof de.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(re,de.appletOnLoad):renderGGBElement(re),Fn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",de)}function Be(re,de){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:re,params:de}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){Ue(we.article,we.params)}),html5AppletsToProcess=null)},xe(tt)<5&&(re.className+=" geogebraweb")):Ue(re,de)}if(jn){scriptLoadStarted=!0;for(var gt=0;gt0?(Zt.remove(),zt.attr("id","fullscreencontent").show(),jQuery(yt).append(zt),window.dispatchEvent(new Event("resize"))):Bt(Zt,$t,!1),window.GGBT_wsf_view.launchFullScreen(yt)}else ct=jn,Bt(Ct,$t,!1);if(!window.GGBT_wsf_view)for(pt=0;ptCt/4*3&&(Zt=Ct/4*3),yt=Zt/5.8,bt.setAttribute("src",ut),bt.setAttribute("width",Zt),bt.setAttribute("height",yt);var zt=(Ct-Zt)/2,Se=($t-yt)/2;bt.style.left=zt+"px",bt.style.top=Se+"px",Dt.appendChild(bt)}}return Dt.appendChild(pt),Dt},An=function(Ct){return Ct=Ct.toLowerCase(),Ct==="html5"||Ct==="screenshot"?Ct:"html5"},We=["web","webSimple","web3d","tablet","tablet3d","phone"],Fe=function(Ct,$t){if(tt=Ct,$t){Ot(tt,!0);return}var on=!Ke;if(on){var jn=xe(tt);!isNaN(jn)&&jn<4.4&&(on=!1)}var Dt,vt;window.location.protocol.substr(0,4)==="http"?Dt=window.location.protocol:Dt="http:";var pt=tt.indexOf("//");pt>0?vt=tt:pt===0?vt=Dt+tt:vt="https://www.geogebra.org/apps/5.2.814.0/";for(var bt in We)if(tt.slice(We[bt].length*-1)===We[bt]||tt.slice((We[bt].length+1)*-1)===We[bt]+"/"){Ot(vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&on&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!$e(ce.showToolBar)&&!$e(ce.showMenuBar)&&!$e(ce.showAlgebraInput)&&!$e(ce.enableRightClick)&&(!ce.appName||ce.appName=="classic")?vt+="webSimple/":vt+="web3d/",Ot(vt,!1)},Ot=function(Ct,$t){if(Ct.requirejs){Xe=Ct;return}Ct.slice(-1)!=="/"&&(Ct+="/"),Xe=Ct,$t===null&&($t=Ct.indexOf("http")===-1),Ce=$t,nt="web.nocache.js",Ze=!1;var on=Xe.split("/");on.length>1&&(!$t&&on[on.length-2]==="webSimple"?(nt="webSimple.nocache.js",Ze=!0):We.indexOf(on[on.length-2])>=0&&(nt=on[on.length-2]+".nocache.js")),on=Ct.split("/"),tt=on[on.length-3],tt.substr(0,4)==="test"?tt=tt.substr(4,1)+"."+tt.substr(5,1):(tt.substr(0,3)==="war"||tt.substr(0,4)==="beta")&&(tt="5.0");var jn=parseFloat(tt);jn!==NaN&&jn<5&&Ct.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+jn+" is deprecated. Using version latest instead."),Fe("5.0",$t))},Fn=function(Ct,$t){window.console&&window.console.log&&(!$t||typeof $t.showLogging=="undefined"||$t.showLogging&&$t.showLogging!=="false")&&console.log(Ct)};ce.material_id!==void 0?at(fn):fn();function fn(){var Ct=wt;ve!==null?Ct=ve:parseFloat(Ct)<5&&(Ct="5.0"),Fe(Ct,!1),Ve!==null&&Ot(Ve,Ce),_e=!0}return xn},GGBAppletUtils=function(){"use strict";function xn(){return window.GGBT_wsf_edit!==void 0}function wt(_e,ve){ve!=1?(_e.style.transformOrigin="0% 0% 0px",_e.style.webkitTransformOrigin="0% 0% 0px",_e.style.transform="scale("+ve+","+ve+")",_e.style.webkitTransform="scale("+ve+","+ve+")",_e.style.maxWidth="initial",_e.querySelector(".ggb_preview")!==null&&(_e.querySelector(".ggb_preview").style.maxWidth="initial"),_e.querySelectorAll(".ggb_preview img")[0]!==void 0&&(_e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),_e.querySelectorAll(".ggb_preview img")[1]!==void 0&&(_e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(_e.style.transform="none",_e.style.webkitTransform="none")}function ce(_e,ve,Ve,ke,Re,ge){var Xe=null;if(ge!=null&&ge!="")for(var Ce=_e.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+ge+" ")>-1){Xe=Ce;break}else Ce=Ce.parentNode;var ct=0,tt=0,nt=0,Ze=0,Le=0,ut=0,Ge=0;if(Xe)ct=Xe.offsetWidth,tt=Math.max(ke?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),tt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=ct):(ct=window.innerWidth,tt=window.innerHeight,nt=window.innerWidth),_e){var Je=_e.getBoundingClientRect();Je.left>0&&Je.left<=ct&&(Re===void 0||!Re)&&(document.dir==="rtl"?(Le=ct-Je.width-Je.left,ut=nt<=480?10:30):(ut=Je.left,Le=nt<=480?10:30),Ze=ut+Le)}if(_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=_e.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ze=40,Ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ze=0,Ge=40)}}return _e&&((Ve===void 0||!Ve)&&ve>0&&ve+Ze1&&(ge=!0)),ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ge=!0),!(_e.hasOwnProperty("disableAutoScale")&&_e.disableAutoScale))Re=te(_e,ve,ge,Ve,_e.scaleContainerClass);else return ke;return ge&&(!_e.hasOwnProperty("scale")||ke===1)?Re:Math.min(ke,Re)}function Me(_e){var ve=Math.min(window.innerWidth,document.documentElement.clientWidth),Ve=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=_e.getBoundingClientRect(),Re=(ve-ke.width)/2,ge=(Ve-ke.height)/2;ge<0&&(ge=0),_e.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Re<40?_e.style.left="40px":_e.style.left=Re+"px",_e.style.top=ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ge<40?_e.style.top="40px":_e.style.top=ge+"px",_e.style.left=Re+"px")}function Ye(_e,ve){var Ve=_e.querySelector(".appletParameters");if(Ve){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!==Ve.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(_e)}if(Ve.parentElement&&/fullscreen/.test(Ve.parentElement.className))return;var ke=Ke(ve,_e);xn()&&Ve.setAttribute("data-param-scale",ke);for(var Re=null,ge=0;ge<_e.childNodes.length;ge++)if(_e.childNodes[ge].className!==void 0&&_e.childNodes[ge].className.match(/^applet_scaler/)){Re=_e.childNodes[ge];break}if(Re!==null&&Re.querySelector(".noscale")!==null)return;var Xe=ve.id!==void 0?ve.id:"ggbApplet",Ce=window[Xe];(Ce==null||!Ce.recalculateEnvironments)&&Re!==null&&!Re.className.match(/fullscreen/)&&(Re.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(Re.parentNode.style.width=ve.width*ke+"px",Re.parentNode.style.height=ve.height*ke+"px",wt(Re,ke)):(wt(Re,1),Re.parentNode.style.width=ve.width+"px",Re.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Me(_e),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ve).parents(".content-added-content"))}}return{responsiveResize:Ye,isFlexibleWorksheetEditor:xn,positionCenter:Me,getScale:Ke,scaleElement:wt}}();__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="",W="",X="",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 xn=n.location.search;return xn.indexOf(J)!=-1||xn.indexOf(K)!=-1}function q(xn,wt){}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(xn){var wt=s[L].bindings;s[L].bindings=function(){for(var ce=wt?wt():{},te=xn[webModule.__softPermutationId],Ke=O;Ke=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(xn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xn){var wt=c[xn];return wt==null?null:wt},r=d,webModule.__errFn=e}function B(){function xn(_e){var ve=_e.lastIndexOf(rb);ve==-1&&(ve=_e.length);var Ve=_e.indexOf(sb);Ve==-1&&(Ve=_e.length);var ke=_e.lastIndexOf(tb,Math.min(Ve,ve));return ke>=O?_e.substring(O,ke+P):W}function wt(_e){if(!_e.match(/^\w+:\/\//)){var ve=o.createElement(ub);ve.src=_e+vb,_e=xn(ve.src)}return _e}function ce(){var _e=__gwt_getMetaProperty(wb);return _e!=null?_e:W}function te(){for(var _e=o.getElementsByTagName(_),ve=O;ve<_e.length;++ve)if(_e[ve].src.indexOf(xb)!=-1)return xn(_e[ve].src);return W}function Ke(){var _e=o.getElementsByTagName(yb);return _e.length>O?_e[_e.length-P].href:W}function Me(){var _e=o.location;return _e.href==_e.protocol+zb+_e.host+_e.pathname+_e.search+_e.hash}var Ye=ce();return Ye==W&&(Ye=te()),Ye==W&&(Ye=Ke()),Ye==W&&Me()&&(Ye=xn(o.location.href)),Ye=wt(Ye),Ye}function C(xn){return xn.match(/^\//)||xn.match(/^[a-zA-Z]+:\/\//)?xn:webModule.__moduleBase+xn}function D(){var xn=[],wt=O,ce=[],te=[];function Ke(_e){var ve=te[_e](),Ve=ce[_e];if(ve in Ve)return ve;var ke=[];for(var Re in Ve)ke[Ve[Re]]=Re;throw r&&r(_e,ke,ve),null}if(__gwt_isKnownPropertyValue=function(_e,ve){return ve in ce[_e]},webModule.__getPropMap=function(){var _e={};for(var ve in ce)ce.hasOwnProperty(ve)&&(_e[ve]=Ke(ve));return _e},webModule.__computePropValue=Ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Me;try{Me=Cb;var Ye=Me.indexOf(Db);Ye!=-1&&(wt=parseInt(Me.substring(Ye+P),$),Me=Me.substring(O,Ye))}catch(_e){}return webModule.__softPermutationId=wt,C(Me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},52882:function(xn,wt,ce){"use strict";ce.d(wt,{Ax:function(){return Ye},Ds:function(){return _e},KI:function(){return Ve},SI:function(){return Me},f1:function(){return Ke}});var te=ce(26869);function Ke(ke){let Re=!0;if(ke.length>0){for(let ge=0;geNe in xe?Xe(xe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):xe[Ne]=Te,Ze=(xe,Ne)=>{for(var Te in Ne||(Ne={}))ct.call(Ne,Te)&&nt(xe,Te,Ne[Te]);if(Ce)for(var Te of Ce(Ne))tt.call(Ne,Te)&&nt(xe,Te,Ne[Te]);return xe};const Le=(xe={})=>{var Ne,Te,at,He;let et=(Ne=xe==null?void 0:xe.emotion)==null?void 0:Ne.map(At=>Ze({value:At==null?void 0:At.rate},At)),dt=(Te=xe==null?void 0:xe.focus)==null?void 0:Te.map(At=>Ze({value:At==null?void 0:At.rate},At)),$e=(at=xe==null?void 0:xe.action)==null?void 0:at.map(At=>Ze({value:At==null?void 0:At.rate},At)),Bt=(He=xe==null?void 0:xe.intention)==null?void 0:He.map(At=>Ze({value:At==null?void 0:At.rate},At));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:et||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:dt||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:$e||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:Bt||[]}]},ut=({className:xe,dataSource:Ne=[],col:Te=4,right:at,bottom:He=23,precision:et=0,wrapWidth:dt=1200})=>{const $e=(At="",mt,Gt="--")=>At?(At==null?void 0:At.length)>mt?(At==null?void 0:At.slice(0,mt-1))+"...":At:Gt,Bt=Math.floor((dt-(Te-1)*at)/Te);return te.createElement("div",{className:Ye()(Ke.list,xe)},!!(Ne!=null&&Ne.length)&&(Ne==null?void 0:Ne.map((At,mt)=>{const{cover_pic:Gt,created_at:Jt,emotion:gn,action:An,intention:We,focus:Fe}=At;return te.createElement("div",{key:mt,className:Ke.wrap,style:{width:Bt,marginRight:(1+mt)%Te===0?0:at+et,marginBottom:He}},te.createElement("div",{className:Ke.img},te.createElement("img",{src:`${ge.Z.API_SERVER}${Gt}`}),te.createElement("div",{className:Ke.tips},te.createElement("div",null,te.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),te.createElement("span",null,Jt))),te.createElement("div",{className:Ke.footer},te.createElement("ul",null,te.createElement("li",null,te.createElement("i",{className:"iconfont icon-biaoqing"}),te.createElement("span",null,"\u8868\u60C5\uFF1A",te.createElement(ve.Z,{title:gn},te.createElement("span",{className:"c-grey-333"},$e(gn,4))))),te.createElement("li",null,te.createElement("i",{className:"iconfont icon-hangwei"}),te.createElement("span",null,"\u884C\u4E3A\uFF1A",te.createElement(ve.Z,{title:An},te.createElement("span",{className:"c-grey-333"},$e(An,4)))))),te.createElement("ul",null,te.createElement("li",null,te.createElement("i",{className:"iconfont icon-yitu"}),te.createElement("span",null,"\u610F\u56FE\uFF1A",te.createElement(ve.Z,{title:We},te.createElement("span",{className:"c-grey-333"},$e(We,4))))),te.createElement("li",null,te.createElement("i",{className:"iconfont icon-zhuangtai"}),te.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",te.createElement(ve.Z,{title:Fe},te.createElement("span",{className:"c-grey-333"},$e(Fe,3))))))))})))},Ge=({className:xe,style:Ne,title:Te,hideBar:at=!1,children:He,customText:et="",noDataText:dt="",emptyData:$e=[],loading:Bt,actionAnalysis:At})=>{var mt,Gt;const Jt=((mt=$e==null?void 0:$e[0])==null?void 0:mt.every(An=>{var We;return!((We=An==null?void 0:An.data)!=null&&We.length)}))&&!((Gt=$e==null?void 0:$e[1])!=null&&Gt.length)||!At,gn=At?dt:et;return te.createElement(Ve.Z,{loading:Bt,active:!0},Jt&&te.createElement("div",{className:Ye()(Ke.noData,xe),style:Ne},!!Te&&te.createElement("div",{className:Ke.title},!at&&te.createElement("b",null),te.createElement("span",null,Te)),te.createElement("div",{className:Ke.itemWrap},te.createElement(Re.Z,{customText:gn}))),!Jt&&He)};var Qe=({className:xe,style:Ne,data:Te=[],title:at,hideBar:He=!1,loading:et=!1})=>te.createElement("div",{className:Ye()(Ke.analysis,xe),style:Ne},!!at&&te.createElement("div",{className:Ke.title},!He&&te.createElement("b",null),te.createElement("span",null,at)),te.createElement(ke.Z,{spinning:et},te.createElement("div",{className:Ke.itemWrap},Te==null?void 0:Te.map((dt,$e)=>te.createElement("div",{className:Ke.item,key:$e},te.createElement(_e.Z,{option:{tooltip:{trigger:"item",formatter:"{a}
{b}: {c}%"},title:{left:"center",bottom:15,text:dt==null?void 0:dt.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(Bt){for(let At in dt==null?void 0:dt.data)if(Bt==(dt==null?void 0:dt.data[At].name))return Bt+" "+(dt==null?void 0:dt.data[At].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:dt==null?void 0:dt.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:dt==null?void 0:dt.data}]},style:{height:145}}))))))},40679:function(xn,wt,ce){"use strict";var te=ce(86204),Ke=ce.n(te),Me=Object.defineProperty,Ye=(ke,Re,ge)=>Re in ke?Me(ke,Re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ke[Re]=ge,_e=(ke,Re,ge)=>Ye(ke,typeof Re!="symbol"?Re+"":Re,ge),ve=(ke,Re,ge)=>new Promise((Xe,Ce)=>{var ct=Ze=>{try{nt(ge.next(Ze))}catch(Le){Ce(Le)}},tt=Ze=>{try{nt(ge.throw(Ze))}catch(Le){Ce(Le)}},nt=Ze=>Ze.done?Xe(Ze.value):Promise.resolve(Ze.value).then(ct,tt);nt((ge=ge.apply(ke,Re)).next())});class Ve extends te.EventEmitter{constructor(Re,ge){super(),_e(this,"url"),_e(this,"body"),_e(this,"fullContent",""),_e(this,"controller",null),_e(this,"buffer",""),this.url=Re,this.body=ge}startStream(){return ve(this,null,function*(){this.controller=new AbortController;const{signal:Re}=this.controller;try{const ge=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Re});if(!ge.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${ge.status}`);const Xe=ge.headers.get("content-type");if(!Xe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Xe.includes("application/json")){const tt=yield ge.json();this.emit("error",tt);return}if(!Xe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Ce=ge.body.getReader(),ct=new TextDecoder("utf-8");for(;;){const{done:tt,value:nt}=yield Ce.read();if(tt)break;const Ze=ct.decode(nt,{stream:!0});this.buffer+=Ze;const Le=this.buffer.split(` `);this.buffer=Le.pop()||"";for(const ut of Le)if(ut.startsWith("data:")){const Ge=ut.slice(5).trim();if(Ge==="[DONE]")break;try{const Je=JSON.parse(Ge);Je.data&&this.handleData(Je.data)}catch(Je){this.buffer=ut+` `+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Je)}}}this.emit("done",this.fullContent)}catch(ge){ge.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",ge.message)}})}handleData(Re){Re.content&&(this.fullContent+=Re.content,this.emit("data",{chunk:Re,full:this.fullContent}))}cancelRequest(){var Re;(Re=this.controller)==null||Re.abort()}}wt.Z=Ve},92399:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return nt}});var te=ce(59301),Ke={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},Me=ce(92310),Ye=ce.n(Me),_e=ce(47199),ve=ce(1986),Ve=ce(31735),ke=ce(26869),Re=ce(97013),ge=ce(11968),Xe=ce(58106),Ce=ce(6767),ct=(Ze,Le,ut)=>new Promise((Ge,Je)=>{var Qe=Te=>{try{Ne(ut.next(Te))}catch(at){Je(at)}},xe=Te=>{try{Ne(ut.throw(Te))}catch(at){Je(at)}},Ne=Te=>Te.done?Ge(Te.value):Promise.resolve(Te.value).then(Qe,xe);Ne((ut=ut.apply(Ze,Le)).next())});const tt=({className:Ze,style:Le,dataSource:ut=[],authority:Ge=!1,callback:Je,showDimensions:Qe=!0,classroomList:xe})=>{var Ne;const[Te,at]=(0,te.useState)({content:"",type:""}),[He,et]=(0,te.useState)({}),[dt,$e]=(0,te.useState)(!1),[Bt,At]=(0,te.useState)({title:"",visible:!1,src:"",snapshotData:{}}),mt=(0,te.useRef)(),Gt=We=>ct(void 0,null,function*(){if(et(We),We.file_type==="txt"){const Fe=yield(0,Re.ZP)(We.url,{method:"get",headers:{"Content-Type":"application/xml"}});mt.current=Fe}at({type:We.file_type,content:ke.Z.API_SERVER+We.url})}),Jt=We=>{var Fe;At({visible:!0,src:ke.Z.API_SERVER+We.url,id:We.id,title:We.title,snapshotData:(Fe=We==null?void 0:We.subitem)==null?void 0:Fe.settings})},gn=We=>ct(void 0,null,function*(){var Fe;at({type:We.file_type,content:ke.Z.API_SERVER+((Fe=We==null?void 0:We.subitem)==null?void 0:Fe.url)})}),An=()=>{Je(),At({visible:!1})};return ut!=null&&ut.length?te.createElement(te.Fragment,null,te.createElement("div",{className:Ye()(Ke.list,Ze),style:Le},ut.map((We,Fe)=>{var Ot,Fn,fn;return te.createElement("div",{key:Fe,className:Ke.row},te.createElement("div",{className:Ke.title,onClick:()=>Gt(We)},te.createElement("i",{className:"iconfont icon-fujian1"}),te.createElement("span",{title:We.title},We.title)),te.createElement("div",{className:Ke.size},We.filesize),te.createElement("div",{className:Ke.download,onClick:()=>{var Ct,$t;if((0,ge.Rm)()&&!((Ct=xe.AssistantObject.normal)!=null&&Ct.can_download)){Ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,Ve.Nd)("",`${ke.Z.API_SERVER}${($t=We.url)==null?void 0:$t.replace("disposition=inline","")}`)}},te.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(We==null?void 0:We.file_type)&&te.createElement("div",{className:Ke.preview,onClick:()=>Gt(We)},te.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(We==null?void 0:We.file_type)&&Qe&&(Ge?te.createElement("div",{className:Ke.annotation,onClick:()=>Jt(We)},te.createElement("i",{className:"iconfont icon-pizhu"}),(Ot=We.subitem)!=null&&Ot.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Fn=We.subitem)==null?void 0:Fn.id)&&te.createElement("div",{className:Ke.annotation,onClick:()=>gn(We)},te.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(We==null?void 0:We.file_type)&&((fn=We.subitem)==null?void 0:fn.id)&&te.createElement("div",{className:Ke.download,style:{marginLeft:20},onClick:()=>{var Ct,$t;(0,Ve.Nd)("",`${ke.Z.API_SERVER}${($t=(Ct=We==null?void 0:We.subitem)==null?void 0:Ct.url)==null?void 0:$t.replace("disposition=inline","")}`)}},te.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(We==null?void 0:We.file_type)&&(0,ge.eB)()&&["xlsx","docx","pptx"].includes(We==null?void 0:We.file_sub)&&Qe&&te.createElement("div",{className:Ke.annotation,onClick:()=>{$e(!0),Gt(We)}},te.createElement("i",{className:"iconfont icon-pizhu"}),We.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),We.is_edit&&(0,ge.dE)()&&Qe&&te.createElement("div",{className:Ke.annotation,onClick:()=>{Gt(We)}},te.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),te.createElement(_e.Z,{close:!0,data:Te==null?void 0:Te.content,type:Te==null?void 0:Te.type,hasMask:!0,disabledDownload:(0,ge.Rm)()&&!((Ne=xe.AssistantObject.normal)!=null&&Ne.can_download),editOffice:dt?"edit":"view",monacoEditor:{value:mt.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:Ge&&Qe&&Te.type==="image"?()=>Jt(He):null,onClose:()=>{Je(),$e(!1),at({content:"",type:""})}}),te.createElement(ve.Z,{onOk:An,onClose:()=>At({visible:!1}),data:Bt,showFullTools:!0})):null};var nt=(0,Xe.connect)(({classroomList:Ze})=>({classroomList:Ze}))(tt)},1986:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return sn}});var te=ce(59301),Ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Me=ce(92310),Ye=ce.n(Me),_e=ce(29787);var ve=function(he,oe){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,de){re.__proto__=de}||function(re,de){for(var we in de)Object.prototype.hasOwnProperty.call(de,we)&&(re[we]=de[we])})(he,oe)};function Ve(he,oe){function re(){this.constructor=he}ve(he,oe),he.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}function ke(he,oe,re,de){return new(re||(re=Promise))(function(we,le){function Ee(It){try{Ut(de.next(It))}catch(ht){le(ht)}}function St(It){try{Ut(de.throw(It))}catch(ht){le(ht)}}function Ut(It){var ht;It.done?we(It.value):(ht=It.value,ht instanceof re?ht:new re(function(Bn){Bn(ht)})).then(Ee,St)}Ut((de=de.apply(he,oe||[])).next())})}function Re(he,oe){var re,de,we,le,Ee={label:0,sent:function(){if(1&we[0])throw we[1];return we[1]},trys:[],ops:[]};return le={next:St(0),throw:St(1),return:St(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function St(Ut){return function(It){return function(ht){if(re)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(re=1,de&&(we=2&ht[0]?de.return:ht[0]?de.throw||((we=de.return)&&we.call(de),0):de.next)&&!(we=we.call(de,ht[1])).done)return we;switch(de=0,we&&(ht=[2&ht[0],we.value]),ht[0]){case 0:case 1:we=ht;break;case 4:return Ee.label++,{value:ht[1],done:!1};case 5:Ee.label++,de=ht[1],ht=[0];continue;case 7:ht=Ee.ops.pop(),Ee.trys.pop();continue;default:if(we=Ee.trys,!((we=we.length>0&&we[we.length-1])||ht[0]!==6&&ht[0]!==2)){Ee=0;continue}if(ht[0]===3&&(!we||ht[1]>we[0]&&ht[1]',"select"),this.addActionButton(de,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(de,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(de,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(de,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(de,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(de,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(de,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Ee=document.createElement("div");Ee.className=""+re.toolbarButtonStyleClass.name,Ee.setAttribute("data-type-name",le.typeName),Ee.innerHTML=le.icon,Ee.addEventListener("click",function(){re.markerToolbarButtonClicked(Ee,le)}),re.buttons.push(Ee),re.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='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var we=document.createElement("div");we.className=this.toolbarBlockStyleClass.name,we.style.whiteSpace="nowrap",we.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(we),this.addActionButton(we,'',"render"),this.addActionButton(we,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},he.prototype.addButtonClickListener=function(oe){this.buttonClickListeners.push(oe)},he.prototype.removeButtonClickListener=function(oe){this.buttonClickListeners.indexOf(oe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(oe),1)},he.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},he.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var oe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var re=0;re0&&this.buttonClickListeners.forEach(function(de){return de("marker",re)}),this.markerButtonOverflowBlock.style.display="none"},he.prototype.actionToolbarButtonClicked=function(oe,re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("action",re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},he.prototype.setActiveButton=function(oe){this.resetButtonStyles(),oe.className=oe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),oe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},he.prototype.setActiveMarkerButton=function(oe){var re=this.markerButtons.find(function(de){return de.getAttribute("data-type-name")===oe});re&&this.setActiveButton(re)},he.prototype.setCurrentMarker=function(oe){var re=this;this.currentMarker=oe,this.buttons.filter(function(de){return/delete|notes/.test(de.getAttribute("data-action"))}).forEach(function(de){re.currentMarker===void 0?(de.style.fillOpacity="0.4",de.style.pointerEvents="none"):(de.style.fillOpacity="1",de.style.pointerEvents="all")})},he}(),Ge=function(){function he(oe,re,de,we){this.panels=[],this.panelButtons=[],this.markerjsContainer=oe,this.displayMode=re,this.uiStyleSettings=de,this.styles=we,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return he.prototype.addStyles=function(){var oe;this.toolboxStyleClass=this.styles.addClass(new Le("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 Le("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Le("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Le("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Le("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 Le("toolbox-panel-row_colors",` background-color: `+((oe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&oe!==void 0?oe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Le("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px; padding: `+re+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},he.prototype.show=function(oe){var re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=oe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},he.prototype.setPanelButtons=function(oe){var re,de,we=this;this.panels=oe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((de=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Ee;le.uiStyleSettings=we.uiStyleSettings;var St=document.createElement("div");St.className=we.toolboxButtonStyleClass.name+" "+((Ee=we.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ee!==void 0?Ee:we.toolboxButtonStyleColorsClass.name),St.innerHTML=le.icon,St.title=le.title,St.addEventListener("click",function(){we.panelButtonClick(le)}),we.panelButtons.push(St),we.buttonRow.appendChild(St)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},he.prototype.panelButtonClick=function(oe){var re=this,de=-1;if(oe!==this.activePanel){de=this.panels.indexOf(oe),this.panelRow.innerHTML="";var we=oe.getUi();we.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(we),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=oe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){re.displayMode==="inline"?re.panelRow.style.display="none":re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Ee){var St,Ut;le.className=re.toolboxButtonStyleClass.name+" "+(Ee===de?""+((St=re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&St!==void 0?St:re.toolboxActiveButtonStyleColorsClass.name):""+((Ut=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:re.toolboxButtonStyleColorsClass.name))})},he}(),Je=function(he,oe){this.title=he,this.icon=oe},Qe=function(he){function oe(re,de,we,le){var Ee=he.call(this,re,le||'')||this;return Ee.colors=[],Ee.addTransparent=!1,Ee.colorBoxes=[],Ee.colors=de,Ee.currentColor=we,Ee.setCurrentColor=Ee.setCurrentColor.bind(Ee),Ee.getColorBox=Ee.getColorBox.bind(Ee),Ee}return Ve(oe,he),oe.prototype.getUi=function(){var re=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.whiteSpace="nowrap",this.colors.forEach(function(we){var le=re.getColorBox(we);de.appendChild(le),re.colorBoxes.push(le)}),de},oe.prototype.getColorBox=function(re){var de=this,we=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-we,Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.boxSizing="content-box",Ee.style.width=le-2+"px",Ee.style.height=le-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=(le+2)/2+"px",Ee.style.borderColor=re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){de.setCurrentColor(re,Ee)});var St=document.createElement("div");return St.style.display="inline-block",St.style.width=le-2+"px",St.style.height=le-2+"px",St.style.backgroundColor=re,St.style.borderRadius=le/2+"px",re==="transparent"&&(St.style.fill=this.uiStyleSettings.toolboxAccentColor,St.innerHTML=` `),Ee.appendChild(St),Ee},oe.prototype.setCurrentColor=function(re,de){var we=this;this.currentColor=re,this.colorBoxes.forEach(function(le){le.style.borderColor=le===de?we.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(re)},oe}(Je),xe=function(){function he(oe,re,de){this._state="new",this._isSelected=!1,this._container=oe,this._overlayContainer=re,this.globalSettings=de,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(he.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),he.prototype.ownsTarget=function(oe){return!1},Object.defineProperty(he.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),he.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},he.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},he.prototype.pointerDown=function(oe,re){},he.prototype.dblClick=function(oe,re){},he.prototype.manipulate=function(oe){},he.prototype.pointerUp=function(oe){this.stateChanged()},he.prototype.dispose=function(){},he.prototype.addMarkerVisualToContainer=function(oe){this.container.childNodes.length>0?this.container.insertBefore(oe,this.container.childNodes[0]):this.container.appendChild(oe)},he.prototype.getState=function(){return{typeName:he.typeName,state:this.state,notes:this.notes}},he.prototype.restoreState=function(oe){this._state=oe.state,this.notes=oe.notes},he.prototype.scale=function(oe,re){},he.prototype.colorChanged=function(oe){this.onColorChanged&&this.onColorChanged(oe),this.stateChanged()},he.prototype.fillColorChanged=function(oe){this.onFillColorChanged&&this.onFillColorChanged(oe),this.stateChanged()},he.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var oe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),oe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(oe)&&this.onStateChanged(this)}},he.typeName="MarkerBase",he}(),Ne=function(){function he(){this.findGripByVisual=this.findGripByVisual.bind(this)}return he.prototype.findGripByVisual=function(oe){return this.topLeft.ownsTarget(oe)?this.topLeft:this.topCenter.ownsTarget(oe)?this.topCenter:this.topRight.ownsTarget(oe)?this.topRight:this.centerLeft.ownsTarget(oe)?this.centerLeft:this.centerRight.ownsTarget(oe)?this.centerRight:this.bottomLeft.ownsTarget(oe)?this.bottomLeft:this.bottomCenter.ownsTarget(oe)?this.bottomCenter:this.bottomRight.ownsTarget(oe)?this.bottomRight:void 0},he}(),Te=function(){function he(){this.GRIP_SIZE=10,this.visual=Xe.createGroup(),this.visual.appendChild(Xe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Xe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return he.prototype.ownsTarget=function(oe){return oe===this.visual||oe===this.visual.childNodes[0]||oe===this.visual.childNodes[1]},he}(),at=function(){function he(){}return he.toITransformMatrix=function(oe){return{a:oe.a,b:oe.b,c:oe.c,d:oe.d,e:oe.e,f:oe.f}},he.toSVGMatrix=function(oe,re){return oe.a=re.a,oe.b=re.b,oe.c=re.c,oe.d=re.d,oe.e=re.e,oe.f=re.f,oe},he}(),He=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Xe.createTransform()),le.setupControlBox(),le}return Ve(oe,he),Object.defineProperty(oe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"visual",{get:function(){return this._visual},set:function(re){this._visual=re;var de=Xe.createTransform();this._visual.transform.baseVal.appendItem(de)},enumerable:!1,configurable:!0}),oe.prototype.ownsTarget=function(re){return!!he.prototype.ownsTarget.call(this,re)||!!(this.controlGrips.findGripByVisual(re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(re))},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.state==="new"&&(this.left=re.x,this.top=re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var we=this.unrotatePoint(re);if(this.manipulationStartX=we.x,this.manipulationStartY=we.y,this.offsetX=we.x-this.left,this.offsetY=we.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(de),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var 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"},oe.prototype.pointerUp=function(re){var de=this.state;he.prototype.pointerUp.call(this,re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(re),this._state="select",de==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},oe.prototype.moveVisual=function(re){this.visual.style.transform="translate("+re.x+"px, "+re.y+"px)"},oe.prototype.manipulate=function(re){var de=this.unrotatePoint(re);this.state==="creating"?this.resize(re):this.state==="move"?(this.left=this.manipulationStartLeft+(de.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(de.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(de):this.state==="rotate"&&this.rotate(re)},oe.prototype.resize=function(re){var de=this.manipulationStartLeft,we=this.manipulationStartWidth,le=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:de=this.manipulationStartLeft+re.x-this.manipulationStartX,we=this.manipulationStartWidth+this.manipulationStartLeft-de;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:we=this.manipulationStartWidth+re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+re.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+re.y-this.manipulationStartY}we>=0?(this.left=de,this.width=we):(this.left=de+we,this.width=-we),Ee>=0?(this.top=le,this.height=Ee):(this.top=le+Ee,this.height=-Ee),this.setSize()},oe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},oe.prototype.rotate=function(re){if(Math.abs(re.x-this.centerX)>.1){var de=Math.sign(re.x-this.centerX);this.rotationAngle=180*Math.atan((re.y-this.centerY)/(re.x-this.centerX))/Math.PI+90*de,this.applyRotation()}},oe.prototype.applyRotation=function(){var re=this.container.transform.baseVal.getItem(0);re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(re,0)},oe.prototype.rotatePoint=function(re){if(this.rotationAngle===0)return re;var de=this.container.getCTM(),we=Xe.createPoint(re.x,re.y);return{x:(we=we.matrixTransform(de)).x,y:we.y}},oe.prototype.unrotatePoint=function(re){if(this.rotationAngle===0)return re;var de=this.container.getCTM();de=de.inverse();var we=Xe.createPoint(re.x,re.y);return{x:(we=we.matrixTransform(de)).x,y:we.y}},oe.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},oe.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},oe.prototype.setupControlBox=function(){this.controlBox=Xe.createGroup();var re=Xe.createTransform();re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(re),this.container.appendChild(this.controlBox),this.controlRect=Xe.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=Xe.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 Ne,this.addControlGrips(),this.controlBox.style.display="none"},oe.prototype.adjustControlBox=function(){var re=this.controlBox.transform.baseVal.getItem(0);re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(re,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()},oe.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()},oe.prototype.createGrip=function(){var re=new Te;return re.visual.transform.baseVal.appendItem(Xe.createTransform()),this.controlBox.appendChild(re.visual),re},oe.prototype.positionGrips=function(){var re=this.controlGrips.topLeft.GRIP_SIZE,de=-re/2,we=de,le=(this.width+this.CB_DISTANCE)/2-re/2,Ee=(this.height+this.CB_DISTANCE)/2-re/2,St=this.height+this.CB_DISTANCE-re/2,Ut=this.width+this.CB_DISTANCE-re/2;this.positionGrip(this.controlGrips.topLeft.visual,de,we),this.positionGrip(this.controlGrips.topCenter.visual,le,we),this.positionGrip(this.controlGrips.topRight.visual,Ut,we),this.positionGrip(this.controlGrips.centerLeft.visual,de,Ee),this.positionGrip(this.controlGrips.centerRight.visual,Ut,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,de,St),this.positionGrip(this.controlGrips.bottomCenter.visual,le,St),this.positionGrip(this.controlGrips.bottomRight.visual,Ut,St),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,we-3*this.CB_DISTANCE)},oe.prototype.positionGrip=function(re,de,we){var le=re.transform.baseVal.getItem(0);le.setTranslate(de,we),re.transform.baseVal.replaceItem(le,0)},oe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},oe.prototype.showControlBox=function(){this.controlBox.style.display=""},oe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:at.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:at.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},he.prototype.getState.call(this))},oe.prototype.restoreState=function(re){he.prototype.restoreState.call(this,re);var de=re;this.left=de.left,this.top=de.top,this.width=de.width,this.height=de.height,this.rotationAngle=de.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,de.containerTransformMatrix))},oe.prototype.scale=function(re,de){he.prototype.scale.call(this,re,de);var we=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:we.x*re,y:we.y*de});this.left=le.x,this.top=le.y,this.width=this.width*re,this.height=this.height*de,this.adjustControlBox()},oe}(xe),et=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!(!he.prototype.ownsTarget.call(this,re)&&re!==this.visual)},oe.prototype.createVisual=function(){this.visual=Xe.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)},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.manipulate=function(re){he.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){he.prototype.resize.call(this,re),this.setSize()},oe.prototype.setSize=function(){he.prototype.setSize.call(this),Xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},oe.prototype.pointerUp=function(re){he.prototype.pointerUp.call(this,re),this.setSize()},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&Xe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&Xe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&Xe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&Xe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},oe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},he.prototype.getState.call(this))},oe.prototype.restoreState=function(re){var de=re;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),he.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,de){he.prototype.scale.call(this,re,de),this.setSize()},oe.title="Rectangle marker",oe}(He),dt=function(he){function oe(re,de,we,le){var Ee=he.call(this,re,le||'')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=de,Ee.currentWidth=we,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return Ve(oe,he),oe.prototype.getUi=function(){var re=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.widths.forEach(function(we){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=we===re.currentWidth?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentWidth(we,le)}),de.appendChild(le);var Ee=document.createElement("div");Ee.innerText=we.toString(),Ee.style.marginRight="5px",le.appendChild(Ee);var St=document.createElement("div");St.style.minHeight="20px",St.style.flexGrow="2",St.style.display="flex",St.style.alignItems="center";var Ut=document.createElement("hr");Ut.style.minWidth="20px",Ut.style.border="0px",Ut.style.borderTop=we+"px solid "+re.uiStyleSettings.toolboxColor,Ut.style.flexGrow="2",St.appendChild(Ut),le.appendChild(St),re.widthBoxes.push(le)}),de},oe.prototype.setCurrentWidth=function(re,de){var we=this;this.currentWidth=re,this.widthBoxes.forEach(function(le){le.style.borderColor=le===de?we.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},oe}(Je),$e=function(he){function oe(re,de,we,le){var Ee=he.call(this,re,le||'')||this;return Ee.styles=[],Ee.styleBoxes=[],Ee.styles=de,Ee.currentStyle=we,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return Ve(oe,he),oe.prototype.getUi=function(){var re=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.styles.forEach(function(we){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/re.styles.length-5+"%",le.style.borderColor=we===re.currentStyle?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentStyle(we,le)}),de.appendChild(le);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var St=` `;Ee.innerHTML=St,le.appendChild(Ee),re.styleBoxes.push(le)}),de},oe.prototype.setCurrentStyle=function(re,de){var we=this;this.currentStyle=re,this.styleBoxes.forEach(function(le){le.style.borderColor=le===de?we.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},oe}(Je),Bt=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.strokeColor=we.defaultColor,le.strokeWidth=we.defaultStrokeWidth,le.strokeDasharray=we.defaultStrokeDasharray,le.strokePanel=new Qe("Line color",we.defaultColorSet,we.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new dt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new $e("Line style",we.defaultStrokeDasharrays,we.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Ve(oe,he),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=he.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="FrameMarker",oe.title="Frame marker",oe.icon='',oe}(et),At=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},mt=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!!he.prototype.ownsTarget.call(this,re)||!(!this.grip1.ownsTarget(re)&&!this.grip2.ownsTarget(re))},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.state==="new"&&(this.x1=re.x,this.y1=re.y,this.x2=re.x,this.y2=re.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(de)?this.activeGrip=this.grip1:this.grip2.ownsTarget(de)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},oe.prototype.pointerUp=function(re){var de=this.state;he.prototype.pointerUp.call(this,re),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(re),this._state="select",de==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},oe.prototype.adjustVisual=function(){},oe.prototype.manipulate=function(re){this.state==="creating"?this.resize(re):this.state==="move"?(this.x1=this.manipulationStartX1+re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(re)},oe.prototype.resize=function(re){switch(this.activeGrip){case this.grip1:this.x1=re.x,this.y1=re.y;break;case this.grip2:case void 0:this.x2=re.x,this.y2=re.y}this.adjustVisual(),this.adjustControlBox()},oe.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},oe.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},oe.prototype.setupControlBox=function(){this.controlBox=Xe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},oe.prototype.adjustControlBox=function(){this.positionGrips()},oe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},oe.prototype.createGrip=function(){var re=new Te;return re.visual.transform.baseVal.appendItem(Xe.createTransform()),this.controlBox.appendChild(re.visual),re},oe.prototype.positionGrips=function(){var re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-re/2,this.y1-re/2),this.positionGrip(this.grip2.visual,this.x2-re/2,this.y2-re/2)},oe.prototype.positionGrip=function(re,de,we){var le=re.transform.baseVal.getItem(0);le.setTranslate(de,we),re.transform.baseVal.replaceItem(le,0)},oe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},he.prototype.getState.call(this))},oe.prototype.restoreState=function(re){he.prototype.restoreState.call(this,re);var de=re;this.x1=de.x1,this.y1=de.y1,this.x2=de.x2,this.y2=de.y2},oe.prototype.scale=function(re,de){he.prototype.scale.call(this,re,de),this.x1=this.x1*re,this.y1=this.y1*de,this.x2=this.x2*re,this.y2=this.y2*de,this.adjustVisual(),this.adjustControlBox()},oe}(xe),Gt=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=we.defaultColor,le.strokeWidth=we.defaultStrokeWidth,le.strokeDasharray=we.defaultStrokeDasharray,le.strokePanel=new Qe("Line color",we.defaultColorSet,we.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new dt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new $e("Line style",we.defaultStrokeDasharrays,we.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!(!he.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorLine&&re!==this.visibleLine)},oe.prototype.createVisual=function(){this.visual=Xe.createGroup(),this.selectorLine=Xe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Xe.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)},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},oe.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()),Xe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Xe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Xe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},he.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){he.prototype.restoreState.call(this,re);var de=re;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.createVisual(),this.adjustVisual()},oe.typeName="LineMarker",oe.title="Line marker",oe.icon='',oe}(mt),Jt=function(he){function oe(re,de,we,le){var Ee=he.call(this,re,le||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=de,Ee.currentFont=we,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return Ve(oe,he),oe.prototype.getUi=function(){var re=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.flexGrow="2",this.fonts.forEach(function(we){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/re.fonts.length-5+"%",le.style.borderColor=we===re.currentFont?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentFont(we,le)}),de.appendChild(le);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=we,Ee.style.overflow="hidden";var St=document.createElement("div");St.style.whiteSpace="nowrap",St.style.overflow="hidden",St.style.textOverflow="ellipsis",St.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(St),le.appendChild(Ee),re.fontBoxes.push(le)}),de},oe.prototype.setCurrentFont=function(re,de){var we=this;this.currentFont=re,this.fontBoxes.forEach(function(le){le.style.borderColor=le===de?we.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},oe}(Je),gn=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=we.defaultColor,le.fontFamily=we.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new Qe("Color",we.defaultColorSet,we.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Jt("Font",we.defaultFontFamilies,we.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){if(he.prototype.ownsTarget.call(this,re)||re===this.visual||re===this.textElement||re===this.bgRectangle)return!0;var de=!1;return this.textElement.childNodes.forEach(function(we){we===re&&(de=!0)}),de},oe.prototype.createVisual=function(){this.visual=Xe.createGroup(),this.bgRectangle=Xe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Xe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Xe.createTransform()),this.textElement.transform.baseVal.appendItem(Xe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.renderText=function(){var re=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(de){re.textElement.appendChild(Xe.createTSpan(de.trim()===""?" ":de.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},oe.prototype.getTextScale=function(){var re=this.textElement.getBBox(),de=1;if(re.width>0&&re.height>0){var we=(1*this.width-this.width*this.padding*2/100)/re.width,le=(1*this.height-this.height*this.padding*2/100)/re.height;de=Math.min(we,le)}return de},oe.prototype.getTextPosition=function(re){var de=this.textElement.getBBox(),we=0,le=0;return de.width>0&&de.height>0&&(we=(this.width-de.width*re)/2,le=this.height/2-de.height*re/2),{x:we,y:le}},oe.prototype.sizeText=function(){var re=this.textElement.getBBox(),de=this.getTextScale(),we=this.getTextPosition(de);we.y-=re.y*de,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+we.x+"px, "+we.y+"px) scale("+de+", "+de+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(we.x,we.y),this.textElement.transform.baseVal.getItem(1).setScale(de,de))},oe.prototype.manipulate=function(re){he.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},oe.prototype.resize=function(re){he.prototype.resize.call(this,re),this.isMoved=!0,this.setSize(),this.sizeText()},oe.prototype.setSize=function(){he.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Xe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},oe.prototype.pointerUp=function(re){var de=this.state;de==="creating"&&(this._suppressMarkerCreateEvent=!0),he.prototype.pointerUp.call(this,re),this.setSize(),(de==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},oe.prototype.showTextEditor=function(){var re=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(de){de.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var de=Number.parseFloat(re.textEditor.style.fontSize);re.textEditor.clientWidth>=Number.parseInt(re.textEditor.style.maxWidth)&&de>.9;)de-=.1,re.textEditor.style.fontSize=Math.max(de,.9)+"em"}),this.textEditor.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(de){if(de.clipboardData){var we=de.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(we)),de.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){re.textEditDivClicked(re.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},oe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var re=this.getTextScale(),de=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),we=this.textElement.getBBox(),le={x:we.width*re,y:we.height*re};de.x-=le.x/2,de.y-=le.y/2,this.textEditor.style.top=de.y+"px",this.textEditor.style.left=de.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-de.x+"px",this.textEditor.style.fontSize=Math.max(16*re,12)+"px",this.textElement.style.display="none"}},oe.prototype.textEditDivClicked=function(re){this.text=re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},oe.prototype.select=function(){he.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},oe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),he.prototype.deselect.call(this)},oe.prototype.dblClick=function(re,de){he.prototype.dblClick.call(this,re,de),this.showTextEditor()},oe.prototype.setColor=function(re){this.textElement&&Xe.setAttributes(this.textElement,[["fill",re]]),this.color=re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(re)},oe.prototype.setFont=function(re){this.textElement&&Xe.setAttributes(this.textElement,[["font-family",re]]),this.fontFamily=re,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},oe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},oe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},he.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){var de=re;this.color=de.color,this.fontFamily=de.fontFamily,this.padding=de.padding,this.text=de.text,this.createVisual(),he.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,de){he.prototype.scale.call(this,re,de),this.setSize(),this.sizeText(),this.positionTextEditor()},oe.typeName="TextMarker",oe.title="Text marker",oe.icon='',oe}(He),An=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=we.defaultColor,le.lineWidth=we.defaultStrokeWidth,le.pixelRatio=we.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new Qe("Color",we.defaultColorSet,we.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new dt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!(!he.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.drawingImage)},oe.prototype.createVisual=function(){this.visual=Xe.createGroup(),this.drawingImage=Xe.createImage(),this.visual.appendChild(this.drawingImage);var re=Xe.createTransform();this.visual.transform.baseVal.appendItem(re),this.addMarkerVisualToContainer(this.visual)},oe.prototype.pointerDown=function(re,de){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(re.x,re.y),this.drawing=!0):he.prototype.pointerDown.call(this,re,de)},oe.prototype.manipulate=function(re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(re.x,re.y),this.canvasContext.stroke()):he.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){he.prototype.resize.call(this,re),Xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Xe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},oe.prototype.pointerUp=function(re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):he.prototype.pointerUp.call(this,re)},oe.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)},oe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),he.prototype.select.call(this)},oe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),he.prototype.deselect.call(this)},oe.prototype.finishCreation=function(){for(var re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),de=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],we=de[0],le=de[1],Ee=de[2],St=de[3],Ut=!1,It=0;It0&&(Ut=!0,ItSt&&(St=It),ht>Ee&&(Ee=ht));if(Ut){this.left=we/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Ee-we)/this.pixelRatio,this.height=(St-le)/this.pixelRatio;var Bn=document.createElement("canvas");Bn.width=Ee-we,Bn.height=St-le,Bn.getContext("2d").putImageData(this.canvasContext.getImageData(we,le,Ee-we,St-le),0,0),this.drawingImgUrl=Bn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},oe.prototype.setDrawingImage=function(){Xe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Xe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},oe.prototype.setColor=function(re){this.color=re,this.colorChanged(re)},oe.prototype.setLineWidth=function(re){this.lineWidth=re},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({drawingImgUrl:this.drawingImgUrl},he.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){this.createVisual(),he.prototype.restoreState.call(this,re),this.drawingImgUrl=re.drawingImgUrl,this.setDrawingImage()},oe.prototype.scale=function(re,de){he.prototype.scale.call(this,re,de),this.setDrawingImage()},oe.typeName="FreehandMarker",oe.title="Freehand marker",oe.icon='',oe}(He),We=function(he){function oe(re,de,we){var le=he.call(this,re,we||'')||this;return le.typeBoxes=[],le.currentType=de,le.setCurrentType=le.setCurrentType.bind(le),le}return Ve(oe,he),oe.prototype.getUi=function(){var re=this,de=document.createElement("div");de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2";for(var we=function(St){var Ut="both";switch(St){case 0:Ut="both";break;case 1:Ut="start";break;case 2:Ut="end";break;case 3:Ut="none"}var It=document.createElement("div");if(It.style.display="flex",It.style.flexGrow="2",It.style.alignItems="center",It.style.justifyContent="space-between",It.style.padding="5px",It.style.borderWidth="2px",It.style.borderStyle="solid",It.style.borderColor=Ut===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",It.addEventListener("click",function(){re.setCurrentType(Ut,It)}),de.appendChild(It),Ut==="both"||Ut==="start"){var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.innerHTML=` `,ht.style.marginLeft="5px",It.appendChild(ht)}var Bn=document.createElement("div");Bn.style.display="flex",Bn.style.alignItems="center",Bn.style.minHeight="20px",Bn.style.flexGrow="2";var Vt=document.createElement("hr");if(Vt.style.minWidth="20px",Vt.style.border="0px",Vt.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Vt.style.flexGrow="2",Bn.appendChild(Vt),It.appendChild(Bn),Ut==="both"||Ut==="end"){var un=document.createElement("div");un.style.display="flex",un.style.alignItems="center",un.style.minHeight="20px",un.innerHTML=` `,un.style.marginRight="5px",It.appendChild(un)}le.typeBoxes.push(It)},le=this,Ee=0;Ee<4;Ee++)we(Ee);return de},oe.prototype.setCurrentType=function(re,de){var we=this;this.currentType=re,this.typeBoxes.forEach(function(le){le.style.borderColor=le===de?we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},oe}(Je),Fe=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new We("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!(!he.prototype.ownsTarget.call(this,re)&&re!==this.arrow1&&re!==this.arrow2)},oe.prototype.getArrowPoints=function(re,de){var we=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return re-we/2+","+(de+le/2)+" "+re+","+(de-le/2)+" "+(re+we/2)+","+(de+le/2)},oe.prototype.createTips=function(){this.arrow1=Xe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Xe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Xe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Xe.createTransform()),this.visual.appendChild(this.arrow2)},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.state==="creating"&&this.createTips()},oe.prototype.adjustVisual=function(){if(he.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",Xe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Xe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var re=0;Math.abs(this.x1-this.x2)>.1&&(re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var de=this.arrow1.transform.baseVal.getItem(0);de.setRotate(re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(de,0);var we=this.arrow2.transform.baseVal.getItem(0);we.setRotate(re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(we,0)}},oe.prototype.setArrowType=function(re){this.arrowType=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({arrowType:this.arrowType},he.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){he.prototype.restoreState.call(this,re);var de=re;this.arrowType=de.arrowType,this.createTips(),this.adjustVisual()},oe.typeName="ArrowMarker",oe.title="Arrow marker",oe.icon='',oe}(Gt),Ot=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.fillColor=we.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Qe("Color",we.defaultColorSet,we.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return Ve(oe,he),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=he.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="CoverMarker",oe.title="Cover marker",oe.icon='',oe}(et),Fn=function(he){function oe(re,de,we,le){var Ee=he.call(this,re,le||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=de,Ee.currentOpacity=we,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return Ve(oe,he),oe.prototype.getUi=function(){var re=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",de.style.justifyContent="space-between",this.opacities.forEach(function(we){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=we===re.currentOpacity?re.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){re.setCurrentOpacity(we,le)}),de.appendChild(le);var Ee=document.createElement("div");Ee.innerText=100*we+"%",le.appendChild(Ee),re.opacityBoxes.push(le)}),de},oe.prototype.setCurrentOpacity=function(re,de){var we=this;this.currentOpacity=re,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===de?we.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},oe}(Je),fn=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=we.defaultHighlightColor,le.strokeWidth=0,le.opacity=we.defaultHighlightOpacity,le.fillPanel=new Qe("Color",we.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Fn("Opacity",we.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Ve(oe,he),oe.prototype.setOpacity=function(re){this.opacity=re,this.visual&&Xe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=he.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="HighlightMarker",oe.title="Highlight marker",oe.icon='',oe}(Ot),Ct='',$t='',on=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=we.defaultStrokeColor,le.bgColor=we.defaultFillColor,le.fontFamily=we.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new Qe("Text color",we.defaultColorSet,le.color,Ct),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Qe("Fill color",we.defaultColorSet,le.bgColor,$t),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Jt("Font",we.defaultFontFamilies,we.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Te,le.tipGrip.visual.transform.baseVal.appendItem(Xe.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return he.prototype.ownsTarget.call(this,re)||this.tipGrip.ownsTarget(re)||this.tip===re},oe.prototype.createTip=function(){Xe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Xe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},oe.prototype.pointerDown=function(re,de){this.state==="new"&&he.prototype.pointerDown.call(this,re,de),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(de)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):he.prototype.pointerDown.call(this,re,de)},oe.prototype.pointerUp=function(re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,he.prototype.pointerUp.call(this,re);else{var de=this.state==="creating";he.prototype.pointerUp.call(this,re),this.setTipPoints(de),this.positionTip()}},oe.prototype.manipulate=function(re){if(this.tipMoving){var de=this.unrotatePoint(re);this.tipPosition={x:de.x-this.manipulationStartLeft,y:de.y-this.manipulationStartTop},this.positionTip()}else he.prototype.manipulate.call(this,re)},oe.prototype.setBgColor=function(re){this.bgRectangle&&this.tip&&(Xe.setAttributes(this.bgRectangle,[["fill",re]]),Xe.setAttributes(this.tip,[["fill",re]])),this.bgColor=re,this.fillColorChanged(re)},oe.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},oe.prototype.setTipPoints=function(re){re===void 0&&(re=!1);var de=Math.min(this.height/2,15),we=this.height/5;re&&(this.tipPosition={x:de+we/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?le.1)){var re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),de=this.tip1.transform.baseVal.getItem(0);de.setRotate(re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(de,0);var we=this.tip2.transform.baseVal.getItem(0);we.setRotate(re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(we,0)}},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=he.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){he.prototype.restoreState.call(this,re),this.createTips(),this.adjustVisual()},oe.typeName="MeasurementMarker",oe.title="Measurement marker",oe.icon='',oe}(Gt),vt=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.strokePanel.colors=we.defaultColorSet,le.fillColor="transparent",le}return Ve(oe,he),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=he.prototype.getState.call(this);return re.typeName=oe.typeName,re},oe.typeName="EllipseFrameMarker",oe.title="Ellipse frame marker",oe.icon='',oe}(jn),pt=function(){function he(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),he.prototype.addUndoStep=function(oe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(oe)||(this.undoStack.push(oe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(oe)&&this.redoStack.splice(0,this.redoStack.length))},he.prototype.replaceLastUndoStep=function(oe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=oe)},he.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},he.prototype.undo=function(){if(this.undoStack.length>1){var oe=this.undoStack.pop();return oe!==void 0&&this.redoStack.push(oe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},he.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},he}(),bt=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=we.defaultColor,le.strokeWidth=we.defaultStrokeWidth,le.strokeDasharray=we.defaultStrokeDasharray,le.strokePanel=new Qe("Line color",we.defaultColorSet,we.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new dt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new $e("Line style",we.defaultStrokeDasharrays,we.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!(!he.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorCurve&&re!==this.visibleCurve&&!this.curveGrip.ownsTarget(re))},oe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},oe.prototype.createVisual=function(){this.visual=Xe.createGroup(),this.selectorCurve=Xe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Xe.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)},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=re.x,this.curveY=re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(de)&&(this.activeGrip=this.curveGrip,this._state="resize")},oe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Xe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Xe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Xe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},oe.prototype.setupControlBox=function(){he.prototype.setupControlBox.call(this),this.curveControlLine1=Xe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Xe.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)},oe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,he.prototype.addControlGrips.call(this)},oe.prototype.positionGrips=function(){he.prototype.positionGrips.call(this);var re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-re/2,this.curveY-re/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()))},oe.prototype.manipulate=function(re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+re.y-this.manipulationStartY),he.prototype.manipulate.call(this,re)},oe.prototype.resize=function(re){this.activeGrip===this.curveGrip&&(this.curveX=re.x,this.curveY=re.y),he.prototype.resize.call(this,re),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual()},oe.prototype.scale=function(re,de){this.curveX=this.curveX*re,this.curveY=this.curveY*de,he.prototype.scale.call(this,re,de)},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},he.prototype.getState.call(this));return re.typeName=oe.typeName,re},oe.prototype.restoreState=function(re){he.prototype.restoreState.call(this,re);var de=re;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.curveX=de.curveX,this.curveY=de.curveY,this.createVisual(),this.adjustVisual()},oe.typeName="CurveMarker",oe.title="Curve marker",oe.icon='',oe}(mt),Zt=function(he){function oe(re,de,we){var le=he.call(this,re,de,we)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=we.defaultColor,le.strokeWidth=we.defaultStrokeWidth,le.strokeDasharray=we.defaultStrokeDasharray,le.fillColor=we.defaultFillColor,le.textColor=we.defaultStrokeColor,le.fontFamily=we.defaultFontFamily,le.fontSize=we.defaultCaptionFontSize,le.captionText=we.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new Qe("Line color",ge(we.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Qe("Fill color",ge(we.defaultColorSet,["transparent"]),le.fillColor,$t),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new dt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new $e("Line style",we.defaultStrokeDasharrays,we.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Jt("Font",we.defaultFontFamilies,we.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Qe("Text color",we.defaultColorSet,le.textColor,Ct),le.textColorPanel.onColorChanged=le.setTextColor,le}return Ve(oe,he),oe.prototype.ownsTarget=function(re){return!(!he.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.frame&&re!==this.captionBg&&re!==this.captionElement)},oe.prototype.createVisual=function(){this.visual=Xe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Xe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Xe.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=Xe.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()},oe.prototype.setCaptionText=function(re){this.captionText=re,this.captionElement.textContent=this.captionText,this.sizeCaption()},oe.prototype.pointerDown=function(re,de){he.prototype.pointerDown.call(this,re,de),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},oe.prototype.manipulate=function(re){he.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},oe.prototype.resize=function(re){he.prototype.resize.call(this,re),this.setSize()},oe.prototype.sizeCaption=function(){var re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=re.width+2*this.PADDING,this.captionBoxHeight=re.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Xe.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')"]]),Xe.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')"]])},oe.prototype.showTextEditor=function(){var re=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(de){de.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(de){de.key==="Enter"&&re.finishTextEditing(re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){re.finishTextEditing(re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){re.finishTextEditing(re.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},oe.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"))},oe.prototype.finishTextEditing=function(re){this.setCaptionText(re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},oe.prototype.setFont=function(re){this.captionElement&&Xe.setAttributes(this.captionElement,[["font-family",re]]),this.fontFamily=re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},oe.prototype.setTextColor=function(re){this.captionElement&&Xe.setAttributes(this.captionElement,[["fill",re]]),this.textColor=re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},oe.prototype.setSize=function(){he.prototype.setSize.call(this),Xe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},oe.prototype.pointerUp=function(re){he.prototype.pointerUp.call(this,re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},oe.prototype.dblClick=function(re,de){he.prototype.dblClick.call(this,re,de),this.showTextEditor()},oe.prototype.setStrokeColor=function(re){this.strokeColor=re,this.frame&&Xe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.captionBg&&Xe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.frame&&Xe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.frame&&Xe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),oe.prototype.getState=function(){var re=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},he.prototype.getState.call(this));return re.typeName=this.typeName,re},oe.prototype.restoreState=function(re){var de=re;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.textColor=de.textColor,this.fontFamily=de.fontFamily,this.captionText=de.captionText,this.fontSize=de.fontSize,this.createVisual(),he.prototype.restoreState.call(this,re),this.setSize()},oe.prototype.scale=function(re,de){he.prototype.scale.call(this,re,de),this.setSize()},oe.typeName="CaptionFrameMarker",oe.title="Caption frame marker",oe.icon='',oe}(He),yt=function(){function he(oe,re){re===void 0&&(re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=oe,this.cancelable=re}return Object.defineProperty(he.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),he.prototype.preventDefault=function(){this._defaultPrevented=!0},he}(),zt=function(he){function oe(re,de,we){var le=he.call(this,re,!1)||this;return le.dataUrl=de,le.state=we,le}return Ve(oe,he),oe}(yt),Se=function(he){function oe(re,de,we){we===void 0&&(we=!1);var le=he.call(this,re,we)||this;return le.marker=de,le}return Ve(oe,he),oe}(yt),se=function(){function he(){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 he.prototype.addEventListener=function(oe,re){this[oe].push(re)},he.prototype.removeEventListener=function(oe,re){var de=this[oe].indexOf(re);de>-1&&this[oe].splice(de,1)},he}(),fe=function(){function he(oe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new At,this._isOpen=!1,this.undoRedoManager=new pt,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 se,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=he.instanceCounter++,this.styles=new nt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=oe,this.targetRoot=document.body,this.width=oe.clientWidth,this.height=oe.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(he.prototype,"ALL_MARKER_TYPES",{get:function(){return[Bt,An,Fe,gn,vt,jn,fn,on,Dt,Ot,Gt,bt,Zt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Bt,An,Fe,gn,jn,fn,on]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Bt,An,Fe,gn,fn]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(oe){var re=this;this._availableMarkerTypes.splice(0),oe.forEach(function(de){if(typeof de=="string"){var we=re.ALL_MARKER_TYPES.find(function(le){return le.typeName===de});we!==void 0&&re._availableMarkerTypes.push(we)}else re._availableMarkerTypes.push(de)})},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(oe){this._zoomLevel=oe,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(he.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),he.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},he.prototype.show=function(){var oe=this;this.styles.styleSheetRoot===void 0&&tt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=tt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(re){return re(new yt(oe))})},he.prototype.render=function(){return ke(this,void 0,void 0,function(){var oe;return Re(this,function(re){switch(re.label){case 0:return this.setCurrentMarker(),(oe=new ct).naturalSize=this.renderAtNaturalSize,oe.imageType=this.renderImageType,oe.imageQuality=this.renderImageQuality,oe.markersOnly=this.renderMarkersOnly,oe.width=this.renderWidth,oe.height=this.renderHeight,[4,oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return re.sent(),[4,oe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,re.sent()]}})})},he.prototype.close=function(oe){var re=this;if(oe===void 0&&(oe=!1),this.isOpen){var de=!1;oe||this.eventListeners.beforeclose.forEach(function(we){var le=new yt(re,!0);we(le),le.defaultPrevented&&(de=!0)}),de||(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(we){return we(new yt(re))}),this.detachEvents(),this._isOpen=!1)}},he.prototype.addMarkersToToolbar=function(){for(var oe,re=[],de=0;dethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*oe:this.editorCanvas.clientWidth,de=re',oe.title="Powered by marker.js",oe.style.display="grid",oe.style.alignItems="center",oe.style.justifyItems="center",oe.style.padding="3px",oe.style.width="20px",oe.style.height="20px",this.logoUI.appendChild(oe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},he.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")},he.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"},he.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},he.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 oe=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=oe+"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 ut(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-1&&this.markers.splice(this.markers.indexOf(oe),1),oe.dispose()},he.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())},he.prototype.toolbarButtonClicked=function(oe,re){if(oe==="marker"&&re!==void 0)this.createNewMarker(re);else if(oe==="action")switch(re){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()}},he.prototype.deleteSelectedMarker=function(){var oe=this;if(this._currentMarker!==void 0){var re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(we){var le=new Se(oe,oe._currentMarker,!0);we(le),le.defaultPrevented&&(re=!0)}),!re){var de=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(we){return we(new Se(oe,de))})}}},he.prototype.clear=function(){var oe=this,re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var St=new Se(oe,void 0,!0);Ee(St),St.defaultPrevented&&(re=!0)}),!re)){this.setCurrentMarker();for(var de=function(Ee){var St=we.markers[Ee];we.setCurrentMarker(we.markers[Ee]),we._currentMarker.dispose(),we.markerImage.removeChild(we._currentMarker.container),we.markers.splice(we.markers.indexOf(we._currentMarker),1),we.eventListeners.markerdelete.forEach(function(Ut){return Ut(new Se(oe,St))})},we=this,le=this.markers.length-1;le>=0;le--)de(le);this.addUndoStep()}},Object.defineProperty(he.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),he.prototype.showNotesEditor=function(){var oe;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=(oe=this._currentMarker.notes)!==null&&oe!==void 0?oe:"",this.overlayContainer.appendChild(this.notesArea))},he.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)},he.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},he.prototype.addUndoStep=function(){var oe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var re=this.getState(),de=this.undoRedoManager.getLastUndoStep();if(!de||de.width===re.width&&de.height===re.height){var we=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(re),we1&&this.panTo({x:oe.clientX,y:oe.clientY}))},he.prototype.onPointerUp=function(oe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(oe.clientX,oe.clientY)),this.isDragging=!1,this.addUndoStep()},he.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},he.prototype.onKeyUp=function(oe){this._currentMarker===void 0||this.notesArea!==void 0||oe.key!=="Delete"&&oe.key!=="Backspace"||this.deleteSelectedMarker()},he.prototype.clientToLocalCoordinates=function(oe,re){var de=this.markerImage.getBoundingClientRect();return{x:(oe-de.left)/this.zoomLevel,y:(re-de.top)/this.zoomLevel}},he.prototype.onWindowResize=function(){this.positionUI()},he.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var oe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=oe+"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()},he.prototype.addLicenseKey=function(oe){Ce.addKey(oe)},he.prototype.addEventListener=function(oe,re){this.eventListeners.addEventListener(oe,re)},he.prototype.removeEventListener=function(oe,re){this.eventListeners.removeEventListener(oe,re)},he.prototype.renderState=function(oe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(oe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(he.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),he.prototype.focus=function(){var oe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(re){return re(new yt(oe))}))},he.prototype.blur=function(){var oe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(re){return re(new yt(oe))}))},he.instanceCounter=0,he}(),Ue=ce(97013),Be=ce(31735),gt=(he,oe,re)=>new Promise((de,we)=>{var le=Ut=>{try{St(re.next(Ut))}catch(It){we(It)}},Ee=Ut=>{try{St(re.throw(Ut))}catch(It){we(It)}},St=Ut=>Ut.done?de(Ut.value):Promise.resolve(Ut.value).then(le,Ee);St((re=re.apply(he,oe)).next())}),sn=({data:he,className:oe,fullWidth:re,style:de={},onClose:we,onOk:le,showFullTools:Ee,noAssociationId:St})=>{const Ut=(0,te.useRef)(null),It=(0,te.useRef)(null),ht=(0,te.useRef)(null),Bn=(0,te.useRef)(null),[Vt,un]=(0,te.useState)(!1),[In,or]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(ht.current||(ht.current=document.createElement("style"),document.head.appendChild(ht.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),ht.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&vn()):(document.body.removeAttribute("data-custom"),ht.current&&(document.head.removeChild(ht.current),ht.current=null)),()=>{document.body.removeAttribute("data-custom"),ht.current&&(document.head.removeChild(ht.current),ht.current=null)}),[he==null?void 0:he.visible]);const vn=()=>gt(void 0,null,function*(){un(!0),or("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Xn=yield(0,Be.ZJ)(he==null?void 0:he.src);Ut.current.src="",Ut.current.src=Xn,Ut.current.onload=function(){yr()},un(!1),or("")}),fr=Xn=>gt(void 0,null,function*(){un(!0),or("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Mr=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:Xn.dataUrl}});Mr!=null&&Mr.id&&!St?(yield(0,Ue.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:Mr==null?void 0:Mr.id,settings:JSON.stringify(Xn.state)}})).status===0&&le():Mr!=null&&Mr.id&&le(Mr),un(!1),or("")}),ur=()=>{const Xn=document.querySelector('a[href="https://markerjs.com/"]');Xn&&Xn.parentNode&&(Xn.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(Kr=>{const Er=document.querySelector(Kr.name);Er&&Er.setAttribute("title",Kr.title)})},yr=()=>{It.current=new fe(Ut.current),It.current.targetRoot=Bn.current,It.current.addEventListener("render",fr),It.current.addEventListener("beforeclose",we),Ee&&(It.current.availableMarkerTypes=It.current.ALL_MARKER_TYPES,It.current.uiStyleSettings.redoButtonVisible=!0,It.current.uiStyleSettings.notesButtonVisible=!0,It.current.uiStyleSettings.zoomButtonVisible=!0,It.current.uiStyleSettings.zoomOutButtonVisible=!0,It.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=It.current.uiStyleSettings,It.current.show(),he!=null&&he.snapshotData&&It.current.restoreState(he.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ur()},300)};return te.createElement(te.Fragment,null,(he==null?void 0:he.visible)&&te.createElement(_e.Z,{spinning:Vt,tip:In,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:Bn,className:Ye()(Ke.imageDimensions,oe,re?Ke.fullWidth:""),style:de},te.createElement("img",{className:Ke.img,ref:Ut}))))}},50047:function(xn,wt,ce){"use strict";var te=ce(59301),Ke=ce(77019),Me=ce(5269),Ye=ce(20554),_e=ce(7939),ve=ce(59944),Ve=ce(40862),ke=ce(48136),Re=ce(59301);const ge=(0,te.forwardRef)(({callback:Xe,showSaveButton:Ce,value:ct=""},tt)=>{const nt=(0,te.useRef)(),Ze=[{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 "}]}]}],Le=[{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}`}]}]}],ut=Qe=>{nt.current.setValue(nt.current.getValue()+" "+Qe.value+" ")},Ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Re.createElement(Ke.Z,{className:Ve.Z.lists,gutter:[10,10]},Ze.map((Qe,xe)=>Re.createElement(Me.Z,{flex:"110px",className:Ve.Z.item},Re.createElement("div",null,Re.createElement(ve.Z,{value:`$$${Qe.value}$$`}),Qe.name),Re.createElement("div",{className:Ve.Z.children},Qe.children.map((Ne,Te)=>Re.createElement("div",{key:Te},Re.createElement("h1",null,Ne.name),Re.createElement(Ke.Z,{gutter:[10,10]},Ne.data.map((at,He)=>Re.createElement(Me.Z,{key:He,onClick:()=>ut(at),className:Ve.Z.diamond},Re.createElement(ve.Z,{value:"`$$"+at.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Re.createElement(Ke.Z,{className:Ve.Z.lists,gutter:[10,10]},Le.map((Qe,xe)=>Re.createElement(Me.Z,{flex:"110px",className:Ve.Z.item},Re.createElement("div",null,Re.createElement(ve.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),Re.createElement("div",{className:Ve.Z.children},Qe.children.map((Ne,Te)=>Re.createElement("div",{key:Te},Ne.name&&Re.createElement("h1",null,Ne.name),Re.createElement(Ke.Z,{gutter:[10,10]},Ne.data.map((at,He)=>Re.createElement(Me.Z,{key:He,onClick:()=>ut(at),className:Ve.Z.diamond},Re.createElement(ve.Z,{value:"`$$"+at.value+"$$`"}))))))))))}],Je=()=>{var Qe=document.createElement("div");Qe.innerHTML=nt.current.getValue();var xe=Qe.innerText;return Xe&&Xe(xe),xe};return(0,te.useImperativeHandle)(tt,()=>({getData:Je})),Re.createElement("div",{className:Ve.Z.mathWrap},Re.createElement(Ye.default,{defaultActiveKey:"1",items:Ge}),Re.createElement("math-field",{locale:"zh_cn",className:Ve.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},ct||""),Ce&&Re.createElement("div",{className:Ve.Z.button},Re.createElement(_e.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});wt.Z=ge},59243:function(xn,wt,ce){"use strict";var te=ce(59301),Ke=ce(93314),Me=ce(7939),Ye=Object.defineProperty,_e=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ge=(tt,nt,Ze)=>nt in tt?Ye(tt,nt,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):tt[nt]=Ze,Xe=(tt,nt)=>{for(var Ze in nt||(nt={}))ke.call(nt,Ze)&&ge(tt,Ze,nt[Ze]);if(Ve)for(var Ze of Ve(nt))Re.call(nt,Ze)&&ge(tt,Ze,nt[Ze]);return tt},Ce=(tt,nt)=>_e(tt,ve(nt));const ct=({img:tt,buttonProps:nt={},styles:Ze={},customText:Le,ButtonText:ut,ButtonClick:Ge,Buttonclass:Je,ButtonTwo:Qe,imgStyles:xe,loading:Ne=!1,className:Te=""})=>te.createElement("section",{className:`tc animated fadeIn ${Te}`,style:Xe({color:"#999",margin:"100px auto",visibility:Ne?"hidden":"visible"},Ze)},te.createElement("img",{src:tt||Ke,style:Ce(Xe({},xe),{pointerEvents:"none",userSelect:"none"})}),te.createElement("p",{className:"mt20 font14"},Le||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ut&&te.createElement(Me.ZP,Xe({className:Je,onClick:Ge},nt),ut),Qe&&Qe);wt.Z=ct},47199:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Je}});var te=ce(59301),Ke={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Me=ce(7939),Ye=ce(70557),_e=ce(58478),ve=ce(25399),Ve=ce(31735),ke=ce(22167),Re=ce(59243),ge=ce(26869),Xe=ce(38609),Ce=ce(59301),ct=Object.defineProperty,tt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Le=(Qe,xe,Ne)=>xe in Qe?ct(Qe,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Qe[xe]=Ne,ut=(Qe,xe)=>{for(var Ne in xe||(xe={}))nt.call(xe,Ne)&&Le(Qe,Ne,xe[Ne]);if(tt)for(var Ne of tt(xe))Ze.call(xe,Ne)&&Le(Qe,Ne,xe[Ne]);return Qe},Ge=(Qe,xe,Ne)=>new Promise((Te,at)=>{var He=$e=>{try{dt(Ne.next($e))}catch(Bt){at(Bt)}},et=$e=>{try{dt(Ne.throw($e))}catch(Bt){at(Bt)}},dt=$e=>$e.done?Te($e.value):Promise.resolve($e.value).then(He,et);dt((Ne=Ne.apply(Qe,xe)).next())}),Je=({editOffice:Qe="view",data:xe,issaver:Ne,onSaver:Te,theme:at,type:He,filename:et,monacoEditor:dt,className:$e,style:Bt,close:At,onClose:mt,hasMask:Gt,disabledDownload:Jt,onImgDimensions:gn,showNodata:An,recordInfo:We})=>{const[Fe,Ot]=(0,te.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Fn,fn]=(0,te.useState)(""),[Ct,$t]=(0,te.useState)(),on=window.ENV==="build"?"/react/build":"",jn=location.host.startsWith("localhost")?ge.Z.PROXY_SERVER:ge.Z.API_SERVER,vt=10*(1024*1024),pt=(0,te.useRef)();xe!=null&&xe.startsWith("/api")&&He!=="txt"&&(xe=ge.Z.API_SERVER+xe);const bt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();et&&dt&&(dt.filename=et),(0,te.useEffect)(()=>{var se,fe;const Ue=(fe=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:fe.split(";");Ue==null||Ue.map(Be=>{let gt=Be.split("=");gt[0]==="_educoder_session"&&fn(gt[1])})},[]),(0,te.useEffect)(()=>{He==="office"&&(xe.indexOf("bigfilescdn.")>-1||xe.indexOf("bigfiles1")>-1?$t({url:xe,fileType:bt(xe),model:xe.indexOf("model=edit")?"edit":"view"}):yt())},[He,xe]);function Zt(se){return Ge(this,null,function*(){se.data.type==="pdfdata"&&(Te(se.data.data),window.removeEventListener("message",Zt,!1)),console.log("mess---:",se.data)})}const yt=()=>Ge(void 0,null,function*(){console.log("data:",xe);let se=xe;xe.startsWith("http")||(se=location.origin+se);let fe=new URL(se).pathname.split("/").pop();const Ue=yield(0,ke.gJ)({attachment_id:fe});Ue.url=jn+Ue.url,$t(Ue)}),zt=()=>{if(xe.startsWith("http")||xe.startsWith("blob:")){Se();return}(0,Ve.Sv)(et||"educoder",xe,et)},Se=()=>{We&&(0,Xe.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,Ve.Nd)(et||"educoder",decodeURIComponent(xe))};return Ce.createElement("div",{style:ut({},Bt||{}),className:`${Gt&&Ke.bgBlack} ${He?Ke.wrp:"hide"}`},At&&Ce.createElement("div",{className:Ke.close,ref:pt},!!gn&&Ce.createElement(ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>pt.current},Ce.createElement("span",{onClick:()=>{mt(),gn()}},Ce.createElement("i",{className:"icon-yulanpizhu"}))),!Jt&&Ce.createElement(ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>pt.current},Ce.createElement("span",{onClick:Se},Ce.createElement("i",{className:"icon-quxiaozhiding"}))),Ne&&Ce.createElement(ve.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>pt.current},Ce.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",Zt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ce.createElement("i",{className:"icon-baocun"}))),Ce.createElement(ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>pt.current},Ce.createElement("span",{className:"",onClick:()=>{mt()}},Ce.createElement("i",{className:"icon-guanbi1"})))),Ce.createElement("div",{className:`${Ke[$e]} ${$e} ${Ke.monaco} ${He==="txt"?"show":"hide"}`},He==="txt"&&Ce.createElement(Ce.Fragment,null,Ce.createElement(_e.ZP,ut({},dt)))),He==="audio"&&Ce.createElement("audio",{src:`${(xe==null?void 0:xe.indexOf("http://"))>-1||(xe==null?void 0:xe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${xe}`,autoPlay:!0}),He==="video"&&Ce.createElement(Ce.Fragment,null,(xe==null?void 0:xe.indexOf("http"))>-1?Ce.createElement("video",{controls:!0,src:`${xe}`,autoPlay:!0}):Ce.createElement("video",{controls:!0,src:`data:video/mp4;base64,${xe}`,autoPlay:!0})),He==="office"&&Ct&&Ce.createElement("iframe",{src:`${on}/office.html?key=${Ct.key}&url=${btoa(Ct.url)}&callbackUrl=${jn+(Ct.callbackUrl||"")}&fileType=${Ct.fileType}&title=${Ct.title||""}&model=${Qe}&officeServer=${ge.Z.ONLYOFFICE}&disabledDownload=${!!Jt}`}),He==="html"&&Ce.createElement("iframe",{src:xe+"&disposition=inline"}),He==="pdf"&&Ne&&Ce.createElement("iframe",{id:"pdfiframe",src:`${on}/js/pdfview/index.html?filename=${et||"educoder.pdf"}&url=${encodeURIComponent(xe)}&disabledDownload=${!!Jt}&model=${Qe}`}),He==="pdf"&&!Ne&&Ce.createElement("embed",{className:Ke.embed,src:xe+"#toolbar=0&statusbar=0&navpanes=0&scrollbars=0"}),He==="image"&&Ce.createElement("img",{src:`${(xe==null?void 0:xe.indexOf("http://"))>-1||(xe==null?void 0:xe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${xe}`}),(He==="other"||He==="download")&&Ce.createElement(Ce.Fragment,null,An?Ce.createElement(Re.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ce.createElement(Me.ZP,{icon:Ce.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:zt,disabled:Jt},"\u4E0B\u8F7D")}):Ce.createElement(Me.ZP,{type:"primary",size:"middle",onClick:zt,disabled:Jt},Ce.createElement(Ye.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),He==="flowChart"&&Ce.createElement("div",{className:"embed"},Ce.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${xe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},59944:function(xn,wt,ce){"use strict";ce.d(wt,{z:function(){return dt},Z:function(){return $e}});var te=ce(59301),Ke=ce(54196),Me=ce(58489),Ye=ce(64018),_e=ce(80360),ve=ce(26869),Ve=ce(31735),ke=ce(15342),Re=ce(44104),ge=ce(7939),Xe=ce(1012),Ce=ce(47199),ct=ce(59301),nt=({html:Bt})=>{const At=(0,te.useRef)(null),mt=(0,te.useRef)(null),Gt=`.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,te.useEffect)(()=>{const Jt=At.current.attachShadow({mode:"open"});mt.current=document.createElement("div"),mt.current.className="markdown-body",mt.current.innerHTML=Bt,Jt.appendChild(mt.current);const gn=document.createElement("style");return gn.textContent=Gt,Jt.appendChild(gn),()=>{Jt.innerHTML=""}},[]),(0,te.useEffect)(()=>{mt.current&&(mt.current.innerHTML=Bt)},[Bt]),ct.createElement("div",{ref:At})};function Ze(Bt){const At=["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"],mt=new RegExp(`\\b(${At.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Bt.replace(mt,"").trim()}var Le={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ut=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,xe=(Bt,At,mt)=>At in Bt?ut(Bt,At,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Bt[At]=mt,Ne=(Bt,At)=>{for(var mt in At||(At={}))Je.call(At,mt)&&xe(Bt,mt,At[mt]);if(Ge)for(var mt of Ge(At))Qe.call(At,mt)&&xe(Bt,mt,At[mt]);return Bt};const Te="@\u2581\u2581@",at="@\u2581@",He=/]*>/g;function et(Bt){let At=document.createElement("div");return At.innerHTML=Bt,At.childNodes.length===0?"":At.childNodes[0].nodeValue}const dt=(Bt,At)=>{Bt=Bt||"";const mt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Jt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,gn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return At?Bt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(mt,(An,We,Fe,Ot,Fn,fn,Ct)=>{const $t=We||Ot||fn,on=Fe||Fn||Ct||"?";return ve.Z.API_SERVER+"/api/attachments/"+$t+on+"&t="+(0,Ve.Jn)($t,Date.now())+(An.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Bt=Bt.replace(gn,(An,We,Fe,Ot,Fn,fn,Ct)=>{const $t=We||Ot||fn,on=Fe||Fn||Ct||"?";return ve.Z.API_SERVER+"/attachments/download/"+$t+on+"&t="+(0,Ve.Jn)($t,Date.now())+(An.indexOf(")")>-1?")":"&")}).replace(mt,(An,We,Fe,Ot,Fn,fn,Ct)=>{const $t=We||Ot||fn,on=Fe||Fn||Ct||"?";return ve.Z.API_SERVER+"/api/attachments/"+$t+on+"&t="+(0,Ve.Jn)($t,Date.now())+(An.indexOf(")")>-1?")":"&")}).replace(Gt,(An,We,Fe,Ot,Fn)=>{const fn=We||Ot,Ct=Fe||Fn||"";return'"'+ve.Z.API_SERVER+"/api/attachments/"+fn+Ct+fn+Ct+"&t="+(0,Ve.Jn)(fn,Date.now())}).replace(Jt,(An,We,Fe,Ot,Fn)=>{const fn=We||Ot,Ct=Fe||Fn||"";return"("+ve.Z.API_SERVER+"/files/uploads/"+fn+Ct+fn+Ct+"&t="+(0,Ve.Jn)(fn,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,` `),Bt)};var $e=({value:Bt="",edit:At=!1,className:mt,showTextOnly:Gt,showLines:Jt,style:gn={},stylesPrev:An={},highlightKeywords:We,showProgramFill:Fe,isProgramFill:Ot,disabledFill:Fn=!1,programFillValue:fn,openEditor:Ct=()=>{},onFillChange:$t=Dt=>{},onFillBlur:on=()=>{},onFillFocus:jn=()=>{}})=>{let Dt=Ze(String(Bt||""));const vt=(0,te.useRef)(),pt=(0,te.useRef)(),[bt,Zt]=(0,te.useState)(""),[yt,zt]=(0,te.useState)("office"),[Se,se]=(0,te.useState)([]),fe=(0,te.useRef)("a"+(0,Xe.Z)()),Ue={},Be=ht=>//i.test(ht||""),gt=(ht,Bn,Vt)=>{const un=document.createElement(ht===at?"input":"textarea");un.style.width="100%",un.style.height=ht===at?"40px":"151px",un.rows=5,un.spellcheck=!1,un.name="edu-program-fill",un.placeholder="\u8BF7\u8F93\u5165",un.dataset.id=Bn;const In=Object.keys(Ue).length;return Ue[In]=un,`${un.outerHTML}`};function Mt(ht){return ht=ht.replace(/!\[.*?\]\(.*?\)/g,""),ht=ht.replace(/\[.*?\]\(.*?\)/g,""),ht=ht.replace(new RegExp("","gs"),""),ht=ht.replace(//g,""),ht=ht.replace(//g,""),ht=ht.replace(new RegExp(".*?<\\/video>","gs"),""),ht=ht.replace(new RegExp(".*?<\\/audio>","gs"),""),ht=ht.replace(new RegExp(".*?<\\/style>","gs"),""),ht=ht.replace(new RegExp(".*?<\\/script>","gs"),""),ht}const sn=ht=>!Gt&&Be(Dt)?ht:ht.replace(/([\s\S]+?)<\/style>/gim,function(Bn,Vt){let un=Vt.replace(/(\n|\r)/g,"").split("}"),In=[];return un.map(or=>{or!=""&&In.push(`.${fe.current} ${or}`)}),``}),he=(0,te.useMemo)(()=>{try{const un=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,In=/\"\/api\/attachments\/|\"\/attachments\/download\//g,or=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,vn=/\(\/attachments\/download\//g;Dt=Dt.replace(vn,"("+ve.Z.API_SERVER+"/attachments/download/").replace(un,"("+ve.Z.API_SERVER+"/api/attachments/").replace(In,'"'+ve.Z.API_SERVER+"/api/attachments/").replace(or,'"'+ve.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,` `),vt.current.style.display="none"}catch(un){}if(Fe){let un=-1;return Dt=Dt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(In,or,vn){var fr;return++un,gt(In,un,(fr=fn==null?void 0:fn[un])==null?void 0:fr.value.replaceAll("<","<").replaceAll(">",">"))}),`
${sn(Dt||"")}
`}let ht=sn(Dt);ht=(0,Me.ZP)(ht);const Bn=(0,Me.ez)();Dt.match(/\[TOC\]/)&&(ht=ht.replace("

[TOC]

",(0,Me.Qv)()),(0,Me.Iy)()),ht=ht.replace(/(__special_katext_id_\d+__)/g,(un,In)=>{const{type:or,expression:vn}=Bn[In];return(0,ke.renderToString)(et(vn)||"",{displayMode:or==="block",throwOnError:!1,output:"html"})}),ht=ht.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Me.AL)();const Vt=document.createElement("div");if(Vt.innerHTML=ht,Gt)return Vt.innerText;if(We){const un=We.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return we(Vt,un),Vt.innerHTML}return setTimeout(()=>St(),500),Vt.innerHTML},[Dt,We]);(0,te.useEffect)(()=>{le.current&&le.current.querySelectorAll(["input","textarea"]).forEach(Bn=>{Bn.oninput=oe,Bn.onblur=re,Bn.onfocus=de})},[Se]),(0,te.useEffect)(()=>{var ht,Bn,Vt,un,In;if(fn!=null&&fn.length)try{const or=le.current.querySelectorAll(".edu-program-fill-score"),vn=le.current.querySelectorAll('[name="edu-program-fill"]');for(const[fr,ur]of vn.entries())ur.value=((ht=fn==null?void 0:fn[fr])==null?void 0:ht.value)||"",((Bn=fn==null?void 0:fn[fr])==null?void 0:Bn.type)==="warning"?ur.className="program-fill-warning":((Vt=fn==null?void 0:fn[fr])==null?void 0:Vt.type)==="success"?ur.className="program-fill-success":ur.className="";for(const[fr,ur]of or.entries())ur.innerHTML=(un=fn==null?void 0:fn[fr])!=null&&un.score?`${(In=fn==null?void 0:fn[fr])==null?void 0:In.score}\u5206`:"";se(fn)}catch(or){console.log(or,"error")}},[fn]);const oe=ht=>{Se[ht.target.dataset.id]=Se[ht.target.dataset.id]||{},Se[ht.target.dataset.id].value=ht.target.value,se([...Se]),$t(Se,ht.target.dataset.id)},re=ht=>{Se[ht.target.dataset.id]=Se[ht.target.dataset.id]||{},Se[ht.target.dataset.id].value=ht.target.value,se([...Se]),on(Se,ht.target.dataset.id)},de=ht=>{Se[ht.target.dataset.id]=Se[ht.target.dataset.id]||{},Se[ht.target.dataset.id].value=ht.target.value,se([...Se]),jn(Se,ht.target.dataset.id)};function we(ht,Bn){return ht.childNodes.forEach(Vt=>{var un;if(Vt.childNodes.length>0)we(Vt,Bn);else if(Vt.nodeName!=="IMG")if(Vt.innerHTML)Vt.innerHTML=(un=Vt.innerHTML)==null?void 0:un.replace(new RegExp(Bn,"gi"),'$&');else{const In=document.createElement("span");In.innerHTML=Vt.textContent.replace(new RegExp(Bn,"gi"),'$&'),Vt.replaceWith(In)}})}const le=(0,te.useRef)();Me.jb.WebkitLineClamp=Jt,Jt&&(gn=Ne(Ne({},gn),Me.jb));function Ee(ht){let Bn=ht.target;if(Bn.tagName.toUpperCase()==="A"){let Vt=Bn.getAttribute("href");if(Vt.indexOf("office")>-1)ht.preventDefault(),Zt(Vt),zt("office");else if(Vt.indexOf("application/pdf")>-1)ht.preventDefault(),Zt(Vt),zt("pdf");else if(Vt.indexOf("text/html")>-1)ht.preventDefault(),Zt(Vt),zt("html");else if(Vt.startsWith("#")){ht.preventDefault();let un=document.getElementById(Vt.replace("#",""));un&&un.scrollIntoView(!0)}}}const St=()=>{var ht;const Bn=(ht=le.current)==null?void 0:ht.querySelectorAll("video");Bn==null||Bn.forEach(Vt=>{if(Vt.oncontextmenu=()=>!1,Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(_e.ZP.isSupported()){var un=new _e.ZP;un.loadSource(Vt.src),un.attachMedia(Vt)}}})};(0,te.useEffect)(()=>{if(le.current&&he&&he.match(He)&&window.PR.prettyPrint(),le.current)return le.current.addEventListener("click",Ee),()=>{var ht;(ht=le.current)==null||ht.removeEventListener("click",Ee),(0,Me.AL)(),(0,Me.Iy)()}},[he,le.current,Ee]);const Ut=ht=>{ht.target.nodeName==="IMG"&&ht.target.className.indexOf("draw-flowchart")>-1?(vt.current.style.zIndex=1,vt.current.style.display="flex",vt.current.style.width=ht.target.clientWidth+"px",vt.current.style.height=ht.target.clientHeight+"px",vt.current.style.top=ht.target.offsetTop+"px",vt.current.style.left=ht.target.offsetLeft+"px",ht.target.id&&(pt.current=ht.target.id)):vt.current.style.display="none"},It=()=>{vt.current.style.display="none"};return(0,te.useEffect)(()=>{var ht;const Bn=Vt=>{Vt.preventDefault(),Vt.clipboardData.setData("text",window.getSelection().toString())};return(ht=le.current)==null||ht.addEventListener("copy",Bn),()=>{var Vt;(Vt=le.current)==null||Vt.removeEventListener("copy",Bn)}},[le.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:It},Gt&&te.createElement("div",{ref:le,className:`${Le.mdBody} `},he),!Gt&&!Be(he)&&te.createElement("div",{ref:le,style:Ne({},gn),onMouseOver:Ut,className:`${mt||""} ${Fn?"disabled-fill":""} markdown-body ${Le.mdBody} ${fe.current}`,dangerouslySetInnerHTML:{__html:he}}),!Gt&&Be(he)&&te.createElement(nt,{html:he}),te.createElement("div",{ref:vt,className:`${Le.button} ${At?"":Le.previewFlowChart}`},te.createElement(Re.Z,null,te.createElement(ge.ZP,{onClick:()=>{At?Ct(pt.current):(Zt(pt.current),zt("flowChart"))}},At?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(Ce.Z,{close:!0,data:bt,type:bt!=null&&bt.length?yt:"",style:Ne({},An),onClose:()=>Zt("")}))}},76906:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Bt}});var te=ce(59301),Ke=ce(58106),Me=ce(62957),Ye=ce(28284),_e=ce(6767),ve=ce(29787),Ve=ce(18287),ke=ce(77019),Re=ce(5269),ge=ce(25399),Xe=ce(37568),Ce={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},ct=ce(26718),tt=ce(47226),nt=ce(59243),Ze=ce(18606),Le=Object.defineProperty,ut=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ne=(At,mt,Gt)=>mt in At?Le(At,mt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):At[mt]=Gt,Te=(At,mt)=>{for(var Gt in mt||(mt={}))Qe.call(mt,Gt)&&Ne(At,Gt,mt[Gt]);if(Je)for(var Gt of Je(mt))xe.call(mt,Gt)&&Ne(At,Gt,mt[Gt]);return At},at=(At,mt)=>ut(At,Ge(mt)),He=(At,mt)=>{var Gt={};for(var Jt in At)Qe.call(At,Jt)&&mt.indexOf(Jt)<0&&(Gt[Jt]=At[Jt]);if(At!=null&&Je)for(var Jt of Je(At))mt.indexOf(Jt)<0&&xe.call(At,Jt)&&(Gt[Jt]=At[Jt]);return Gt},et=(At,mt,Gt)=>new Promise((Jt,gn)=>{var An=Ot=>{try{Fe(Gt.next(Ot))}catch(Fn){gn(Fn)}},We=Ot=>{try{Fe(Gt.throw(Ot))}catch(Fn){gn(Fn)}},Fe=Ot=>Ot.done?Jt(Ot.value):Promise.resolve(Ot.value).then(An,We);Fe((Gt=Gt.apply(At,mt)).next())});const dt=(At=[])=>At==null?void 0:At.map(mt=>at(Te({},mt),{title:(mt==null?void 0:mt.value)||"",key:mt==null?void 0:mt.id,isLeaf:!0})),$e=At=>{var mt=At,{user:Gt,children:Jt,isShowComponent:gn=!0,ModalProps:An={},onDataSelect:We}=mt,Fe=He(mt,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Ot,Fn]=Me.default.useModal(),[fn]=Ye.default.useForm(),[Ct,$t]=(0,te.useState)([]),[on,jn]=(0,te.useState)(!1),[Dt,vt]=(0,te.useState)(!1),[,pt,bt,Zt]=(0,ct.U)(tt.qE,{page:1,limit:9999}),[,,yt]=(0,ct.U)(tt.V8,{}),[,,zt]=(0,ct.U)(tt.B$,{}),[,,Se]=(0,ct.U)(tt.DH,{}),[,,se]=(0,ct.U)(tt.bJ,{}),fe=()=>{jn(!1),fn.resetFields(),vt(!1)},Ue=gt=>et(void 0,null,function*(){const{node:Mt,dragNode:sn,event:he}=gt,oe=gt.node.pos.split("-"),re=gt.dropPosition-Number(oe[oe.length-1]);if(re==0){_e.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(re==1&&(sn==null?void 0:sn.item_index)==(Mt==null?void 0:Mt.item_index)+1){_e.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const de=yield se({id:sn==null?void 0:sn.key,position:re==-1?1:(sn==null?void 0:sn.item_index)>(Mt==null?void 0:Mt.item_index)?(Mt==null?void 0:Mt.item_index)+1:Mt==null?void 0:Mt.item_index});(de==null?void 0:de.status)===0&&(_e.ZP.success("\u79FB\u52A8\u6210\u529F"),bt({},!0))}),Be=gt=>et(void 0,null,function*(){let Mt={};Dt?Mt=yield zt(Te({},gt)):Mt=yield Se(Te({},gt)),(Mt==null?void 0:Mt.status)==0&&(_e.ZP.success((Mt==null?void 0:Mt.message)||(Dt?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),bt({},!0),fe())});return(0,te.useEffect)(()=>{An!=null&&An.open&&bt({},!0)},[An==null?void 0:An.open]),(0,te.useEffect)(()=>{var gt;$t(dt((gt=Zt==null?void 0:Zt.data)==null?void 0:gt.list))},[Zt]),gn?te.createElement(te.Fragment,null,Fn,Jt,te.createElement(Me.default,Te({},Te({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},An)),te.createElement(ve.Z,{spinning:pt},(Ct==null?void 0:Ct.length)>0?te.createElement(te.Fragment,null,te.createElement(Ve.default.DirectoryTree,{height:500,className:Ce.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:We,treeData:Ct,onDrop:Ue,titleRender:gt=>te.createElement(te.Fragment,null,te.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},gt==null?void 0:gt.title),te.createElement("div",{className:`${Ce.EditDom}`},te.createElement(ke.Z,{wrap:!1,align:"middle",gutter:16},te.createElement(Re.Z,null,te.createElement(ge.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},te.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Ce.currentPrimary}`}))),te.createElement(Re.Z,null,te.createElement(ge.Z,{title:"\u7F16\u8F91"},te.createElement("i",{className:`iconfont icon-bianji11 font12 ${Ce.currentPrimary}`,onClick:Mt=>{Mt.stopPropagation(),fn.setFieldsValue(Te({},gt)),jn(!0)}}))),te.createElement(Re.Z,null,te.createElement(ge.Z,{title:"\u5220\u9664"},te.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Ce.currentDelete}`,onClick:Mt=>{Mt.stopPropagation(),Ot.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>et(void 0,null,function*(){const sn=yield yt({id:gt==null?void 0:gt.key});(sn==null?void 0:sn.status)==0&&(_e.ZP.success((sn==null?void 0:sn.message)||"\u5220\u9664\u6210\u529F"),bt({},!0))})})}}))))))}),te.createElement(Ze.op,{className:"ml20 mt20",icon:te.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{vt(!0),jn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):te.createElement(nt.Z,{styles:{margin:"30px auto"},customText:te.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",te.createElement("a",{onClick:()=>{vt(!0),jn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),te.createElement(Me.default,{title:Dt?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:on,okText:Dt?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{fe()},onOk:()=>{fn.submit()}},te.createElement(Ye.default,{form:fn,onFinish:Be},Dt&&te.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),te.createElement(Ye.default.Item,{hidden:!0,name:"id"}),te.createElement(Ye.default.Item,{className:"mt10",name:"value"},te.createElement(Xe.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var Bt=(0,Ke.connect)(({loading:At,user:mt})=>({user:mt,loading:At.effects}))($e)},421:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Ye}});var te=ce(59301),Ke=ce(94276),Me=ce(90083),Ye=()=>{const[_e,ve]=(0,te.useState)(""),[Ve,ke]=(0,te.useState)(0);let[Re,ge]=(0,te.useState)(),[Xe,Ce]=(0,te.useState)();const[ct,tt]=(0,te.useState)(!1),nt=(0,te.useRef)("");(0,te.useEffect)(()=>Ke.Z.subscribe("preview-image",He=>{ve(He),console.log(Ne.current)}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",Ze),()=>{document.removeEventListener("keydown",Ze)}),[]),(0,te.useEffect)(()=>{nt.current=_e},[_e]);function Ze(at){console.log("e====",at),at.keyCode==27&&nt.current&&Le()}function Le(){document.body.style.overflow="auto",ge(void 0),Ce(void 0),ke(0),ve("")}function ut(){ke(Ve+90)}function Ge(){Re=Ne.current.width*1.1,Xe=Ne.current.height*1.1,Ce(Xe),ge(Re)}function Je(){Re=Ne.current.width/1.1,Xe=Ne.current.height/1.1,Ce(Xe),ge(Re)}const Qe=(0,te.useRef)(),xe=(0,te.useRef)(),Ne=(0,te.useRef)(),Te=at=>{(at.nativeEvent.target===Qe.current||at.nativeEvent.target===xe.current)&&Le()};return te.createElement(te.Fragment,null,_e?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:xe},te.createElement(Me.Z,{className:"image-preview",src:_e,style:{display:"none"},preview:{visible:!0,src:_e,onVisibleChange:at=>{ve("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},52504:function(xn,wt,ce){"use strict";ce.d(wt,{h:function(){return Qe},Z:function(){return Je}});var te=ce(59301),Ke=ce(82326),Me=ce(28284),Ye=ce(7939),_e=ce(89780),ve=ce.n(_e),Ve=ce(2018),ke=Object.defineProperty,Re=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,tt=(xe,Ne,Te)=>Ne in xe?ke(xe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):xe[Ne]=Te,nt=(xe,Ne)=>{for(var Te in Ne||(Ne={}))Ce.call(Ne,Te)&&tt(xe,Te,Ne[Te]);if(Xe)for(var Te of Xe(Ne))ct.call(Ne,Te)&&tt(xe,Te,Ne[Te]);return xe},Ze=(xe,Ne)=>Re(xe,ge(Ne));const Le=Ke.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},Ge={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"]};var Je=({callback:xe,onCancel:Ne})=>{const[Te,at]=(0,te.useState)("python");function He(dt){at(Ge[dt][1])}function et(dt){xe(dt)}return te.createElement(Me.default,Ze(nt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:et,style:{width:500}}),te.createElement(Me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ke.default,{getPopupContainer:dt=>dt.parentNode,onChange:He},Object.keys(Ge).map(dt=>te.createElement(Le,{key:dt,value:dt},Ge[dt][0])))),te.createElement(Me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(Qe,{mode:Te})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ye.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))};function Qe({value:xe,onChange:Ne,mode:Te,options:at={}}){const He=(0,te.useRef)(),[et,dt]=(0,te.useState)();return(0,te.useEffect)(()=>{if(et){let $e=function(Bt){const At=Bt.getValue();Ne&&Ne(At)};return et.on("change",$e),()=>{et.off("change",$e)}}},[et,Ne]),(0,te.useEffect)(()=>{et&&et.setOption("mode",Te)},[et,Te]),(0,te.useEffect)(()=>{et&&(xe!==et.getValue()||xe==="")&&setTimeout(()=>{et.setValue(xe||"")},300)},[et,xe]),(0,te.useEffect)(()=>{if(He.current&&!et){const $e=ve().fromTextArea(He.current,nt({mode:Te,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},at));dt($e)}},[He.current,et]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:He}))}},77834:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return zn}});var te=ce(59301),Ke=ce(58106),Me=ce(89780),Ye=ce.n(Me),_e=ce(76374),ve=ce(2018),Ve=ce(6313),ke=ce(25717),Re=ce(99498),ge=ce(25419),Xe=ce(67549),Ce=ce(59944),ct=({value:en="",className:Sn,showTextOnly:hr,showLines:sr,style:cr={}})=>{const br=(0,te.useMemo)(()=>"",[en]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:br}}))},tt=Object.defineProperty,nt=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Je=(en,Sn,hr)=>Sn in en?tt(en,Sn,{enumerable:!0,configurable:!0,writable:!0,value:hr}):en[Sn]=hr,Qe=(en,Sn)=>{for(var hr in Sn||(Sn={}))ut.call(Sn,hr)&&Je(en,hr,Sn[hr]);if(Le)for(var hr of Le(Sn))Ge.call(Sn,hr)&&Je(en,hr,Sn[hr]);return en},xe=(en,Sn)=>nt(en,Ze(Sn));let Ne=[{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:en,title:Sn,icon:hr,actionName:sr,className:cr="",children:br}){function Gr(){en(sr)}return te.createElement("a",{title:Sn,className:cr,onClick:Gr},te.createElement("i",{className:`${hr}`}),br)}var at=({watch:en,showNullButton:Sn,showNullProgramButton:hr,onActionCallback:sr,fullScreen:cr,insertTemp:br,hidetoolBar:Gr,extraUse:Ir})=>{const Ur=[...Ne,{title:`${en?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${en?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!Gr&&Ur.map((Lr,qn)=>te.createElement("li",{key:qn},Lr.actionName?te.createElement(Te,xe(Qe({},Lr),{onActionCallback:sr})):te.createElement("span",{className:"v-line"}))),Sn?te.createElement("li",null,te.createElement(Te,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sr},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,hr?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:sr},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(Te,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:sr},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,br&&te.createElement("li",null,te.createElement(Te,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${br}`,onActionCallback:sr},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ir&&te.createElement("li",null,Ir),te.createElement("li",{className:"btn-full-screen"},te.createElement(Te,{icon:`${cr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:cr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sr})))},He=ce(35990),et=ce(28284),dt=ce(37568),$e=ce(7939),Bt=Object.defineProperty,At=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,An=(en,Sn,hr)=>Sn in en?Bt(en,Sn,{enumerable:!0,configurable:!0,writable:!0,value:hr}):en[Sn]=hr,We=(en,Sn)=>{for(var hr in Sn||(Sn={}))Jt.call(Sn,hr)&&An(en,hr,Sn[hr]);if(Gt)for(var hr of Gt(Sn))gn.call(Sn,hr)&&An(en,hr,Sn[hr]);return en},Fe=(en,Sn)=>At(en,mt(Sn));const Ot={labelCol:{span:4},wrapperCol:{span:20}};var Fn=({callback:en,onCancel:Sn})=>{function hr(sr){en(sr)}return te.createElement(et.default,Fe(We({},Ot),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:hr,style:{width:500}}),te.createElement(et.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(dt.default,null)),te.createElement(et.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(dt.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement($e.ZP,{type:"ghost",onClick:Sn},"\u53D6\u6D88")))},fn=ce(52504),Ct=ce(82441),$t=ce(62957),on=ce(77019),jn=ce(1986),Dt=ce(59301),vt=({callback:en,onCancel:Sn})=>{const hr=document.createElement("canvas"),sr=hr.getContext("2d");hr.width=1e3,hr.height=800,sr.fillStyle="#ffffff",sr.fillRect(0,0,hr.width,hr.height);const cr=hr.toDataURL("image/png");return Dt.createElement($t.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Dt.createElement(on.Z,{style:{height:"100vh"}},Dt.createElement(jn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:cr,visible:!0,title:String(Date.now())},onOk:br=>{en({src:br.url})},onClose:Sn})))},pt=ce(30641),bt=ce(5269),Zt=ce(6767),yt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},zt=ce(59301),se=(0,te.forwardRef)(({onCancel:en,editImgId:Sn,callback:hr},sr)=>{let cr=(0,te.useRef)(),br=(0,te.useRef)(),Gr=(0,te.useRef)(),Ir=(0,te.useRef)(!1);const Ur=(0,te.useRef)(!1);console.log("ref:",sr);const[Lr,qn]=(0,te.useState)(0),[yn,rt]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{qn(1)},[]),(0,te.useImperativeHandle)(sr,()=>({setHeight:rt})),zt.createElement("div",{ref:Ur,className:"body-overflow-initial"},zt.createElement(pt.Z,{width:"100vw",height:yn,footer:null,closable:!0,placement:"bottom",open:!!Lr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${yt.drawerWrap}`,onClose:()=>{window.saveDrawData(kr=>{hr({src:`/api/attachments/${kr}`,id:kr})})},title:zt.createElement(on.Z,{align:"middle"},zt.createElement(bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),zt.createElement(bt.Z,{onClick:()=>{rt(yn==="60px"?"100vh":"60px")}},zt.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),zt.createElement(bt.Z,{onClick:()=>{window.saveDrawData(kr=>{if(kr===null){Zt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Zt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),hr({src:`/api/attachments/${kr}`,id:kr,disabledClose:!0})})}},zt.createElement($e.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},zt.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Sn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:br})))}),fe=ce(26869),Ue=ce(47889),Be=ce(71051);const gt=Ue.ZP.Group,Mt={margin:"0 8px"};var sn=({callback:en,onCancel:Sn})=>{function hr(sr){en(sr)}return te.createElement(et.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:hr},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Mt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Mt},"\u884C\u6570"),te.createElement(et.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Be.Z,null)),te.createElement("span",{style:Mt},"\u5217\u6570"),te.createElement(et.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Be.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(et.default.Item,{name:"align"},te.createElement(gt,null,te.createElement(Ue.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Ue.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Ue.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Ue.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement($e.ZP,{type:"ghost",onClick:Sn},"\u53D6\u6D88")))},he=ce(71411),oe=ce(75544),re=ce.n(oe),we=(0,te.forwardRef)(({use3d:en,width:Sn,height:hr,callback:sr,showSaveButton:cr},br)=>{const Gr=(0,te.useRef)(),Ir=(0,te.useRef)(),[Ur,Lr]=(0,te.useState)(!1),qn=(0,te.useRef)({id:Gr,appName:"graphing",width:Sn||1e3,height:hr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Ir.current=new(re())(qn.current,!0),window.onload=function(){Ir.current.inject("applet_container")}},[]);const yn=()=>{var rt=window.ggbApplet.getPNGBase64(1,!0,72);return sr&&sr(rt),rt};return(0,te.useEffect)(()=>{qn.current.appName=Ur?"3D":"graphing",Ir.current.inject("applet_container")},[Ur]),(0,te.useEffect)(()=>{Lr(en)},[en]),(0,te.useImperativeHandle)(br,()=>({getImgData:yn})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gr}),te.createElement(on.Z,{align:"middle"},te.createElement(bt.Z,{flex:1},te.createElement(he.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ur,onChange:rt=>Lr(rt)})),te.createElement(bt.Z,null,te.createElement($e.ZP,{size:"large",onClick:yn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),le=ce(50047);const Ee="link",St="upload-image",Ut="add-flowchart",It="draw-image",ht="add-flowchart",Bn="code-block",Vt="add-table",un="------------",In={default:un,left:`:${un}`,center:`:${un}:`,right:`${un}:`};var or=ce(61904),vn=ce(31735);function fr(){}let ur=0;const yr=1e4,Xn="\u2581",Mr="@\u2581\u2581@",Kr="@\u2581@",Er=` **\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`,lr=["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 Dr(en){return/^\d+$/.test(en)?`${en}px`:en}const tr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jn={[tr+"-B"]:"bold",[tr+"-I"]:"italic"},mn={[Ee]:"\u6DFB\u52A0\u94FE\u63A5",[Bn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[St]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[Ut]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var zn=({defaultValue:en="",onChange:Sn,width:hr="100%",height:sr=400,miniToolbar:cr=!1,isFocus:br=!1,watch:Gr,insertTemp:Ir,mode:Ur="markdown",id:Lr="markdown-editor-id",showResizeBar:qn=!1,noStorage:yn=!1,showNullButton:rt=!1,showNullProgramButton:kr=!1,hidetoolBar:zr=!1,fullScreen:Lt=!1,onBlur:Tt,onCMBeforeChange:nr,onFullScreen:Tn,className:jt="",disablePaste:_n=!1,disabled:ir=!1,disabledFill:ar=!1,placeholder:Ar="",values:dr="",extraUse:xr,onAddBlank:Nn})=>{const[xt,Ft]=(0,te.useState)(null),[pn,Ln]=(0,te.useState)(en),[wr,Rr]=(0,te.useState)(Gr),[Nr,rr]=(0,te.useState)(Lt),[Yn,_r]=(0,te.useState)(""),[Br,qr]=(0,te.useState)(0),[li,ai]=(0,te.useState)(sr),[Ci,ze]=(0,te.useState)(!1),[Ie,st]=(0,te.useState)(0),[Et,rn]=(0,te.useState)(0),Wt=(0,te.useRef)(),Qn=(0,te.useRef)(),Hn=(0,te.useRef)(),Wn=(0,te.useRef)(),Vn=(0,te.useRef)(),Zn=(0,te.useRef)(),Gn=(0,Ke.useDispatch)();(0,te.useEffect)(()=>{const Nt=window.scrollY||window.pageYOffset;Ln(dr),xt==null||xt.setValue(dr),window.scrollTo(0,Nt)},[dr]),(0,te.useEffect)(()=>{Tn==null||Tn(Nr)},[Nr]),(0,te.useEffect)(()=>{if(Wt.current){let Nt=function(Mn,On){var $n;if(_n){On.preventDefault();return}const Fr=On.clipboardData;if(Fr){const gr=Fr.types.toString(),Wr=Fr.items;if(gr==="Files"||Fr.types.indexOf("Files")>-1){if(On.preventDefault(),Ur=="stex")return;try{let Qr=Wr[1];(($n=Wr[0])==null?void 0:$n.kind)==="file"&&(Qr=Wr[0]);const ni=Qr.getAsFile(),Ai=ni.name.split(".").pop();(0,Ct.I)(ni,Jr=>{var hi,ii,$r;Jr.id?((hi=ni==null?void 0:ni.type)==null?void 0:hi.indexOf("image"))>-1?qt.replaceSelection(``):((ii=ni==null?void 0:ni.type)==null?void 0:ii.indexOf("video"))>-1?qt.replaceSelection(``):(($r=ni==null?void 0:ni.type)==null?void 0:$r.indexOf("pdf"))>-1?qt.replaceSelection(`${ni.name}`):lr.includes(Ai)?qt.replaceSelection(`${ni.name}`):qt.replaceSelection(`[${ni.name}](/api/attachments/${Jr.id}?type=${Jr.content_type})`):(Jr==null?void 0:Jr.status)===401&&(document.location.href="/user/login")})}catch(Qr){Zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const qt=Ye().fromTextArea(Wt.current,{mode:Ur,lineNumbers:!cr,lineWrapping:!0,value:en,autoCloseTags:!0,autoCloseBrackets:!0});return qt.on("keyup",function(Mn,On){On.keyCode===8&&(Mn.getValue()==""?qt.setOption("placeholder",Ar):qt.setOption("placeholder",null))}),qt.on("keydown",function(Mn,On){if(On.keyCode===8){var $n=Yt(Mn);$n&&On.preventDefault()}}),br&&qt.focus(),qt.on("paste",Nt),ir&&qt.on("beforeChange",function(Mn,On){(On.origin==="paste"||On.origin==="+input")&&On.cancel()}),Ft(qt),()=>{qt.off("paste",Nt)}}},[]);const ft=(0,te.useCallback)(()=>{if(Qn.current)try{}catch(Nt){console.log(Nt,"---- to set md editor body height")}},[li,Qn,Nr]);(0,te.useEffect)(()=>{function Nt(){let qt=new _e.Z(Mn=>{for(let On of Mn)(On.target.offsetHeight>0||On.target.offsetWidth>0)&&(ft(),xt.setSize("100%","100%"),xt.refresh())});return qt.observe(Wt.current.parentElement),qt}if(xt){const qt=Nt();return()=>{var Mn,On;(Mn=Wt.current)!=null&&Mn.parentElement&&qt.unobserve((On=Wt.current)==null?void 0:On.parentElement)}}},[xt,ft]),(0,te.useEffect)(()=>{if(xt){let Nt=[];for(const[qt,Mn]of Object.entries(Jn)){let On={[qt]:()=>{Rt(Mn)}};Nt.push(On),xt.addKeyMap(On)}return()=>{for(let qt of Nt)xt.removeKeyMap(qt)}}},[xt]),(0,te.useEffect)(()=>{Lt!==Nr&&rr(Lt)},[Lt]),(0,or.Z)(()=>{if(!yn&&Br>0){let Nt=new Date().getTime(),qt=window.sessionStorage.getItem(Lr);Nt>=Br+yr&&(!qt||qt!==pn)&&(window.sessionStorage.setItem(Lr,pn),ze(!0))}},yr),(0,te.useEffect)(()=>{Rr(Gr)},[xt,Gr]),(0,te.useEffect)(()=>{xt&&br&&xt.focus()},[xt,br]),(0,te.useEffect)(()=>{if(wr&&xt){let Nt=function(Mn){let On=Mn.target;if(Wn.current){let $n=On.scrollTop/On.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*$n}};const qt=xt.getScrollerElement();return qt.addEventListener("scroll",Nt),()=>{qt.removeEventListener("scroll",Nt)}}},[xt,wr]),(0,te.useEffect)(()=>{if(xt&&nr){let Nt=function(qt,Mn){nr(qt,Mn)};return xt.on("beforeChange",Nt),()=>{xt.off("beforeChange",Nt)}}},[xt,nr]),(0,te.useEffect)(()=>{if(xt&&Tt){let Nt=function(){Tt(xt.getValue())};return xt.on("blur",Nt),()=>{xt.off("blur",Nt)}}},[xt,Tt]);function Yt(Nt,qt){var Mn=Nt.getDoc(),On=Mn.getCursor(),$n=Mn.getLine(On.line),Fr=$n.charAt(On.ch-1),gr=$n.lastIndexOf("@\u2581@",On.ch),Wr=$n.lastIndexOf("@\u2581\u2581@",On.ch),Qr=gr>Wr?gr:Wr,ni=gr>Wr?3:4;if(Mr.indexOf(Fr)===-1)return null;if(console.log("change1:",qt,Nt,$n,On,Qr,gr,Wr,Fr),Qr>=0&&On.ch-Qr<5){var Ai=Qr+ni;return Mn.replaceRange("",{line:On.line,ch:Qr},{line:On.line,ch:Ai}),{line:On.line,ch:Ai}}return null}(0,te.useEffect)(()=>{if(xt){let Nt=function(qt,Mn){const On=qt.getValue();Ln(On),qr(new Date().getTime()),qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Sn&&(kr?Sn(On,ln(On)):Sn(On))};return xt.on("change",Nt),()=>{xt.off("change",Nt)}}},[xt,Sn]),(0,te.useEffect)(()=>{if(xt)if(en==null)xt.setValue(""),Ln("");else{const Nt=window.scrollY||window.pageYOffset;en!==xt.getValue()&&(xt.setValue(en),Ln(en),xt.setCursor(ir?1:xt.lineCount(),0),window.scrollTo(0,Nt))}},[xt,en]);const Rt=(0,te.useCallback)(Nt=>{const qt=xt.getCursor(),Mn=xt.getSelection();let On=Mn.split(` `);switch(Nt){case"bold":return xt.replaceSelection("**"+Mn+"**"),Mn===""&&xt.setCursor(qt.line,qt.ch+2),xt.focus();case"italic":return xt.replaceSelection("*"+Mn+"*"),Mn===""&&xt.setCursor(qt.line,qt.ch+1),xt.focus();case"code":return xt.replaceSelection("`"+Mn+"`"),Mn===""&&xt.setCursor(qt.line,qt.ch+1),xt.focus();case"inline-latex":return(0,vn.Ye)(Gn)?void 0:(_r("inline-latex"),xt.focus());case"latex":return xt.replaceSelection("```latex\n"+Mn+"\n```"),xt.setCursor(qt.line+1,Mn.length+1),xt.focus();case"line-break":return xt.replaceSelection(`
`),xt.focus();case"list-ul":return Mn===""?xt.replaceSelection("- "+Mn):xt.replaceSelection(On.map($n=>$n===""?"":`- ${$n}`).join(` `)),xt.focus();case"list-ol":return Mn===""?xt.replaceSelection("1. "+Mn):xt.replaceSelection(On.map(($n,Fr)=>$n===""?"":`${Fr+1}. ${$n}`).join(` `)),xt.focus();case"add-null-ch":Nn==null||Nn();return;case"add-signal":return Mn===""&&xt.setCursor(qt.line,qt.ch),xt.replaceSelection(Kr),xt.focus();case"add-multiple":return Mn===""&&xt.setCursor(qt.line,qt.ch),xt.replaceSelection(Mr),xt.focus();case"inster-template-1":return Mn===""&&xt.setCursor(qt.line,qt.ch),xt.replaceSelection(Er),xt.focus();case"eraser":return xt.setValue(""),xt.focus();case"trigger-watch":return Rr(!wr),xt.focus();case"trigger-full-screen":return rr(!Nr),xt.focus();case Ee:_r(Ee);return;case Bn:_r(Bn);return;case St:_r(St);return;case It:_r(It);return;case"maths-latex":if((0,vn.Ye)(Gn))return;_r("maths-latex");return;case Ut:Vn.current="",sessionStorage.removeItem("file_id"),_r(Ut);return;case Vt:_r(Vt);return;default:throw new Error}},[xt,wr,Nr]),Kt=(0,te.useCallback)((Nt,qt)=>{var Mn,On,$n,Fr,gr,Wr;Nt!=null&&Nt.disabledClose||_r("");const{src:Qr,alt:ni,id:Ai}=Nt||{};switch(Yn){case Ee:const{title:ri,link:Or}=Nt;return xt.replaceSelection(`[${ri}](${Or})`),xt.focus();case Bn:const{language:ei,content:gi}=Nt;return xt.replaceSelection(["```"+ei,gi,"```"].join(` `)),xt.focus();case"maths-latex":for(var Jr=atob(Nt),hi=new Uint8Array(Jr.length),ii=0;ii{Ma.id?xt.replaceSelection(`![,](/api/attachments/${Ma.id}?type=${Ma.content_type})`):(Ma==null?void 0:Ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,vn.Ye)(Gn))return;xt.replaceSelection("`$$"+Nt+"$$`");break;case ht:if(!Ai)return;xt.getValue().indexOf(Qr)===-1?xt.replaceSelection(`
${ni||
`):document.getElementById(Ai).src=fe.Z.API_SERVER+Qr+"?t="+Date.now();break;case St:case It:const ti=qt,fi=($n=(On=(Mn=ti==null?void 0:ti.name)==null?void 0:Mn.split("."))==null?void 0:On.pop)==null?void 0:$n.call(On);return((Fr=ti==null?void 0:ti.type)==null?void 0:Fr.indexOf("image"))>-1||!(ti!=null&&ti.type)?ti!=null&&ti.align||ti!=null&&ti.width?xt.replaceSelection(`

${ni||

`):xt.replaceSelection(`${ni||`):((gr=ti==null?void 0:ti.type)==null?void 0:gr.indexOf("video"))>-1?xt.replaceSelection(``):((Wr=ti==null?void 0:ti.type)==null?void 0:Wr.indexOf("pdf"))>-1?xt.replaceSelection(`${ti.name}`):lr.includes(fi)?xt.replaceSelection(`${ti.name}`):xt.replaceSelection(`[${ti.name}](${Qr})`),xt.focus();case Vt:const{row:Ei,col:Li,align:_a}=Nt;let Oa=` `;for(let Ma=0;Ma{switch(Yn){case Ee:return te.createElement(Fn,{callback:Kt,onCancel:dn});case Bn:return te.createElement(fn.Z,{callback:Kt,onCancel:dn});case St:return te.createElement(Ct.Z,{callback:Kt,onCancel:dn});case Ut:return te.createElement(se,{editImgId:Vn.current,callback:Kt,onCancel:dn});case Vt:return te.createElement(sn,{callback:Kt,onCancel:dn});case"maths-latex":return te.createElement(we,{showSaveButton:!0,callback:Kt});case"inline-latex":return te.createElement(le.Z,{showSaveButton:!0,callback:Kt});default:return null}},[Yn]);function dn(){_r("")}(0,te.useEffect)(()=>{if(Hn.current){let Nt=function(gr){$n=!0,Fr=gr.pageY},qt=function(){$n=!1},Mn=function(gr){if($n){let Wr=gr.pageY-Fr;Wr<0&&(Wr=0),Wr>300&&(Wr=300);let Qr=sr+Wr+"px";ai(Qr)}},On=Hn.current,$n=!1,Fr=0;return On.addEventListener("mousedown",Nt),document.addEventListener("mousemove",Mn),document.addEventListener("mouseup",qt),()=>{On.removeEventListener("mousedown",Nt),document.removeEventListener("mousemove",Mn),document.removeEventListener("mouseup",qt)}}},[xt,Hn]),(0,te.useEffect)(()=>{ai(sr)},[sr]);const Rn=Dr(hr),it=Dr(li),wn={width:Rn,height:it},Ht=(0,te.useMemo)(()=>{if(Br){let Nt=new Date(Br),qt=Nt.getHours(),Mn=Nt.getMinutes(),On=Nt.getSeconds();return qt=qt<10?"0"+qt:qt,Mn=Mn<10?"0"+Mn:Mn,On=On<10?"0"+On:On,`${qt}:${Mn}:${On}`}return 0},[Br]),ln=Nt=>{const qt=[];if(kr){let Mn=-1;Nt=Nt.replace(/(@▁▁@|@▁@)/g,function(On,$n,Fr){qt.push({multiLine:On!==Kr})})}return qt};function hn(){window.sessionStorage.removeItem(Lr),ze(!1),qr(0)}function tn(){ze(!1),qr(0),xt.setValue(window.sessionStorage.getItem(Lr))}(0,te.useEffect)(()=>{mn[Yn]&&Yn!==It&&Yn!==Ut&&setTimeout(()=>{const Nt=document.getElementsByClassName("markdown-popup-form")[0],qt=window.innerWidth/2-Nt.offsetWidth/2,Mn=window.innerHeight/2-Nt.offsetHeight/2;st(qt),rn(Mn)},0)},[Yn]);const cn=Nt=>{Nt.preventDefault();const qt=Nt.clientX-Ie,Mn=Nt.clientY-Et;document.body.onmousemove=On=>{let $n=On.clientX-qt,Fr=On.clientY-Mn;const gr=document.getElementsByClassName("markdown-popup-form")[0],Wr=window.innerWidth-gr.offsetWidth,Qr=window.innerHeight-gr.offsetHeight;$n=Math.max(0,Math.min($n,Wr)),Fr=Math.max(0,Math.min(Fr,Qr)),er(On.clientX,On.clientY,qt,Mn)&&(st($n),rn(Fr))},document.body.onmouseup=function(){document.body.onmousemove=null}},er=(Nt,qt,Mn,On)=>{const $n=document.body.clientHeight,Fr=document.body.clientWidth;return Nt<20&&Mn>Nt||Nt>Fr-20&&Mnqt||qt>$n-20&&On{var qt;Vn.current=Nt,(qt=Zn.current)==null||qt.setHeight("100vh"),setTimeout(()=>{_r("add-flowchart")},150)}})):null))),qn?te.createElement("a",{ref:Hn,className:"editor-resize"}):null,Yn===It&&te.createElement(vt,{callback:Kt,onCancel:dn}),Yn===Ut&&te.createElement(se,{ref:Zn,editImgId:Vn.current,callback:Kt,onCancel:dn}),te.createElement(He.Z,null,mn[Yn]&&Yn!==It&&Yn!==Ut?te.createElement($t.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ie,top:Et},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:cn},mn[Yn]),open:!0,onCancel:dn,footer:null,destroyOnClose:!0,width:Yn===Ut?"1200px":null,height:Yn===Ut?"80vh":null,className:"markdown-popup-form"},nn):null))}},82441:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Ne},I:function(){return at}});var te=ce(28284),Ke=ce(6767),Me=ce(37568),Ye=ce(44104),_e=ce(71051),ve=ce(47889),Ve=ce(7939),ke=ce(52882),Re=ce(59301),ge=ce(59301),Xe=Object.defineProperty,Ce=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Le=(He,et,dt)=>et in He?Xe(He,et,{enumerable:!0,configurable:!0,writable:!0,value:dt}):He[et]=dt,ut=(He,et)=>{for(var dt in et||(et={}))nt.call(et,dt)&&Le(He,dt,et[dt]);if(tt)for(var dt of tt(et))Ze.call(et,dt)&&Le(He,dt,et[dt]);return He},Ge=(He,et)=>Ce(He,ct(et));const{useForm:Je}=te.default,Qe={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}};var Ne=({callback:He,onCancel:et})=>{const[dt]=Je();let $e=(0,Re.useRef)();function Bt(Gt){$e.current.width=dt.getFieldValue("width"),$e.current.align=dt.getFieldValue("align"),He(Gt,$e.current)}function At(Gt,Jt){if(Gt.status===-1){Ke.ZP.error(Gt.message);return}dt.setFieldsValue({src:`/api/attachments/${Gt.id}`,type:Jt.type})}function mt(Gt){let Jt=Gt.target.files[0];$e.current=Jt,at(Jt,At)}return ge.createElement(te.default,Ge(ut({form:dt},xe),{className:"upload-image-panel",onFinish:Bt,style:{width:470,overflow:"hidden"}}),ge.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ge.createElement("div",{className:"flex-container"},ge.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ge.createElement(Me.default,{style:Qe})),ge.createElement(Te,{onFileChange:mt}))),ge.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ge.createElement(Me.default,{style:{width:264}})),ge.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ge.createElement(Ye.Z,null,ge.createElement(te.default.Item,{name:"width",style:{margin:0}},ge.createElement(_e.Z,{style:{width:264}})),ge.createElement("span",{className:"ml8"},"%"))),ge.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ge.createElement(ve.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"}]})),ge.createElement("aside",null,ge.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ge.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Ve.ZP,{type:"default",onClick:et},"\u53D6\u6D88"))))};function Te({onFileChange:He}){return ge.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ge.createElement("input",{type:"file",onChange:He}))}function at(He,et){if(!He)throw new String("\u6CA1\u6709\u6587\u4EF6");let dt=new FormData;dt.append("editormd-image-file",He),dt.append("file_param_name","editormd-image-file"),dt.append("byxhr","true");var $e=new window.XMLHttpRequest;$e.withCredentials=!0,$e.addEventListener("load",function(Bt){et(JSON.parse(Bt.target.responseText),He)},!1),$e.addEventListener("error",function(Bt){console.error(Bt)},!1),$e.open("POST",`${ke.KI}/api/attachments.json`),$e.send(dt)}},35990:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Me}});var te=ce(59301),Ke=ce(4676);class Me extends te.Component{constructor(_e){super(_e);const ve=window.document;this.node=ve.createElement("div"),ve.body.appendChild(this.node)}render(){const{children:_e}=this.props;return(0,Ke.createPortal)(_e,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58478:function(xn,wt,ce){"use strict";ce.d(wt,{SV:function(){return vt},ZP:function(){return Dt}});var te=ce(59301),Ke=ce(76374);const Me={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ye={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"]},_e={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},ve={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(` `)}]},Ve={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 ke=ce(53184),Re=ce.n(ke),ge=(pt,bt,Zt)=>new Promise((yt,zt)=>{var Se=Ue=>{try{fe(Zt.next(Ue))}catch(Be){zt(Be)}},se=Ue=>{try{fe(Zt.throw(Ue))}catch(Be){zt(Be)}},fe=Ue=>Ue.done?yt(Ue.value):Promise.resolve(Ue.value).then(Se,se);fe((Zt=Zt.apply(pt,bt)).next())});const Xe={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"]}},Ce=(pt,bt,Zt,yt)=>{const zt=bt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Zt.lineNumber,endColumn:Zt.column});return Array.from(new Set(zt.match(/\b\w{2,}\b/g)||[])).map(se=>({label:se,kind:pt.languages.CompletionItemKind.Text,insertText:se,range:yt}))},ct=(pt,bt,Zt,yt)=>{pt.languages.registerCompletionItemProvider(bt,{provideCompletionItems(zt,Se){const se=zt.getWordUntilPosition(Se),fe={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:se.startColumn,endColumn:se.endColumn},Ue=zt.getLineContent(Se.lineNumber).substring(se.startColumn-2,se.endColumn);return{suggestions:[...Ce(pt,zt,Se,fe),...Zt.map(gt=>({label:gt,kind:pt.languages.CompletionItemKind.Keyword,documentation:gt,insertText:gt,insertTextRules:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fe})),...yt.map(gt=>({label:gt.label,kind:pt.languages.CompletionItemKind.Snippet,documentation:gt.content,insertText:Ue.startsWith("#")?gt.content.replace(/#/,""):gt.content,insertTextRules:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fe}))]}}})};var tt=pt=>{Xe.languages.forEach(bt=>{pt.languages.registerDocumentFormattingEditProvider(bt,{provideDocumentFormattingEdits(Zt){return ge(this,null,function*(){const yt=Re()(Zt.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:Zt.getFullModelRange(),text:yt}]})}})}),ct(pt,"java",Ye.keywords,Ye.quickKey),ct(pt,"cpp",_e.keywords,_e.quickKey),ct(pt,"c",Me.keywords,[]),ct(pt,"python",ve.keywords,ve.quickKey),ct(pt,"scala",Ve.keywords,Ve.quickKey)};const nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ze=Object.defineProperty,Le=(pt,bt,Zt)=>bt in pt?Ze(pt,bt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):pt[bt]=Zt,ut=(pt,bt,Zt)=>Le(pt,typeof bt!="symbol"?bt+"":bt,Zt);const Ge=class fc{constructor(bt,Zt,yt){this.placeholder=bt,this.editor=Zt,this.monaco=yt,Zt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return fc.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)}};ut(Ge,"ID","editor.widget.placeholderHint");var Qe=Ge,xe=ce(96236),Ne=ce(6767),Te=ce(25399),at=ce(89392),He=ce(94276),et=ce(56102),dt=Object.defineProperty,$e=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Jt=(pt,bt,Zt)=>bt in pt?dt(pt,bt,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):pt[bt]=Zt,gn=(pt,bt)=>{for(var Zt in bt||(bt={}))mt.call(bt,Zt)&&Jt(pt,Zt,bt[Zt]);if(At)for(var Zt of At(bt))Gt.call(bt,Zt)&&Jt(pt,Zt,bt[Zt]);return pt},An=(pt,bt)=>$e(pt,Bt(bt)),We=(pt,bt)=>{var Zt={};for(var yt in pt)mt.call(pt,yt)&&bt.indexOf(yt)<0&&(Zt[yt]=pt[yt]);if(pt!=null&&At)for(var yt of At(pt))bt.indexOf(yt)<0&&Gt.call(pt,yt)&&(Zt[yt]=pt[yt]);return Zt},Fe=(pt,bt,Zt)=>new Promise((yt,zt)=>{var Se=Ue=>{try{fe(Zt.next(Ue))}catch(Be){zt(Be)}},se=Ue=>{try{fe(Zt.throw(Ue))}catch(Be){zt(Be)}},fe=Ue=>Ue.done?yt(Ue.value):Promise.resolve(Ue.value).then(Se,se);fe((Zt=Zt.apply(pt,bt)).next())});function Ot(pt){return/^\d+$/.test(pt)?`${pt}px`:pt}function Fn(){}let fn=!1;const Ct={"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 $t(pt=[]){let bt=pt;if(Array.isArray(pt)){for(let Zt=0;ZtFe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(pt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",pt)}});var Dt=pt=>{var bt=pt,{width:Zt="100%",height:yt="100%",value:zt,language:Se="javascript",style:se={},options:fe={},overrideServices:Ue={},theme:Be="vs-dark",onEditBlur:gt,isCopy:Mt=!1,onSave:sn,autoHeight:he=!1,forbidCopy:oe=!1,onChange:re=Fn,editorDidMount:de=Fn,onFocus:we=Fn,onBreakPoint:le=Fn,breakPointValue:Ee=[],filename:St="educoder.txt",errorLine:Ut,errorContent:It="",highlightLine:ht,openBreakPoint:Bn=!1,placeholder:Vt="",showMiniMap:un=!0}=bt,In=We(bt,["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 or=(0,te.useRef)(),vn=(0,te.useRef)({}),fr=(0,te.useRef)(),ur=(0,te.useRef)(),yr=(0,te.useRef)([]),Xn=(0,te.useRef)(!1),Mr=(0,te.useRef)(),Kr=(0,te.useRef)(),Er=(0,te.useRef)(!1),[lr,Dr]=(0,te.useState)(!1);function Kn(){let qn;return or.current&&(qn=new Ke.Z(yn=>{for(let rt of yn)(rt.target.offsetHeight>0||rt.target.offsetWidth>0)&&vn.current.instance.layout()}),qn.observe(or.current)),qn}function tr(){Ne.ZP.warning({content:decodeURIComponent(nt),key:"monaco-editor-tip"})}const Jn=()=>{let qn=vn.current.instance;if(zt!=null&&qn&&lr){const yn=qn.getModel();yn&&zt!==yn.getValue()&&(fn=!0,yn.setValue(zt),qn.layout(),fn=!1)}};(0,te.useEffect)(()=>{const qn=He.Z.subscribe("formatDocument",yn=>{var rt;let kr=vn.current.instance;(rt=kr==null?void 0:kr.getAction)==null||rt.call(kr,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{re(yn)},qn},[]),(0,te.useEffect)(()=>{var qn;let yn=vn.current.instance;ur.current&&clearTimeout(ur.current),ur.current=setTimeout(()=>{Jn()},500),zt&&(zt!=null&&zt.length)&&((qn=yn==null?void 0:yn.updateOptions)==null||qn.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(zt.split(/\r\n|\r|\n/g).length))+3,5)}))},[zt,lr,vn.current]),(0,te.useEffect)(()=>{if(Ut&&vn.current&&vn.current.instance){let yn=vn.current.instance;yn.changeViewZones(function(rt){var kr=document.createElement("div");kr.style.padding="10px 20px",kr.style.width="calc(100% - 20px)",kr.className="my-error-line-wrp",kr.innerHTML=It,rt.addZone({afterLineNumber:Ut||11,heightInLines:3,domNode:kr})});var qn={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}};yn.addOverlayWidget(qn),yn.revealPositionInCenter({lineNumber:20,column:1})}},[Ut,vn.current,lr]);const mn=(qn="",yn)=>{if(!qn||qn.trim()==="")return!0;const kr=vn.current.instance.getModel().getLineTokens(yn);let zr=!1;for(let Lt=0;Lt<2;Lt++)kr.getStandardTokenType(Lt)===1&&(zr=!0);return zr};(0,te.useEffect)(()=>{var qn;const yn=(qn=vn.current)==null?void 0:qn.instance;if(yn&&lr&&oe){const rt=yn.onDidBlurEditorWidget(()=>{Er.current=!1}),kr=yn.onDidFocusEditorText(()=>{Er.current=!0});return()=>{rt.dispose(),kr.dispose()}}},[vn.current,lr,oe]),(0,te.useEffect)(()=>{var qn;if((qn=vn.current)!=null&&qn.instance&&lr&&Bn){let yn=vn.current.instance,rt=yn.getModel();if(!rt)return;(()=>{var dr;let xr=[],Nn=[];const xt=rt.getAllDecorations();for(let pn of xt)pn.options.className==="highlighted-line"&&(xr.push((dr=pn==null?void 0:pn.range)==null?void 0:dr.startLineNumber),Nn.push(pn==null?void 0:pn.id));if(ht===xr[0])return;rt.deltaDecorations(Nn,[]);const Ft=rt.getLineCount();ht&&ht<=Ft&&(yn.deltaDecorations([],[{range:new on.Range(ht,1,ht,rt.getLineMaxColumn(ht)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(ht))})();const zr=(dr=!1)=>{var xr;let Nn=[],xt=[];const Ft=rt.getAllDecorations();for(let pn of Ft)pn.options.linesDecorationsClassName==="breakpoints-select"&&(Nn.push((xr=pn==null?void 0:pn.range)==null?void 0:xr.startLineNumber),xt.push(pn==null?void 0:pn.id));if(dr)return{lines:Nn,ids:xt};le(Nn)},Lt=dr=>Fe(void 0,null,function*(){let xr={range:new on.Range(dr,1,dr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rt.deltaDecorations([],[xr]),zr()}),Tt=dr=>Fe(void 0,null,function*(){let xr=[];const Nn=yn.getLineDecorations(dr);for(let xt of Nn)xt.options.linesDecorationsClassName==="breakpoints-select"&&xr.push(xt.id);yield rt.deltaDecorations(xr,[]),zr()}),nr=dr=>{let xr=yn.getLineDecorations(dr);for(let Nn of xr)if(Nn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,at.isEqual)(Ee,zr(!0).lines)){rt.deltaDecorations(zr(!0).ids,[]);const dr=Ee.map(xr=>({range:new on.Range(xr,1,xr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rt.deltaDecorations([],dr)}const Tn=yn.onDidChangeModelContent(dr=>{let xr=yn.getPosition();if(xr){let Nn=xr.lineNumber;clearTimeout(Kr.current),Kr.current=setTimeout(()=>{mn(rt.getLineContent(Nn),Nn)?Tt(Nn):nr(Nn)?(Tt(Nn),Lt(Nn)):zr()},100)}}),jt=yn.onMouseDown(dr=>{var xr,Nn,xt;if(dr.target.detail&&((xt=(Nn=(xr=dr.target)==null?void 0:xr.element)==null?void 0:Nn.className)!=null&&xt.includes("line-numbers"))){let Ft=dr.target.position.lineNumber;if(mn(rt.getLineContent(Ft),Ft))return;nr(Ft)?Tt(Ft):Lt(Ft)}}),_n=dr=>{let xr={range:new on.Range(dr,1,dr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yr.current=yn.deltaDecorations(yr.current,[xr])},ir=()=>{yr.current=yn.deltaDecorations(yr.current,[])},ar=yn.onMouseMove(dr=>{var xr,Nn,xt;if(ir(),dr.target.detail&&((xt=(Nn=(xr=dr.target)==null?void 0:xr.element)==null?void 0:Nn.className)!=null&&xt.includes("line-numbers"))){let Ft=dr.target.position.lineNumber;if(mn(rt.getLineContent(Ft),Ft))return;_n(Ft)}}),Ar=yn.onMouseLeave(()=>{ir()});return()=>{Tn.dispose(),jt.dispose(),ar.dispose(),Ar.dispose()}}},[vn.current,lr,Ee,ht,Bn,Se]),(0,te.useEffect)(()=>{var qn;(qn=vn.current)!=null&&qn.instance&&Bn&&vn.current.instance.setPosition({lineNumber:0,column:0})},[ht]);function zn(){let qn=vn.current.instance;if(qn){const yn=qn.getSelection(),rt=vn.current.pastePos||{},kr=new on.Range(rt.startLineNumber||yn.endLineNumber,rt.startColumn||yn.endColumn,rt.endLineNumber||yn.endLineNumber,rt.endColumn||yn.endColumn);setTimeout(()=>{qn.executeEdits("",[{range:kr,text:""}])},300)}}function en(qn){(window.navigator.platform.match("Mac")?qn.metaKey:qn.ctrlKey)&&qn.keyCode==83&&(qn.preventDefault(),sn())}const Sn=()=>{if(he&&vn.current.instance){const qn=vn.current.instance.getContentHeight();Ur(qn{if(!Er.current)return;const{keyCode:yn,ctrlKey:rt,metaKey:kr,target:zr,type:Lt}=qn;return(Lt==="paste"||(yn===67||yn===86)&&(kr||rt))&&zr.nodeName==="TEXTAREA"&&(tr(),qn.preventDefault()),!1};function cr(qn,yn){var rt=window.URL||window.webkitURL||window,kr=new Blob([yn]),zr=document.createElementNS("http://www.w3.org/1999/xhtml","a");zr.href=rt.createObjectURL(kr),zr.download=qn,hr(zr)}(0,te.useEffect)(()=>{Sn()},[Sn]),(0,te.useEffect)(()=>{or.current&&!lr&&Promise.all([ce.e(8909),ce.e(4474)]).then(ce.bind(ce,71448)).then(qn=>{try{on=qn,vn.current.instance=on.editor.create(or.current,{value:zt,language:$t(Se),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:un||!1}},Ue);const yn=vn.current.instance;let zr=[...xe.BH._menuItems].find(Tn=>Tn[0]._debugName=="EditorContext")[1],Lt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Tt=(Tn,jt)=>{var _n,ir;let ar=Tn._first;do jt.includes((ir=(_n=ar.element)==null?void 0:_n.command)==null?void 0:ir.id)&&Tn._remove(ar);while(ar=ar.next)};if(de(yn,on),setTimeout(()=>{Sn(),vn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{cr(St||"educoder.txt",yn.getValue())}})},500),vn.current.subscription=yn.onDidChangeModelContent(Tn=>{Xn.current?clearTimeout(Mr.current):(Sn(),re(yn.getValue(),Tn)),Mr.current=setTimeout(()=>{Xn.current=!1},500)}),window.Monaco||tt(on,$t(Se)),oe&&(Tt(zr,Lt),or.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",sr),window.removeEventListener("paste",sr),window.addEventListener("keydown",sr),window.addEventListener("paste",sr)),window.Monaco=on,gt&&yn.onDidBlurEditorWidget(()=>{gt(yn.getValue())}),we&&yn.onDidFocusEditorText(()=>{oe&&jn(),we(yn.getValue())}),oe){jn();try{yn.onDidPaste(Tn=>{const jt=yn.getSelection(),_n=vn.current.pastePos||{},ir=new on.Range(_n.startLineNumber||jt.endLineNumber,_n.startColumn||jt.endColumn,_n.endLineNumber||jt.endLineNumber,_n.endColumn||jt.endColumn);yn.executeEdits("",[{range:Tn.range,text:""}])})}catch(Tn){}}let nr=Kn();return Vt&&typeof Vt=="string"&&new Qe(Vt,yn,on),Dr(!0),()=>{const Tn=vn.current.instance;Tn.dispose();const jt=Tn.getModel();jt&&jt.dispose(),vn.current.subscription&&vn.current.subscription.dispose(),nr.unobserve(or.current)}}catch(yn){}})},[]),(0,te.useEffect)(()=>{if(vn.current.instance&&lr)return document.addEventListener("keydown",en,!1),()=>{document.removeEventListener("keydown",en)}},[sn,lr]),(0,te.useEffect)(()=>{let qn=vn.current.instance;if(qn&&lr){let yn=$t(Se);on.editor.setModelLanguage(qn.getModel(),yn)}},[Se,lr]),(0,te.useEffect)(()=>{vn.current.instance&&lr&&on.editor.setTheme(Be)},[Be,lr]),(0,te.useEffect)(()=>{let qn=vn.current.instance;fr.current=fe,qn&&lr&&(qn.updateOptions(gn({},fe)),setTimeout(()=>{qn.getModel().updateOptions(gn({},fe))},200))},[JSON.stringify(fe),lr]),(0,te.useEffect)(()=>{let qn=vn.current.instance;qn&&lr&&qn.layout()},[Zt,yt,lr]);const[br,Gr]=(0,te.useState)(Ot(Zt)),[Ir,Ur]=(0,te.useState)(Ot(yt)),Lr=An(gn({},se),{width:br,height:Ir,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:or,style:Lr,onFocus:()=>{oe&&jn()}},Mt&&te.createElement(et.CopyToClipboard,{text:zt,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(Te.Z,{title:"\u590D\u5236\u4EE3\u7801"},te.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},te.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function vt({width:pt="100%",height:bt="100%",original:Zt,modified:yt,language:zt,options:Se={}}){const se=(0,te.useRef)(),[fe,Ue]=(0,te.useState)(null);function Be(he){let oe;return se.current&&(oe=new Ke.Z(re=>{for(let de of re)(de.target.offsetHeight>0||de.target.offsetWidth>0)&&he.layout()}),oe.observe(se.current)),oe}(0,te.useEffect)(()=>(se.current&&Promise.all([ce.e(8909),ce.e(9404)]).then(ce.bind(ce,2550)).then(he=>{on=he;const oe=on.editor.createDiffEditor(se.current,An(gn({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},Se),{wordWrap:!0}));Ue(oe);let re=Be(oe);return()=>{oe.dispose();const de=oe.getModel();de&&de.dispose(),re.unobserve(se.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{fe&&fe.setModel({original:on.editor.createModel(Zt,zt),modified:on.editor.createModel(yt,zt)})},[Zt,yt,zt,fe]);const gt=Ot(pt),Mt=Ot(bt),sn={width:gt,height:Mt};return te.createElement("div",{className:"my-diff-editor",ref:se,style:sn})}},87303:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Ce}});var te={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",tagsDom:"tagsDom___COQg7"},Ke=ce(29787),Me=ce(25399),Ye=ce(60242),_e=ce(92310),ve=ce.n(_e),Ve=ce(31735),ke=ce(59243),Re=ce(11968),ge=ce(59301),Ce=({className:ct,dataSource:tt=[],col:nt=4,right:Ze,bottom:Le=23,precision:ut=0,wrapWidth:Ge=1200,trackEventItems:Je,loading:Qe,onRemove:xe=()=>{},isCurrent:Ne=!0,showProgress:Te=!1,showAlias:at=!1})=>{const He=Math.floor((Ge-(nt-1)*Ze)/nt),et=[{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 ge.createElement(Ke.Z,{spinning:Qe},ge.createElement("div",{className:ve()(te.list,ct)},!!(tt!=null&&tt.length)&&(tt==null?void 0:tt.map((dt,$e)=>{var Bt,At,mt,Gt,Jt,gn,An,We,Fe,Ot,Fn,fn,Ct;const{name:$t,id:on,identifier:jn,featured:Dt,school_name:vt,image_url:pt,excellent:bt,is_plan:Zt}=dt;return ge.createElement("div",{key:on,className:Ne&&Te?te.wrapisCurrent:te.wrap,style:{width:He,marginRight:(1+$e)%nt===0?0:Ze+ut,marginBottom:Le}},ge.createElement("a",{className:te.li,onClick:yt=>{yt.preventDefault(),yt.stopPropagation(),Je&&(0,Ve.L9)([Je]),(0,Ve.xg)(`/paths/${jn}`)}},ge.createElement("div",{className:te.img},ge.createElement("img",{className:te.cover,src:`${pt}`}),Ne&&(0,Re.bg)()&&(dt==null?void 0:dt.studying)&&ge.createElement("div",{className:`${te.movebq} user-path-items`,onClick:yt=>{yt.stopPropagation(),xe(dt)}},ge.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ge.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Bt=dt==null?void 0:dt.subject_tags)==null?void 0:Bt.map((yt,zt)=>{var Se,se;if(zt===0){const Ue=(Se=et.find(Be=>Be.name==yt))==null?void 0:Se.swimg;return ge.createElement("img",{className:te.sign,src:Ue,style:{left:"-4px"}})}const fe=(se=et.find(Ue=>Ue.name==yt))==null?void 0:se.ptimg;return ge.createElement("img",{className:te.sign,src:fe,style:{left:`${48+52*(zt-1)+2*zt}px`}})}),ge.createElement("div",{className:te.tagsDom},ge.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(dt==null?void 0:dt.excellent)&&ge.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((At=dt==null?void 0:dt.custom_tags)==null?void 0:At.length)>0&&ge.createElement(Me.Z,{title:(Jt=(Gt=dt==null?void 0:dt.custom_tags)==null?void 0:Gt[((mt=dt==null?void 0:dt.custom_tags)==null?void 0:mt.length)-1])==null?void 0:Jt.tag_name},ge.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},ge.createElement("span",{className:"multi-llipsis1e text-10px"},(We=(An=dt==null?void 0:dt.custom_tags)==null?void 0:An[((gn=dt==null?void 0:dt.custom_tags)==null?void 0:gn.length)-1])==null?void 0:We.tag_name)))))),ge.createElement("div",{className:te.name},ge.createElement(Me.Z,{title:at&&(dt!=null&&dt.excellent_alias_name)?ge.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${$t}`,ge.createElement("br",null),ge.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${dt==null?void 0:dt.excellent_alias_name}`)):$t},ge.createElement("span",{className:te.e},at&&(dt==null?void 0:dt.excellent_alias_name)||$t))),Ne&&Te&&((Fe=dt==null?void 0:dt.progress)==null?void 0:Fe.all_score)!=0&&ge.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ge.createElement(Ye.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ot=dt==null?void 0:dt.progress)==null?void 0:Ot.my_score)/((Fn=dt==null?void 0:dt.progress)==null?void 0:Fn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(fn=dt==null?void 0:dt.progress)==null?void 0:fn.my_score,"/",(Ct=dt==null?void 0:dt.progress)==null?void 0:Ct.all_score),(!Ne||!Te)&&ge.createElement(Me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${vt}`},ge.createElement("div",{className:te.unit},ge.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),vt)),(!Ne||!Te)&&ge.createElement("div",{className:te.tags},ge.createElement("div",null,ge.createElement(Me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ge.createElement("span",null,dt.stages_count))),ge.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ge.createElement("span",null,dt.members_count)))))))})),!tt.length&&ge.createElement(ke.Z,null)))}},18606:function(xn,wt,ce){"use strict";ce.d(wt,{jL:function(){return _e},w9:function(){return Ot},QD:function(){return Ut},cQ:function(){return Jt.Z},op:function(){return re},O5:function(){return Jn},_b:function(){return In},t7:function(){return ut},Gi:function(){return jn},YG:function(){return $t},qp:function(){return Xe},vr:function(){return Bn},qE:function(){return le},Je:function(){return Qe},wb:function(){return Gt},cq:function(){return yt},tp:function(){return tt}});var te=ce(59301),Ke={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/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==",_e=({dataSource:mn=[],img:zn,imgWidth:en=346,title:Sn,sunTitle:hr,bannerExtraContent:sr})=>te.createElement("div",{className:Ke.banner},te.createElement("div",{className:Ke.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Sn),te.createElement("span",null,hr)),mn.length>0&&te.createElement("div",{className:Ke.btns},mn.map((cr,br)=>te.createElement("div",{key:br,onClick:cr.click},cr.name,cr.sign?te.createElement("img",{src:Me,width:39}):null))),sr),zn&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:zn,width:en}))),ve={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"},Ve=ce(92310),ke=ce.n(Ve),Re=ce(89392),Xe=({dataSource:mn=[],value:zn,onChange:en,onTitleChange:Sn,className:hr,title:sr,titleWidth:cr=41,style:br={},fontColor:Gr="#6A7283",showCount:Ir})=>{const[Ur,Lr]=(0,te.useState)(1),[qn,yn]=(0,te.useState)(!1),rt=(0,te.useRef)(null),kr=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var zr;mn.length!==0&&(((zr=rt==null?void 0:rt.current)==null?void 0:zr.clientHeight)>97?Lr(1):Lr(0)),mn.length===0&&Lr(0),yn(!1)},[mn]),te.createElement("div",{className:ke()(ve.row,hr,"fadeIn","animated"),style:br},te.createElement("div",{onClick:(0,Re.throttle)(()=>Sn==null?void 0:Sn(),2e3),style:{width:cr,marginTop:qn?12:4},className:`${ve.title} ${Sn?"current":""}`},sr),te.createElement("div",{className:qn?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},te.createElement("div",{className:ve.bar,ref:kr,style:Ur>0?{height:Ur===1?97:"auto",overflow:Ur===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:ve.tag,ref:rt},mn==null?void 0:mn.map(zr=>te.createElement("span",{onClick:()=>en(zr.id),key:zr.id,style:{color:Gr},className:zn===zr.id?ve.active:""},te.createElement("span",{title:zr.name,className:ve.name},zr.name),!!Ir&&te.createElement("span",{className:ve.num},zr.count))))),!!Ur&&te.createElement(te.Fragment,null,Ur===1?te.createElement("div",{onClick:()=>{var zr;Lr(2),((zr=rt==null?void 0:rt.current)==null?void 0:zr.clientHeight)>245?yn(!0):yn(!1)},className:ve.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{kr.current.scrollTop=0,Lr(1),yn(!1)},className:ve.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ce={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"},tt=({dataSource:mn=[],value:zn,onChange:en,className:Sn,style:hr={}})=>te.createElement("div",{style:hr,className:ke()(Ce.tabs,Sn)},mn.map(sr=>te.createElement("span",{onClick:()=>en(sr.id),className:zn===sr.id?Ce.active:"",key:sr.id},sr.name))),nt={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"},Ze=ce(37568),ut=({dataSource:mn=[],value:zn="",onChange:en,onInputChange:Sn=()=>{},className:hr,style:sr={},placeholder:cr,allowClear:br=!1})=>{var Gr;const[Ir,Ur]=(0,te.useState)(""),[Lr,qn]=(0,te.useState)("");(0,te.useEffect)(()=>{var kr;let zr=zn;(kr=JSON.stringify(zn))!=null&&kr.includes("{")&&(Ur(zn.id),zr=zn.value||"");try{qn(decodeURIComponent(zr||""))}catch(Lt){qn(decodeURIComponent(zr||""))}},[zn]);const yn=()=>{en(encodeURIComponent(Lr),Ir||null)},rt=kr=>{kr!==Ir&&(Ur(kr),en(encodeURIComponent(Lr),kr))};return te.createElement("div",{className:ke()(nt.input,hr),style:sr},!!mn.length&&te.createElement("div",{className:nt.dropdown},te.createElement("div",{className:nt.text},(Gr=mn.find(kr=>kr.id===Ir))==null?void 0:Gr.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:nt.b1}),te.createElement("b",{className:nt.b2})),te.createElement("div",{className:nt.menu},mn.map((kr,zr)=>te.createElement("div",{key:zr,onClick:()=>rt(kr.id)},kr.name)))),te.createElement(Ze.default,{onPressEnter:yn,value:Lr,onChange:kr=>{qn(kr.target.value),Sn(encodeURIComponent(kr.target.value),Ir||null)},placeholder:cr,variant:"borderless",allowClear:br,onClear:()=>en("",Ir||null)}),te.createElement("i",{onClick:yn,className:"iconfont icon-sousuo9 font14 current"}))},Ge={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"},Qe=({value:mn,onChange:zn,className:en,total:Sn,pageSize:hr,style:sr={}})=>{const cr=mn<2,br=mn>=Math.ceil(Sn/hr);return Sn<=hr?te.createElement(te.Fragment,null):te.createElement("div",{className:ke()(Ge.quickPager,en),style:sr},te.createElement("div",{onClick:()=>{cr||zn(mn-1,"prev")},className:cr?Ge.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{br||zn(mn+1,"next")},className:br?Ge.disabled:""},"\u4E0B\u4E00\u9875"))},xe={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"},Ne=ce(29787),Te=ce(25399),at=ce(58018),He=ce(26869),et=ce(31735),dt=ce(96908),$e=ce(57177),Bt=ce(81378),At=ce(59243),Gt=({className:mn,dataSource:zn=[],col:en=4,right:Sn,bottom:hr=23,precision:sr=0,wrapWidth:cr=1200,trackEventItems:br,loading:Gr})=>{const Ir=Math.floor((cr-(en-1)*Sn)/en);return te.createElement(Ne.Z,{spinning:Gr},te.createElement("div",{className:ke()(xe.list,mn)},!!zn.length&&zn.map((Ur,Lr)=>{const{name:qn,id:yn,identifier:rt,power:kr,cover_image_id:zr,pic:Lt}=Ur;return te.createElement("div",{className:xe.wrap,key:yn,style:{width:Ir,marginRight:(1+Lr)%en===0?0:Sn+sr,marginBottom:hr}},te.createElement("a",{target:"_blank",href:`/shixuns/${rt}/challenges`,className:xe.li,onClick:Tt=>{Tt.preventDefault(),br&&(0,et.L9)([br]),kr&&(0,et.xg)(`/shixuns/${rt}/challenges`)}},te.createElement("div",{className:xe.img},te.createElement("img",{className:xe.cover,src:`${Lt}`}),Ur.is_jupyter&&te.createElement("img",{className:xe.sign,src:dt}),Ur.is_jupyter_lab&&te.createElement("img",{className:xe.sign,src:$e}),Ur.is_unity_3d&&te.createElement("img",{className:xe.sign,src:Bt})),te.createElement("div",{className:xe.name},te.createElement(Te.Z,{title:qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:xe.e},qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:xe.tags},te.createElement(Te.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,Ur.challenges_count))),!!Ur.myshixuns_count&&te.createElement(Te.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,Ur.myshixuns_count))),te.createElement(Te.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,Ur.level))),te.createElement("div",{className:xe.rate},te.createElement(at.Z,{allowHalf:!0,disabled:!0,defaultValue:Ur.score_info}),te.createElement("span",null,"\xA0",Ur.score_info?`${Ur.score_info}\u5206`:"5\u5206")))),!kr&&te.createElement("div",{className:xe.lockWrap},te.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!zn.length&&te.createElement(At.Z,null)))},Jt=ce(87303),gn={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"},An="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",We=ce(59301),Ot=({className:mn,dataSource:zn=[],col:en=4,right:Sn,bottom:hr=23,precision:sr=0,wrapWidth:cr=1200,trackEventItems:br,loading:Gr,handleVery:Ir=()=>!0})=>{const Ur=Math.floor((cr-(en-1)*Sn)/en);return We.createElement(Ne.Z,{spinning:Gr},We.createElement("div",{className:ke()(gn.list,mn)},!!zn.length&&zn.map((Lr,qn)=>{const{subject_identifier:yn,id:rt,identifier:kr,power:zr}=Lr,Lt=Lr.is_public!=0&&Lr.is_public;return We.createElement("div",{className:gn.wrap,key:rt,style:{width:Ur,marginRight:(1+qn)%en===0?0:Sn+sr,marginBottom:hr}},We.createElement("a",{className:gn.li,onClick:Tt=>{Tt.preventDefault(),Ir(Lr==null?void 0:Lr.first_category_url)&&(br&&(0,et.L9)([br]),(0,et.xg)(Lr.first_category_url))}},We.createElement("div",{className:gn.top},We.createElement(Te.Z,{title:Lr.name},We.createElement("div",{className:gn.name},Lr.name)),We.createElement("img",{className:gn.img,src:He.Z.IMG_SERVER+"/images/"+Lr.avatar_url}),We.createElement("div",{className:gn.text,title:Lr.creator},Lr.creator),yn&&We.createElement("div",{className:gn.btns},We.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),We.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Lt&&We.createElement("div",{className:gn.sign},"\u516C\u5F00")),We.createElement("div",{className:gn.bottom},Lr.visits>0&&We.createElement(Te.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-liulanyan"}),We.createElement("span",null,Lr.visits))),Lr.course_members_count>0&&We.createElement(Te.Z,{title:"\u6210\u5458",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan"}),Lr.course_members_count)),Lr.tasks_count>0&&We.createElement(Te.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-zuoye"}),Lr.tasks_count)),Lr.is_end?We.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):We.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Lr.is_accessible&&We.createElement("div",{className:gn.lockWrap},We.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),We.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!zn.length&&We.createElement(At.Z,null)))},Fn={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"},fn=ce(58106),$t=({dataSource:mn=[],value:zn,onChange:en,className:Sn,style:hr={},tabBarExtraContent:sr})=>te.createElement("div",{className:ke()(Fn.tabs,Sn),style:hr},te.createElement("div",{className:Fn.tabsWrap},mn.map((cr,br)=>!(cr!=null&&cr.hide)&&te.createElement("aside",{className:Fn.tab,onClick:()=>{en(cr.id),cr.link&&fn.history.push(cr.link)},key:br},te.createElement("div",{className:zn===cr.id?Fn.active:""},cr.name),(cr==null?void 0:cr.resetCount)==null&&(cr==null?void 0:cr.total)!==void 0&&te.createElement("span",null,"\uFF08",cr==null?void 0:cr.total,"\uFF09"),(cr==null?void 0:cr.resetCount)!==void 0&&(cr==null?void 0:cr.total)!==void 0&&te.createElement(Te.Z,{title:(cr==null?void 0:cr.tip)!=null?cr==null?void 0:cr.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},cr==null?void 0:cr.resetCount),"/",te.createElement("span",null,cr==null?void 0:cr.total),"\uFF09"))))),te.createElement("div",{className:Fn.tabBar},sr)),jn=({className:mn,style:zn={},children:en})=>te.createElement("div",{className:ke()(mn),style:zn},en),Dt={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"},vt=ce(75727),pt=ce(93041);const bt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var yt=({sortValue:mn,dropValue:zn,className:en,onSort:Sn,onDrop:hr,dataSource:sr=bt})=>{var cr;return te.createElement("div",{className:ke()(Dt.orderWrap,en)},te.createElement(vt.Z,{dropdownRender:()=>te.createElement(pt.default,null,sr.map((br,Gr)=>te.createElement(pt.default.Item,{key:Gr,onClick:()=>hr(br.id)},br.name)))},te.createElement("span",{className:Dt.orderTextWrap},(cr=sr.find(br=>zn===br.id))==null?void 0:cr.name)),te.createElement("span",{className:Dt.orderIconWrap},te.createElement("span",{className:Dt.orderAsc},te.createElement("i",{className:mn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer}`,onClick:()=>Sn(mn==="asc"?"desc":"asc")})),te.createElement("span",{className:Dt.orderDesc},te.createElement("i",{className:mn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer}`,onClick:()=>Sn(mn==="asc"?"desc":"asc")}))))},zt={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"},Se=ce(7939),se=Object.defineProperty,fe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,gt=(mn,zn,en)=>zn in mn?se(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:en}):mn[zn]=en,Mt=(mn,zn)=>{for(var en in zn||(zn={}))Ue.call(zn,en)&>(mn,en,zn[en]);if(fe)for(var en of fe(zn))Be.call(zn,en)&>(mn,en,zn[en]);return mn},sn=(mn,zn)=>{var en={};for(var Sn in mn)Ue.call(mn,Sn)&&zn.indexOf(Sn)<0&&(en[Sn]=mn[Sn]);if(mn!=null&&fe)for(var Sn of fe(mn))zn.indexOf(Sn)<0&&Be.call(mn,Sn)&&(en[Sn]=mn[Sn]);return en},he=(mn,zn,en)=>new Promise((Sn,hr)=>{var sr=Gr=>{try{br(en.next(Gr))}catch(Ir){hr(Ir)}},cr=Gr=>{try{br(en.throw(Gr))}catch(Ir){hr(Ir)}},br=Gr=>Gr.done?Sn(Gr.value):Promise.resolve(Gr.value).then(sr,cr);br((en=en.apply(mn,zn)).next())}),re=mn=>{var zn=mn,{className:en,style:Sn,children:hr,loading:sr=!1,openLoading:cr,onClick:br=()=>{},size:Gr="middle",shape:Ir="round"}=zn,Ur=sn(zn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Lr,qn]=(0,te.useState)(!1);return te.createElement(Se.ZP,Mt({onClick:(0,Re.throttle)(yn=>he(void 0,null,function*(){cr&&qn(!0);try{yield br(yn)}catch(rt){console.log("error",rt)}cr&&qn(!1)}),2e3,{leading:!0,trailing:!1}),className:ke()(zt.btn,zt[`${Gr}-${Ir}`],en),style:Sn,size:Gr,shape:Ir,loading:Lr||sr},Ur),hr)},de={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"},le=({className:mn,style:zn,children:en=null,onClick:Sn,title:hr})=>te.createElement("div",{className:ke()(de.head,mn),style:zn},te.createElement("span",{className:"primary-hover",onClick:Sn},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:hr},hr),te.createElement("div",{className:de.node},en)),Ee={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"},Ut=({confirmShow:mn=!0,confirmTitle:zn,confirmClick:en,cancelShow:Sn=!0,cancelTitle:hr,cancelClick:sr,className:cr,style:br,confirmLoading:Gr=!1})=>te.createElement("div",{className:ke()(Ee.btns,cr),style:br},mn&&te.createElement(Se.ZP,{loading:Gr,onClick:en,type:"primary",className:Ee.confirm},zn),Sn&&te.createElement(Se.ZP,{onClick:sr,className:Ee.cancel},hr)),It={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"},Bn=({className:mn,style:zn={},LeftContent:en,children:Sn,RightContent:hr})=>te.createElement("div",{className:ke()(It.fixedBottom,mn),style:zn},te.createElement("div",{className:It.wrap},te.createElement("div",{className:It.left},en),te.createElement("div",{className:It.center},Sn),te.createElement("div",{className:It.right},hr))),Vt={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"},In=({className:mn,style:zn={},dataSource:en=[]})=>te.createElement("div",{className:ke()(Vt.crumbs,mn),style:zn},en.map((Sn,hr)=>hrfn.history.push(Sn.path)},Sn.name):te.createElement("span",null,Sn.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:hr,style:{color:"#5F6368"}},Sn.name))),or=ce(11938),vn=Object.defineProperty,fr=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,Kr=(mn,zn,en)=>zn in mn?vn(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:en}):mn[zn]=en,Er=(mn,zn)=>{for(var en in zn||(zn={}))Xn.call(zn,en)&&Kr(mn,en,zn[en]);if(yr)for(var en of yr(zn))Mr.call(zn,en)&&Kr(mn,en,zn[en]);return mn},lr=(mn,zn)=>fr(mn,ur(zn)),Dr=(mn,zn)=>{var en={};for(var Sn in mn)Xn.call(mn,Sn)&&zn.indexOf(Sn)<0&&(en[Sn]=mn[Sn]);if(mn!=null&&yr)for(var Sn of yr(mn))zn.indexOf(Sn)<0&&Mr.call(mn,Sn)&&(en[Sn]=mn[Sn]);return en};const{Countdown:Kn}=or.default;var Jn=mn=>{var zn=mn,{onChange:en}=zn,Sn=Dr(zn,["onChange"]);const[hr,sr]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof hr=="number"&&hr>=0&&en(hr)},[hr]);const cr=br=>{const Gr=Math.floor(br/1e3);sr(Gr)};return te.createElement(Kn,lr(Er({},Sn),{onChange:cr}))}},61904:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Ke}});var te=ce(59301);function Ke(Me,Ye){const _e=(0,te.useRef)();(0,te.useEffect)(()=>{_e.current=Me}),(0,te.useEffect)(()=>{function ve(){_e.current()}if(Ye!==null){let Ve=setInterval(ve,Ye);return()=>clearInterval(Ve)}},[Ye])}},27042:function(xn,wt,ce){"use strict";ce.r(wt),ce.d(wt,{default:function(){return Nn}});var te=ce(59301),Ke=ce(56656),Me=ce.n(Ke),Ye=ce(86129),_e=ce.n(Ye),ve=ce(97013),Ve=ce(58106),ke=ce(62957),Re=ce(6767),ge=ce(458),Xe=ce(91882),Ce=ce(77019),ct=ce(5269),tt=ce(7939),nt=ce(25399),Ze=ce(37285),Le=ce(37568),ut=ce(54172),Ge=ce(82326),Je=ce(13747),Qe=ce(27812),xe=ce(95869),Ne=ce(87169),Te=ce(26227),at=ce(26869),He=ce(11968),et=ce(31735),dt=ce(42441),$e={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy"},Bt={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const At=({shixunHomeworks:xt,data:Ft,globalSetting:pn,loading:Ln,dispatch:wr})=>{var Rr;const{shixunWorkReport:Nr}=xt;let rr=((Rr=Ft==null?void 0:Ft.efficiency_list)==null?void 0:Rr.length)-parseInt(Ft==null?void 0:Ft.myself_eff[0]);const Yn=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(Br){return Br.name===Nr.username?"\u59D3\u540D\uFF1A"+Nr.username+"
\u5B66\u53F7\uFF1A "+Nr.user_id+"
\u6548\u7387\uFF1A"+(Ft==null?void 0:Ft.myself_eff[1]):Br.name+":"+Br.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:Ft==null?void 0:Ft.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:Nr.username,xAxis:rr,yAxis:Ft==null?void 0:Ft.myself_eff[1],value:Ft==null?void 0:Ft.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),_r=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(Br){var qr=Br.value;if(Br.name===Nr.username)return"\u59D3\u540D\uFF1A"+Nr.username+"
\u5B66\u53F7\uFF1A "+Nr.user_id+"
\u5F97\u5206\uFF1A"+(Ft==null?void 0:Ft.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:Bt,data:Ft==null?void 0:Ft.consume_list,symbolSize:function(Br){return Math.round(Br[2])},markPoint:{data:[{name:Nr.username,xAxis:Ft==null?void 0:Ft.myself_object[0],yAxis:Ft==null?void 0:Ft.myself_object[1],value:Ft==null?void 0:Ft.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return te.createElement(te.Fragment,null,te.createElement("aside",{className:"ml60 pr30"},te.createElement(Ce.Z,null,te.createElement(ct.Z,{flex:"800px"},te.createElement(dt.Z,{style:{width:750,height:580},option:Yn()})),te.createElement(ct.Z,{flex:"1"},te.createElement("aside",{className:$e.rightInfo},te.createElement("ul",null,te.createElement("li",null,te.createElement("span",null,"\u59D3\u540D")," ",te.createElement("span",{className:"ml30"},Nr.username)),te.createElement("li",null,te.createElement("span",null,"\u5B66\u53F7")," ",te.createElement("span",{className:"ml30"},Nr.student_id||"--")),te.createElement("li",null,te.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",te.createElement("span",{className:"ml30 c-orange"},Ft==null?void 0:Ft.myself_eff[1])),te.createElement("li",null,te.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",te.createElement("span",{className:"ml30 c-orange"},Ft==null?void 0:Ft.myself_eff[0]))),te.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",te.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",te.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",te.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),te.createElement("aside",{className:"ml60 pr30"},te.createElement(Ce.Z,null,te.createElement(ct.Z,{flex:"800px"},te.createElement(dt.Z,{style:{width:750,height:580},option:_r()})),te.createElement(ct.Z,{flex:"1"},te.createElement("aside",{className:$e.rightInfo},te.createElement("ul",null,te.createElement("li",null,te.createElement("span",null,"\u59D3\u540D")," ",te.createElement("span",{className:"ml30"},Nr.username)),te.createElement("li",null,te.createElement("span",null,"\u5B66\u53F7")," ",te.createElement("span",{className:"ml30"},Nr.student_id||"--")),te.createElement("li",null,te.createElement("span",null,"\u80FD\u529B")," ",te.createElement("span",{className:"ml30 c-orange"},Ft==null?void 0:Ft.myself_object[1]))),te.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",te.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",te.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",te.createElement("br",null)))))))};var mt=(0,Ve.connect)(({shixunHomeworks:xt,loading:Ft,globalSetting:pn})=>({shixunHomeworks:xt,globalSetting:pn,loading:Ft.effects}))(At),Gt=ce(58478),Jt=ce(71051),gn=({defaultValue:xt,onBlur:Ft,max:pn,className:Ln="game-score"})=>{const[wr,Rr]=(0,te.useState)(xt);(0,te.useEffect)(()=>{Rr(xt)},[xt]);function Nr(Yn){Rr(Yn)}function rr(){wr!==xt&&Ft(wr>pn?pn:wr)}return te.createElement(Jt.Z,{max:pn,min:0,className:Ln,value:wr,onChange:Nr,onBlur:rr})},An=ce(77834),We={md:"md___TEmcT"},Fe=ce(59301),Ot=Object.defineProperty,Fn=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,jn=(xt,Ft,pn)=>Ft in xt?Ot(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:pn}):xt[Ft]=pn,Dt=(xt,Ft)=>{for(var pn in Ft||(Ft={}))$t.call(Ft,pn)&&jn(xt,pn,Ft[pn]);if(Ct)for(var pn of Ct(Ft))on.call(Ft,pn)&&jn(xt,pn,Ft[pn]);return xt},vt=(xt,Ft)=>Fn(xt,fn(Ft));const pt=Ge.default.Option,bt={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var Zt=(xt=>(xt[xt.SET_PATH=0]="SET_PATH",xt[xt.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",xt))(Zt||{});function yt(xt,Ft){switch(Ft.type){case 0:return vt(Dt({},xt),{selectedPath:Ft.payload});case 1:return vt(Dt({},xt),{passedContent:Ft.payload});default:throw new Error}}var zt=({path:xt,game_id:Ft,onPathChange:pn,autoHeight:Ln,diff_code_count:wr,data:Rr,game_codes_cn:Nr})=>{var rr,Yn,_r,Br;const qr=xt.split("\uFF1B").filter(Et=>!!Et),[li,ai]=(0,te.useReducer)(yt,{selectedPath:qr[0],passedContent:{language:"python",content:""}}),{selectedPath:Ci,passedContent:ze}=li;function Ie(Et){ai({type:0,payload:Et})}const st={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return Fe.createElement(Fe.Fragment,null,Fe.createElement("h2",null," ",Fe.createElement("span",null,Nr,Fe.createElement(nt.Z,{title:Fe.createElement("div",null,Fe.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),Fe.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),Fe.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),Fe.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},Fe.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),wr&&Fe.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",wr),Fe.createElement("span",null,Fe.createElement(Ge.default,{style:{width:200},value:Ci,onChange:Ie}," ",qr.map(Et=>Fe.createElement(pt,{key:Et,value:Et},Et))," "))," "),(Ci==null?void 0:Ci.split(".")[1])==="md"&&Fe.createElement(An.Z,{height:300,autoHeight:Ln,defaultValue:((Yn=(rr=Rr==null?void 0:Rr.filter(Et=>Et.path===Ci))==null?void 0:rr[0])==null?void 0:Yn.content)||"",className:We.md}),(Ci==null?void 0:Ci.split(".")[1])!=="md"&&Fe.createElement(Gt.ZP,{height:300,language:ze.language,value:((Br=(_r=Rr==null?void 0:Rr.filter(Et=>Et.path===Ci))==null?void 0:_r[0])==null?void 0:Br.content)||"",autoHeight:Ln,theme:"default",isCopy:!0,options:bt}))},Se=ce(51600),se=ce(96249),fe=ce.n(se),Ue=Object.defineProperty,Be=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,sn=(xt,Ft,pn)=>Ft in xt?Ue(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:pn}):xt[Ft]=pn,he=(xt,Ft)=>{for(var pn in Ft||(Ft={}))gt.call(Ft,pn)&&sn(xt,pn,Ft[pn]);if(Be)for(var pn of Be(Ft))Mt.call(Ft,pn)&&sn(xt,pn,Ft[pn]);return xt};const oe=xt=>React.createElement("svg",he({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},xt),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var re="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiAyNS42LTE1LjM2IDAtMjUuNi0xMC4yNC0yNS42LTI1LjZ2LTYxLjQ0Yy01LjEyLTEwLjI0IDEwLjI0LTI1LjYgMjUuNi0yNS42em0yMjAuMTYgMGMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42djYxLjQ0YzAgMTUuMzYtMTAuMjQgMjUuNi0yNS42IDI1LjYtMTUuMzYgMC0yNS42LTEwLjI0LTI1LjYtMjUuNnYtNjEuNDRjMC0xMC4yNCAxMC4yNC0yNS42IDI1LjYtMjUuNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNOTE2LjQ4IDUyNy4zNmM1Ni4zMiAwIDEwNy41MiA3MS42OCAxMDcuNTIgMTUzLjYgMCA4Ny4wNC02MS40NCAxNTMuNi0xMTcuNzYgMTUzLjYgMCAwIDUxLjItNzYuOCA1MS4yLTE1OC43MnMtNDAuOTYtMTQ4LjQ4LTQwLjk2LTE0OC40OHptLTgwOC45NiA1LjEyLTUuMTIgNS4xMmMtMTAuMjQgMjAuNDgtMzUuODQgNzYuOC0zNS44NCAxMzguMjQgMCA3Ni44IDM1Ljg0IDEzOC4yNCA1MS4yIDE1OC43MkM2MS40NCA4MzQuNTYgMCA3NjggMCA2ODAuOTZjMC04MS45MiA1MS4yLTE0OC40OCAxMDcuNTItMTQ4LjQ4eiIgZmlsbD0iIzgxODdGRiIvPjxwYXRoIGQ9Ik01MTIgMGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjIyMC4xNmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xMC4yNC0zMC43Mi0zMC43MlYzMC43MkM0ODEuMjggMTUuMzYgNDk2LjY0IDAgNTEyIDB6IiBmaWxsPSIjNzAxQ0RDIi8+PHBhdGggZD0iTTM4NCA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",de=ce(40679),we=ce(59944),le=Object.defineProperty,Ee=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Bn=(xt,Ft,pn)=>Ft in xt?le(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:pn}):xt[Ft]=pn,Vt=(xt,Ft)=>{for(var pn in Ft||(Ft={}))It.call(Ft,pn)&&Bn(xt,pn,Ft[pn]);if(Ut)for(var pn of Ut(Ft))ht.call(Ft,pn)&&Bn(xt,pn,Ft[pn]);return xt},un=(xt,Ft)=>Ee(xt,St(Ft)),In=(xt,Ft,pn)=>new Promise((Ln,wr)=>{var Rr=Yn=>{try{rr(pn.next(Yn))}catch(_r){wr(_r)}},Nr=Yn=>{try{rr(pn.throw(Yn))}catch(_r){wr(_r)}},rr=Yn=>Yn.done?Ln(Yn.value):Promise.resolve(Yn.value).then(Rr,Nr);rr((pn=pn.apply(xt,Ft)).next())});const or=({shixunHomeworks:xt,autoHeight:Ft,classroomList:pn,dispatch:Ln})=>{var wr,Rr,Nr,rr,Yn,_r,Br,qr;const{shixunWorkReport:li}=xt,{stage_list:ai,work_id:Ci,ai_code_evaluation_promote:ze}=li,[Ie,st]=(0,te.useState)(!1),[Et,rn]=(0,te.useState)(!0),[Wt,Qn]=(0,te.useState)({left:0,top:0,bottom:0,right:0}),Hn=(0,te.useRef)(null),[Wn,Vn]=(0,te.useState)(!1),[Zn,Gn]=(0,te.useState)(""),ft=(0,te.useRef)(null),Yt=(Nt,qt)=>{var Mn;const{clientWidth:On,clientHeight:$n}=window.document.documentElement,Fr=(Mn=Hn.current)==null?void 0:Mn.getBoundingClientRect();Fr&&Qn({left:-Fr.left+qt.x,right:On-(Fr.right-qt.x),top:-Fr.top+qt.y,bottom:$n-(Fr.bottom-qt.y)})},Rt=(0,Ve.useParams)(),Kt=(0,He.GJ)(),nn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,te.useEffect)(()=>{console.log(Rt)},[]);const dn=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(Nt,qt,Mn)=>te.createElement("div",null,Nt,qt.is_work_end_evaluate&&te.createElement(et.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:Nt=>Me()(Nt).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(Nt,qt)=>te.createElement("span",{className:"c-blue current",onClick:()=>In(void 0,null,function*(){var Mn,On;const $n=yield(0,Se.Lk)(qt.game_identifier,{path:(On=(Mn=qt.path)==null?void 0:Mn.replace(/\;/g,";"))==null?void 0:On.split(";")[0],query_index:qt.query_index,homework_common_id:Rt.categoryId});($n==null?void 0:$n.status)===0&&(Vn($n),st(!0))})},qt.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],Rn=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(Nt,qt)=>{var Mn;return te.createElement("span",null,te.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:at.Z.IMG_SERVER+"/images/"+((Mn=qt==null?void 0:qt.user)==null?void 0:Mn.image_url)}),Nt)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:Nt=>te.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",Nt,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:Nt=>te.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",Nt,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:Nt=>te.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",Nt?Me()(Nt).format("YYYY-MM-DD HH:mm"):"--")}];function it(Nt,qt){return In(this,null,function*(){const{challenge_id:Mn}=ai[Nt],On=yield Ln({type:"shixunHomeworks/changeScore",payload:{categoryId:Rt.homeworkId,type:"report",score:qt,challenge_id:Mn}});yield Ln({type:"shixunHomeworks/getShixunWorkReport",payload:Vt({},Rt)}),On.status===0&&Re.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function wn(Nt,qt){return(0,ve.U2)(`student_works/${Ci}/rep_passed_content.json`,{path:qt,game_id:Nt})}const[Ht,ln]=(0,te.useState)((wr=li==null?void 0:li.shixun_detail)==null?void 0:wr.map(Nt=>un(Vt({},Nt),{commentEdit:!1}))),hn=Nt=>Nt.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/_{2,}/g,"`$&`"),[tn,cn]=(0,te.useState)(!1),er=(Nt,qt)=>In(void 0,null,function*(){var Mn,On;cn(!0),ft.current=new de.Z(at.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-plus-latest",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:ze,shixun_id:li==null?void 0:li.myshixun_identifier,game_id:Nt==null?void 0:Nt.id,source:"shixun",is_chat:!1,type:9,description:Nt==null?void 0:Nt.challenge_description,query:(On=(Mn=Nt==null?void 0:Nt.game_codes)==null?void 0:Mn[0])==null?void 0:On.content,homework_common_id:Rt.categoryId}),yield new Promise(($n,Fr)=>{ft.current.on("data",gr=>{const Wr=[...Ht];Wr[qt].comment=hn(gr==null?void 0:gr.full),ln(Wr)}),ft.current.on("done",()=>In(void 0,null,function*(){var gr;cn(!1);const Wr=[...Ht],Qr=yield(0,ve.ZP)(`/api/student_works/${Rt==null?void 0:Rt.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:Nt==null?void 0:Nt.challenge_id,comment:Wr[qt].comment}});if((Qr==null?void 0:Qr.status)==0){Re.ZP.success("\u8BC4\u4EF7\u6210\u529F");const ni=[...Ht];ni[qt].comment_updated_at=(gr=Qr==null?void 0:Qr.data)==null?void 0:gr.comment_updated_at,ln(ni)}})),ft.current.startStream()})});return te.createElement(te.Fragment,null,Ht==null?void 0:Ht.map(function(Nt,qt){var Mn,On;return te.createElement("div",{key:qt},te.createElement("aside",{className:"pl30 pr30",key:qt},te.createElement("div",{className:`${$e.shixunTitle} mt10`},te.createElement("div",null,te.createElement("span",{className:"fa fa-code "}),te.createElement("strong",{className:"c-black"},"\u7B2C",qt+1,"\u5173 ",te.createElement(Ve.Link,{className:"c-black",target:"_blank",to:`/tasks/${Rt.coursesId}/${Rt.categoryId}/${Nt.game_identifier}`},Nt.subject))),Kt?te.createElement("span",null,"\u8C03\u5206\uFF1A",te.createElement(gn,{className:"game-score",max:ai[qt].game_score_full,defaultValue:ai[qt].game_score,onBlur:$n=>{var Fr;if((0,He.Rm)()&&!((Fr=pn.AssistantObject.practice)!=null&&Fr.can_appraise)){Re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}it(qt,$n)}})):null),te.createElement("div",{className:"font16 mt10"},Nt.st===0&&(Nt.path?typeof(Nt==null?void 0:Nt.game_codes_cn)=="string"?te.createElement("aside",{className:$e.shixunWrp},te.createElement(zt,{game_codes_cn:Nt==null?void 0:Nt.game_codes_cn,autoHeight:Ft,path:Nt.path,game_id:Nt.id,data:Nt.game_codes,diff_code_count:Nt.diff_code_count,onPathChange:wn})):te.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),Nt.st===1&&(Nt.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),te.createElement("aside",{className:"mt10 font16"},(Mn=Nt.outputs)!=null&&Mn.length?te.createElement(ut.default,{columns:dn,pagination:{hideOnSinglePage:!0},dataSource:Nt.outputs.map($n=>Vt(Vt({},Nt),$n))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),te.createElement("aside",{className:"mt10"},te.createElement("div",null,te.createElement("div",{style:{display:"flex",alignItems:"center"}},te.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(Nt!=null&&Nt.commentEdit)&&!(0,He.dE)()&&(Nt!=null&&Nt.comment?te.createElement(te.Fragment,null,te.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",Nt!=null&&Nt.comment_updated_at?Me()(Nt==null?void 0:Nt.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),te.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>In(this,null,function*(){tn?Re.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):ke.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>In(this,null,function*(){er(Nt,qt)})})})},te.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):te.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>In(this,null,function*(){tn?Re.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):er(Nt,qt)})},te.createElement("img",{src:re,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(Nt!=null&&Nt.commentEdit)&&!(0,He.dE)()&&te.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const $n=[...Ht];$n[qt].commentEdit=!0,ln($n),Gn(Nt==null?void 0:Nt.comment)}},te.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(Nt==null?void 0:Nt.commentEdit)&&te.createElement(te.Fragment,null,te.createElement("div",{className:$e.pj_close,onClick:()=>{const $n=[...Ht];$n[qt].commentEdit=!1,ln($n)}},"\u53D6\u6D88"),te.createElement("div",{className:$e.pj_save,onClick:()=>In(this,null,function*(){var $n;const Fr=yield(0,ve.ZP)(`/api/student_works/${Rt==null?void 0:Rt.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:Nt==null?void 0:Nt.challenge_id,comment:Zn}});if((Fr==null?void 0:Fr.status)==0){Re.ZP.success("\u8BC4\u4EF7\u6210\u529F");const gr=[...Ht];gr[qt].commentEdit=!1,gr[qt].comment=Zn,gr[qt].comment_updated_at=($n=Fr==null?void 0:Fr.data)==null?void 0:$n.comment_updated_at,ln(gr)}})},"\u4FDD\u5B58"))),!(Nt!=null&&Nt.commentEdit)&&te.createElement("div",{className:$e.pingjia},Nt!=null&&Nt.comment?te.createElement(we.Z,{value:Nt==null?void 0:Nt.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(Nt==null?void 0:Nt.commentEdit)&&te.createElement(Le.default.TextArea,{defaultValue:Zn,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:$n=>Gn($n.target.value)}))),te.createElement("aside",{className:"mt10 font16"},((On=Nt==null?void 0:Nt.adjust_review_score_list)==null?void 0:On.length)>0&&(0,He.GJ)()&&te.createElement("div",null,te.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),te.createElement(ut.default,{columns:Rn,pagination:{hideOnSinglePage:!0},dataSource:Nt.adjust_review_score_list,showHeader:!1})))))}),te.createElement(ke.default,{open:Ie,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{Vn({}),st(!1)},onCancel:()=>{Vn({}),st(!1)},title:te.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{Et&&rn(!1)},onMouseOut:()=>{rn(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:Nt=>te.createElement(fe(),{disabled:Et,bounds:Wt,nodeRef:Hn,onStart:(qt,Mn)=>Yt(qt,Mn)},te.createElement("div",{ref:Hn},Nt))},te.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},te.createElement("div",{style:{display:"flex",alignItems:"center"}},((Rr=Wn==null?void 0:Wn.data)==null?void 0:Rr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?te.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):te.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),te.createElement("div",{style:{color:((Nr=Wn==null?void 0:Wn.data)==null?void 0:Nr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(rr=Wn==null?void 0:Wn.data)==null?void 0:rr.output_detail)),te.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},te.createElement("div",null,te.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),te.createElement("span",{style:{marginLeft:8,color:"#232B40"}},Me()((Yn=Wn==null?void 0:Wn.data)==null?void 0:Yn.created_at).format("YYYY-MM-DD HH:mm:ss"))),te.createElement("div",null,te.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),te.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(_r=Wn==null?void 0:Wn.data)==null?void 0:_r.ts_time,"s")),te.createElement("div",null,te.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),te.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Br=Wn==null?void 0:Wn.data)==null?void 0:Br.ts_mem,"mb")),te.createElement("div",null,te.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),te.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((qr=Wn==null?void 0:Wn.data)==null?void 0:qr.test_set_passed_rate)*100,"%")))),te.createElement(Gt.ZP,{height:500,autoHeight:Ft,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Wn==null?void 0:Wn.content)||""))),options:nn})))};var vn=(0,Ve.connect)(({shixunHomeworks:xt,loading:Ft,globalSetting:pn,classroomList:Ln})=>({shixunHomeworks:xt,globalSetting:pn,loading:Ft.effects,classroomList:Ln}))(or),fr=ce(28284),ur={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},yr=ce(76906),Xn=ce(59301),Mr=Object.defineProperty,Kr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,Dr=(xt,Ft,pn)=>Ft in xt?Mr(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:pn}):xt[Ft]=pn,Kn=(xt,Ft)=>{for(var pn in Ft||(Ft={}))Er.call(Ft,pn)&&Dr(xt,pn,Ft[pn]);if(Kr)for(var pn of Kr(Ft))lr.call(Ft,pn)&&Dr(xt,pn,Ft[pn]);return xt},tr=(xt,Ft,pn)=>new Promise((Ln,wr)=>{var Rr=Yn=>{try{rr(pn.next(Yn))}catch(_r){wr(_r)}},Nr=Yn=>{try{rr(pn.throw(Yn))}catch(_r){wr(_r)}},rr=Yn=>Yn.done?Ln(Yn.value):Promise.resolve(Yn.value).then(Rr,Nr);rr((pn=pn.apply(xt,Ft)).next())});const Jn=({shixunHomeworks:xt,dispatch:Ft,classroomList:pn})=>{const{shixunWorkReport:Ln}=xt,wr=(0,Ve.useParams)(),[Rr,Nr]=(0,te.useState)(!1),[rr]=fr.default.useForm(),[Yn,_r]=ke.default.useModal(),[Br,qr]=(0,te.useState)(!1),[li,ai]=(0,te.useState)(!1);(0,te.useEffect)(()=>{var Ie,st,Et,rn;xt.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&rr.setFieldsValue({comment:(st=(Ie=xt.actionTabs.selectArrs)==null?void 0:Ie.data)==null?void 0:st.work_comment,hidden_comment:(rn=(Et=xt.actionTabs.selectArrs)==null?void 0:Et.data)==null?void 0:rn.work_comment_hidden})},[xt.actionTabs.key]);const Ci=()=>tr(void 0,null,function*(){const Ie=rr.getFieldsValue();(yield(0,ve.ZP)(`/api/student_works/${wr.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Ie.hidden_comment,comment:Ie.comment}})).status===0&&(Re.ZP.success("\u8BC4\u9605\u6210\u529F"),rr.resetFields(),Ft({type:"shixunHomeworks/setActionTabs",payload:{}}),Ft({type:"shixunHomeworks/getShixunWorkReport",payload:Kn({},wr)}))}),ze=[{title:"\u5173\u5361",dataIndex:"name",render:(Ie,st,Et)=>Et+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ie,st,Et)=>Xn.createElement("div",null,Ie,st.complete_status===4&&Xn.createElement(et.vA,{status:st.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:Ie=>Ie?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Ie,st)=>Xn.createElement("div",null,Xn.createElement("span",{style:{color:parseFloat(st.game_score_full)!==parseFloat(Ie)?"#E30000":"#53C41B"}},Ie),"/",st.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Ie,st)=>(0,He.GJ)()?Xn.createElement(gn,{max:st.game_score_full,defaultValue:parseFloat(Ie),onBlur:Et=>tr(void 0,null,function*(){var rn,Wt;if((0,He.Rm)()&&!((rn=pn.AssistantObject.practice)!=null&&rn.can_appraise)){Re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Qn=yield Ft({type:"shixunHomeworks/changeScore",payload:{categoryId:wr.homeworkId,type:"report",score:Et,challenge_id:st.challenge_id}});(Wt=xt==null?void 0:xt.actionTabs)==null||Wt.fn(),yield Ft({type:"shixunHomeworks/getShixunWorkReport",payload:Kn({},wr)}),Qn.status===0&&Re.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ie}];return Xn.createElement(Xn.Fragment,null,_r,Xn.createElement(ke.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:xt.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>tr(void 0,null,function*(){var Ie;if((0,He.Rm)()&&!((Ie=pn.AssistantObject.practice)!=null&&Ie.can_appraise)){Re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const st=rr.getFieldsValue();JSON.stringify(st)==="{}"||st.hidden_comment===""&&st.comment===""?Nr(!0):Ci()}),onCancel:()=>{Ft({type:"shixunHomeworks/setActionTabs",payload:{}})}},Xn.createElement(Ce.Z,{justify:"space-between",className:ur.info},Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u59D3\u540D"),Xn.createElement("span",{className:ur.blackContent},Ln==null?void 0:Ln.username)),Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u5B66\u53F7"),Xn.createElement("span",{className:ur.blackContent},(Ln==null?void 0:Ln.student_id)||"--")),Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u73ED\u7EA7"),Xn.createElement("span",{className:ur.blackContent},(Ln==null?void 0:Ln.group_name)||"--")),Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u5173\u5361\u5F97\u5206"),Xn.createElement("span",{className:ur.orangeContent},(Ln==null?void 0:Ln.challenge_score)||"--")),Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u6548\u7387\u5206"),Xn.createElement("span",{className:ur.orangeContent},(Ln==null?void 0:Ln.eff_score)||"--")),Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u8865\u4EA4\u6263\u5206"),Xn.createElement("span",{className:ur.orangeContent},(Ln==null?void 0:Ln.late_penalty)||"--")),Xn.createElement(ct.Z,null,Xn.createElement("span",{className:`${ur.label} ${ur.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Xn.createElement("span",{className:ur.orangeContent},(Ln==null?void 0:Ln.work_score)||"--"))),Xn.createElement(fr.default,{form:rr,onChange:()=>{Rr&&Nr(!1)}},Xn.createElement(Ce.Z,{wrap:!1,align:"middle",justify:"space-between"},Xn.createElement(ct.Z,null,Xn.createElement("div",{className:`${ur.inputLabel} ${ur.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Xn.createElement(ct.Z,null,Xn.createElement(yr.Z,{isShowComponent:(0,He.G5)(),ModalProps:{open:Br,onCancel:()=>{qr(!1)}},onDataSelect:(Ie,st)=>tr(void 0,[Ie,st],function*(Et,{node:rn}){const Wt=()=>{rr.setFieldsValue({comment:rn==null?void 0:rn.value}),qr(!1)};if(rr.getFieldValue("comment")){Yn.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:Wt});return}Wt()})},Xn.createElement(tt.ZP,{style:{padding:0,height:"auto"},icon:Xn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Ie=>{qr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Xn.createElement(fr.default.Item,{name:"comment"},Xn.createElement(Le.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Xn.createElement(Ce.Z,{wrap:!1,align:"middle",justify:"space-between"},Xn.createElement(ct.Z,null,Xn.createElement("div",{className:`${ur.inputLabel} ${ur.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Xn.createElement(ct.Z,null,Xn.createElement(yr.Z,{isShowComponent:(0,He.G5)(),ModalProps:{open:li,onCancel:()=>{ai(!1)}},onDataSelect:(Ie,st)=>tr(void 0,[Ie,st],function*(Et,{node:rn}){const Wt=()=>{rr.setFieldsValue({hidden_comment:rn==null?void 0:rn.value}),ai(!1)};if(rr.getFieldValue("hidden_comment")){Yn.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:Wt});return}Wt()})},Xn.createElement(tt.ZP,{style:{padding:0,height:"auto"},icon:Xn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Ie=>{ai(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Xn.createElement(fr.default.Item,{name:"hidden_comment"},Xn.createElement(Le.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),Rr&&Xn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Xn.createElement("div",{className:ur.tableTitle},"\u5173\u5361\u6210\u7EE9"),Xn.createElement(ut.default,{className:ur.scoreTable,dataSource:Ln.stage_list,rowKey:"challenge_id",pagination:!1,columns:ze,scroll:{x:"max-content"}})))};var mn=(0,Ve.connect)(({shixunHomeworks:xt,classroomList:Ft})=>({shixunHomeworks:xt,classroomList:Ft}))(Jn),zn=ce(53074),en=ce(9726),Sn=ce(44164),hr=ce.n(Sn),sr={wrap:"wrap___LZOi9",line:"line___oju0L"},cr=ce(31834),Gr=({detailData:xt})=>{var Ft;return te.createElement("div",{className:sr.wrap},te.createElement(cr.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,cr.Uf)(xt),(xt==null?void 0:xt.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},te.createElement(cr.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,cr.Uf)(xt)}),!!((Ft=xt==null?void 0:xt.photos)!=null&&Ft.length)&&te.createElement(te.Fragment,null,te.createElement("div",{className:sr.line}),te.createElement(cr._s,{dataSource:xt==null?void 0:xt.photos,right:21,col:4,wrapWidth:1140}))))},Ir=ce(884),Ur=ce(92399),Lr=ce(59243),qn=ce(421),yn=ce(94276),rt=ce(59301),kr=Object.defineProperty,zr=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,jt=(xt,Ft,pn)=>Ft in xt?kr(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:pn}):xt[Ft]=pn,_n=(xt,Ft)=>{for(var pn in Ft||(Ft={}))nr.call(Ft,pn)&&jt(xt,pn,Ft[pn]);if(Tt)for(var pn of Tt(Ft))Tn.call(Ft,pn)&&jt(xt,pn,Ft[pn]);return xt},ir=(xt,Ft)=>zr(xt,Lt(Ft)),ar=(xt,Ft)=>{var pn={};for(var Ln in xt)nr.call(xt,Ln)&&Ft.indexOf(Ln)<0&&(pn[Ln]=xt[Ln]);if(xt!=null&&Tt)for(var Ln of Tt(xt))Ft.indexOf(Ln)<0&&Tn.call(xt,Ln)&&(pn[Ln]=xt[Ln]);return pn},Ar=(xt,Ft,pn)=>new Promise((Ln,wr)=>{var Rr=Yn=>{try{rr(pn.next(Yn))}catch(_r){wr(_r)}},Nr=Yn=>{try{rr(pn.throw(Yn))}catch(_r){wr(_r)}},rr=Yn=>Yn.done?Ln(Yn.value):Promise.resolve(Yn.value).then(Rr,Nr);rr((pn=pn.apply(xt,Ft)).next())});function dr(xt){const Ft=(wr,Rr)=>{if(wr.localName===Rr)return wr;for(let Nr=0,rr=wr;rr=rr.parentNode;Nr++){if(rr.localName===Rr)return rr;if(rr==document.documentElement)return!1}},pn=xt.target,Ln=Ft(pn,"a");if(console.log([Ln],Ln==null?void 0:Ln.href,44),!(Ln!=null&&Ln.href)&&pn.tagName.toUpperCase()==="IMG"){let wr=pn.src||pn.getAttribute("src");wr&&wr.indexOf("/images/avatars/User")===-1&&(xt.stopPropagation(),xt.preventDefault(),yn.Z.publish("preview-image",wr))}}const xr=xt=>{var Ft=xt,{shixunHomeworks:pn,classroomList:Ln,globalSetting:wr,loading:Rr,user:Nr,dispatch:rr}=Ft,Yn=ar(Ft,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),_r,Br,qr,li,ai,Ci,ze;const[Ie,st]=(0,te.useState)(_n({},(0,Ve.useParams)())),Et=(0,Ve.useParams)(),[rn,Wt]=(0,te.useState)({page:1,page_size:10}),Qn=(0,Ve.useLocation)(),[]=(0,te.useState)([]),[Hn,Wn]=(0,te.useState)(),Vn=(0,te.useRef)(),Zn=(0,te.useRef)(),[Gn,ft]=(0,te.useState)(!1),[Yt,Rt]=(0,te.useState)(!0),[Kt,nn]=(0,te.useState)(!1),[dn,Rn]=(0,te.useState)(!1),{shixunWorkReport:it}=pn,[wn,Ht]=(0,te.useState)(),[ln,hn]=(0,te.useState)([]),[tn,cn]=(0,te.useState)(),[er,Nt]=(0,te.useState)("all"),qt=(0,He.GJ)(),[Mn,On]=(0,te.useState)(new(_e())),[$n,Fr]=(0,te.useState)(0),[gr,Wr]=(0,te.useState)(!1),[Qr,ni]=(0,te.useState)(!1),[Ai,Jr]=(0,te.useState)(!1),[hi,ii]=(0,te.useState)(""),[$r,ri]=(0,te.useState)(!1),[Or,ei]=(0,te.useState)(!0),[gi,ti]=(0,te.useState)(0),fi=(0,te.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),Ei=(0,te.useRef)(),[Li,_a]=(0,te.useState)(!1),[Oa,Ma]=(0,te.useState)(!1),da=(0,te.useRef)(null),qi=()=>Ar(void 0,null,function*(){(Nr.userInfo.is_teacher||Nr.userInfo.admin)&&(ri(!0),ei(!1))});(0,te.useEffect)(()=>{var vr;(0,He.Rm)()&&Ln.AssistantObject.practice&&!((vr=Ln.AssistantObject.practice)!=null&&vr.can_view)&&Ve.history.replace("/403")},[(_r=Ln.AssistantObject.practice)==null?void 0:_r.can_view]),(0,te.useEffect)(()=>{qi(),console.log("\u6253\u5370\u7684------",it),Ei.current=it==null?void 0:it.next_student_work_id,ii(it.repeat_minus_score)},[it,Nr]),(0,te.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",it.work_score),ti(it.work_score)},[it.work_score,hi]),(0,te.useEffect)(()=>(rr({type:"globalSetting/footerToggle",payload:!1}),()=>{rr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,te.useEffect)(()=>{if(da.current)return da.current.addEventListener("mousedown",dr),()=>{var vr;(vr=da.current)==null||vr.removeEventListener("mousedown",dr)}},[da.current]),(0,te.useEffect)(()=>{setTimeout(()=>{da.current&&da.current.clientHeight>=500&&Ma(!0)},500)},[(Br=it==null?void 0:it.student_work_test_result_info)==null?void 0:Br.content,da.current]),(0,te.useEffect)(()=>{var vr;if(it){let ui=[];(vr=it==null?void 0:it.target_test_sets)==null||vr.map((wi,ka)=>{var ji;(ji=wi==null?void 0:wi.targets)==null||ji.map((Ua,Ti)=>{var _A;Ua.name=wi==null?void 0:wi.name,Ua.total_target_score=wi==null?void 0:wi.total_target_score,Ua.actual_target_score=wi==null?void 0:wi.actual_target_score,Ua.rowSpan=Ti===0?(_A=wi==null?void 0:wi.targets)==null?void 0:_A.length:0,Ua.order=ka+1,ui.push(Ua)})}),Ht(ui),(0,He.Rm)()&&rr({type:"classroomList/getAssistantPermissions",payload:{course_id:Ie.coursesId}})}},[it]),(0,te.useEffect)(()=>{pn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(it==null?void 0:it.students_count)>0&&!Yt&&setTimeout(()=>{mi("all")},800)},[it==null?void 0:it.homework_common_id,Yt]),(0,te.useEffect)(()=>{st(_n({},Et))},[Qn.pathname]);const $i=()=>{document.body.scrollIntoView()},na=vr=>{rn.page=vr,Wt(_n({},rn)),Ca(rn,er)},Ca=(vr,ui)=>Ar(void 0,null,function*(){nn(!0);const wi=yield(0,ve.ZP)(`/api/student_works/${Ie==null?void 0:Ie.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:ir(_n({},vr),{challenge_id:ui=="all"?null:ui})});(wi==null?void 0:wi.status)===0&&(hn(wi==null?void 0:wi.list),cn(wi==null?void 0:wi.count)),nn(!1)});function ha(){return Ar(this,null,function*(){fi.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const ma=()=>{document.querySelectorAll("canvas").forEach(vr=>{(!vr.clientWidth||!vr.clientHeight)&&vr.remove()})},ya=()=>{Vn.current.offsetHeight>62e3?Rn(!1):Rn(!0)},oi=vr=>Ar(void 0,null,function*(){const ui=yield(0,en.t1)({homeworkId:vr||Ie.homeworkId});Wn(ui==null?void 0:ui.data)}),mi=vr=>Ar(void 0,null,function*(){var ui,wi,ka,ji;_a(!0);let Ua=0,Ti;Ti=ke.default.info({width:460,title:rt.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",rt.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:rt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",rt.createElement("span",{className:"c-blue"},Ua+1),"/",vr!=="all"?1:it==null?void 0:it.students_count,rt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:$e.modal,onOk:()=>{}});const _A={margin:[0,0],filename:`${it!=null&&it.student_id&&(it==null?void 0:it.student_id)!="--"?it==null?void 0:it.student_id:""}${it.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},fA=Mn.folder(it==null?void 0:it.shixun_name);function Za(Vi){return Ar(this,null,function*(){yield oi(Vi||Ei.current);const Oi=yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:_n({homeworkId:Vi||Ei.current},fi.current||{})});Ei.current=Oi==null?void 0:Oi.next_student_work_id,$i(),Ua++,setTimeout(()=>Ar(this,null,function*(){var wA,BA,iA,za;ma();const kA=fA.folder(`${Oi==null?void 0:Oi.group_name}`).folder(`${Oi!=null&&Oi.student_id&&(Oi==null?void 0:Oi.student_id)!="--"?Oi.student_id+"+":""}${Oi==null?void 0:Oi.username}`),Na=document.querySelector("#export-all").children;let aA=hr()();for(let ga=0;gaAr(this,null,function*(){ga0&&((iA=(BA=Oi==null?void 0:Oi.shixun_detail)==null?void 0:BA.filter(ga=>{var ua;return((ua=ga==null?void 0:ga.game_codes)==null?void 0:ua.length)>0}))==null?void 0:iA.length)>0){const ga=kA.folder("\u4EE3\u7801\u6587\u4EF6");(za=Oi==null?void 0:Oi.shixun_detail)==null||za.map((ua,uA)=>{var UA,DA;if(((UA=ua==null?void 0:ua.game_codes)==null?void 0:UA.length)>0){const qa=ga.folder(`\u7B2C${uA+1}\u5173-${ua.subject}-${ua.id}`);(DA=ua==null?void 0:ua.game_codes)==null||DA.map(fa=>{qa.file(`${fa.filename}.txt`,fa==null?void 0:fa.content)})}})}Ti.update({content:rt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",rt.createElement("span",{className:"c-blue"},Ua),"/",Oi==null?void 0:Oi.students_count,rt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Ua==(Oi==null?void 0:Oi.students_count)?(Ti.destroy(),bi()):Za()}),2200)})}if(vr!=="all"||(it==null?void 0:it.students_count)<2){ma(),$i();const Vi=Zn.current.children;let Oi=hr()();const BA=fA.folder(`${it==null?void 0:it.group_name}`).folder(`${it!=null&&it.student_id&&(it==null?void 0:it.student_id)!="--"?(it==null?void 0:it.student_id)+"+":""}${it==null?void 0:it.username}`);for(let iA=0;iAAr(void 0,null,function*(){iA0&&((ka=(wi=it==null?void 0:it.shixun_detail)==null?void 0:wi.filter(iA=>{var za;return((za=iA==null?void 0:iA.game_codes)==null?void 0:za.length)>0}))==null?void 0:ka.length)>0){const iA=BA.folder("\u4EE3\u7801\u6587\u4EF6");(ji=it==null?void 0:it.shixun_detail)==null||ji.map((za,KA)=>{var kA,Na;if(((kA=za==null?void 0:za.game_codes)==null?void 0:kA.length)>0){const aA=iA.folder(`\u7B2C${KA+1}\u5173-${za.subject}-${za.id}`);(Na=za==null?void 0:za.game_codes)==null||Na.map(ga=>{aA.file(`${ga.filename}.txt`,ga==null?void 0:ga.content)})}})}Ti.destroy(),bi();return}else Za(it==null?void 0:it.first_student_work_id)}),bi=()=>{Mn.generateAsync({type:"blob"}).then(function(vr){console.log(it,"shixunWorkReport");const ui=document.createElement("a");ui.href=window.URL.createObjectURL(vr),ui.download=(it==null?void 0:it.shixun_name)+".zip",document.body.appendChild(ui);const wi=document.createEvent("MouseEvents");wi.initEvent("click",!1,!1),ui.dispatchEvent(wi),document.body.removeChild(ui),On(new(_e()))}),Rn(!1)};(0,te.useEffect)(()=>{Fi()},[Ie.homeworkId]);const Fi=()=>Ar(void 0,null,function*(){Rt(!0),yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ie),fi.current||{})}),oi(),(0,He.GJ)()&&ha(),Rt(!1)}),Hi=[{title:"\u5173\u5361",dataIndex:"name",render:(vr,ui,wi)=>wi+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(vr,ui,wi)=>rt.createElement("div",null,vr,ui.complete_status===4&&rt.createElement(et.vA,{status:ui.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(vr,ui,wi)=>vr||"- -"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:vr=>vr?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(vr,ui)=>rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ui.myself_experience)!==parseFloat(vr)?"red":"green"}},ui.myself_experience),"/",vr)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(vr,ui)=>rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ui.game_score_full)!==parseFloat(vr)?"red":"green"}},vr),"/",ui.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(vr,ui)=>qt?rt.createElement(gn,{max:ui.game_score_full,defaultValue:parseFloat(vr),onBlur:wi=>Ar(void 0,null,function*(){var ka;if((0,He.Rm)()&&!((ka=Ln.AssistantObject.practice)!=null&&ka.can_appraise)){Re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const ji=yield rr({type:"shixunHomeworks/changeScore",payload:{categoryId:Ie.homeworkId,type:"report",score:wi,challenge_id:ui.challenge_id}});Ca({page:1,page_size:10},"all"),yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ie),fi.current||{})}),ji.status===0&&Re.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):vr}];let Xi=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(vr,ui,wi)=>({children:vr,props:{rowSpan:ui.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(vr,ui,wi)=>({children:vr,props:{rowSpan:ui.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(vr,ui,wi)=>rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ui.actual_test_score)!==parseFloat(vr)?"red":"green"}},ui.actual_test_score),"/",vr)},{title:"\u6307\u6807\u603B\u5206",render:(vr,ui,wi)=>({children:rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ui.actual_target_score)!==parseFloat(vr)?"red":"green"}},ui.actual_target_score),"/",vr),props:{rowSpan:ui.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Mi=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:vr=>rt.createElement("span",null,vr?Me()(vr).format("YYYY-MM-DD HH:mm"):"--")}],wa=vr=>{rr({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{vr==="next"?Ve.history.push(`/classrooms/${Ie.coursesId}/shixun_homework/${Ie.categoryId}/${it==null?void 0:it.next_student_work_id}/comment`):Ve.history.push(`/classrooms/${Ie.coursesId}/shixun_homework/${Ie.categoryId}/${it==null?void 0:it.pre_student_work_id}/comment`)},200)},Ba=vr=>{ii(""),vr.target.value&&(console.log("\u8FDB\u6765",it),vr.target.value=vr.target.value>it.repeat_setting_score?it.repeat_setting_score:vr.target.value,ii(vr.target.value))},Qi=()=>Ar(void 0,null,function*(){const vr=yield(0,ve.ZP)(`/api/student_works/${it==null?void 0:it.work_id}/update_repeat_score`,{method:"put",body:{score:hi}});yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ie),fi.current||{})}),vr.status===0&&Re.ZP.info("\u64CD\u4F5C\u6210\u529F")});return rt.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},rt.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},rt.createElement(ge.Z,{loading:Rr["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},rt.createElement("div",{className:"edu-container"},it.course_id&&rt.createElement("section",{className:"animated fadeIn"},rt.createElement("aside",{className:""},it.category&&rt.createElement(Xe.Z,{separator:">"},rt.createElement(Xe.Z.Item,null,rt.createElement(Ve.Link,{to:`/classrooms/${it.course_id}/shixun_homework`},it.course_name)),rt.createElement(Xe.Z.Item,null,rt.createElement(Ve.Link,{to:`/classrooms/${it.course_id}/shixun_homework/${it.category.main?"":it.category.category_id}`},it.category.category_name)),rt.createElement(Xe.Z.Item,null,rt.createElement(Ve.Link,{to:`/classrooms/${it.course_id}/shixun_homework/${it.homework_common_id}/detail${(0,He.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),rt.createElement(Xe.Z.Item,null,it.username))),rt.createElement("aside",{className:[$e.title1,"mt20"].join(" ")},rt.createElement(Ce.Z,{align:"middle"},rt.createElement(ct.Z,{flex:1},rt.createElement(Ve.Link,{to:`/classrooms/${it.course_id}/shixun_homework/${it.homework_common_id}/detail`},rt.createElement(Qe.Z,{className:"font16 c-black"})),rt.createElement("strong",{className:"font20 ml5"},it==null?void 0:it.homework_name),rt.createElement(et.VV,{temporary:!0,status:it.homework_status})),rt.createElement(ct.Z,{className:$e.title1_right},it.view_tpi&&rt.createElement(tt.ZP,{onClick:()=>{var vr,ui;(0,et.xg)(`/tasks/${it==null?void 0:it.course_id}/${it==null?void 0:it.homework_common_id}/${(ui=(vr=it==null?void 0:it.shixun_detail)==null?void 0:vr[0])==null?void 0:ui.game_identifier}`)}},rt.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,He.GJ)()&&it.homework_end===!1&&!!it.myshixun_id&&rt.createElement(tt.ZP,{className:"ml10",onClick:()=>Ar(void 0,null,function*(){yield rr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:it.myshixun_identifier},homework_common_id:Et.categoryId}})})},rt.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),rt.createElement(tt.ZP,{className:"ml10",onClick:()=>{var vr;if(!(!(it!=null&&it.is_old_data_for_time)&&(0,et.Ye)(rr))){if((0,He.Rm)()&&!((vr=Ln.AssistantObject.practice)!=null&&vr.can_download)){Re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}mi("")}},loading:Gn},rt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,He.GJ)()&&(it==null?void 0:it.students_count)>1&&rt.createElement(tt.ZP,{className:"ml10",onClick:()=>{var vr;if(!(!(it!=null&&it.is_old_data_for_time)&&(0,et.Ye)(rr))){if((0,He.Rm)()&&!((vr=Ln.AssistantObject.practice)!=null&&vr.can_download)){Re.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ke.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:rt.createElement(nt.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:rt.createElement(nt.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{mi("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Ir.jj)({categoryId:Ie.categoryId,coursesId:Ie.coursesId},"shixun_report")}}})}}},rt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),rt.createElement("aside",{className:"mt30 relative"})),rt.createElement("aside",{className:"edu-container bg-white",ref:Vn},rt.createElement("div",{id:"export-all",ref:Zn},rt.createElement("div",{id:"export-all-1"},rt.createElement("div",{className:$e.title},rt.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),rt.createElement("div",null,(0,He.GJ)()&&rt.createElement(tt.ZP,{className:"mr20",type:"primary",onClick:()=>{rr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:it.user_id,data:_n({},it)},fn:()=>Ca({page:1,page_size:10},"all")}})}},rt.createElement(xe.Z,null),it.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),rt.createElement(Ze.Z,{style:{marginTop:0}}),rt.createElement(Ce.Z,{className:"pl30 pr30"},rt.createElement(ct.Z,null,rt.createElement("img",{className:$e.userPic,src:`${at.Z.IMG_SERVER}/images/${it.image_url}`,alt:it.username})),rt.createElement(ct.Z,null,rt.createElement("span",{className:"font16 ml40"},it.username),rt.createElement(et.vA,{status:it.compelete_status}),rt.createElement("ul",{className:$e.userInfo},rt.createElement("li",null,"\u5B66\u53F7\uFF1A",it.student_id||"--"),rt.createElement("li",null,"\u5206\u73ED\uFF1A",it.group_name||"--"),rt.createElement("br",null),rt.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",rt.createElement("span",{className:"c-red"},it.complete_count),"/",rt.createElement("span",{className:"c-red"},it.challenges_count)),rt.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",rt.createElement("span",{className:"c-red"},it.current_complete_count||"-"),"/",rt.createElement("span",{className:"c-red"},it.challenges_count)),rt.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",it&&it.efficiency===null?"--":it&&it.efficiency),rt.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",it&&it.max_efficiency===null?"--":it&&it.max_efficiency))),rt.createElement("ul",{className:[$e.listItem,"mt10"].join(" ")},rt.createElement("li",null,rt.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),rt.createElement("div",{className:"c-light-black mt20"},it&&it.passed_time===null||it&&it.passed_time==="--"?"--":Me()(it&&it.passed_time).format("YYYY-MM-DD HH:mm"))),rt.createElement("li",null,rt.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",rt.createElement("i",{onClick:vr=>{vr.stopPropagation(),vr.preventDefault(),Wr(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),rt.createElement("div",{className:"c-light-black mt20"},it==null?void 0:it.human_training_time_rules)),rt.createElement("li",null,rt.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",rt.createElement("i",{onClick:vr=>{vr.stopPropagation(),vr.preventDefault(),ni(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),rt.createElement("div",{className:"c-light-black mt20"},it.time_consuming)),rt.createElement("li",null,rt.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),rt.createElement("div",{className:"mt20"},it.evaluate_count)),(it==null?void 0:it.eff_score_full)&&rt.createElement(rt.Fragment,null,rt.createElement("li",null,rt.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},it.challenge_score),"/",rt.createElement("span",{className:"c-light-black"},it.challenge_score_full))),rt.createElement("li",null,rt.createElement("strong",null,"\u6548\u7387\u5206"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},it.eff_score),"/",rt.createElement("span",{className:"c-light-black"},it.eff_score_full)))),(it==null?void 0:it.have_repeat)&&(it==null?void 0:it.repeat_minus_score)!==0&&rt.createElement("li",{style:{position:"relative"}},rt.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},rt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),rt.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},it!=null&&it.review_rate?rt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(it!=null&&it.review_id&&$r)localStorage.setItem("studentDetial",window.location.pathname),Ve.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${Ie.categoryId}/review_detail/${it==null?void 0:it.review_id}`});else return}},it.review_rate.toFixed(1),"%"):rt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),$r?rt.createElement("div",{className:"mt20"},rt.createElement(Le.default,{style:{width:"45px",height:"22px"},value:hi,onChange:vr=>{Ba(vr)},onBlur:Qi,disabled:Or})," / ",it==null?void 0:it.repeat_setting_score):rt.createElement("div",{className:"mt20"},it==null?void 0:it.repeat_minus_score," / ",it==null?void 0:it.repeat_setting_score)),console.log("sssssssssssssssssssssss",it==null?void 0:it.have_repeat,it==null?void 0:it.repeat_minus_score),(it==null?void 0:it.have_repeat)&&(it==null?void 0:it.repeat_minus_score)===0&&rt.createElement("li",null,rt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),rt.createElement("div",{className:"mt20"}," - -")),!(it!=null&&it.have_repeat)&&rt.createElement("li",null,rt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),rt.createElement("div",{className:"mt20"}," - -")),rt.createElement("li",null,rt.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),rt.createElement("div",{className:"mt20"},rt.createElement("span",null,it.late_penalty||"- -"))),rt.createElement("li",null,rt.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},gi),"/",rt.createElement("span",{className:"c-light-black"},it.all_work_score))),rt.createElement("li",null,rt.createElement("strong",null,"\u603B\u8BC4"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},it.overall_appraisal))))),rt.createElement(Ze.Z,{style:{margin:0}}),(it.work_comment_hidden||it.work_comment)&&rt.createElement("div",null,rt.createElement(Ce.Z,{align:"middle"},rt.createElement(ct.Z,{flex:1},rt.createElement("h1",{className:$e.title},"\u70B9\u8BC4\u5185\u5BB9")),rt.createElement(ct.Z,{className:"pr30"},(0,He.GJ)()&&rt.createElement(tt.ZP,{onClick:()=>Ar(void 0,null,function*(){ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:rt.createElement(Ne.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return Ar(this,null,function*(){(yield(0,en.gZ)({comment_id:it.comment_id,homeworkId:Ie.homeworkId})).status===0&&(Re.ZP.success("\u5220\u9664\u6210\u529F"),rr({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ie),fi.current||{})}))})}})})},rt.createElement(Te.Z,null),"\u5220\u9664"))),rt.createElement(Ze.Z,{style:{margin:0}}),it.work_comment&&rt.createElement("aside",{className:"pl30 pr30 mt20"},rt.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),rt.createElement("br",null),rt.createElement(we.Z,{value:it.work_comment})),it.work_comment_hidden&&rt.createElement("aside",{className:"pl30 pr30 mt20"},rt.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),rt.createElement("br",null),rt.createElement(we.Z,{value:it.work_comment_hidden}))),(it==null?void 0:it.action_analysis)&&rt.createElement(Gr,{detailData:it}),rt.createElement("div",{className:$e.score},rt.createElement("h1",{className:$e.title},"\u9636\u6BB5\u6210\u7EE9"),(it==null?void 0:it.adjust_review_score_count)>0&&(0,He.GJ)()&&rt.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Jr(!0),Ca({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",it==null?void 0:it.adjust_review_score_count,"\u6B21\uFF09")),rt.createElement("aside",{className:"pl30 pr30"},rt.createElement(ut.default,{dataSource:it.stage_list,rowKey:vr=>vr==null?void 0:vr.challenge_id,pagination:!1,columns:Hi})),((qr=it==null?void 0:it.target_test_sets)==null?void 0:qr.length)>0&&rt.createElement("div",null,rt.createElement("h1",{className:$e.title},"\u6307\u6807\u6210\u7EE9"),rt.createElement("aside",{className:"pl30 pr30"},rt.createElement(ut.default,{dataSource:wn,rowKey:vr=>vr==null?void 0:vr.challenge_id,pagination:!1,bordered:!0,columns:Xi}))),(it==null?void 0:it.work_description)&&rt.createElement(rt.Fragment,null,rt.createElement("h1",{className:$e.title},"\u4E2A\u4EBA\u603B\u7ED3"),rt.createElement("aside",{className:"pl30 pr30"},rt.createElement(we.Z,{value:it==null?void 0:it.work_description}))),rt.createElement("h1",{className:$e.title},"\u56FE\u5F62\u7EDF\u8BA1"),rt.createElement(mt,{data:Hn}),(it==null?void 0:it.is_open_submit_test_result)&&rt.createElement(rt.Fragment,null,rt.createElement(qn.Z,null),rt.createElement("h1",{className:$e.title},"\u5B9E\u9A8C\u7ED3\u679C"),(li=it==null?void 0:it.student_work_test_result_info)!=null&&li.is_submit_test_result?rt.createElement("div",{className:"px-30px"},rt.createElement("div",{className:"py-20px px-36px",style:{background:"#F6F7F9"}},rt.createElement("div",{ref:da,style:{maxHeight:!Li&&"500px",overflow:"hidden"}},rt.createElement(we.Z,{value:(ai=it==null?void 0:it.student_work_test_result_info)==null?void 0:ai.content})),Oa&&rt.createElement("div",{className:"w-full current",onClick:()=>{_a(!Li)}},rt.createElement(Ze.Z,{variant:"dashed",style:{borderColor:"#3061D0",marginBottom:"0px"},dashed:!0},rt.createElement("span",{style:{color:"#3061D0"}},Li?"\u6536\u8D77":"\u5C55\u5F00")))),rt.createElement(Ur.Z,{className:"px-36px",showDimensions:!1,dataSource:(Ci=it==null?void 0:it.student_work_test_result_info)==null?void 0:Ci.test_result_files,callback:()=>{}})):rt.createElement(Lr.Z,{customText:"\u5B66\u751F\u672A\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"})),rt.createElement("h1",{className:$e.title},"\u5B9E\u8BAD\u8BE6\u60C5")),rt.createElement(vn,{autoHeight:dn}))),(0,He.GJ)()&&rt.createElement("aside",{className:`${$e.footerBar} ${Gn?$e.footerBarStatic:""}`},rt.createElement("aside",{className:"edu-container"},rt.createElement(Ce.Z,{align:"middle"},rt.createElement(ct.Z,{flex:"1"},rt.createElement(Ve.Link,{className:$e.exitComment,to:`/classrooms/${Ie.coursesId}/shixun_homework/${Ie.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),rt.createElement(ct.Z,{flex:"1",className:"tr"},rt.createElement(tt.ZP,{type:"default",disabled:!(it!=null&&it.pre_student_work_id),onClick:()=>wa()},"\u4E0A\u4E00\u4E2A"),rt.createElement(tt.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(it!=null&&it.next_student_work_id),onClick:()=>wa("next")},"\u4E0B\u4E00\u4E2A"),(0,He.GJ)()&&rt.createElement(tt.ZP,{type:"primary",onClick:()=>Ar(void 0,null,function*(){rr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:it.user_id,data:_n({},it)},fn:()=>Ca({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),rt.createElement(mn,null),rt.createElement(zn.Z,null),rt.createElement(ke.default,{open:gr,width:860,centered:!0,onCancel:()=>{Wr(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},rt.createElement("div",{style:{color:"#333333",fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),rt.createElement("br",null),rt.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),rt.createElement("br",null),rt.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),rt.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),rt.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),rt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),rt.createElement("br",null),rt.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),rt.createElement("br",null),rt.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),rt.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),rt.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),rt.createElement("br",null),rt.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),rt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),rt.createElement("br",null),rt.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),rt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),rt.createElement("br",null),rt.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),rt.createElement(ke.default,{open:Qr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{ni(!1)},width:600},rt.createElement("div",{style:{fontWeight:400,color:"#333333"}},rt.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",rt.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),rt.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",rt.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),rt.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",rt.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),rt.createElement(ke.default,{open:Ai,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{Nt("all"),Jr(!1)},destroyOnClose:!0,width:900},rt.createElement("div",{style:{fontWeight:400,color:"#333333"}},rt.createElement("div",null,rt.createElement("span",null,"\u5173\u5361\uFF1A"),rt.createElement(Ge.default,{style:{width:300},value:er,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:vr=>Ar(void 0,null,function*(){Nt(vr),Ca({page:1,page_size:10},vr)})},rt.createElement(Ge.default.Option,{value:"all"}," \u5168\u90E8 "),(ze=it==null?void 0:it.stage_list)==null?void 0:ze.map((vr,ui)=>rt.createElement(Ge.default.Option,{key:ui,value:vr==null?void 0:vr.challenge_id},"\u7B2C",(0,et.EM)(ui+1),"\u5173")))),rt.createElement("div",{className:"mt20"},rt.createElement(ut.default,{dataSource:ln,rowKey:vr=>vr==null?void 0:vr.id,pagination:!1,columns:Mi,loading:Kt})),rt.createElement("div",{className:$e.footer},rt.createElement("div",null,rt.createElement("span",{style:{color:"#656F87"}},"\u5171",rt.createElement("span",{className:"c-light-primary"},tn),"\u6761\u6570\u636E")),rt.createElement(Je.Z,{defaultCurrent:1,defaultPageSize:10,current:(rn==null?void 0:rn.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:tn,onChange:na})))))};var Nn=(0,Ve.connect)(({shixunHomeworks:xt,classroomList:Ft,loading:pn,globalSetting:Ln,user:wr})=>({shixunHomeworks:xt,classroomList:Ft,globalSetting:Ln,loading:pn.effects,user:wr}))(xr)},53074:function(xn,wt,ce){"use strict";var te=ce(62957),Ke=ce(6767),Me=ce(97013),Ye=ce(58106),_e=ce(11968),ve=ce(59301),Ve=(Re,ge,Xe)=>new Promise((Ce,ct)=>{var tt=Le=>{try{Ze(Xe.next(Le))}catch(ut){ct(ut)}},nt=Le=>{try{Ze(Xe.throw(Le))}catch(ut){ct(ut)}},Ze=Le=>Le.done?Ce(Le.value):Promise.resolve(Le.value).then(tt,nt);Ze((Xe=Xe.apply(Re,ge)).next())});const ke=({shixunHomeworks:Re,classroomList:ge,dispatch:Xe})=>{const Ce=(0,Ye.useParams)();return ve.createElement(te.default,{centered:!0,title:"\u63D0\u793A",open:Re.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ve(void 0,null,function*(){var ct,tt,nt,Ze;if((0,_e.Rm)()&&!((ct=ge.AssistantObject.practice)!=null&&ct.can_redo)){Ke.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Le=yield(0,Me.ZP)(`/api/myshixuns/${Re.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Ce.coursesId,homework_common_id:Re.actionTabs.homework_common_id}});if(Le.shixun_identifier){Ke.ZP.success("\u64CD\u4F5C\u6210\u529F"),Xe({type:"shixunHomeworks/setActionTabs",payload:{}});const ut=(nt=(tt=Le==null?void 0:Le.new_works)==null?void 0:tt.find(Ge=>`${Ge.homework_common_id}`===Ce.categoryId))==null?void 0:nt.id;if((0,_e.Rm)()&&!((Ze=ge.AssistantObject.practice)!=null&&Ze.can_view))return;Ye.history.replace(`/classrooms/${Ce.coursesId}/shixun_homework/${Ce.categoryId}/${ut}/comment`)}}),onCancel:()=>{Xe({type:"shixunHomeworks/setActionTabs",payload:{}})}},ve.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),ve.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};wt.Z=(0,Ye.connect)(({shixunHomeworks:Re,classroomList:ge})=>({shixunHomeworks:Re,classroomList:ge}))(ke)},884:function(xn,wt,ce){"use strict";ce.d(wt,{AD:function(){return mt},BA:function(){return Se},D9:function(){return Ot},Hp:function(){return Ne},IM:function(){return fn},Iy:function(){return at},KM:function(){return zt},KU:function(){return jn},MJ:function(){return Te},Ne:function(){return Fn},ON:function(){return vt},Uj:function(){return Zt},VY:function(){return on},YO:function(){return bt},YX:function(){return pt},Zn:function(){return nt},_g:function(){return Je},_k:function(){return We},c6:function(){return Bt},cr:function(){return Ze},eV:function(){return At},fi:function(){return Le},gh:function(){return dt},hS:function(){return Ct},iA:function(){return ut},j6:function(){return Qe},je:function(){return gn},jj:function(){return xe},kS:function(){return Dt},lS:function(){return An},o6:function(){return $e},pO:function(){return yt},rQ:function(){return Gt},sA:function(){return et},xm:function(){return Fe},xo:function(){return $t},y8:function(){return Jt},yd:function(){return Ge}});var te=ce(51600),Ke=ce(58106),Me=ce(31735),Ye=ce(6767),_e=ce(26869),ve=Object.defineProperty,Ve=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ge=(se,fe,Ue)=>fe in se?ve(se,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):se[fe]=Ue,Xe=(se,fe)=>{for(var Ue in fe||(fe={}))ke.call(fe,Ue)&&ge(se,Ue,fe[Ue]);if(Ve)for(var Ue of Ve(fe))Re.call(fe,Ue)&&ge(se,Ue,fe[Ue]);return se},Ce=(se,fe,Ue)=>new Promise((Be,gt)=>{var Mt=oe=>{try{he(Ue.next(oe))}catch(re){gt(re)}},sn=oe=>{try{he(Ue.throw(oe))}catch(re){gt(re)}},he=oe=>oe.done?Be(oe.value):Promise.resolve(oe.value).then(Mt,sn);he((Ue=Ue.apply(se,fe)).next())});const ct=()=>{(0,Ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},tt=()=>{(0,Ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},nt=se=>Ce(void 0,null,function*(){ct(),(yield(0,te.YR)(Xe({},se))).status===0&&(yield(0,Me.QH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se.coursesId}/export_couser_info.json`,query:se}))),tt()}),Ze=se=>Ce(void 0,null,function*(){const fe=yield(0,te.yS)(Xe({},se));if(fe.status===0)Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_member_act_score`);else{if(fe.status===-2)return fe;fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_member_act_score`))}}),Le=se=>Ce(void 0,null,function*(){const fe=yield(0,te.W0)(Xe({},se));if(fe.status===0)Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_score`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_score`))}}),ut=se=>Ce(void 0,null,function*(){const fe=yield(0,te.Nl)(Xe({},se));if(fe.status===0)Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`))}}),Ge=se=>Ce(void 0,null,function*(){const fe=yield(0,te.IU)(Xe({},se));if(fe.status===0)Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/export_star_user`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/export_star_user`))}}),Je=se=>Ce(void 0,null,function*(){const fe=yield(0,te.td)(Xe({},se));if(fe.status===0)Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`);else{if(fe.status===-2)return fe;if(fe.status===-3)(0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`);else if(fe.status===-4)return fe}}),Qe=se=>Ce(void 0,null,function*(){const fe=yield(0,te.QX)(Xe({},se));if(fe.status===0)Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_homework`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_homework`))}}),xe=(se,fe)=>Ce(void 0,null,function*(){const Ue=yield(0,te.o_)(Xe({},se));Ue.status===0?(Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ue.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),Ne=(se,fe)=>Ce(void 0,null,function*(){const Ue=yield(0,te.ZL)(Xe({},se));Ue.status===0?(Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ue.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),Te=(se,fe)=>Ce(void 0,null,function*(){const Ue=yield(0,te.vV)(Xe({},se));Ue.status===0?(Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ue.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),at=(se,fe)=>Ce(void 0,null,function*(){const Ue=yield(0,te.aP)(Xe({},se));Ue.status===0?(Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ue.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),He=se=>Ce(void 0,null,function*(){ct(),(yield exportCourseWorkListAppendix(Xe({},se))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${se.categoryId}/works_list.zip`,query:se}))),tt()}),et=se=>Ce(void 0,null,function*(){ct(),yield(0,Me.FH)("",_e.Z.API_SERVER+`/api/polls/${se.categoryId}/commit_result.xlsx`),tt()}),dt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se.coursesId}/attendances/export_xlsx_data.xlsx`,query:se}))}),$e=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se.coursesId}/video_study_statics.xlsx`,query:se}))}),Bt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se.coursesId}/export_video_study.xlsx`,query:se}))}),At=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se.coursesId}/export_course_students_info.xlsx`,query:se}))}),mt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/school_manages/students.xlsx",query:se}))}),Gt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/item_banks/export.xlsx",query:se}))}),Jt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:se}))}),gn=se=>Ce(void 0,null,function*(){const fe=yield(0,te.Uy)(Xe({},se));fe.status===0?(Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_users`)):fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_users`))}),An=se=>Ce(void 0,null,function*(){const fe=yield(0,te.tg)(Xe({},se));fe.status===0?(Ye.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_report`)):fe.status===-3&&((0,Ke.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ke.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_report`))}),We=se=>Ce(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/export_records/${se.id}.xlsx`,query:se}))}),Fe=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:se}))}),Ot=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se==null?void 0:se.coursesId}/${se.menuKey}_statistic.xlsx?${se.checkedList.map(fe=>`course_group_id[]=${fe}`).join("&")}`,query:se}))}),Fn=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/ec_years/${se==null?void 0:se.ec_year_id}/ec_training_objectives.xlsx`,query:se}))}),fn=se=>Ce(void 0,null,function*(){yield(0,Me.FH)(se==null?void 0:se.name,(0,Me.NY)({url:_e.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:se}))}),Ct=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/ec_years/${se==null?void 0:se.ec_year_id}/ec_courses.xlsx`,query:se}))}),$t=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/ec_years/${se==null?void 0:se.ec_year_id}/ec_graduation_requirements.xlsx`,query:se}))}),on=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:se}))}),jn=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/exercises/${se.categoryId}/rank_list.xlsx`,query:se}))}),Dt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:se}))}),vt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/examination_banks/${se.id}.json`,query:se}))}),pt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/exercises/${se.categoryId}.json`,query:se}))}),bt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/polls/${se==null?void 0:se.id}/commit_result.json`,query:se}))}),Zt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+"/api/paths/get_task_pass.json",query:se}))}),yt=(se,fe)=>Ce(void 0,null,function*(){yield(0,Me.FH)(fe||"",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/exercises/${se==null?void 0:se.exercise_id}/consult_exercise.json`,query:se}))}),zt=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/competitions/${se==null?void 0:se.identifier}/competition_commit_records/member_works.xlsx`,query:se}))}),Se=se=>Ce(void 0,null,function*(){yield(0,Me.FH)("",(0,Me.NY)({url:_e.Z.API_SERVER+`/api/courses/${se==null?void 0:se.coursesId}/group_homeworks/import_group_template.xlsx`,query:se}))})},26718:function(xn,wt,ce){"use strict";ce.d(wt,{U:function(){return Re}});var te=ce(59301),Ke=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ve=(ge,Xe,Ce)=>Xe in ge?Ke(ge,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):ge[Xe]=Ce,Ve=(ge,Xe)=>{for(var Ce in Xe||(Xe={}))Ye.call(Xe,Ce)&&ve(ge,Ce,Xe[Ce]);if(Me)for(var Ce of Me(Xe))_e.call(Xe,Ce)&&ve(ge,Ce,Xe[Ce]);return ge},ke=(ge,Xe,Ce)=>new Promise((ct,tt)=>{var nt=ut=>{try{Le(Ce.next(ut))}catch(Ge){tt(Ge)}},Ze=ut=>{try{Le(Ce.throw(ut))}catch(Ge){tt(Ge)}},Le=ut=>ut.done?ct(ut.value):Promise.resolve(ut.value).then(nt,Ze);Le((Ce=Ce.apply(ge,Xe)).next())});function Re(ge,Xe){const[Ce,ct]=(0,te.useState)(Xe),[tt,nt]=(0,te.useState)(!1),[Ze,Le]=(0,te.useState)();return[Ce,tt,(Ge,Je=!1)=>ke(this,null,function*(){const Qe=Je?Xe:Ve(Ve({},Ce),Ge);nt(!0),ct(Qe);const xe=yield ge(Qe);return nt(!1),Le(xe),xe}),Ze,Le]}},58489:function(xn,wt,ce){"use strict";ce.d(wt,{AL:function(){return Qe},Iy:function(){return Xe},Qv:function(){return tt},ez:function(){return Je},jb:function(){return Ce}});var te=ce(32834),Ke=ce.n(te),Me=ce(11690),Ye=ce.n(Me);let _e=1;function ve(He,et){const dt=He.match(/^(\s+)(?:```)/);if(dt===null)return et;const $e=dt[1];return et.split(` `).map(Bt=>{const At=Bt.match(/^\s+/);if(At===null)return Bt;const[mt]=At;return mt.length>=$e.length?Bt.slice($e.length):Bt}).join(` `)}let Ve=[],ke=["
    "];const Re=new(Ke()).Renderer,ge=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){Ve.length=0,ke=["
      "]}const Ce={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(He,et,dt,$e){if(et>=He.length||He[et].level<=dt)return et;var Bt=He[et];$e.push("
    • "+Bt.text+""),et++;var At=[];return et=ct(He,et,Bt.level,At),At.length>0&&($e.push("
        "),At.forEach(function(mt){$e.push(mt)}),$e.push("
      ")),$e.push("
    • "),et=ct(He,et,dt,$e),et}function tt(){return ct(Ve,0,0,ke),ke.push("
    "),ke.join("")}const nt={heading(He){const et=ge.exec(He);if(_e+=1,et)return{type:"heading",raw:et[0],depth:et[1].length,text:et[2]}},fences(He){const et=this.rules.block.fences.exec(He);if(et){const dt=et[0];let $e=ve(dt,et[3]||"");const Bt=et[2]?et[2].trim():et[2];if(["latex","katex","math"].indexOf(Bt)>=0){const At=ut(),mt=$e;$e=At,Ge[At]={type:"block",expression:mt}}return{type:"code",raw:dt,lang:Bt,text:$e}}}},Ze=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Le=0;const ut=()=>`__special_katext_id_${Le++}__`;let Ge={};function Je(){return Ge}function Qe(){Le=0,Ge={}}function xe(He){return He=He.replace(Ze,(et,dt)=>{const $e=ut();return Ge[$e]={type:"inline",expression:dt},$e}),He}const Ne=Re.listitem;Re.listitem=function(He){return Ne(xe(He))};const Te=Re.paragraph;Re.paragraph=function(He){return Te(xe(He))};const at=Re.tablecell;Re.tablecell=function(He,et){return at(xe(He),et)},Re.code=function(He,et,dt){const $e=(et||"").match(/\S*/)[0];return $e?["latex","katex","math"].indexOf($e)>=0?`

    ${He}

    `:`
    ${dt?He:(0,Me.escape)(He,!0)}
    `:'
    '+(dt?He:(0,Me.escape)(He,!0))+"
    "},Re.heading=function(He,et,dt){let $e=this.options.headerPrefix+dt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ve.push({anchor:$e,level:et,text:He}),"'+He+""},Ke().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ke().use({tokenizer:nt,renderer:Re}),wt.ZP=Ke()},86251:function(xn,wt){"use strict";wt.byteLength=Ve,wt.toByteArray=Re,wt.fromByteArray=Ce;for(var ce=[],te=[],Ke=typeof Uint8Array!="undefined"?Uint8Array:Array,Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ye=0,_e=Me.length;Ye<_e;++Ye)ce[Ye]=Me[Ye],te[Me.charCodeAt(Ye)]=Ye;te[45]=62,te[95]=63;function ve(ct){var tt=ct.length;if(tt%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var nt=ct.indexOf("=");nt===-1&&(nt=tt);var Ze=nt===tt?0:4-nt%4;return[nt,Ze]}function Ve(ct){var tt=ve(ct),nt=tt[0],Ze=tt[1];return(nt+Ze)*3/4-Ze}function ke(ct,tt,nt){return(tt+nt)*3/4-nt}function Re(ct){var tt,nt=ve(ct),Ze=nt[0],Le=nt[1],ut=new Ke(ke(ct,Ze,Le)),Ge=0,Je=Le>0?Ze-4:Ze,Qe;for(Qe=0;Qe>16&255,ut[Ge++]=tt>>8&255,ut[Ge++]=tt&255;return Le===2&&(tt=te[ct.charCodeAt(Qe)]<<2|te[ct.charCodeAt(Qe+1)]>>4,ut[Ge++]=tt&255),Le===1&&(tt=te[ct.charCodeAt(Qe)]<<10|te[ct.charCodeAt(Qe+1)]<<4|te[ct.charCodeAt(Qe+2)]>>2,ut[Ge++]=tt>>8&255,ut[Ge++]=tt&255),ut}function ge(ct){return ce[ct>>18&63]+ce[ct>>12&63]+ce[ct>>6&63]+ce[ct&63]}function Xe(ct,tt,nt){for(var Ze,Le=[],ut=tt;utJe?Je:Ge+ut));return Ze===1?(tt=ct[nt-1],Le.push(ce[tt>>2]+ce[tt<<4&63]+"==")):Ze===2&&(tt=(ct[nt-2]<<8)+ct[nt-1],Le.push(ce[tt>>10]+ce[tt>>4&63]+ce[tt<<2&63]+"=")),Le.join("")}},19208:function(xn,wt,ce){"use strict";var te;var Ke=ce(86251),Me=ce(67467),Ye=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;wt.lW=ke,te=Ge,wt.h2=50;var _e=2147483647;te=_e,ke.TYPED_ARRAY_SUPPORT=ve(),!ke.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 ve(){try{var Se=new Uint8Array(1),se={foo:function(){return 42}};return Object.setPrototypeOf(se,Uint8Array.prototype),Object.setPrototypeOf(Se,se),Se.foo()===42}catch(fe){return!1}}Object.defineProperty(ke.prototype,"parent",{enumerable:!0,get:function(){if(ke.isBuffer(this))return this.buffer}}),Object.defineProperty(ke.prototype,"offset",{enumerable:!0,get:function(){if(ke.isBuffer(this))return this.byteOffset}});function Ve(Se){if(Se>_e)throw new RangeError('The value "'+Se+'" is invalid for option "size"');var se=new Uint8Array(Se);return Object.setPrototypeOf(se,ke.prototype),se}function ke(Se,se,fe){if(typeof Se=="number"){if(typeof se=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ce(Se)}return Re(Se,se,fe)}ke.poolSize=8192;function Re(Se,se,fe){if(typeof Se=="string")return ct(Se,se);if(ArrayBuffer.isView(Se))return nt(Se);if(Se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Se);if(Zt(Se,ArrayBuffer)||Se&&Zt(Se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Zt(Se,SharedArrayBuffer)||Se&&Zt(Se.buffer,SharedArrayBuffer)))return Ze(Se,se,fe);if(typeof Se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ue=Se.valueOf&&Se.valueOf();if(Ue!=null&&Ue!==Se)return ke.from(Ue,se,fe);var Be=Le(Se);if(Be)return Be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Se[Symbol.toPrimitive]=="function")return ke.from(Se[Symbol.toPrimitive]("string"),se,fe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Se)}ke.from=function(Se,se,fe){return Re(Se,se,fe)},Object.setPrototypeOf(ke.prototype,Uint8Array.prototype),Object.setPrototypeOf(ke,Uint8Array);function ge(Se){if(typeof Se!="number")throw new TypeError('"size" argument must be of type number');if(Se<0)throw new RangeError('The value "'+Se+'" is invalid for option "size"')}function Xe(Se,se,fe){return ge(Se),Se<=0?Ve(Se):se!==void 0?typeof fe=="string"?Ve(Se).fill(se,fe):Ve(Se).fill(se):Ve(Se)}ke.alloc=function(Se,se,fe){return Xe(Se,se,fe)};function Ce(Se){return ge(Se),Ve(Se<0?0:ut(Se)|0)}ke.allocUnsafe=function(Se){return Ce(Se)},ke.allocUnsafeSlow=function(Se){return Ce(Se)};function ct(Se,se){if((typeof se!="string"||se==="")&&(se="utf8"),!ke.isEncoding(se))throw new TypeError("Unknown encoding: "+se);var fe=Je(Se,se)|0,Ue=Ve(fe),Be=Ue.write(Se,se);return Be!==fe&&(Ue=Ue.slice(0,Be)),Ue}function tt(Se){for(var se=Se.length<0?0:ut(Se.length)|0,fe=Ve(se),Ue=0;Ue=_e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_e.toString(16)+" bytes");return Se|0}function Ge(Se){return+Se!=Se&&(Se=0),ke.alloc(+Se)}ke.isBuffer=function(se){return se!=null&&se._isBuffer===!0&&se!==ke.prototype},ke.compare=function(se,fe){if(Zt(se,Uint8Array)&&(se=ke.from(se,se.offset,se.byteLength)),Zt(fe,Uint8Array)&&(fe=ke.from(fe,fe.offset,fe.byteLength)),!ke.isBuffer(se)||!ke.isBuffer(fe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(se===fe)return 0;for(var Ue=se.length,Be=fe.length,gt=0,Mt=Math.min(Ue,Be);gtBe.length?ke.from(Mt).copy(Be,gt):Uint8Array.prototype.set.call(Be,Mt,gt);else if(ke.isBuffer(Mt))Mt.copy(Be,gt);else throw new TypeError('"list" argument must be an Array of Buffers');gt+=Mt.length}return Be};function Je(Se,se){if(ke.isBuffer(Se))return Se.length;if(ArrayBuffer.isView(Se)||Zt(Se,ArrayBuffer))return Se.byteLength;if(typeof Se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Se);var fe=Se.length,Ue=arguments.length>2&&arguments[2]===!0;if(!Ue&&fe===0)return 0;for(var Be=!1;;)switch(se){case"ascii":case"latin1":case"binary":return fe;case"utf8":case"utf-8":return jn(Se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe*2;case"hex":return fe>>>1;case"base64":return pt(Se).length;default:if(Be)return Ue?-1:jn(Se).length;se=(""+se).toLowerCase(),Be=!0}}ke.byteLength=Je;function Qe(Se,se,fe){var Ue=!1;if((se===void 0||se<0)&&(se=0),se>this.length||((fe===void 0||fe>this.length)&&(fe=this.length),fe<=0)||(fe>>>=0,se>>>=0,fe<=se))return"";for(Se||(Se="utf8");;)switch(Se){case"hex":return An(this,se,fe);case"utf8":case"utf-8":return At(this,se,fe);case"ascii":return Jt(this,se,fe);case"latin1":case"binary":return gn(this,se,fe);case"base64":return Bt(this,se,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,se,fe);default:if(Ue)throw new TypeError("Unknown encoding: "+Se);Se=(Se+"").toLowerCase(),Ue=!0}}ke.prototype._isBuffer=!0;function xe(Se,se,fe){var Ue=Se[se];Se[se]=Se[fe],Se[fe]=Ue}ke.prototype.swap16=function(){var se=this.length;if(se%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var fe=0;fefe&&(se+=" ... "),""},Ye&&(ke.prototype[Ye]=ke.prototype.inspect),ke.prototype.compare=function(se,fe,Ue,Be,gt){if(Zt(se,Uint8Array)&&(se=ke.from(se,se.offset,se.byteLength)),!ke.isBuffer(se))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof se);if(fe===void 0&&(fe=0),Ue===void 0&&(Ue=se?se.length:0),Be===void 0&&(Be=0),gt===void 0&&(gt=this.length),fe<0||Ue>se.length||Be<0||gt>this.length)throw new RangeError("out of range index");if(Be>=gt&&fe>=Ue)return 0;if(Be>=gt)return-1;if(fe>=Ue)return 1;if(fe>>>=0,Ue>>>=0,Be>>>=0,gt>>>=0,this===se)return 0;for(var Mt=gt-Be,sn=Ue-fe,he=Math.min(Mt,sn),oe=this.slice(Be,gt),re=se.slice(fe,Ue),de=0;de2147483647?fe=2147483647:fe<-2147483648&&(fe=-2147483648),fe=+fe,yt(fe)&&(fe=Be?0:Se.length-1),fe<0&&(fe=Se.length+fe),fe>=Se.length){if(Be)return-1;fe=Se.length-1}else if(fe<0)if(Be)fe=0;else return-1;if(typeof se=="string"&&(se=ke.from(se,Ue)),ke.isBuffer(se))return se.length===0?-1:Te(Se,se,fe,Ue,Be);if(typeof se=="number")return se=se&255,typeof Uint8Array.prototype.indexOf=="function"?Be?Uint8Array.prototype.indexOf.call(Se,se,fe):Uint8Array.prototype.lastIndexOf.call(Se,se,fe):Te(Se,[se],fe,Ue,Be);throw new TypeError("val must be string, number or Buffer")}function Te(Se,se,fe,Ue,Be){var gt=1,Mt=Se.length,sn=se.length;if(Ue!==void 0&&(Ue=String(Ue).toLowerCase(),Ue==="ucs2"||Ue==="ucs-2"||Ue==="utf16le"||Ue==="utf-16le")){if(Se.length<2||se.length<2)return-1;gt=2,Mt/=2,sn/=2,fe/=2}function he(le,Ee){return gt===1?le[Ee]:le.readUInt16BE(Ee*gt)}var oe;if(Be){var re=-1;for(oe=fe;oeMt&&(fe=Mt-sn),oe=fe;oe>=0;oe--){for(var de=!0,we=0;weBe&&(Ue=Be)):Ue=Be;var gt=se.length;Ue>gt/2&&(Ue=gt/2);for(var Mt=0;Mt>>0,isFinite(Ue)?(Ue=Ue>>>0,Be===void 0&&(Be="utf8")):(Be=Ue,Ue=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var gt=this.length-fe;if((Ue===void 0||Ue>gt)&&(Ue=gt),se.length>0&&(Ue<0||fe<0)||fe>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var Mt=!1;;)switch(Be){case"hex":return at(this,se,fe,Ue);case"utf8":case"utf-8":return He(this,se,fe,Ue);case"ascii":case"latin1":case"binary":return et(this,se,fe,Ue);case"base64":return dt(this,se,fe,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e(this,se,fe,Ue);default:if(Mt)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),Mt=!0}},ke.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Bt(Se,se,fe){return se===0&&fe===Se.length?Ke.fromByteArray(Se):Ke.fromByteArray(Se.slice(se,fe))}function At(Se,se,fe){fe=Math.min(Se.length,fe);for(var Ue=[],Be=se;Be239?4:gt>223?3:gt>191?2:1;if(Be+sn<=fe){var he,oe,re,de;switch(sn){case 1:gt<128&&(Mt=gt);break;case 2:he=Se[Be+1],(he&192)===128&&(de=(gt&31)<<6|he&63,de>127&&(Mt=de));break;case 3:he=Se[Be+1],oe=Se[Be+2],(he&192)===128&&(oe&192)===128&&(de=(gt&15)<<12|(he&63)<<6|oe&63,de>2047&&(de<55296||de>57343)&&(Mt=de));break;case 4:he=Se[Be+1],oe=Se[Be+2],re=Se[Be+3],(he&192)===128&&(oe&192)===128&&(re&192)===128&&(de=(gt&15)<<18|(he&63)<<12|(oe&63)<<6|re&63,de>65535&&de<1114112&&(Mt=de))}}Mt===null?(Mt=65533,sn=1):Mt>65535&&(Mt-=65536,Ue.push(Mt>>>10&1023|55296),Mt=56320|Mt&1023),Ue.push(Mt),Be+=sn}return Gt(Ue)}var mt=4096;function Gt(Se){var se=Se.length;if(se<=mt)return String.fromCharCode.apply(String,Se);for(var fe="",Ue=0;UeUe)&&(fe=Ue);for(var Be="",gt=se;gtUe&&(se=Ue),fe<0?(fe+=Ue,fe<0&&(fe=0)):fe>Ue&&(fe=Ue),fefe)throw new RangeError("Trying to access beyond buffer length")}ke.prototype.readUintLE=ke.prototype.readUIntLE=function(se,fe,Ue){se=se>>>0,fe=fe>>>0,Ue||Fe(se,fe,this.length);for(var Be=this[se],gt=1,Mt=0;++Mt>>0,fe=fe>>>0,Ue||Fe(se,fe,this.length);for(var Be=this[se+--fe],gt=1;fe>0&&(gt*=256);)Be+=this[se+--fe]*gt;return Be},ke.prototype.readUint8=ke.prototype.readUInt8=function(se,fe){return se=se>>>0,fe||Fe(se,1,this.length),this[se]},ke.prototype.readUint16LE=ke.prototype.readUInt16LE=function(se,fe){return se=se>>>0,fe||Fe(se,2,this.length),this[se]|this[se+1]<<8},ke.prototype.readUint16BE=ke.prototype.readUInt16BE=function(se,fe){return se=se>>>0,fe||Fe(se,2,this.length),this[se]<<8|this[se+1]},ke.prototype.readUint32LE=ke.prototype.readUInt32LE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),(this[se]|this[se+1]<<8|this[se+2]<<16)+this[se+3]*16777216},ke.prototype.readUint32BE=ke.prototype.readUInt32BE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),this[se]*16777216+(this[se+1]<<16|this[se+2]<<8|this[se+3])},ke.prototype.readIntLE=function(se,fe,Ue){se=se>>>0,fe=fe>>>0,Ue||Fe(se,fe,this.length);for(var Be=this[se],gt=1,Mt=0;++Mt=gt&&(Be-=Math.pow(2,8*fe)),Be},ke.prototype.readIntBE=function(se,fe,Ue){se=se>>>0,fe=fe>>>0,Ue||Fe(se,fe,this.length);for(var Be=fe,gt=1,Mt=this[se+--Be];Be>0&&(gt*=256);)Mt+=this[se+--Be]*gt;return gt*=128,Mt>=gt&&(Mt-=Math.pow(2,8*fe)),Mt},ke.prototype.readInt8=function(se,fe){return se=se>>>0,fe||Fe(se,1,this.length),this[se]&128?(255-this[se]+1)*-1:this[se]},ke.prototype.readInt16LE=function(se,fe){se=se>>>0,fe||Fe(se,2,this.length);var Ue=this[se]|this[se+1]<<8;return Ue&32768?Ue|4294901760:Ue},ke.prototype.readInt16BE=function(se,fe){se=se>>>0,fe||Fe(se,2,this.length);var Ue=this[se+1]|this[se]<<8;return Ue&32768?Ue|4294901760:Ue},ke.prototype.readInt32LE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),this[se]|this[se+1]<<8|this[se+2]<<16|this[se+3]<<24},ke.prototype.readInt32BE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),this[se]<<24|this[se+1]<<16|this[se+2]<<8|this[se+3]},ke.prototype.readFloatLE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),Me.read(this,se,!0,23,4)},ke.prototype.readFloatBE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),Me.read(this,se,!1,23,4)},ke.prototype.readDoubleLE=function(se,fe){return se=se>>>0,fe||Fe(se,8,this.length),Me.read(this,se,!0,52,8)},ke.prototype.readDoubleBE=function(se,fe){return se=se>>>0,fe||Fe(se,8,this.length),Me.read(this,se,!1,52,8)};function Ot(Se,se,fe,Ue,Be,gt){if(!ke.isBuffer(Se))throw new TypeError('"buffer" argument must be a Buffer instance');if(se>Be||seSe.length)throw new RangeError("Index out of range")}ke.prototype.writeUintLE=ke.prototype.writeUIntLE=function(se,fe,Ue,Be){if(se=+se,fe=fe>>>0,Ue=Ue>>>0,!Be){var gt=Math.pow(2,8*Ue)-1;Ot(this,se,fe,Ue,gt,0)}var Mt=1,sn=0;for(this[fe]=se&255;++sn>>0,Ue=Ue>>>0,!Be){var gt=Math.pow(2,8*Ue)-1;Ot(this,se,fe,Ue,gt,0)}var Mt=Ue-1,sn=1;for(this[fe+Mt]=se&255;--Mt>=0&&(sn*=256);)this[fe+Mt]=se/sn&255;return fe+Ue},ke.prototype.writeUint8=ke.prototype.writeUInt8=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,1,255,0),this[fe]=se&255,fe+1},ke.prototype.writeUint16LE=ke.prototype.writeUInt16LE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,2,65535,0),this[fe]=se&255,this[fe+1]=se>>>8,fe+2},ke.prototype.writeUint16BE=ke.prototype.writeUInt16BE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,2,65535,0),this[fe]=se>>>8,this[fe+1]=se&255,fe+2},ke.prototype.writeUint32LE=ke.prototype.writeUInt32LE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,4,4294967295,0),this[fe+3]=se>>>24,this[fe+2]=se>>>16,this[fe+1]=se>>>8,this[fe]=se&255,fe+4},ke.prototype.writeUint32BE=ke.prototype.writeUInt32BE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,4,4294967295,0),this[fe]=se>>>24,this[fe+1]=se>>>16,this[fe+2]=se>>>8,this[fe+3]=se&255,fe+4},ke.prototype.writeIntLE=function(se,fe,Ue,Be){if(se=+se,fe=fe>>>0,!Be){var gt=Math.pow(2,8*Ue-1);Ot(this,se,fe,Ue,gt-1,-gt)}var Mt=0,sn=1,he=0;for(this[fe]=se&255;++Mt>0)-he&255;return fe+Ue},ke.prototype.writeIntBE=function(se,fe,Ue,Be){if(se=+se,fe=fe>>>0,!Be){var gt=Math.pow(2,8*Ue-1);Ot(this,se,fe,Ue,gt-1,-gt)}var Mt=Ue-1,sn=1,he=0;for(this[fe+Mt]=se&255;--Mt>=0&&(sn*=256);)se<0&&he===0&&this[fe+Mt+1]!==0&&(he=1),this[fe+Mt]=(se/sn>>0)-he&255;return fe+Ue},ke.prototype.writeInt8=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,1,127,-128),se<0&&(se=255+se+1),this[fe]=se&255,fe+1},ke.prototype.writeInt16LE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,2,32767,-32768),this[fe]=se&255,this[fe+1]=se>>>8,fe+2},ke.prototype.writeInt16BE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,2,32767,-32768),this[fe]=se>>>8,this[fe+1]=se&255,fe+2},ke.prototype.writeInt32LE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,4,2147483647,-2147483648),this[fe]=se&255,this[fe+1]=se>>>8,this[fe+2]=se>>>16,this[fe+3]=se>>>24,fe+4},ke.prototype.writeInt32BE=function(se,fe,Ue){return se=+se,fe=fe>>>0,Ue||Ot(this,se,fe,4,2147483647,-2147483648),se<0&&(se=4294967295+se+1),this[fe]=se>>>24,this[fe+1]=se>>>16,this[fe+2]=se>>>8,this[fe+3]=se&255,fe+4};function Fn(Se,se,fe,Ue,Be,gt){if(fe+Ue>Se.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("Index out of range")}function fn(Se,se,fe,Ue,Be){return se=+se,fe=fe>>>0,Be||Fn(Se,se,fe,4,34028234663852886e22,-34028234663852886e22),Me.write(Se,se,fe,Ue,23,4),fe+4}ke.prototype.writeFloatLE=function(se,fe,Ue){return fn(this,se,fe,!0,Ue)},ke.prototype.writeFloatBE=function(se,fe,Ue){return fn(this,se,fe,!1,Ue)};function Ct(Se,se,fe,Ue,Be){return se=+se,fe=fe>>>0,Be||Fn(Se,se,fe,8,17976931348623157e292,-17976931348623157e292),Me.write(Se,se,fe,Ue,52,8),fe+8}ke.prototype.writeDoubleLE=function(se,fe,Ue){return Ct(this,se,fe,!0,Ue)},ke.prototype.writeDoubleBE=function(se,fe,Ue){return Ct(this,se,fe,!1,Ue)},ke.prototype.copy=function(se,fe,Ue,Be){if(!ke.isBuffer(se))throw new TypeError("argument should be a Buffer");if(Ue||(Ue=0),!Be&&Be!==0&&(Be=this.length),fe>=se.length&&(fe=se.length),fe||(fe=0),Be>0&&Be=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),se.length-fe>>0,Ue=Ue===void 0?this.length:Ue>>>0,se||(se=0);var Mt;if(typeof se=="number")for(Mt=fe;Mt55295&&fe<57344){if(!Be){if(fe>56319){(se-=3)>-1&>.push(239,191,189);continue}else if(Mt+1===Ue){(se-=3)>-1&>.push(239,191,189);continue}Be=fe;continue}if(fe<56320){(se-=3)>-1&>.push(239,191,189),Be=fe;continue}fe=(Be-55296<<10|fe-56320)+65536}else Be&&(se-=3)>-1&>.push(239,191,189);if(Be=null,fe<128){if((se-=1)<0)break;gt.push(fe)}else if(fe<2048){if((se-=2)<0)break;gt.push(fe>>6|192,fe&63|128)}else if(fe<65536){if((se-=3)<0)break;gt.push(fe>>12|224,fe>>6&63|128,fe&63|128)}else if(fe<1114112){if((se-=4)<0)break;gt.push(fe>>18|240,fe>>12&63|128,fe>>6&63|128,fe&63|128)}else throw new Error("Invalid code point")}return gt}function Dt(Se){for(var se=[],fe=0;fe>8,Be=fe%256,gt.push(Be),gt.push(Ue);return gt}function pt(Se){return Ke.toByteArray(on(Se))}function bt(Se,se,fe,Ue){for(var Be=0;Be=se.length||Be>=Se.length);++Be)se[Be+fe]=Se[Be];return Be}function Zt(Se,se){return Se instanceof se||Se!=null&&Se.constructor!=null&&Se.constructor.name!=null&&Se.constructor.name===se.name}function yt(Se){return Se!==Se}var zt=function(){for(var Se="0123456789abcdef",se=new Array(256),fe=0;fe<16;++fe)for(var Ue=fe*16,Be=0;Be<16;++Be)se[Ue+Be]=Se[fe]+Se[Be];return se}()},14625:function(xn){function wt(te){var Ke,Me,Ye="";if(typeof te=="string"||typeof te=="number")Ye+=te;else if(typeof te=="object")if(Array.isArray(te)){var _e=te.length;for(Ke=0;Ke<_e;Ke++)te[Ke]&&(Me=wt(te[Ke]))&&(Ye&&(Ye+=" "),Ye+=Me)}else for(Me in te)te[Me]&&(Ye&&(Ye+=" "),Ye+=Me);return Ye}function ce(){for(var te,Ke,Me=0,Ye="",_e=arguments.length;Me<_e;Me++)(te=arguments[Me])&&(Ke=wt(te))&&(Ye&&(Ye+=" "),Ye+=Ke);return Ye}xn.exports=ce,xn.exports.clsx=ce},99498:function(xn,wt,ce){(function(te){te(ce(89780))})(function(te){te.defineOption("placeholder","",function(ke,Re,ge){var Xe=ge&&ge!=te.Init;if(Re&&!Xe)ke.on("blur",_e),ke.on("change",ve),ke.on("swapDoc",ve),te.on(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose=function(){Ye(ke)}),ve(ke);else if(!Re&&Xe){ke.off("blur",_e),ke.off("change",ve),ke.off("swapDoc",ve),te.off(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose),Ke(ke);var Ce=ke.getWrapperElement();Ce.className=Ce.className.replace(" CodeMirror-empty","")}Re&&!ke.hasFocus()&&_e(ke)});function Ke(ke){ke.state.placeholder&&(ke.state.placeholder.parentNode.removeChild(ke.state.placeholder),ke.state.placeholder=null)}function Me(ke){Ke(ke);var Re=ke.state.placeholder=document.createElement("pre");Re.style.cssText="height: 0; overflow: visible",Re.style.direction=ke.getOption("direction"),Re.className="CodeMirror-placeholder CodeMirror-line-like";var ge=ke.getOption("placeholder");typeof ge=="string"&&(ge=document.createTextNode(ge)),Re.appendChild(ge),ke.display.lineSpace.insertBefore(Re,ke.display.lineSpace.firstChild)}function Ye(ke){setTimeout(function(){var Re=!1,ge=ke.getInputField();ge.nodeName=="TEXTAREA"?Re=!ge.value:ke.lineCount()==1&&(Re=!/[^\u200b]/.test(ge.querySelector(".CodeMirror-line").textContent)),Re?Me(ke):Ke(ke)},20)}function _e(ke){Ve(ke)&&Me(ke)}function ve(ke){var Re=ke.getWrapperElement(),ge=Ve(ke);Re.className=Re.className.replace(" CodeMirror-empty","")+(ge?" CodeMirror-empty":""),ge?Me(ke):Ke(ke)}function Ve(ke){return ke.lineCount()===1&&ke.getLine(0)===""}})},25717:function(xn,wt,ce){(function(te){te(ce(89780))})(function(te){var Ke={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Me=te.Pos;te.defineOption("autoCloseBrackets",!1,function(nt,Ze,Le){Le&&Le!=te.Init&&(nt.removeKeyMap(_e),nt.state.closeBrackets=null),Ze&&(ve(Ye(Ze,"pairs")),nt.state.closeBrackets=Ze,nt.addKeyMap(_e))});function Ye(nt,Ze){return Ze=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[Ze]!=null?nt[Ze]:Ke[Ze]}var _e={Backspace:Re,Enter:ge};function ve(nt){for(var Ze=0;Ze=0;Ge--){var Qe=ut[Ge].head;nt.replaceRange("",Me(Qe.line,Qe.ch-1),Me(Qe.line,Qe.ch+1),"+delete")}}function ge(nt){var Ze=ke(nt),Le=Ze&&Ye(Ze,"explode");if(!Le||nt.getOption("disableInput"))return te.Pass;for(var ut=nt.listSelections(),Ge=0;Ge0;return{anchor:new Me(nt.anchor.line,nt.anchor.ch+(Ze?-1:1)),head:new Me(nt.head.line,nt.head.ch+(Ze?1:-1))}}function Ce(nt,Ze){var Le=ke(nt);if(!Le||nt.getOption("disableInput"))return te.Pass;var ut=Ye(Le,"pairs"),Ge=ut.indexOf(Ze);if(Ge==-1)return te.Pass;for(var Je=Ye(Le,"closeBefore"),Qe=Ye(Le,"triples"),xe=ut.charAt(Ge+1)==Ze,Ne=nt.listSelections(),Te=Ge%2==0,at,He=0;He=0&&nt.getRange(dt,Me(dt.line,dt.ch+3))==Ze+Ze+Ze?$e="skipThree":$e="skip";else if(xe&&dt.ch>1&&Qe.indexOf(Ze)>=0&&nt.getRange(Me(dt.line,dt.ch-2),dt)==Ze+Ze){if(dt.ch>2&&/\bstring/.test(nt.getTokenTypeAt(Me(dt.line,dt.ch-2))))return te.Pass;$e="addFour"}else if(xe){var At=dt.ch==0?" ":nt.getRange(Me(dt.line,dt.ch-1),dt);if(!te.isWordChar(Bt)&&At!=Ze&&!te.isWordChar(At))$e="both";else return te.Pass}else if(Te&&(Bt.length===0||/\s/.test(Bt)||Je.indexOf(Bt)>-1))$e="both";else return te.Pass;if(!at)at=$e;else if(at!=$e)return te.Pass}var mt=Ge%2?ut.charAt(Ge-1):Ze,Gt=Ge%2?Ze:ut.charAt(Ge+1);nt.operation(function(){if(at=="skip")nt.execCommand("goCharRight");else if(at=="skipThree")for(var Jt=0;Jt<3;Jt++)nt.execCommand("goCharRight");else if(at=="surround"){for(var gn=nt.getSelections(),Jt=0;Jt'"]=function(ct){return Ye(ct)}),Re.addKeyMap(Ce)}});var Ke=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Me=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ye(Re){if(Re.getOption("disableInput"))return te.Pass;for(var ge=Re.listSelections(),Xe=[],Ce=Re.getOption("autoCloseTags"),ct=0;cttt.ch&&(Ge=Ge.slice(0,Ge.length-nt.end+tt.ch));var Ne=Ge.toLowerCase();if(!Ge||nt.type=="string"&&(nt.end!=tt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&&ut.close||nt.string.indexOf("/")==tt.ch-nt.start-1||Qe&&Ve(Qe,Ne)>-1||ke(Re,Ze.mode.xmlCurrentContext&&Ze.mode.xmlCurrentContext(Le)||[],Ge,tt,!0))return te.Pass;var Te=typeof Ce=="object"&&Ce.emptyTags;if(Te&&Ve(Te,Ge)>-1){Xe[ct]={text:"/>",newPos:te.Pos(tt.line,tt.ch+2)};continue}var at=xe&&Ve(xe,Ne)>-1;Xe[ct]={indent:at,text:">"+(at?` `:"")+"",newPos:at?te.Pos(tt.line+1,0):te.Pos(tt.line,tt.ch+1)}}for(var He=typeof Ce=="object"&&Ce.dontIndentOnAutoClose,ct=ge.length-1;ct>=0;ct--){var et=Xe[ct];Re.replaceRange(et.text,ge[ct].head,ge[ct].anchor,"+insert");var dt=Re.listSelections().slice(0);dt[ct]={head:et.newPos,anchor:et.newPos},Re.setSelections(dt),!He&&et.indent&&(Re.indentLine(et.newPos.line,null,!0),Re.indentLine(et.newPos.line+1,null,!0))}}function _e(Re,ge){for(var Xe=Re.listSelections(),Ce=[],ct=ge?"/":""&&(Qe+=">"),Ce[Ze]=Qe}if(Re.replaceSelections(Ce),Xe=Re.listSelections(),!nt)for(var Ze=0;Ze=0&&ge[Le]==Xe;Le--)++Ze;Ce=nt.to;for(var Le=1;Le=Le.max))return Le.ch=0,Le.text=Le.cm.getLine(++Le.line),!0}function ge(Le){if(!(Le.line<=Le.min))return Le.text=Le.cm.getLine(--Le.line),Le.ch=Le.text.length,!0}function Xe(Le){for(;;){var ut=Le.text.indexOf(">",Le.ch);if(ut==-1){if(Re(Le))continue;return}if(!ke(Le,ut+1)){Le.ch=ut+1;continue}var Ge=Le.text.lastIndexOf("/",ut),Je=Ge>-1&&!/\S/.test(Le.text.slice(Ge+1,ut));return Le.ch=ut+1,Je?"selfClose":"regular"}}function Ce(Le){for(;;){var ut=Le.ch?Le.text.lastIndexOf("<",Le.ch-1):-1;if(ut==-1){if(ge(Le))continue;return}if(!ke(Le,ut+1)){Le.ch=ut;continue}ve.lastIndex=ut,Le.ch=ut;var Ge=ve.exec(Le.text);if(Ge&&Ge.index==ut)return Ge}}function ct(Le){for(;;){ve.lastIndex=Le.ch;var ut=ve.exec(Le.text);if(!ut){if(Re(Le))continue;return}if(!ke(Le,ut.index+1)){Le.ch=ut.index+1;continue}return Le.ch=ut.index+ut[0].length,ut}}function tt(Le){for(;;){var ut=Le.ch?Le.text.lastIndexOf(">",Le.ch-1):-1;if(ut==-1){if(ge(Le))continue;return}if(!ke(Le,ut+1)){Le.ch=ut;continue}var Ge=Le.text.lastIndexOf("/",ut),Je=Ge>-1&&!/\S/.test(Le.text.slice(Ge+1,ut));return Le.ch=ut+1,Je?"selfClose":"regular"}}function nt(Le,ut){for(var Ge=[];;){var Je=ct(Le),Qe,xe=Le.line,Ne=Le.ch-(Je?Je[0].length:0);if(!Je||!(Qe=Xe(Le)))return;if(Qe!="selfClose")if(Je[1]){for(var Te=Ge.length-1;Te>=0;--Te)if(Ge[Te]==Je[2]){Ge.length=Te;break}if(Te<0&&(!ut||ut==Je[2]))return{tag:Je[2],from:Ke(xe,Ne),to:Ke(Le.line,Le.ch)}}else Ge.push(Je[2])}}function Ze(Le,ut){for(var Ge=[];;){var Je=tt(Le);if(!Je)return;if(Je=="selfClose"){Ce(Le);continue}var Qe=Le.line,xe=Le.ch,Ne=Ce(Le);if(!Ne)return;if(Ne[1])Ge.push(Ne[2]);else{for(var Te=Ge.length-1;Te>=0;--Te)if(Ge[Te]==Ne[2]){Ge.length=Te;break}if(Te<0&&(!ut||ut==Ne[2]))return{tag:Ne[2],from:Ke(Le.line,Le.ch),to:Ke(Qe,xe)}}}}te.registerHelper("fold","xml",function(Le,ut){for(var Ge=new Ve(Le,ut.line,0);;){var Je=ct(Ge);if(!Je||Ge.line!=ut.line)return;var Qe=Xe(Ge);if(!Qe)return;if(!Je[1]&&Qe!="selfClose"){var xe=Ke(Ge.line,Ge.ch),Ne=nt(Ge,Je[2]);return Ne&&Me(Ne.from,xe)>0?{from:xe,to:Ne.from}:null}}}),te.findMatchingTag=function(Le,ut,Ge){var Je=new Ve(Le,ut.line,ut.ch,Ge);if(!(Je.text.indexOf(">")==-1&&Je.text.indexOf("<")==-1)){var Qe=Xe(Je),xe=Qe&&Ke(Je.line,Je.ch),Ne=Qe&&Ce(Je);if(!(!Qe||!Ne||Me(Je,ut)>0)){var Te={from:Ke(Je.line,Je.ch),to:xe,tag:Ne[2]};return Qe=="selfClose"?{open:Te,close:null,at:"open"}:Ne[1]?{open:Ze(Je,Ne[2]),close:Te,at:"close"}:(Je=new Ve(Le,xe.line,xe.ch,Ge),{open:Te,close:nt(Je,Ne[2]),at:"open"})}}},te.findEnclosingTag=function(Le,ut,Ge,Je){for(var Qe=new Ve(Le,ut.line,ut.ch,Ge);;){var xe=Ze(Qe,Je);if(!xe)break;var Ne=new Ve(Le,ut.line,ut.ch,Ge),Te=nt(Ne,xe.tag);if(Te)return{open:xe,close:Te}}},te.scanForClosingTag=function(Le,ut,Ge,Je){var Qe=new Ve(Le,ut.line,ut.ch,Je?{from:0,to:Je}:null);return nt(Qe,Ge)}})},89780:function(xn){(function(wt,ce){xn.exports=ce()})(this,function(){"use strict";var wt=navigator.userAgent,ce=navigator.platform,te=/gecko\/\d/i.test(wt),Ke=/MSIE \d/.test(wt),Me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wt),Ye=/Edge\/(\d+)/.exec(wt),_e=Ke||Me||Ye,ve=_e&&(Ke?document.documentMode||6:+(Ye||Me)[1]),Ve=!Ye&&/WebKit\//.test(wt),ke=Ve&&/Qt\/\d+\.\d+/.test(wt),Re=!Ye&&/Chrome\//.test(wt),ge=/Opera\//.test(wt),Xe=/Apple Computer/.test(navigator.vendor),Ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(wt),ct=/PhantomJS/.test(wt),tt=!Ye&&/AppleWebKit/.test(wt)&&/Mobile\/\w+/.test(wt),nt=/Android/.test(wt),Ze=tt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(wt),Le=tt||/Mac/.test(ce),ut=/\bCrOS\b/.test(wt),Ge=/win/i.test(ce),Je=ge&&wt.match(/Version\/(\d*\.\d*)/);Je&&(Je=Number(Je[1])),Je&&Je>=15&&(ge=!1,Ve=!0);var Qe=Le&&(ke||ge&&(Je==null||Je<12.11)),xe=te||_e&&ve>=9;function Ne(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Te=function(a,y){var E=a.className,x=Ne(y).exec(E);if(x){var b=E.slice(x.index+x[0].length);a.className=E.slice(0,x.index)+(b?x[1]+b:"")}};function at(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function He(a,y){return at(a).appendChild(y)}function et(a,y,E,x){var b=document.createElement(a);if(E&&(b.className=E),x&&(b.style.cssText=x),typeof y=="string")b.appendChild(document.createTextNode(y));else if(y)for(var ue=0;ue=y)return pe+(y-ue);pe+=be-ue,pe+=E-pe%E,ue=be+1}}var Fe=function(){this.id=null,this.f=null,this.time=0,this.handler=gn(this.onTimeout,this)};Fe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},Fe.prototype.set=function(a,y){this.f=y;var E=+new Date+a;(!this.id||E=y)return x+Math.min(pe,y-b);if(b+=ue-x,b+=E-b%E,x=ue+1,b>=y)return x}}var Dt=[""];function vt(a){for(;Dt.length<=a;)Dt.push(pt(Dt)+" ");return Dt[a]}function pt(a){return a[a.length-1]}function bt(a,y){for(var E=[],x=0;x"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Se.test(a))}function fe(a,y){return y?y.source.indexOf("\\w")>-1&&se(a)?!0:y.test(a):se(a)}function Ue(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var Be=/[\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 gt(a){return a.charCodeAt(0)>=768&&Be.test(a)}function Mt(a,y,E){for(;(E<0?y>0:yE?-1:1;;){if(y==E)return y;var b=(y+E)/2,ue=x<0?Math.ceil(b):Math.floor(b);if(ue==y)return a(ue)?y:E;a(ue)?E=ue:y=ue+x}}function he(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var b=!1,ue=0;uey||y==E&&pe.to==y)&&(x(Math.max(pe.from,y),Math.min(pe.to,E),pe.level==1?"rtl":"ltr",ue),b=!0)}b||x(y,E,"ltr")}var oe=null;function re(a,y,E){var x;oe=null;for(var b=0;by)return b;ue.to==y&&(ue.from!=ue.to&&E=="before"?x=b:oe=b),ue.from==y&&(ue.from!=ue.to&&E!="before"?x=b:oe=b)}return x!=null?x:oe}var de=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(je){return je<=247?a.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?y.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,b=/[stwN]/,ue=/[LRr]/,pe=/[Lb1n]/,be=/[1n]/;function De(je,Qt,Pt){this.level=je,this.from=Qt,this.to=Pt}return function(je,Qt){var Pt=Qt=="ltr"?"L":"R";if(je.length==0||Qt=="ltr"&&!x.test(je))return!1;for(var Un=je.length,bn=[],pr=0;pr-1&&(x[y]=b.slice(0,ue).concat(b.slice(ue+1)))}}}function It(a,y){var E=St(a,y);if(E.length)for(var x=Array.prototype.slice.call(arguments,2),b=0;b0}function un(a){a.prototype.on=function(y,E){Ee(this,y,E)},a.prototype.off=function(y,E){Ut(this,y,E)}}function In(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function or(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function vn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function fr(a){In(a),or(a)}function ur(a){return a.target||a.srcElement}function yr(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Le&&a.ctrlKey&&y==1&&(y=3),y}var Xn=function(){if(_e&&ve<9)return!1;var a=et("div");return"draggable"in a||"dragDrop"in a}(),Mr;function Kr(a){if(Mr==null){var y=et("span","\u200B");He(a,et("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Mr=y.offsetWidth<=1&&y.offsetHeight>2&&!(_e&&ve<8))}var E=Mr?et("span","\u200B"):et("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var Er;function lr(a){if(Er!=null)return Er;var y=He(a,document.createTextNode("A\u062EA")),E=$e(y,0,1).getBoundingClientRect(),x=$e(y,1,2).getBoundingClientRect();return at(a),!E||E.left==E.right?!1:Er=x.right-E.right<3}var Dr=` b`.split(/\n/).length!=3?function(a){for(var y=0,E=[],x=a.length;y<=x;){var b=a.indexOf(` `,y);b==-1&&(b=a.length);var ue=a.slice(y,a.charAt(b-1)=="\r"?b-1:b),pe=ue.indexOf("\r");pe!=-1?(E.push(ue.slice(0,pe)),y+=pe+1):(E.push(ue),y=b+1)}return E}:function(a){return a.split(/\r\n?|\n/)},Kn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(E){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},tr=function(){var a=et("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Jn=null;function mn(a){if(Jn!=null)return Jn;var y=He(a,et("span","x")),E=y.getBoundingClientRect(),x=$e(y,0,1).getBoundingClientRect();return Jn=Math.abs(E.left-x.left)>1}var zn={},en={};function Sn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),zn[a]=y}function hr(a,y){en[a]=y}function sr(a){if(typeof a=="string"&&en.hasOwnProperty(a))a=en[a];else if(a&&typeof a.name=="string"&&en.hasOwnProperty(a.name)){var y=en[a.name];typeof y=="string"&&(y={name:y}),a=zt(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return sr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return sr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function cr(a,y){y=sr(y);var E=zn[y.name];if(!E)return cr(a,"text/plain");var x=E(a,y);if(br.hasOwnProperty(y.name)){var b=br[y.name];for(var ue in b)b.hasOwnProperty(ue)&&(x.hasOwnProperty(ue)&&(x["_"+ue]=x[ue]),x[ue]=b[ue])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var pe in y.modeProps)x[pe]=y.modeProps[pe];return x}var br={};function Gr(a,y){var E=br.hasOwnProperty(a)?br[a]:br[a]={};An(y,E)}function Ir(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var E={};for(var x in y){var b=y[x];b instanceof Array&&(b=b.concat([])),E[x]=b}return E}function Ur(a,y){for(var E;a.innerMode&&(E=a.innerMode(y),!(!E||E.mode==a));)y=E.state,a=E.mode;return E||{mode:a,state:y}}function Lr(a,y,E){return a.startState?a.startState(y,E):!0}var qn=function(a,y,E){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};qn.prototype.eol=function(){return this.pos>=this.string.length},qn.prototype.sol=function(){return this.pos==this.lineStart},qn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qn.prototype.next=function(){if(this.posy},qn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qn.prototype.skipToEnd=function(){this.pos=this.string.length},qn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},qn.prototype.backUp=function(a){this.pos-=a},qn.prototype.column=function(){return this.lastColumnPos0?null:(ue&&y!==!1&&(this.pos+=ue[0].length),ue)}},qn.prototype.current=function(){return this.string.slice(this.start,this.pos)},qn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},qn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},qn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function yn(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var E=a;!E.lines;)for(var x=0;;++x){var b=E.children[x],ue=b.chunkSize();if(y=a.first&&yE?jt(E,yn(a,E).text.length):xt(y,yn(a,y.line).text.length)}function xt(a,y){var E=a.ch;return E==null||E>y?jt(a.line,y):E<0?jt(a.line,0):a}function Ft(a,y){for(var E=[],x=0;xthis.maxLookAhead&&(this.maxLookAhead=a),y},Ln.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ln.fromSaved=function(a,y,E){return y instanceof pn?new Ln(a,Ir(a.mode,y.state),E,y.lookAhead):new Ln(a,Ir(a.mode,y),E)},Ln.prototype.save=function(a){var y=a!==!1?Ir(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pn(y,this.maxLookAhead):y};function wr(a,y,E,x){var b=[a.state.modeGen],ue={};ai(a,y.text,a.doc.mode,E,function(je,Qt){return b.push(je,Qt)},ue,x);for(var pe=E.state,be=function(je){E.baseTokens=b;var Qt=a.state.overlays[je],Pt=1,Un=0;E.state=!0,ai(a,y.text,Qt.mode,E,function(bn,pr){for(var Sr=Pt;Unbn&&b.splice(Pt,1,bn,b[Pt+1],Pr),Pt+=2,Un=Math.min(bn,Pr)}if(pr)if(Qt.opaque)b.splice(Sr,Pt-Sr,bn,"overlay "+pr),Pt=Sr+2;else for(;Sra.options.maxHighlightLength&&Ir(a.doc.mode,x.state),ue=wr(a,y,x);b&&(x.state=b),y.stateAfter=x.save(!b),y.styles=ue.styles,ue.classes?y.styleClasses=ue.classes:y.styleClasses&&(y.styleClasses=null),E===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Nr(a,y,E){var x=a.doc,b=a.display;if(!x.mode.startState)return new Ln(x,!0,y);var ue=Ci(a,y,E),pe=ue>x.first&&yn(x,ue-1).stateAfter,be=pe?Ln.fromSaved(x,pe,ue):new Ln(x,Lr(x.mode),ue);return x.iter(ue,y,function(De){rr(a,De.text,be);var je=be.line;De.stateAfter=je==y-1||je%5==0||je>=b.viewFrom&&jey.start)return ue}throw new Error("Mode "+a.name+" failed to advance stream.")}var Br=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function qr(a,y,E,x){var b=a.doc,ue=b.mode,pe;y=Nn(b,y);var be=yn(b,y.line),De=Nr(a,y.line,E),je=new qn(be.text,a.options.tabSize,De),Qt;for(x&&(Qt=[]);(x||je.posa.options.maxHighlightLength?(be=!1,pe&&rr(a,y,x,Qt.pos),Qt.pos=y.length,Pt=null):Pt=li(_r(E,Qt,x.state,Un),ue),Un){var bn=Un[0].name;bn&&(Pt="m-"+(Pt?bn+" "+Pt:bn))}if(!be||je!=Pt){for(;Depe;--be){if(be<=ue.first)return ue.first;var De=yn(ue,be-1),je=De.stateAfter;if(je&&(!E||be+(je instanceof pn?je.lookAhead:0)<=ue.modeFrontier))return be;var Qt=We(De.text,null,a.options.tabSize);(b==null||x>Qt)&&(b=be-1,x=Qt)}return b}function ze(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierE;x--){var b=yn(a,x).stateAfter;if(b&&(!(b instanceof pn)||x+b.lookAhead=y:ue.to>y);(x||(x=[])).push(new Wt(pe,ue.from,De?null:ue.to))}}return x}function Zn(a,y,E){var x;if(a)for(var b=0;b=y:ue.to>y);if(be||ue.from==y&&pe.type=="bookmark"&&(!E||ue.marker.insertLeft)){var De=ue.from==null||(pe.inclusiveLeft?ue.from<=y:ue.from0&&be)for(var vi=0;vi0)){var Qt=[De,1],Pt=_n(je.from,be.from),Un=_n(je.to,be.to);(Pt<0||!pe.inclusiveLeft&&!Pt)&&Qt.push({from:je.from,to:be.from}),(Un>0||!pe.inclusiveRight&&!Un)&&Qt.push({from:be.to,to:je.to}),b.splice.apply(b,Qt),De+=Qt.length-3}}return b}function Rt(a){var y=a.markedSpans;if(y){for(var E=0;Ey)&&(!x||Rn(x,ue.marker)<0)&&(x=ue.marker)}return x}function hn(a,y,E,x,b){var ue=yn(a,y),pe=st&&ue.markedSpans;if(pe)for(var be=0;be=0&&Pt<=0||Qt<=0&&Pt>=0)&&(Qt<=0&&(De.marker.inclusiveRight&&b.inclusiveLeft?_n(je.to,E)>=0:_n(je.to,E)>0)||Qt>=0&&(De.marker.inclusiveRight&&b.inclusiveLeft?_n(je.from,x)<=0:_n(je.from,x)<0)))return!0}}}function tn(a){for(var y;y=wn(a);)a=y.find(-1,!0).line;return a}function cn(a){for(var y;y=Ht(a);)a=y.find(1,!0).line;return a}function er(a){for(var y,E;y=Ht(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function Nt(a,y){var E=yn(a,y),x=tn(E);return E==x?y:Lt(x)}function qt(a,y){if(y>a.lastLine())return y;var E=yn(a,y),x;if(!Mn(a,E))return y;for(;x=Ht(E);)E=x.find(1,!0).line;return Lt(E)+1}function Mn(a,y){var E=st&&y.markedSpans;if(E){for(var x=void 0,b=0;by.maxLineLength&&(y.maxLineLength=b,y.maxLine=x)})}var Wr=function(a,y,E){this.text=a,Kt(this,y),this.height=E?E(this):1};Wr.prototype.lineNo=function(){return Lt(this)},un(Wr);function Qr(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Rt(a),Kt(a,E);var b=x?x(a):1;b!=a.height&&zr(a,b)}function ni(a){a.parent=null,Rt(a)}var Ai={},Jr={};function hi(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Jr:Ai;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function ii(a,y){var E=dt("span",null,null,Ve?"padding-right: .1px":null),x={pre:dt("pre",[E],"CodeMirror-line"),content:E,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var b=0;b<=(y.rest?y.rest.length:0);b++){var ue=b?y.rest[b-1]:y.line,pe=void 0;x.pos=0,x.addToken=ri,lr(a.display.measure)&&(pe=we(ue,a.doc.direction))&&(x.addToken=ei(x.addToken,pe)),x.map=[];var be=y!=a.display.externalMeasured&&Lt(ue);ti(ue,x,Rr(a,ue,be)),ue.styleClasses&&(ue.styleClasses.bgClass&&(x.bgClass=Gt(ue.styleClasses.bgClass,x.bgClass||"")),ue.styleClasses.textClass&&(x.textClass=Gt(ue.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Kr(a.display.measure))),b==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ve){var De=x.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return It(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Gt(x.pre.className,x.textClass||"")),x}function $r(a){var y=et("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function ri(a,y,E,x,b,ue,pe){if(y){var be=a.splitSpaces?Or(y,a.trailingSpace):y,De=a.cm.state.specialChars,je=!1,Qt;if(!De.test(y))a.col+=y.length,Qt=document.createTextNode(be),a.map.push(a.pos,a.pos+y.length,Qt),_e&&ve<9&&(je=!0),a.pos+=y.length;else{Qt=document.createDocumentFragment();for(var Pt=0;;){De.lastIndex=Pt;var Un=De.exec(y),bn=Un?Un.index-Pt:y.length-Pt;if(bn){var pr=document.createTextNode(be.slice(Pt,Pt+bn));_e&&ve<9?Qt.appendChild(et("span",[pr])):Qt.appendChild(pr),a.map.push(a.pos,a.pos+bn,pr),a.col+=bn,a.pos+=bn}if(!Un)break;Pt+=bn+1;var Sr=void 0;if(Un[0]==" "){var Pr=a.cm.options.tabSize,jr=Pr-a.col%Pr;Sr=Qt.appendChild(et("span",vt(jr),"cm-tab")),Sr.setAttribute("role","presentation"),Sr.setAttribute("cm-text"," "),a.col+=jr}else Un[0]=="\r"||Un[0]==` `?(Sr=Qt.appendChild(et("span",Un[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Sr.setAttribute("cm-text",Un[0]),a.col+=1):(Sr=a.cm.options.specialCharPlaceholder(Un[0]),Sr.setAttribute("cm-text",Un[0]),_e&&ve<9?Qt.appendChild(et("span",[Sr])):Qt.appendChild(Sr),a.col+=1);a.map.push(a.pos,a.pos+1,Sr),a.pos++}}if(a.trailingSpace=be.charCodeAt(y.length-1)==32,E||x||b||je||ue||pe){var si=E||"";x&&(si+=x),b&&(si+=b);var Yr=et("span",[Qt],si,ue);if(pe)for(var vi in pe)pe.hasOwnProperty(vi)&&vi!="style"&&vi!="class"&&Yr.setAttribute(vi,pe[vi]);return a.content.appendChild(Yr)}a.content.appendChild(Qt)}}function Or(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",b=0;bje&&Pt.from<=je));Un++);if(Pt.to>=Qt)return a(E,x,b,ue,pe,be,De);a(E,x.slice(0,Pt.to-je),b,ue,null,be,De),ue=null,x=x.slice(Pt.to-je),je=Pt.to}}}function gi(a,y,E,x){var b=!x&&E.widgetNode;b&&a.map.push(a.pos,a.pos+y,b),!x&&a.cm.display.input.needsContentAttribute&&(b||(b=a.content.appendChild(document.createElement("span"))),b.setAttribute("cm-marker",E.id)),b&&(a.cm.display.input.setUneditable(b),a.content.appendChild(b)),a.pos+=y,a.trailingSpace=!1}function ti(a,y,E){var x=a.markedSpans,b=a.text,ue=0;if(!x){for(var pe=1;peDe||ea.collapsed&&_i.to==De&&_i.from==De)){if(_i.to!=null&&_i.to!=De&&bn>_i.to&&(bn=_i.to,Sr=""),ea.className&&(pr+=" "+ea.className),ea.css&&(Un=(Un?Un+";":"")+ea.css),ea.startStyle&&_i.from==De&&(Pr+=" "+ea.startStyle),ea.endStyle&&_i.to==bn&&(vi||(vi=[])).push(ea.endStyle,_i.to),ea.title&&((si||(si={})).title=ea.title),ea.attributes)for(var Ra in ea.attributes)(si||(si={}))[Ra]=ea.attributes[Ra];ea.collapsed&&(!jr||Rn(jr.marker,ea)<0)&&(jr=_i)}else _i.from>De&&bn>_i.from&&(bn=_i.from)}if(vi)for(var hA=0;hA=be)break;for(var GA=Math.min(be,bn);;){if(Qt){var FA=De+Qt.length;if(!jr){var lA=FA>GA?Qt.slice(0,GA-De):Qt;y.addToken(y,lA,Pt?Pt+pr:pr,Pr,De+lA.length==bn?Sr:"",Un,si)}if(FA>=GA){Qt=Qt.slice(GA-De),De=GA;break}De=FA,Pr=""}Qt=b.slice(ue,ue=E[je++]),Pt=hi(E[je++],y.cm.options)}}}function fi(a,y,E){this.line=y,this.rest=er(y),this.size=this.rest?Lt(pt(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Mn(a,y)}function Ei(a,y,E){for(var x=[],b,ue=y;ue2&&ue.push((De.bottom+je.top)/2-E.top)}}ue.push(E.bottom-E.top)}}function Ti(a,y,E){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;xE)return{map:a.measure.maps[b],cache:a.measure.caches[b],before:!0}}function _A(a,y){y=tn(y);var E=Lt(y),x=a.display.externalMeasured=new fi(a.doc,y,E);x.lineN=E;var b=x.built=ii(a,x);return x.text=b.pre,He(a.display.lineMeasure,b.pre),x}function fA(a,y,E,x){return Oi(a,Vi(a,y),E,x)}function Za(a,y){if(y>=a.display.viewFrom&&y=E.lineN&&yy)&&(ue=De-be,b=ue-1,y>=De&&(pe="right")),b!=null){if(x=a[je+2],be==De&&E==(x.insertLeft?"left":"right")&&(pe=E),E=="left"&&b==0)for(;je&&a[je-2]==a[je-3]&&a[je-1].insertLeft;)x=a[(je-=3)+2],pe="left";if(E=="right"&&b==De-be)for(;je=0&&(E=a[b]).left==E.right;b--);return E}function za(a,y,E,x){var b=BA(y.map,E,x),ue=b.node,pe=b.start,be=b.end,De=b.collapse,je;if(ue.nodeType==3){for(var Qt=0;Qt<4;Qt++){for(;pe&>(y.line.text.charAt(b.coverStart+pe));)--pe;for(;b.coverStart+be0&&(De=x="right");var Pt;a.options.lineWrapping&&(Pt=ue.getClientRects()).length>1?je=Pt[x=="right"?Pt.length-1:0]:je=ue.getBoundingClientRect()}if(_e&&ve<9&&!pe&&(!je||!je.left&&!je.right)){var Un=ue.parentNode.getClientRects()[0];Un?je={left:Un.left,right:Un.left+gA(a.display),top:Un.top,bottom:Un.bottom}:je=wA}for(var bn=je.top-y.rect.top,pr=je.bottom-y.rect.top,Sr=(bn+pr)/2,Pr=y.view.measure.heights,jr=0;jr=x.text.length?(De=x.text.length,je="before"):De<=0&&(De=0,je="after"),!be)return pe(je=="before"?De-1:De,je=="before");function Qt(pr,Sr,Pr){var jr=be[Sr],si=jr.level==1;return pe(Pr?pr-1:pr,si!=Pr)}var Pt=re(be,De,je),Un=oe,bn=Qt(De,Pt,je=="before");return Un!=null&&(bn.other=Qt(De,Un,je!="before")),bn}function Ni(a,y){var E=0;y=Nn(a.doc,y),a.options.lineWrapping||(E=gA(a.display)*y.ch);var x=yn(a.doc,y.line),b=$n(x)+Qi(a.display);return{left:E,right:E,top:b,bottom:b+x.height}}function Di(a,y,E,x,b){var ue=jt(a,y,E);return ue.xRel=b,x&&(ue.outside=x),ue}function pa(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Di(x.first,0,null,-1,-1);var b=Tt(x,E),ue=x.first+x.size-1;if(b>ue)return Di(x.first+x.size-1,yn(x,ue).text.length,null,1,1);y<0&&(y=0);for(var pe=yn(x,b);;){var be=IA(a,pe,b,y,E),De=ln(pe,be.ch+(be.xRel>0||be.outside>0?1:0));if(!De)return be;var je=De.find(1);if(je.line==b)return je;pe=yn(x,b=je.line)}}function ra(a,y,E,x){x-=uA(y);var b=y.text.length,ue=sn(function(pe){return Oi(a,E,pe-1).bottom<=x},b,0);return b=sn(function(pe){return Oi(a,E,pe).top>x},ue,b),{begin:ue,end:b}}function Pa(a,y,E,x){E||(E=Vi(a,y));var b=UA(a,y,Oi(a,E,x),"line").top;return ra(a,y,E,b)}function Ha(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function IA(a,y,E,x,b){b-=$n(y);var ue=Vi(a,y),pe=uA(y),be=0,De=y.text.length,je=!0,Qt=we(y,a.doc.direction);if(Qt){var Pt=(a.options.lineWrapping?QA:CA)(a,y,E,ue,Qt,x,b);je=Pt.level!=1,be=je?Pt.from:Pt.to-1,De=je?Pt.to:Pt.from-1}var Un=null,bn=null,pr=sn(function(Ii){var _i=Oi(a,ue,Ii);return _i.top+=pe,_i.bottom+=pe,Ha(_i,x,b,!1)?(_i.top<=b&&_i.left<=x&&(Un=Ii,bn=_i),!0):!1},be,De),Sr,Pr,jr=!1;if(bn){var si=x-bn.left=vi.bottom?1:0}return pr=Mt(y.text,pr,1),Di(E,pr,Pr,jr,x-Sr)}function CA(a,y,E,x,b,ue,pe){var be=sn(function(Pt){var Un=b[Pt],bn=Un.level!=1;return Ha(fa(a,jt(E,bn?Un.to:Un.from,bn?"before":"after"),"line",y,x),ue,pe,!0)},0,b.length-1),De=b[be];if(be>0){var je=De.level!=1,Qt=fa(a,jt(E,je?De.from:De.to,je?"after":"before"),"line",y,x);Ha(Qt,ue,pe,!0)&&Qt.top>pe&&(De=b[be-1])}return De}function QA(a,y,E,x,b,ue,pe){var be=ra(a,y,x,pe),De=be.begin,je=be.end;/\s/.test(y.text.charAt(je-1))&&je--;for(var Qt=null,Pt=null,Un=0;Un=je||bn.to<=De)){var pr=bn.level!=1,Sr=Oi(a,x,pr?Math.min(je,bn.to)-1:Math.max(De,bn.from)).right,Pr=SrPr)&&(Qt=bn,Pt=Pr)}}return Qt||(Qt=b[b.length-1]),Qt.fromje&&(Qt={from:Qt.from,to:je,level:Qt.level}),Qt}var ia;function $a(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(ia==null){ia=et("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)ia.appendChild(document.createTextNode("x")),ia.appendChild(et("br"));ia.appendChild(document.createTextNode("x"))}He(a.measure,ia);var E=ia.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),at(a.measure),E||1}function gA(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=et("span","xxxxxxxxxx"),E=et("pre",[y],"CodeMirror-line-like");He(a.measure,E);var x=y.getBoundingClientRect(),b=(x.right-x.left)/10;return b>2&&(a.cachedCharWidth=b),b||10}function LA(a){for(var y=a.display,E={},x={},b=y.gutters.clientLeft,ue=y.gutters.firstChild,pe=0;ue;ue=ue.nextSibling,++pe){var be=a.display.gutterSpecs[pe].className;E[be]=ue.offsetLeft+ue.clientLeft+b,x[be]=ue.clientWidth}return{fixedPos:VA(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:E,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function VA(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function jo(a){var y=$a(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/gA(a.display)-3);return function(b){if(Mn(a.doc,b))return 0;var ue=0;if(b.widgets)for(var pe=0;pe0&&(je=yn(a.doc,De.line).text).length==De.ch){var Qt=We(je,je.length,a.options.tabSize)-je.length;De=jt(De.line,Math.max(0,Math.round((ue-ui(a.display).left)/gA(a.display))-Qt))}return De}function jA(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var E=a.display.view,x=0;xy)&&(b.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=b.viewTo)st&&Nt(a.doc,y)b.viewFrom?cA(a):(b.viewFrom+=x,b.viewTo+=x);else if(y<=b.viewFrom&&E>=b.viewTo)cA(a);else if(y<=b.viewFrom){var ue=mo(a,E,E+x,1);ue?(b.view=b.view.slice(ue.index),b.viewFrom=ue.lineN,b.viewTo+=x):cA(a)}else if(E>=b.viewTo){var pe=mo(a,y,y,-1);pe?(b.view=b.view.slice(0,pe.index),b.viewTo=pe.lineN):cA(a)}else{var be=mo(a,y,y,-1),De=mo(a,E,E+x,1);be&&De?(b.view=b.view.slice(0,be.index).concat(Ei(a,be.lineN,De.lineN)).concat(b.view.slice(De.index)),b.viewTo+=x):cA(a)}var je=b.externalMeasured;je&&(E=b.lineN&&y=x.viewTo)){var ue=x.view[jA(a,y)];if(ue.node!=null){var pe=ue.changes||(ue.changes=[]);Ot(pe,E)==-1&&pe.push(E)}}}function cA(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function mo(a,y,E,x){var b=jA(a,y),ue,pe=a.display.view;if(!st||E==a.doc.first+a.doc.size)return{index:b,lineN:E};for(var be=a.display.viewFrom,De=0;De0){if(b==pe.length-1)return null;ue=be+pe[b].size-y,b++}else ue=be-y;y+=ue,E+=ue}for(;Nt(a.doc,E)!=E;){if(b==(x<0?0:pe.length-1))return null;E+=x*pe[b-(x<0?1:0)].size,b+=x}return{index:b,lineN:E}}function Io(a,y,E){var x=a.display,b=x.view;b.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=Ei(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=Ei(a,y,x.viewFrom).concat(x.view):x.viewFromE&&(x.view=x.view.slice(0,jA(a,E)))),x.viewTo=E}function ls(a){for(var y=a.display.view,E=0,x=0;x=a.display.viewTo||be.to().line0?y.blinker=setInterval(function(){a.hasFocus()||lo(a),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Xo(a){a.state.focused||(a.display.input.focus(),qo(a))}function Jo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,lo(a))},100)}function qo(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(It(a,"focus",a,y),a.state.focused=!0,mt(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ve&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Lo(a))}function lo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(It(a,"blur",a,y),a.state.focused=!1,Te(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function yo(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x.005||Qt<-.005)&&(zr(b.line,pe),YA(b.line),b.rest))for(var Pt=0;Pta.display.sizerWidth){var Un=Math.ceil(be/gA(a.display));Un>a.display.maxLineLength&&(a.display.maxLineLength=Un,a.display.maxLine=b.line,a.display.maxLineChanged=!0)}}}}function YA(a){if(a.widgets)for(var y=0;y=pe&&(ue=Tt(y,$n(yn(y,De))-a.wrapper.clientHeight),pe=De)}return{from:ue,to:Math.max(pe,ue+1)}}function Da(a,y){if(!ht(a,"scrollCursorIntoView")){var E=a.display,x=E.sizer.getBoundingClientRect(),b=null;if(y.top+x.top<0?b=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(b=!1),b!=null&&!ct){var ue=et("div","\u200B",null,`position: absolute; top: `+(y.top-E.viewOffset-Qi(a.display))+`px; height: `+(y.bottom-y.top+wi(a)+E.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ue),ue.scrollIntoView(b),a.display.lineSpace.removeChild(ue)}}}function uo(a,y,E,x){x==null&&(x=0);var b;!a.options.lineWrapping&&y==E&&(y=y.ch?jt(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?jt(y.line,y.ch+1,"before"):y);for(var ue=0;ue<5;ue++){var pe=!1,be=fa(a,y),De=!E||E==y?be:fa(a,E);b={left:Math.min(be.left,De.left),top:Math.min(be.top,De.top)-x,right:Math.max(be.left,De.left),bottom:Math.max(be.bottom,De.bottom)+x};var je=$o(a,b),Qt=a.doc.scrollTop,Pt=a.doc.scrollLeft;if(je.scrollTop!=null&&(ro(a,je.scrollTop),Math.abs(a.doc.scrollTop-Qt)>1&&(pe=!0)),je.scrollLeft!=null&&(io(a,je.scrollLeft),Math.abs(a.doc.scrollLeft-Pt)>1&&(pe=!0)),!pe)break}return b}function cs(a,y){var E=$o(a,y);E.scrollTop!=null&&ro(a,E.scrollTop),E.scrollLeft!=null&&io(a,E.scrollLeft)}function $o(a,y){var E=a.display,x=$a(a.display);y.top<0&&(y.top=0);var b=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,ue=ji(a),pe={};y.bottom-y.top>ue&&(y.bottom=y.top+ue);var be=a.doc.height+vr(E),De=y.topbe-x;if(y.topb+ue){var Qt=Math.min(y.top,(je?be:y.bottom)-ue);Qt!=b&&(pe.scrollTop=Qt)}var Pt=a.options.fixedGutter?0:E.gutters.offsetWidth,Un=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Pt,bn=ka(a)-E.gutters.offsetWidth,pr=y.right-y.left>bn;return pr&&(y.right=y.left+bn),y.left<10?pe.scrollLeft=0:y.leftbn+Un-3&&(pe.scrollLeft=y.right+(pr?0:10)-bn),pe}function es(a,y){y!=null&&(Bo(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function wo(a){Bo(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function no(a,y,E){(y!=null||E!=null)&&Bo(a),y!=null&&(a.curOp.scrollLeft=y),E!=null&&(a.curOp.scrollTop=E)}function fs(a,y){Bo(a),a.curOp.scrollToPos=y}function Bo(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=Ni(a,y.from),x=Ni(a,y.to);XA(a,E,x,y.margin)}}function XA(a,y,E,x){var b=$o(a,{left:Math.min(y.left,E.left),top:Math.min(y.top,E.top)-x,right:Math.max(y.right,E.right),bottom:Math.max(y.bottom,E.bottom)+x});no(a,b.scrollLeft,b.scrollTop)}function ro(a,y){Math.abs(a.doc.scrollTop-y)<2||(te||Co(a,{top:y}),co(a,y,!0),te&&Co(a),To(a,100))}function co(a,y,E){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!E)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function io(a,y,E,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((E?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,Dl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function zi(a){var y=a.display,E=y.gutters.offsetWidth,x=Math.round(a.doc.height+vr(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?E:0,docHeight:x,scrollHeight:x+wi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var Wi=function(a,y,E){this.cm=E;var x=this.vert=et("div",[et("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),b=this.horiz=et("div",[et("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=b.tabIndex=-1,a(x),a(b),Ee(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),Ee(b,"scroll",function(){b.clientWidth&&y(b.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_e&&ve<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wi.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,E=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var b=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+b)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var ue=a.viewWidth-a.barLeft-(E?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ue)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?x:0,bottom:y?x:0}},Wi.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wi.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wi.prototype.zeroWidthHack=function(){var a=Le&&!Ce?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fe,this.disableVert=new Fe},Wi.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var b=a.getBoundingClientRect(),ue=E=="vert"?document.elementFromPoint(b.right-1,(b.top+b.bottom)/2):document.elementFromPoint((b.right+b.left)/2,b.bottom-1);ue!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},Wi.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Wa=function(){};Wa.prototype.update=function(){return{bottom:0,right:0}},Wa.prototype.setScrollLeft=function(){},Wa.prototype.setScrollTop=function(){},Wa.prototype.clear=function(){};function Ga(a,y){y||(y=zi(a));var E=a.display.barWidth,x=a.display.barHeight;nA(a,y);for(var b=0;b<4&&E!=a.display.barWidth||x!=a.display.barHeight;b++)E!=a.display.barWidth&&a.options.lineWrapping&&yo(a),nA(a,zi(a)),E=a.display.barWidth,x=a.display.barHeight}function nA(a,y){var E=a.display,x=E.scrollbars.update(y);E.sizer.style.paddingRight=(E.barWidth=x.right)+"px",E.sizer.style.paddingBottom=(E.barHeight=x.bottom)+"px",E.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(E.scrollbarFiller.style.display="block",E.scrollbarFiller.style.height=x.bottom+"px",E.scrollbarFiller.style.width=x.right+"px"):E.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(E.gutterFiller.style.display="block",E.gutterFiller.style.height=x.bottom+"px",E.gutterFiller.style.width=y.gutterWidth+"px"):E.gutterFiller.style.display=""}var fo={native:Wi,null:Wa};function JA(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Te(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new fo[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ee(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,E){E=="horizontal"?io(a,y):ro(a,y)},a),a.display.scrollbars.addClass&&mt(a.display.wrapper,a.display.scrollbars.addClass)}var ho=0;function HA(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:++ho},_a(a.curOp)}function qA(a){var y=a.curOp;y&&Ma(y,function(E){for(var x=0;x=E.viewTo)||E.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Is(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function nu(a){a.updatedDisplay=a.mustUpdate&&Js(a.cm,a.update)}function ru(a){var y=a.cm,E=y.display;a.updatedDisplay&&yo(y),a.barMeasure=zi(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=fA(y,E.maxLine,E.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(E.scroller.clientWidth,E.sizer.offsetLeft+a.adjustWidthTo+wi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-ka(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function Ds(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var E=+new Date+a.options.workTime,x=Nr(a,y.highlightFrontier),b=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ue){if(x.line>=a.display.viewFrom){var pe=ue.styles,be=ue.text.length>a.options.maxHighlightLength?Ir(y.mode,x.state):null,De=wr(a,ue,x,!0);be&&(x.state=be),ue.styles=De.styles;var je=ue.styleClasses,Qt=De.classes;Qt?ue.styleClasses=Qt:je&&(ue.styleClasses=null);for(var Pt=!pe||pe.length!=ue.styles.length||je!=Qt&&(!je||!Qt||je.bgClass!=Qt.bgClass||je.textClass!=Qt.textClass),Un=0;!Pt&&UnE)return To(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),b.length&&MA(a,function(){for(var ue=0;ue=E.viewFrom&&y.visible.to<=E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo)&&E.renderedView==E.view&&ls(a)==0)return!1;ns(a)&&(cA(a),y.dims=LA(a));var b=x.first+x.size,ue=Math.max(y.visible.from-a.options.viewportMargin,x.first),pe=Math.min(b,y.visible.to+a.options.viewportMargin);E.viewFrompe&&E.viewTo-pe<20&&(pe=Math.min(b,E.viewTo)),st&&(ue=Nt(a.doc,ue),pe=qt(a.doc,pe));var be=ue!=E.viewFrom||pe!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;Io(a,ue,pe),E.viewOffset=$n(yn(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var De=ls(a);if(!be&&De==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var je=Ul(a);return De>4&&(E.lineDiv.style.display="none"),qs(a,E.updateLineNumbers,y.dims),De>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,Au(je),at(E.cursorDiv),at(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,be&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,To(a,400)),E.updateLineNumbers=null,!0}function ts(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==ka(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+vr(a.display)-ji(a),E.top)}),y.visible=to(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=to(a.display,a.doc,E));if(!Js(a,y))break;yo(a);var b=zi(a);zA(a),Ga(a,b),Qs(a,b),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Co(a,y){var E=new Is(a,y);if(Js(a,E)){yo(a),ts(a,E);var x=zi(a);zA(a),Ga(a,x),Qs(a,x),E.finish()}}function qs(a,y,E){var x=a.display,b=a.options.lineNumbers,ue=x.lineDiv,pe=ue.firstChild;function be(pr){var Sr=pr.nextSibling;return Ve&&Le&&a.display.currentWheelTarget==pr?pr.style.display="none":pr.parentNode.removeChild(pr),Sr}for(var De=x.view,je=x.viewFrom,Qt=0;Qt-1&&(bn=!1),na(a,Pt,je,E)),bn&&(at(Pt.lineNumber),Pt.lineNumber.appendChild(document.createTextNode(Tn(a.options,je)))),pe=Pt.node.nextSibling}je+=Pt.size}for(;pe;)pe=be(pe)}function $s(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function Qs(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+wi(a)+"px"}function Dl(a){var y=a.display,E=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=VA(y)-y.scroller.scrollLeft+a.doc.scrollLeft,b=y.gutters.offsetWidth,ue=x+"px",pe=0;pepe.clientWidth,De=pe.scrollHeight>pe.clientHeight;if(x&&be||b&&De){if(b&&Le&&Ve){e:for(var je=y.target,Qt=ue.view;je!=pe;je=je.parentNode)for(var Pt=0;Pt=0&&_n(a,x.to())<=0)return E}return-1};var va=function(a,y){this.anchor=a,this.head=y};va.prototype.from=function(){return dr(this.anchor,this.head)},va.prototype.to=function(){return Ar(this.anchor,this.head)},va.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xA(a,y,E){var x=a&&a.options.selectionsMayTouch,b=y[E];y.sort(function(Un,bn){return _n(Un.from(),bn.from())}),E=Ot(y,b);for(var ue=1;ue0:De>=0){var je=dr(be.from(),pe.from()),Qt=Ar(be.to(),pe.to()),Pt=be.empty()?pe.from()==pe.head:be.from()==be.head;ue<=E&&--E,y.splice(--ue,2,new va(Pt?Qt:je,Pt?je:Qt))}}return new OA(y,E)}function xo(a,y){return new OA([new va(a,y||a)],0)}function Eo(a){return a.text?jt(a.from.line+a.text.length-1,pt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function el(a,y){if(_n(a,y.from)<0)return a;if(_n(a,y.to)<=0)return Eo(y);var E=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=Eo(y).ch-y.to.ch),jt(E,x)}function tl(a,y){for(var E=[],x=0;x1&&a.remove(be.line+1,pr-1),a.insert(be.line+1,jr)}qi(a,"change",a,y)}function bo(a,y,E){function x(b,ue,pe){if(b.linked)for(var be=0;be1&&!a.done[a.done.length-2].ranges)return a.done.pop(),pt(a.done)}function il(a,y,E,x){var b=a.history;b.undone.length=0;var ue=+new Date,pe,be;if((b.lastOp==x||b.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&b.lastModTime>ue-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(pe=rl(b,b.lastOp==x)))be=pt(pe.changes),_n(y.from,y.to)==0&&_n(y.from,be.to)==0?be.to=Eo(y):pe.changes.push(Ns(a,y));else{var De=pt(b.done);for((!De||!De.ranges)&&vs(a.sel,b.done),pe={changes:[Ns(a,y)],generation:b.generation},b.done.push(pe);b.done.length>b.undoDepth;)b.done.shift(),b.done[0].ranges||b.done.shift()}b.done.push(E),b.generation=++b.maxGeneration,b.lastModTime=b.lastSelTime=ue,b.lastOp=b.lastSelOp=x,b.lastOrigin=b.lastSelOrigin=y.origin,be||It(a,"historyAdded")}function Bu(a,y,E,x){var b=y.charAt(0);return b=="*"||b=="+"&&E.ranges.length==x.ranges.length&&E.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Rl(a,y,E,x){var b=a.history,ue=x&&x.origin;E==b.lastSelOp||ue&&b.lastSelOrigin==ue&&(b.lastModTime==b.lastSelTime&&b.lastOrigin==ue||Bu(a,ue,pt(b.done),y))?b.done[b.done.length-1]=y:vs(y,b.done),b.lastSelTime=+new Date,b.lastSelOrigin=ue,b.lastSelOp=E,x&&x.clearRedo!==!1&&Hl(b.undone)}function vs(a,y){var E=pt(y);E&&E.ranges&&E.equals(a)||y.push(a)}function al(a,y,E,x){var b=y["spans_"+a.id],ue=0;a.iter(Math.max(a.first,E),Math.min(a.first+a.size,x),function(pe){pe.markedSpans&&((b||(b=y["spans_"+a.id]={}))[ue]=pe.markedSpans),++ue})}function Ol(a){if(!a)return null;for(var y,E=0;E-1&&(pt(be)[Pt]=je[Pt],delete je[Pt])}}return x}function ol(a,y,E,x){if(x){var b=a.anchor;if(E){var ue=_n(y,b)<0;ue!=_n(E,b)<0?(b=y,y=E):ue!=_n(y,E)<0&&(y=E)}return new va(b,y)}else return new va(E||y,y)}function ms(a,y,E,x,b){b==null&&(b=a.cm&&(a.cm.display.shift||a.extend)),dA(a,new OA([ol(a.sel.primary(),y,E,b)],0),x)}function $A(a,y,E){for(var x=[],b=a.cm&&(a.cm.display.shift||a.extend),ue=0;ue=y.ch:be.to>y.ch))){if(b&&(It(De,"beforeCursorEnter"),De.explicitlyCleared))if(ue.markedSpans){--pe;continue}else break;if(!De.atomic)continue;if(E){var Pt=De.find(x<0?1:-1),Un=void 0;if((x<0?Qt:je)&&(Pt=cl(a,Pt,-x,Pt&&Pt.line==y.line?ue:null)),Pt&&Pt.line==y.line&&(Un=_n(Pt,E))&&(x<0?Un<0:Un>0))return Mo(a,Pt,y,x,b)}var bn=De.find(x<0?-1:1);return(x<0?je:Qt)&&(bn=cl(a,bn,x,bn.line==y.line?ue:null)),bn?Mo(a,bn,y,x,b):null}}return y}function ws(a,y,E,x,b){var ue=x||1,pe=Mo(a,y,E,ue,b)||!b&&Mo(a,y,E,ue,!0)||Mo(a,y,E,-ue,b)||!b&&Mo(a,y,E,-ue,!0);return pe||(a.cantEdit=!0,jt(a.first,0))}function cl(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?Nn(a,jt(y.line-1)):null:E>0&&y.ch==(x||yn(a,y.line)).text.length?y.line=0;--b)dl(a,{from:x[b].from,to:x[b].to,text:b?[""]:y.text,origin:y.origin});else dl(a,y)}}function dl(a,y){if(!(y.text.length==1&&y.text[0]==""&&_n(y.from,y.to)==0)){var E=tl(a,y);il(a,y,E,a.cm?a.cm.curOp.id:NaN),Cs(a,y,E,Gn(a,y));var x=[];bo(a,function(b,ue){!ue&&Ot(x,b.history)==-1&&(Ps(b.history,y),x.push(b.history)),Cs(b,y,null,Gn(b,y))})}}function Os(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var b=a.history,ue,pe=a.sel,be=y=="undo"?b.done:b.undone,De=y=="undo"?b.undone:b.done,je=0;je=0;--bn){var pr=Un(bn);if(pr)return pr.v}}}}function hl(a,y){if(y!=0&&(a.first+=y,a.sel=new OA(bt(a.sel.ranges,function(b){return new va(jt(b.anchor.line+y,b.anchor.ch),jt(b.head.line+y,b.head.ch))}),a.sel.primIndex),a.cm)){eA(a.cm,a.first,a.first-y,y);for(var E=a.cm.display,x=E.viewFrom;xa.lastLine())){if(y.from.lineue&&(y={from:y.from,to:jt(ue,yn(a,ue).text.length),text:[y.text[0]],origin:y.origin}),y.removed=rt(a,y.from,y.to),E||(E=tl(a,y)),a.cm?Cu(a.cm,y,x):Ms(a,y,x),Rs(a,E,Ct),a.cantEdit&&ws(a,jt(a.firstLine(),0))&&(a.cantEdit=!1)}}function Cu(a,y,E){var x=a.doc,b=a.display,ue=y.from,pe=y.to,be=!1,De=ue.line;a.options.lineWrapping||(De=Lt(tn(yn(x,ue.line))),x.iter(De,pe.line+1,function(bn){if(bn==b.maxLine)return be=!0,!0})),x.sel.contains(y.from,y.to)>-1&&Bn(a),Ms(x,y,E,jo(a)),a.options.lineWrapping||(x.iter(De,ue.line+y.text.length,function(bn){var pr=Fr(bn);pr>b.maxLineLength&&(b.maxLine=bn,b.maxLineLength=pr,b.maxLineChanged=!0,be=!1)}),be&&(a.curOp.updateMaxLine=!0)),ze(x,ue.line),To(a,400);var je=y.text.length-(pe.line-ue.line)-1;y.full?eA(a):ue.line==pe.line&&y.text.length==1&&!Ts(a.doc,y)?tA(a,ue.line,"text"):eA(a,ue.line,pe.line+1,je);var Qt=Vt(a,"changes"),Pt=Vt(a,"change");if(Pt||Qt){var Un={from:ue,to:pe,text:y.text,removed:y.removed,origin:y.origin};Pt&&qi(a,"change",a,Un),Qt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Un)}a.display.selForContextMenu=null}function Ho(a,y,E,x,b){var ue;x||(x=E),_n(x,E)<0&&(ue=[x,E],E=ue[0],x=ue[1]),typeof y=="string"&&(y=a.splitLines(y)),No(a,{from:E,to:x,text:y,origin:b})}function Pl(a,y,E,x){E1||!(this.children[0]instanceof Ro))){var be=[];this.collapse(be),this.children=[new Ro(be)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var pe=b.lines.length%25+25,be=pe;be10);a.parent.maybeSpill()}},iterN:function(a,y,E){for(var x=0;xa.display.maxLineLength&&(a.display.maxLine=je,a.display.maxLineLength=Qt,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&eA(a,x,b+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Fo(a.doc)),a&&qi(a,"markerCleared",a,this,x,b),y&&qA(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var E,x,b=0;b0||pe==0&&ue.clearWhenEmpty!==!1)return ue;if(ue.replacedWith&&(ue.collapsed=!0,ue.widgetNode=dt("span",[ue.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||ue.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(ue.widgetNode.insertLeft=!0)),ue.collapsed){if(hn(a,y.line,y,E,ue)||y.line!=E.line&&hn(a,E.line,y,E,ue))throw new Error("Inserting collapsed marker partially overlapping an existing one");rn()}ue.addToHistory&&il(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var be=y.line,De=a.cm,je;if(a.iter(be,E.line+1,function(Pt){De&&ue.collapsed&&!De.options.lineWrapping&&tn(Pt)==De.display.maxLine&&(je=!0),ue.collapsed&&be!=y.line&&zr(Pt,0),Wn(Pt,new Wt(ue,be==y.line?y.ch:null,be==E.line?E.ch:null)),++be}),ue.collapsed&&a.iter(y.line,E.line+1,function(Pt){Mn(a,Pt)&&zr(Pt,0)}),ue.clearOnEnter&&Ee(ue,"beforeCursorEnter",function(){return ue.clear()}),ue.readOnly&&(Et(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ue.collapsed&&(ue.id=++Ks,ue.atomic=!0),De){if(je&&(De.curOp.updateMaxLine=!0),ue.collapsed)eA(De,y.line,E.line+1);else if(ue.className||ue.startStyle||ue.endStyle||ue.css||ue.attributes||ue.title)for(var Qt=y.line;Qt<=E.line;Qt++)tA(De,Qt,"text");ue.atomic&&Fo(De.doc),qi(De,"markerAdded",De,ue)}return ue}var as=function(a,y){this.markers=a,this.primary=y;for(var E=0;E=0;De--)No(this,x[De]);be?Hs(this,be):this.cm&&wo(this.cm)}),undo:sA(function(){Os(this,"undo")}),redo:sA(function(){Os(this,"redo")}),undoSelection:sA(function(){Os(this,"undo",!0)}),redoSelection:sA(function(){Os(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,E=0,x=0;x=a.ch)&&y.push(b.marker.parent||b.marker)}return y},findMarks:function(a,y,E){a=Nn(this,a),y=Nn(this,y);var x=[],b=a.line;return this.iter(a.line,y.line+1,function(ue){var pe=ue.markedSpans;if(pe)for(var be=0;be=De.to||De.from==null&&b!=a.line||De.from!=null&&b==y.line&&De.from>=y.ch)&&(!E||E(De.marker))&&x.push(De.marker.parent||De.marker)}++b}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var E=y.markedSpans;if(E)for(var x=0;xa)return y=a,!0;a-=ue,++E}),Nn(this,jt(E,y))},indexFromPos:function(a){a=Nn(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Qt=a.dataTransfer.getData("Text");if(Qt){var Pt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Pt=y.listSelections()),Rs(y.doc,xo(E,E)),Pt)for(var Un=0;Un=0;be--)Ho(a.doc,"",x[be].from,x[be].to,"+delete");wo(a)})}function La(a,y,E){var x=Mt(a.text,y+E,E);return x<0||x>a.text.length?null:x}function ki(a,y,E){var x=La(a,y.ch,E);return x==null?null:new jt(y.line,x,E<0?"after":"before")}function Ea(a,y,E,x,b){if(a){y.doc.direction=="rtl"&&(b=-b);var ue=we(E,y.doc.direction);if(ue){var pe=b<0?pt(ue):ue[0],be=b<0==(pe.level==1),De=be?"after":"before",je;if(pe.level>0||y.doc.direction=="rtl"){var Qt=Vi(y,E);je=b<0?E.text.length-1:0;var Pt=Oi(y,Qt,je).top;je=sn(function(Un){return Oi(y,Qt,Un).top==Pt},b<0==(pe.level==1)?pe.from:pe.to-1,je),De=="before"&&(je=La(E,je,1))}else je=b<0?pe.to:pe.from;return new jt(x,je,De)}}return new jt(x,b<0?E.text.length:0,b<0?"before":"after")}function oa(a,y,E,x){var b=we(y,a.doc.direction);if(!b)return ki(y,E,x);E.ch>=y.text.length?(E.ch=y.text.length,E.sticky="before"):E.ch<=0&&(E.ch=0,E.sticky="after");var ue=re(b,E.ch,E.sticky),pe=b[ue];if(a.doc.direction=="ltr"&&pe.level%2==0&&(x>0?pe.to>E.ch:pe.from=pe.from&&Un>=Qt.begin)){var bn=Pt?"before":"after";return new jt(E.line,Un,bn)}}var pr=function(jr,si,Yr){for(var vi=function(Ra,hA){return hA?new jt(E.line,be(Ra,1),"before"):new jt(E.line,Ra,"after")};jr>=0&&jr0==(Ii.level!=1),ea=_i?Yr.begin:be(Yr.end,-1);if(Ii.from<=ea&&ea0?Qt.end:be(Qt.begin,-1);return Pr!=null&&!(x>0&&Pr==y.text.length)&&(Sr=pr(x>0?0:b.length-1,x,je(Pr)),Sr)?Sr:null}var Zi={selectAll:fl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ct)},killLine:function(a){return Gi(a,function(y){if(y.empty()){var E=yn(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line0)b=new jt(b.line,b.ch+1),a.replaceRange(ue.charAt(b.ch-1)+ue.charAt(b.ch-2),jt(b.line,b.ch-2),b,"+transpose");else if(b.line>a.doc.first){var pe=yn(a.doc,b.line-1).text;pe&&(b=new jt(b.line,1),a.replaceRange(ue.charAt(0)+a.doc.lineSeparator()+pe.charAt(pe.length-1),jt(b.line-1,pe.length-1),b,"+transpose"))}}E.push(new va(b,b))}a.setSelections(E)})},newlineAndIndent:function(a){return MA(a,function(){for(var y=a.listSelections(),E=y.length-1;E>=0;E--)a.replaceRange(a.doc.lineSeparator(),y[E].anchor,y[E].head,"+input");y=a.listSelections();for(var x=0;xa&&_n(y,this.pos)==0&&E==this.button};var As,yl;function Fu(a,y){var E=+new Date;return yl&&yl.compare(E,a,y)?(As=yl=null,"triple"):As&&As.compare(E,a,y)?(yl=new Ws(E,a,y),As=null,"double"):(As=new Ws(E,a,y),yl=null,"single")}function Gl(a){var y=this,E=y.display;if(!(ht(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,Ba(E,a)){Ve||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!du(y,a)){var x=ZA(y,a),b=yr(a),ue=x?Fu(x,b):"single";window.focus(),b==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&Su(y,b,x,ue,a))&&(b==1?x?ku(y,x,ue,a):ur(a)==E.scroller&&In(a):b==2?(x&&ms(y.doc,x),setTimeout(function(){return E.input.focus()},20)):b==3&&(xe?y.display.input.onContextMenu(a):Jo(y)))}}}function Su(a,y,E,x,b){var ue="Click";return x=="double"?ue="Double"+ue:x=="triple"&&(ue="Triple"+ue),ue=(y==1?"Left":y==2?"Middle":"Right")+ue,ml(a,aa(ue,b),b,function(pe){if(typeof pe=="string"&&(pe=Zi[pe]),!pe)return!1;var be=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),be=pe(a,E)!=fn}finally{a.state.suppressEdits=!1}return be})}function _u(a,y,E){var x=a.getOption("configureMouse"),b=x?x(a,y,E):{};if(b.unit==null){var ue=ut?E.shiftKey&&E.metaKey:E.altKey;b.unit=ue?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(b.extend==null||a.doc.extend)&&(b.extend=a.doc.extend||E.shiftKey),b.addNew==null&&(b.addNew=Le?E.metaKey:E.ctrlKey),b.moveOnDrag==null&&(b.moveOnDrag=!(Le?E.altKey:E.ctrlKey)),b}function ku(a,y,E,x){_e?setTimeout(gn(Xo,a),0):a.curOp.focus=At();var b=_u(a,E,x),ue=a.doc.sel,pe;a.options.dragDrop&&Xn&&!a.isReadOnly()&&E=="single"&&(pe=ue.contains(y))>-1&&(_n((pe=ue.ranges[pe]).from(),y)<0||y.xRel>0)&&(_n(pe.to(),y)>0||y.xRel<0)?ju(a,x,y,b):Uu(a,x,y,b)}function ju(a,y,E,x){var b=a.display,ue=!1,pe=AA(a,function(je){Ve&&(b.scroller.draggable=!1),a.state.draggingText=!1,Ut(b.wrapper.ownerDocument,"mouseup",pe),Ut(b.wrapper.ownerDocument,"mousemove",be),Ut(b.scroller,"dragstart",De),Ut(b.scroller,"drop",pe),ue||(In(je),x.addNew||ms(a.doc,E,null,null,x.extend),Ve&&!Xe||_e&&ve==9?setTimeout(function(){b.wrapper.ownerDocument.body.focus({preventScroll:!0}),b.input.focus()},20):b.input.focus())}),be=function(je){ue=ue||Math.abs(y.clientX-je.clientX)+Math.abs(y.clientY-je.clientY)>=10},De=function(){return ue=!0};Ve&&(b.scroller.draggable=!0),a.state.draggingText=pe,pe.copy=!x.moveOnDrag,b.scroller.dragDrop&&b.scroller.dragDrop(),Ee(b.wrapper.ownerDocument,"mouseup",pe),Ee(b.wrapper.ownerDocument,"mousemove",be),Ee(b.scroller,"dragstart",De),Ee(b.scroller,"drop",pe),Jo(a),setTimeout(function(){return b.input.focus()},20)}function wl(a,y,E){if(E=="char")return new va(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new va(jt(y.line,0),Nn(a.doc,jt(y.line+1,0)));var x=E(a,y);return new va(x.from,x.to)}function Uu(a,y,E,x){var b=a.display,ue=a.doc;In(y);var pe,be,De=ue.sel,je=De.ranges;if(x.addNew&&!x.extend?(be=ue.sel.contains(E),be>-1?pe=je[be]:pe=new va(E,E)):(pe=ue.sel.primary(),be=ue.sel.primIndex),x.unit=="rectangle")x.addNew||(pe=new va(E,E)),E=ZA(a,y,!0,!0),be=-1;else{var Qt=wl(a,E,x.unit);x.extend?pe=ol(pe,Qt.anchor,Qt.head,x.extend):pe=Qt}x.addNew?be==-1?(be=je.length,dA(ue,xA(a,je.concat([pe]),be),{scroll:!1,origin:"*mouse"})):je.length>1&&je[be].empty()&&x.unit=="char"&&!x.extend?(dA(ue,xA(a,je.slice(0,be).concat(je.slice(be+1)),0),{scroll:!1,origin:"*mouse"}),De=ue.sel):sl(ue,be,pe,$t):(be=0,dA(ue,new OA([pe],0),$t),De=ue.sel);var Pt=E;function Un(Yr){if(_n(Pt,Yr)!=0)if(Pt=Yr,x.unit=="rectangle"){for(var vi=[],Ii=a.options.tabSize,_i=We(yn(ue,E.line).text,E.ch,Ii),ea=We(yn(ue,Yr.line).text,Yr.ch,Ii),Ra=Math.min(_i,ea),hA=Math.max(_i,ea),rA=Math.min(E.line,Yr.line),GA=Math.min(a.lastLine(),Math.max(E.line,Yr.line));rA<=GA;rA++){var FA=yn(ue,rA).text,lA=jn(FA,Ra,Ii);Ra==hA?vi.push(new va(jt(rA,lA),jt(rA,lA))):FA.length>lA&&vi.push(new va(jt(rA,lA),jt(rA,jn(FA,hA,Ii))))}vi.length||vi.push(new va(E,E)),dA(ue,xA(a,De.ranges.slice(0,be).concat(vi),be),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Yr)}else{var SA=pe,mA=wl(a,Yr,x.unit),Vr=SA.anchor,ja;_n(mA.anchor,Vr)>0?(ja=mA.head,Vr=dr(SA.from(),mA.anchor)):(ja=mA.anchor,Vr=Ar(SA.to(),mA.head));var Ya=De.ranges.slice(0);Ya[be]=Du(a,new va(Nn(ue,Vr),ja)),dA(ue,xA(a,Ya,be),$t)}}var bn=b.wrapper.getBoundingClientRect(),pr=0;function Sr(Yr){var vi=++pr,Ii=ZA(a,Yr,!0,x.unit=="rectangle");if(Ii)if(_n(Ii,Pt)!=0){a.curOp.focus=At(),Un(Ii);var _i=to(b,ue);(Ii.line>=_i.to||Ii.line<_i.from)&&setTimeout(AA(a,function(){pr==vi&&Sr(Yr)}),150)}else{var ea=Yr.clientYbn.bottom?20:0;ea&&setTimeout(AA(a,function(){pr==vi&&(b.scroller.scrollTop+=ea,Sr(Yr))}),50)}}function Pr(Yr){a.state.selectingText=!1,pr=1/0,Yr&&(In(Yr),b.input.focus()),Ut(b.wrapper.ownerDocument,"mousemove",jr),Ut(b.wrapper.ownerDocument,"mouseup",si),ue.history.lastSelOrigin=null}var jr=AA(a,function(Yr){Yr.buttons===0||!yr(Yr)?Pr(Yr):Sr(Yr)}),si=AA(a,Pr);a.state.selectingText=si,Ee(b.wrapper.ownerDocument,"mousemove",jr),Ee(b.wrapper.ownerDocument,"mouseup",si)}function Du(a,y){var E=y.anchor,x=y.head,b=yn(a.doc,E.line);if(_n(E,x)==0&&E.sticky==x.sticky)return y;var ue=we(b);if(!ue)return y;var pe=re(ue,E.ch,E.sticky),be=ue[pe];if(be.from!=E.ch&&be.to!=E.ch)return y;var De=pe+(be.from==E.ch==(be.level!=1)?0:1);if(De==0||De==ue.length)return y;var je;if(x.line!=E.line)je=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Qt=re(ue,x.ch,x.sticky),Pt=Qt-pe||(x.ch-E.ch)*(be.level==1?-1:1);Qt==De-1||Qt==De?je=Pt<0:je=Pt>0}var Un=ue[De+(je?-1:0)],bn=je==(Un.level==1),pr=bn?Un.from:Un.to,Sr=bn?"after":"before";return E.ch==pr&&E.sticky==Sr?y:new va(new jt(E.line,pr,Sr),x)}function Iu(a,y,E,x){var b,ue;if(y.touches)b=y.touches[0].clientX,ue=y.touches[0].clientY;else try{b=y.clientX,ue=y.clientY}catch(Un){return!1}if(b>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&In(y);var pe=a.display,be=pe.lineDiv.getBoundingClientRect();if(ue>be.bottom||!Vt(a,E))return vn(y);ue-=be.top-pe.viewOffset;for(var De=0;De=b){var Qt=Tt(a.doc,ue),Pt=a.display.gutterSpecs[De];return It(a,E,a,Qt,Pt.className,y),vn(y)}}}function du(a,y){return Iu(a,y,"gutterClick",!0)}function hu(a,y){Ba(a.display,y)||Gs(a,y)||ht(a,y,"contextmenu")||xe||a.display.input.onContextMenu(y)}function Gs(a,y){return Vt(a,"gutterContextMenu")?Iu(a,y,"gutterContextMenu",!1):!1}function Vl(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),aA(a)}var Zo={toString:function(){return"CodeMirror.Init"}},Qu={},jl={};function Yu(a){var y=a.optionHandlers;function E(x,b,ue,pe){a.defaults[x]=b,ue&&(y[x]=pe?function(be,De,je){je!=Zo&&ue(be,De,je)}:ue)}a.defineOption=E,a.Init=Zo,E("value","",function(x,b){return x.setValue(b)},!0),E("mode",null,function(x,b){x.doc.modeOption=b,nl(x)},!0),E("indentUnit",2,nl,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){ps(x),aA(x),eA(x)},!0),E("lineSeparator",null,function(x,b){if(x.doc.lineSep=b,!!b){var ue=[],pe=x.doc.first;x.doc.iter(function(De){for(var je=0;;){var Qt=De.text.indexOf(b,je);if(Qt==-1)break;je=Qt+b.length,ue.push(jt(pe,Qt))}pe++});for(var be=ue.length-1;be>=0;be--)Ho(x.doc,b,ue[be],jt(ue[be].line,ue[be].ch+b.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,b,ue){x.state.specialChars=new RegExp(b.source+(b.test(" ")?"":"| "),"g"),ue!=Zo&&x.refresh()}),E("specialCharPlaceholder",$r,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",Ze?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),E("spellcheck",!1,function(x,b){return x.getInputField().spellcheck=b},!0),E("autocorrect",!1,function(x,b){return x.getInputField().autocorrect=b},!0),E("autocapitalize",!1,function(x,b){return x.getInputField().autocapitalize=b},!0),E("rtlMoveVisually",!Ge),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Vl(x),hs(x)},!0),E("keyMap","default",function(x,b,ue){var pe=Hr(b),be=ue!=Zo&&Hr(ue);be&&be.detach&&be.detach(x,pe),pe.attach&&pe.attach(x,be||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,Lu,!0),E("gutters",[],function(x,b){x.display.gutterSpecs=ds(b,x.options.lineNumbers),hs(x)},!0),E("fixedGutter",!0,function(x,b){x.display.gutters.style.left=b?VA(x.display)+"px":"0",x.refresh()},!0),E("coverGutterNextToScrollbar",!1,function(x){return Ga(x)},!0),E("scrollbarStyle","native",function(x){JA(x),Ga(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),E("lineNumbers",!1,function(x,b){x.display.gutterSpecs=ds(x.options.gutters,b),hs(x)},!0),E("firstLineNumber",1,hs,!0),E("lineNumberFormatter",function(x){return x},hs,!0),E("showCursorWhenSelecting",!1,zA,!0),E("resetSelectionOnContextMenu",!0),E("lineWiseCopyCut",!0),E("pasteLinesPerSelection",!0),E("selectionsMayTouch",!1),E("readOnly",!1,function(x,b){b=="nocursor"&&(lo(x),x.display.input.blur()),x.display.input.readOnlyChanged(b)}),E("screenReaderLabel",null,function(x,b){b=b===""?null:b,x.display.input.screenReaderLabelChanged(b)}),E("disableInput",!1,function(x,b){b||x.display.input.reset()},!0),E("dragDrop",!0,Xu),E("allowDropFileTypes",null),E("cursorBlinkRate",530),E("cursorScrollMargin",0),E("cursorHeight",1,zA,!0),E("singleCursorHeightPerLine",!0,zA,!0),E("workTime",100),E("workDelay",100),E("flattenSpans",!0,ps,!0),E("addModeClass",!1,ps,!0),E("pollInterval",100),E("undoDepth",200,function(x,b){return x.doc.history.undoDepth=b}),E("historyEventDelay",1250),E("viewportMargin",10,function(x){return x.refresh()},!0),E("maxHighlightLength",1e4,ps,!0),E("moveInputWithCursor",!0,function(x,b){b||x.display.input.resetPosition()}),E("tabindex",null,function(x,b){return x.display.input.getField().tabIndex=b||""}),E("autofocus",null),E("direction","ltr",function(x,b){return x.doc.setDirection(b)},!0),E("phrases",null)}function Xu(a,y,E){var x=E&&E!=Zo;if(!y!=!x){var b=a.display.dragFunctions,ue=y?Ee:Ut;ue(a.display.scroller,"dragstart",b.start),ue(a.display.scroller,"dragenter",b.enter),ue(a.display.scroller,"dragover",b.over),ue(a.display.scroller,"dragleave",b.leave),ue(a.display.scroller,"drop",b.drop)}}function Lu(a){a.options.lineWrapping?(mt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Te(a.display.wrapper,"CodeMirror-wrap"),gr(a)),Do(a),eA(a),aA(a),setTimeout(function(){return Ga(a)},100)}function Ka(a,y){var E=this;if(!(this instanceof Ka))return new Ka(a,y);this.options=y=y?An(y):{},An(Qu,y,!1);var x=y.value;typeof x=="string"?x=new bA(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var b=new Ka.inputStyles[y.inputStyle](this),ue=this.display=new ou(a,x,b,y);ue.wrapper.CodeMirror=this,Vl(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),JA(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 Fe,keySeq:null,specialChars:null},y.autofocus&&!Ze&&ue.input.focus(),_e&&ve<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Tu(this),En(),HA(this),this.curOp.forceUpdate=!0,oA(this,x),y.autofocus&&!Ze||this.hasFocus()?setTimeout(function(){E.hasFocus()&&!E.state.focused&&qo(E)},20):lo(this);for(var pe in jl)jl.hasOwnProperty(pe)&&jl[pe](this,y[pe],Zo);ns(this),y.finishInit&&y.finishInit(this);for(var be=0;be20*20}Ee(y.scroller,"touchstart",function(De){if(!ht(a,De)&&!ue(De)&&!du(a,De)){y.input.ensurePolled(),clearTimeout(E);var je=+new Date;y.activeTouch={start:je,moved:!1,prev:je-x.end<=300?x:null},De.touches.length==1&&(y.activeTouch.left=De.touches[0].pageX,y.activeTouch.top=De.touches[0].pageY)}}),Ee(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ee(y.scroller,"touchend",function(De){var je=y.activeTouch;if(je&&!Ba(y,De)&&je.left!=null&&!je.moved&&new Date-je.start<300){var Qt=a.coordsChar(y.activeTouch,"page"),Pt;!je.prev||pe(je,je.prev)?Pt=new va(Qt,Qt):!je.prev.prev||pe(je,je.prev.prev)?Pt=a.findWordAt(Qt):Pt=new va(jt(Qt.line,0),Nn(a.doc,jt(Qt.line+1,0))),a.setSelection(Pt.anchor,Pt.head),a.focus(),In(De)}b()}),Ee(y.scroller,"touchcancel",b),Ee(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ro(a,y.scroller.scrollTop),io(a,y.scroller.scrollLeft,!0),It(a,"scroll",a))}),Ee(y.scroller,"mousewheel",function(De){return Tl(a,De)}),Ee(y.scroller,"DOMMouseScroll",function(De){return Tl(a,De)}),Ee(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(De){ht(a,De)||fr(De)},over:function(De){ht(a,De)||(Ae(a,De),fr(De))},start:function(De){return ye(a,De)},drop:AA(a,z),leave:function(De){ht(a,De)||Pe(a)}};var be=y.input.getField();Ee(be,"keyup",function(De){return Eu.call(a,De)}),Ee(be,"keydown",AA(a,Wl)),Ee(be,"keypress",AA(a,bu)),Ee(be,"focus",function(De){return qo(a,De)}),Ee(be,"blur",function(De){return lo(a,De)})}var Yl=[];Ka.defineInitHook=function(a){return Yl.push(a)};function Es(a,y,E,x){var b=a.doc,ue;E==null&&(E="add"),E=="smart"&&(b.mode.indent?ue=Nr(a,y).state:E="prev");var pe=a.options.tabSize,be=yn(b,y),De=We(be.text,null,pe);be.stateAfter&&(be.stateAfter=null);var je=be.text.match(/^\s*/)[0],Qt;if(!x&&!/\S/.test(be.text))Qt=0,E="not";else if(E=="smart"&&(Qt=b.mode.indent(ue,be.text.slice(je.length),be.text),Qt==fn||Qt>150)){if(!x)return;E="prev"}E=="prev"?y>b.first?Qt=We(yn(b,y-1).text,null,pe):Qt=0:E=="add"?Qt=De+a.options.indentUnit:E=="subtract"?Qt=De-a.options.indentUnit:typeof E=="number"&&(Qt=De+E),Qt=Math.max(0,Qt);var Pt="",Un=0;if(a.options.indentWithTabs)for(var bn=Math.floor(Qt/pe);bn;--bn)Un+=pe,Pt+=" ";if(Unpe,De=Dr(y),je=null;if(be&&x.ranges.length>1)if(ao&&ao.text.join(` `)==y){if(x.ranges.length%ao.text.length==0){je=[];for(var Qt=0;Qt=0;Un--){var bn=x.ranges[Un],pr=bn.from(),Sr=bn.to();bn.empty()&&(E&&E>0?pr=jt(pr.line,pr.ch-E):a.state.overwrite&&!be?Sr=jt(Sr.line,Math.min(yn(ue,Sr.line).text.length,Sr.ch+pt(De).length)):be&&ao&&ao.lineWise&&ao.text.join(` `)==De.join(` `)&&(pr=Sr=jt(pr.line,0)));var Pr={from:pr,to:Sr,text:je?je[Un%je.length]:De,origin:b||(be?"paste":a.state.cutIncoming>pe?"cut":"+input")};No(a.doc,Pr),qi(a,"inputRead",a,Pr)}y&&!be&&xl(a,y),wo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Pt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Cl(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&MA(y,function(){return pu(y,E,0,null,"paste")}),!0}function xl(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var E=a.doc.sel,x=E.ranges.length-1;x>=0;x--){var b=E.ranges[x];if(!(b.head.ch>100||x&&E.ranges[x-1].head.line==b.head.line)){var ue=a.getModeAt(b.head),pe=!1;if(ue.electricChars){for(var be=0;be-1){pe=Es(a,b.head.line,"smart");break}}else ue.electricInput&&ue.electricInput.test(yn(a.doc,b.head.line).text.slice(0,b.head.ch))&&(pe=Es(a,b.head.line,"smart"));pe&&qi(a,"electricInput",a,b.head.line)}}}function gu(a){for(var y=[],E=[],x=0;xue&&(Es(this,be.head.line,x,!0),ue=be.head.line,pe==this.doc.sel.primIndex&&wo(this));else{var De=be.from(),je=be.to(),Qt=Math.max(ue,De.line);ue=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var Pt=Qt;Pt0&&sl(this.doc,pe,new va(De,Un[pe].to()),Ct)}}}),getTokenAt:function(x,b){return qr(this,x,b)},getLineTokens:function(x,b){return qr(this,jt(x),b,!0)},getTokenTypeAt:function(x){x=Nn(this.doc,x);var b=Rr(this,yn(this.doc,x.line)),ue=0,pe=(b.length-1)/2,be=x.ch,De;if(be==0)De=b[2];else for(;;){var je=ue+pe>>1;if((je?b[je*2-1]:0)>=be)pe=je;else if(b[je*2+1]De&&(x=De,pe=!0),be=yn(this.doc,x)}else be=x;return UA(this,be,{top:0,left:0},b||"page",ue||pe).top+(pe?this.doc.height-$n(be):0)},defaultTextHeight:function(){return $a(this.display)},defaultCharWidth:function(){return gA(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,b,ue,pe,be){var De=this.display;x=fa(this,Nn(this.doc,x));var je=x.bottom,Qt=x.left;if(b.style.position="absolute",b.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(b),De.sizer.appendChild(b),pe=="over")je=x.top;else if(pe=="above"||pe=="near"){var Pt=Math.max(De.wrapper.clientHeight,this.doc.height),Un=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(pe=="above"||x.bottom+b.offsetHeight>Pt)&&x.top>b.offsetHeight?je=x.top-b.offsetHeight:x.bottom+b.offsetHeight<=Pt&&(je=x.bottom),Qt+b.offsetWidth>Un&&(Qt=Un-b.offsetWidth)}b.style.top=je+"px",b.style.left=b.style.right="",be=="right"?(Qt=De.sizer.clientWidth-b.offsetWidth,b.style.right="0px"):(be=="left"?Qt=0:be=="middle"&&(Qt=(De.sizer.clientWidth-b.offsetWidth)/2),b.style.left=Qt+"px"),ue&&cs(this,{left:Qt,top:je,right:Qt+b.offsetWidth,bottom:je+b.offsetHeight})},triggerOnKeyDown:vA(Wl),triggerOnKeyPress:vA(bu),triggerOnKeyUp:Eu,triggerOnMouseDown:vA(Gl),execCommand:function(x){if(Zi.hasOwnProperty(x))return Zi[x].call(null,this)},triggerElectric:vA(function(x){xl(this,x)}),findPosH:function(x,b,ue,pe){var be=1;b<0&&(be=-1,b=-b);for(var De=Nn(this.doc,x),je=0;je0&&Qt(ue.charAt(pe-1));)--pe;for(;be.5||this.options.lineWrapping)&&Do(this),It(this,"refresh",this)}),swapDoc:vA(function(x){var b=this.doc;return b.cm=null,this.state.selectingText&&this.state.selectingText(),oA(this,x),aA(this),this.display.input.reset(),no(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,qi(this,"swapDoc",this,b),b}),phrase:function(x){var b=this.options.phrases;return b&&Object.prototype.hasOwnProperty.call(b,x)?b[x]:x},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}},un(a),a.registerHelper=function(x,b,ue){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][b]=ue},a.registerGlobalHelper=function(x,b,ue,pe){a.registerHelper(x,b,pe),E[x]._global.push({pred:ue,val:pe})}}function Xl(a,y,E,x,b){var ue=y,pe=E,be=yn(a,y.line),De=b&&a.direction=="rtl"?-E:E;function je(){var si=y.line+De;return si=a.first+a.size?!1:(y=new jt(si,y.ch,y.sticky),be=yn(a,si))}function Qt(si){var Yr;if(x=="codepoint"){var vi=be.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(vi)?Yr=null:Yr=new jt(y.line,Math.max(0,Math.min(be.text.length,y.ch+E*(vi>=55296&&vi<56320?2:1))),-E)}else b?Yr=oa(a.cm,be,y,E):Yr=ki(be,y,E);if(Yr==null)if(!si&&je())y=Ea(b,a.cm,be,y.line,De);else return!1;else y=Yr;return!0}if(x=="char"||x=="codepoint")Qt();else if(x=="column")Qt(!0);else if(x=="word"||x=="group")for(var Pt=null,Un=x=="group",bn=a.cm&&a.cm.getHelper(y,"wordChars"),pr=!0;!(E<0&&!Qt(!pr));pr=!1){var Sr=be.text.charAt(y.ch)||` `,Pr=fe(Sr,bn)?"w":Un&&Sr==` `?"n":!Un||/\s/.test(Sr)?null:"p";if(Un&&!pr&&!Pr&&(Pr="s"),Pt&&Pt!=Pr){E<0&&(E=1,Qt(),y.sticky="after");break}if(Pr&&(Pt=Pr),E>0&&!Qt(!pr))break}var jr=ws(a,y,ue,pe,!0);return ir(ue,jr)&&(jr.hitSide=!0),jr}function Hu(a,y,E,x){var b=a.doc,ue=y.left,pe;if(x=="page"){var be=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(be-.5*$a(a.display),3);pe=(E>0?y.bottom:y.top)+E*De}else x=="line"&&(pe=E>0?y.bottom+3:y.top-3);for(var je;je=pa(a,ue,pe),!!je.outside;){if(E<0?pe<=0:pe>=b.height){je.hitSide=!0;break}pe+=E*5}return je}var Ia=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ia.prototype.init=function(a){var y=this,E=this,x=E.cm,b=E.div=a.lineDiv;vu(b,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function ue(be){for(var De=be.target;De;De=De.parentNode){if(De==b)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}Ee(b,"paste",function(be){!ue(be)||ht(x,be)||Cl(be,x)||ve<=11&&setTimeout(AA(x,function(){return y.updateFromDOM()}),20)}),Ee(b,"compositionstart",function(be){y.composing={data:be.data,done:!1}}),Ee(b,"compositionupdate",function(be){y.composing||(y.composing={data:be.data,done:!1})}),Ee(b,"compositionend",function(be){y.composing&&(be.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ee(b,"touchstart",function(){return E.forceCompositionEnd()}),Ee(b,"input",function(){y.composing||y.readFromDOMSoon()});function pe(be){if(!(!ue(be)||ht(x,be))){if(x.somethingSelected())Bl({lineWise:!1,text:x.getSelections()}),be.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var De=gu(x);Bl({lineWise:!0,text:De.text}),be.type=="cut"&&x.operation(function(){x.setSelections(De.ranges,0,Ct),x.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var je=ao.text.join(` `);if(be.clipboardData.setData("Text",je),be.clipboardData.getData("Text")==je){be.preventDefault();return}}var Qt=Mu(),Pt=Qt.firstChild;x.display.lineSpace.insertBefore(Qt,x.display.lineSpace.firstChild),Pt.value=ao.text.join(` `);var Un=document.activeElement;Jt(Pt),setTimeout(function(){x.display.lineSpace.removeChild(Qt),Un.focus(),Un==b&&E.showPrimarySelection()},50)}}Ee(b,"copy",pe),Ee(b,"cut",pe)},Ia.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ia.prototype.prepareSelection=function(){var a=us(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ia.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ia.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ia.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),x=E.from(),b=E.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||b.line=y.display.viewFrom&&bs(y,x)||{node:be[0].measure.map[2],offset:0},je=b.linea.firstLine()&&(x=jt(x.line-1,yn(a.doc,x.line-1).length)),b.ch==yn(a.doc,b.line).text.length&&b.liney.viewTo-1)return!1;var ue,pe,be;x.line==y.viewFrom||(ue=jA(a,x.line))==0?(pe=Lt(y.view[0].line),be=y.view[0].node):(pe=Lt(y.view[ue].line),be=y.view[ue-1].node.nextSibling);var De=jA(a,b.line),je,Qt;if(De==y.view.length-1?(je=y.viewTo-1,Qt=y.lineDiv.lastChild):(je=Lt(y.view[De+1].line)-1,Qt=y.view[De+1].node.previousSibling),!be)return!1;for(var Pt=a.doc.splitLines(Fs(a,be,Qt,pe,je)),Un=rt(a.doc,jt(pe,0),jt(je,yn(a.doc,je).text.length));Pt.length>1&&Un.length>1;)if(pt(Pt)==pt(Un))Pt.pop(),Un.pop(),je--;else if(Pt[0]==Un[0])Pt.shift(),Un.shift(),pe++;else break;for(var bn=0,pr=0,Sr=Pt[0],Pr=Un[0],jr=Math.min(Sr.length,Pr.length);bnx.ch&&si.charCodeAt(si.length-pr-1)==Yr.charCodeAt(Yr.length-pr-1);)bn--,pr++;Pt[Pt.length-1]=si.slice(0,si.length-pr).replace(/^\u200b+/,""),Pt[0]=Pt[0].slice(bn).replace(/\u200b+$/,"");var Ii=jt(pe,bn),_i=jt(je,Un.length?pt(Un).length-pr:0);if(Pt.length>1||Pt[0]||_n(Ii,_i))return Ho(a.doc,Pt,Ii,_i,"+input"),!0},Ia.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ia.prototype.reset=function(){this.forceCompositionEnd()},Ia.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ia.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))},Ia.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&MA(this.cm,function(){return eA(a.cm)})},Ia.prototype.setUneditable=function(a){a.contentEditable="false"},Ia.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||AA(this.cm,pu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ia.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ia.prototype.onContextMenu=function(){},Ia.prototype.resetPosition=function(){},Ia.prototype.needsContentAttribute=!0;function bs(a,y){var E=Za(a,y.line);if(!E||E.hidden)return null;var x=yn(a.doc,y.line),b=Ti(E,x,y.line),ue=we(x,a.doc.direction),pe="left";if(ue){var be=re(ue,y.ch);pe=be%2?"right":"left"}var De=BA(b.map,y.ch,pe);return De.offset=De.collapse=="right"?De.end:De.start,De}function Ru(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Va(a,y){return y&&(a.bad=!0),a}function Fs(a,y,E,x,b){var ue="",pe=!1,be=a.doc.lineSeparator(),De=!1;function je(bn){return function(pr){return pr.id==bn}}function Qt(){pe&&(ue+=be,De&&(ue+=be),pe=De=!1)}function Pt(bn){bn&&(Qt(),ue+=bn)}function Un(bn){if(bn.nodeType==1){var pr=bn.getAttribute("cm-text");if(pr){Pt(pr);return}var Sr=bn.getAttribute("cm-marker"),Pr;if(Sr){var jr=a.findMarks(jt(x,0),jt(b+1,0),je(+Sr));jr.length&&(Pr=jr[0].find(0))&&Pt(rt(a.doc,Pr.from,Pr.to).join(be));return}if(bn.getAttribute("contenteditable")=="false")return;var si=/^(pre|div|p|li|table|br)$/i.test(bn.nodeName);if(!/^br$/i.test(bn.nodeName)&&bn.textContent.length==0)return;si&&Qt();for(var Yr=0;Yr=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),Ee(b,"paste",function(pe){ht(x,pe)||Cl(pe,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ue(pe){if(!ht(x,pe)){if(x.somethingSelected())Bl({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var be=gu(x);Bl({lineWise:!0,text:be.text}),pe.type=="cut"?x.setSelections(be.ranges,null,Ct):(E.prevInput="",b.value=be.text.join(` `),Jt(b))}else return;pe.type=="cut"&&(x.state.cutIncoming=+new Date)}}Ee(b,"cut",ue),Ee(b,"copy",ue),Ee(a.scroller,"paste",function(pe){if(!(Ba(a,pe)||ht(x,pe))){if(!b.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var be=new Event("paste");be.clipboardData=pe.clipboardData,b.dispatchEvent(be)}}),Ee(a.lineSpace,"selectstart",function(pe){Ba(a,pe)||In(pe)}),Ee(b,"compositionstart",function(){var pe=x.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:pe,range:x.markText(pe,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Ee(b,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Ta.prototype.createField=function(a){this.wrapper=Mu(),this.textarea=this.wrapper.firstChild},Ta.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=us(a);if(a.options.moveInputWithCursor){var b=fa(a,E.sel.primary().head,"div"),ue=y.wrapper.getBoundingClientRect(),pe=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,b.top+pe.top-ue.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,b.left+pe.left-ue.left))}return x},Ta.prototype.showSelection=function(a){var y=this.cm,E=y.display;He(E.cursorDiv,a.cursors),He(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ta.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var E=y.getSelection();this.textarea.value=E,y.state.focused&&Jt(this.textarea),_e&&ve>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",_e&&ve>=9&&(this.hasSelection=null))}},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ze||At()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ta.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function E(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,E)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,E)},Ta.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||Kn(E)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var b=E.value;if(b==x&&!y.somethingSelected())return!1;if(_e&&ve>=9&&this.hasSelection===b||Le&&/[\uf700-\uf7ff]/.test(b))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ue=b.charCodeAt(0);if(ue==8203&&!x&&(x="\u200B"),ue==8666)return this.reset(),this.cm.execCommand("undo")}for(var pe=0,be=Math.min(x.length,b.length);pe1e3||b.indexOf(` `)>-1?E.value=a.prevInput="":a.prevInput=b,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){_e&&ve>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,b=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ue=ZA(E,a),pe=x.scroller.scrollTop;if(!ue||ge)return;var be=E.options.resetSelectionOnContextMenu;be&&E.doc.sel.contains(ue)==-1&&AA(E,dA)(E.doc,xo(ue),Ct);var De=b.style.cssText,je=y.wrapper.style.cssText,Qt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",b.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Qt.top-5)+"px; left: "+(a.clientX-Qt.left-5)+`px; z-index: 1000; background: `+(_e?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Pt;Ve&&(Pt=window.scrollY),x.input.focus(),Ve&&window.scrollTo(null,Pt),x.input.reset(),E.somethingSelected()||(b.value=y.prevInput=" "),y.contextMenuPending=bn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function Un(){if(b.selectionStart!=null){var Sr=E.somethingSelected(),Pr="\u200B"+(Sr?b.value:"");b.value="\u21DA",b.value=Pr,y.prevInput=Sr?"":"\u200B",b.selectionStart=1,b.selectionEnd=Pr.length,x.selForContextMenu=E.doc.sel}}function bn(){if(y.contextMenuPending==bn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=je,b.style.cssText=De,_e&&ve<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=pe),b.selectionStart!=null)){(!_e||_e&&ve<9)&&Un();var Sr=0,Pr=function(){x.selForContextMenu==E.doc.sel&&b.selectionStart==0&&b.selectionEnd>0&&y.prevInput=="\u200B"?AA(E,fl)(E):Sr++<10?x.detectingSelectAll=setTimeout(Pr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Pr,200)}}if(_e&&ve>=9&&Un(),xe){fr(a);var pr=function(){Ut(window,"mouseup",pr),setTimeout(bn,20)};Ee(window,"mouseup",pr)}else setTimeout(bn,50)},Ta.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function El(a,y){if(y=y?An(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var E=At();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=be.getValue()}var b;if(a.form&&(Ee(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var ue=a.form;b=ue.submit;try{var pe=ue.submit=function(){x(),ue.submit=b,ue.submit(),ue.submit=pe}}catch(De){}}y.finishInit=function(De){De.save=x,De.getTextArea=function(){return a},De.toTextArea=function(){De.toTextArea=isNaN,x(),a.parentNode.removeChild(De.getWrapperElement()),a.style.display="",a.form&&(Ut(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=b))}},a.style.display="none";var be=Ka(function(De){return a.parentNode.insertBefore(De,a.nextSibling)},y);return be}function Wo(a){a.off=Ut,a.on=Ee,a.wheelEventPixels=Ll,a.Doc=bA,a.splitLines=Dr,a.countColumn=We,a.findColumn=jn,a.isWordChar=se,a.Pass=fn,a.signal=It,a.Line=Wr,a.changeEnd=Eo,a.scrollbarModel=fo,a.Pos=jt,a.cmpPos=_n,a.modes=zn,a.mimeModes=en,a.resolveMode=sr,a.getMode=cr,a.modeExtensions=br,a.extendMode=Gr,a.copyState=Ir,a.startState=Lr,a.innerMode=Ur,a.commands=Zi,a.keyMap=Cr,a.keyName=Ri,a.isModifierKey=Ki,a.lookupKey=Pi,a.normalizeKeyMap=xa,a.StringStream=qn,a.SharedTextMarker=as,a.TextMarker=go,a.LineWidget=Oo,a.e_preventDefault=In,a.e_stopPropagation=or,a.e_stop=fr,a.addClass=mt,a.contains=Bt,a.rmClass=Te,a.keyNames=Xt}Yu(Ka),Nu(Ka);var Ou="iter insert remove copy getEditor constructor".split(" ");for(var bl in bA.prototype)bA.prototype.hasOwnProperty(bl)&&Ot(Ou,bl)<0&&(Ka.prototype[bl]=function(a){return function(){return a.apply(this.doc,arguments)}}(bA.prototype[bl]));return un(bA),Ka.inputStyles={textarea:Ta,contenteditable:Ia},Ka.defineMode=function(a){!Ka.defaults.mode&&a!="null"&&(Ka.defaults.mode=a),Sn.apply(this,arguments)},Ka.defineMIME=hr,Ka.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Ka.defineMIME("text/plain","null"),Ka.defineExtension=function(a,y){Ka.prototype[a]=y},Ka.defineDocExtension=function(a,y){bA.prototype[a]=y},Ka.fromTextArea=El,Wo(Ka),Ka.version="5.58.2",Ka})},25419:function(xn,wt,ce){(function(te){te(ce(89780),ce(15525),ce(98101))})(function(te){"use strict";te.defineMode("markdown",function(Ke,Me){var Ye=te.getMode(Ke,"text/html"),_e=Ye.name=="null";function ve(We){if(te.findModeByName){var Fe=te.findModeByName(We);Fe&&(We=Fe.mime||Fe.mimes[0])}var Ot=te.getMode(Ke,We);return Ot.name=="null"?null:Ot}Me.highlightFormatting===void 0&&(Me.highlightFormatting=!1),Me.maxBlockquoteDepth===void 0&&(Me.maxBlockquoteDepth=0),Me.taskLists===void 0&&(Me.taskLists=!1),Me.strikethrough===void 0&&(Me.strikethrough=!1),Me.emoji===void 0&&(Me.emoji=!1),Me.fencedCodeBlockHighlighting===void 0&&(Me.fencedCodeBlockHighlighting=!0),Me.fencedCodeBlockDefaultMode===void 0&&(Me.fencedCodeBlockDefaultMode="text/plain"),Me.xml===void 0&&(Me.xml=!0),Me.tokenTypeOverrides===void 0&&(Me.tokenTypeOverrides={});var Ve={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 ke in Ve)Ve.hasOwnProperty(ke)&&Me.tokenTypeOverrides[ke]&&(Ve[ke]=Me.tokenTypeOverrides[ke]);var Re=/^([*\-_])(?:\s*\1){2,}\s*$/,ge=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,Ce=Me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,tt=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ze=/^\s*\[[^\]]+?\]:.*$/,Le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ut=" ";function Ge(We,Fe,Ot){return Fe.f=Fe.inline=Ot,Ot(We,Fe)}function Je(We,Fe,Ot){return Fe.f=Fe.block=Ot,Ot(We,Fe)}function Qe(We){return!We||!/\S/.test(We.string)}function xe(We){if(We.linkTitle=!1,We.linkHref=!1,We.linkText=!1,We.em=!1,We.strong=!1,We.strikethrough=!1,We.quote=0,We.indentedCode=!1,We.f==Te){var Fe=_e;if(!Fe){var Ot=te.innerMode(Ye,We.htmlState);Fe=Ot.mode.name=="xml"&&Ot.state.tagStart===null&&!Ot.state.context&&Ot.state.tokenize.isInText}Fe&&(We.f=dt,We.block=Ne,We.htmlState=null)}return We.trailingSpace=0,We.trailingSpaceNewLine=!1,We.prevLine=We.thisLine,We.thisLine={stream:null},null}function Ne(We,Fe){var Ot=We.column()===Fe.indentation,Fn=Qe(Fe.prevLine.stream),fn=Fe.indentedCode,Ct=Fe.prevLine.hr,$t=Fe.list!==!1,on=(Fe.listStack[Fe.listStack.length-1]||0)+3;Fe.indentedCode=!1;var jn=Fe.indentation;if(Fe.indentationDiff===null&&(Fe.indentationDiff=Fe.indentation,$t)){for(Fe.list=null;jn=4&&(fn||Fe.prevLine.fencedCodeEnd||Fe.prevLine.header||Fn))return We.skipToEnd(),Fe.indentedCode=!0,Ve.code;if(We.eatSpace())return null;if(Ot&&Fe.indentation<=on&&(pt=We.match(Ce))&&pt[1].length<=6)return Fe.quote=0,Fe.header=pt[1].length,Fe.thisLine.header=!0,Me.highlightFormatting&&(Fe.formatting="header"),Fe.f=Fe.inline,He(Fe);if(Fe.indentation<=on&&We.eat(">"))return Fe.quote=Ot?1:Fe.quote+1,Me.highlightFormatting&&(Fe.formatting="quote"),We.eatSpace(),He(Fe);if(!vt&&!Fe.setext&&Ot&&Fe.indentation<=on&&(pt=We.match(ge))){var bt=pt[1]?"ol":"ul";return Fe.indentation=jn+We.current().length,Fe.list=!0,Fe.quote=0,Fe.listStack.push(Fe.indentation),Fe.em=!1,Fe.strong=!1,Fe.code=!1,Fe.strikethrough=!1,Me.taskLists&&We.match(Xe,!1)&&(Fe.taskList=!0),Fe.f=Fe.inline,Me.highlightFormatting&&(Fe.formatting=["list","list-"+bt]),He(Fe)}else{if(Ot&&Fe.indentation<=on&&(pt=We.match(nt,!0)))return Fe.quote=0,Fe.fencedEndRE=new RegExp(pt[1]+"+ *$"),Fe.localMode=Me.fencedCodeBlockHighlighting&&ve(pt[2]||Me.fencedCodeBlockDefaultMode),Fe.localMode&&(Fe.localState=te.startState(Fe.localMode)),Fe.f=Fe.block=at,Me.highlightFormatting&&(Fe.formatting="code-block"),Fe.code=-1,He(Fe);if(Fe.setext||(!Dt||!$t)&&!Fe.quote&&Fe.list===!1&&!Fe.code&&!vt&&!Ze.test(We.string)&&(pt=We.lookAhead(1))&&(pt=pt.match(ct)))return Fe.setext?(Fe.header=Fe.setext,Fe.setext=0,We.skipToEnd(),Me.highlightFormatting&&(Fe.formatting="header")):(Fe.header=pt[0].charAt(0)=="="?1:2,Fe.setext=Fe.header),Fe.thisLine.header=!0,Fe.f=Fe.inline,He(Fe);if(vt)return We.skipToEnd(),Fe.hr=!0,Fe.thisLine.hr=!0,Ve.hr;if(We.peek()==="[")return Ge(We,Fe,Gt)}return Ge(We,Fe,Fe.inline)}function Te(We,Fe){var Ot=Ye.token(We,Fe.htmlState);if(!_e){var Fn=te.innerMode(Ye,Fe.htmlState);(Fn.mode.name=="xml"&&Fn.state.tagStart===null&&!Fn.state.context&&Fn.state.tokenize.isInText||Fe.md_inside&&We.current().indexOf(">")>-1)&&(Fe.f=dt,Fe.block=Ne,Fe.htmlState=null)}return Ot}function at(We,Fe){var Ot=Fe.listStack[Fe.listStack.length-1]||0,Fn=Fe.indentation=We.quote?Fe.push(Ve.formatting+"-"+We.formatting[Ot]+"-"+We.quote):Fe.push("error"))}if(We.taskOpen)return Fe.push("meta"),Fe.length?Fe.join(" "):null;if(We.taskClosed)return Fe.push("property"),Fe.length?Fe.join(" "):null;if(We.linkHref?Fe.push(Ve.linkHref,"url"):(We.strong&&Fe.push(Ve.strong),We.em&&Fe.push(Ve.em),We.strikethrough&&Fe.push(Ve.strikethrough),We.emoji&&Fe.push(Ve.emoji),We.linkText&&Fe.push(Ve.linkText),We.code&&Fe.push(Ve.code),We.image&&Fe.push(Ve.image),We.imageAltText&&Fe.push(Ve.imageAltText,"link"),We.imageMarker&&Fe.push(Ve.imageMarker)),We.header&&Fe.push(Ve.header,Ve.header+"-"+We.header),We.quote&&(Fe.push(Ve.quote),!Me.maxBlockquoteDepth||Me.maxBlockquoteDepth>=We.quote?Fe.push(Ve.quote+"-"+We.quote):Fe.push(Ve.quote+"-"+Me.maxBlockquoteDepth)),We.list!==!1){var Fn=(We.listStack.length-1)%3;Fn?Fn===1?Fe.push(Ve.list2):Fe.push(Ve.list3):Fe.push(Ve.list1)}return We.trailingSpaceNewLine?Fe.push("trailing-space-new-line"):We.trailingSpace&&Fe.push("trailing-space-"+(We.trailingSpace%2?"a":"b")),Fe.length?Fe.join(" "):null}function et(We,Fe){if(We.match(tt,!0))return He(Fe)}function dt(We,Fe){var Ot=Fe.text(We,Fe);if(typeof Ot!="undefined")return Ot;if(Fe.list)return Fe.list=null,He(Fe);if(Fe.taskList){var Fn=We.match(Xe,!0)[1]===" ";return Fn?Fe.taskOpen=!0:Fe.taskClosed=!0,Me.highlightFormatting&&(Fe.formatting="task"),Fe.taskList=!1,He(Fe)}if(Fe.taskOpen=!1,Fe.taskClosed=!1,Fe.header&&We.match(/^#+$/,!0))return Me.highlightFormatting&&(Fe.formatting="header"),He(Fe);var fn=We.next();if(Fe.linkTitle){Fe.linkTitle=!1;var Ct=fn;fn==="("&&(Ct=")"),Ct=(Ct+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $t="^\\s*(?:[^"+Ct+"\\\\]+|\\\\\\\\|\\\\.)"+Ct;if(We.match(new RegExp($t),!0))return Ve.linkHref}if(fn==="`"){var on=Fe.formatting;Me.highlightFormatting&&(Fe.formatting="code"),We.eatWhile("`");var jn=We.current().length;if(Fe.code==0&&(!Fe.quote||jn==1))return Fe.code=jn,He(Fe);if(jn==Fe.code){var Dt=He(Fe);return Fe.code=0,Dt}else return Fe.formatting=on,He(Fe)}else if(Fe.code)return He(Fe);if(fn==="\\"&&(We.next(),Me.highlightFormatting)){var vt=He(Fe),pt=Ve.formatting+"-escape";return vt?vt+" "+pt:pt}if(fn==="!"&&We.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Fe.imageMarker=!0,Fe.image=!0,Me.highlightFormatting&&(Fe.formatting="image"),He(Fe);if(fn==="["&&Fe.imageMarker&&We.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Fe.imageMarker=!1,Fe.imageAltText=!0,Me.highlightFormatting&&(Fe.formatting="image"),He(Fe);if(fn==="]"&&Fe.imageAltText){Me.highlightFormatting&&(Fe.formatting="image");var vt=He(Fe);return Fe.imageAltText=!1,Fe.image=!1,Fe.inline=Fe.f=Bt,vt}if(fn==="["&&!Fe.image)return Fe.linkText&&We.match(/^.*?\]/)||(Fe.linkText=!0,Me.highlightFormatting&&(Fe.formatting="link")),He(Fe);if(fn==="]"&&Fe.linkText){Me.highlightFormatting&&(Fe.formatting="link");var vt=He(Fe);return Fe.linkText=!1,Fe.inline=Fe.f=We.match(/\(.*?\)| ?\[.*?\]/,!1)?Bt:dt,vt}if(fn==="<"&&We.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=$e,Me.highlightFormatting&&(Fe.formatting="link");var vt=He(Fe);return vt?vt+=" ":vt="",vt+Ve.linkInline}if(fn==="<"&&We.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=$e,Me.highlightFormatting&&(Fe.formatting="link");var vt=He(Fe);return vt?vt+=" ":vt="",vt+Ve.linkEmail}if(Me.xml&&fn==="<"&&We.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bt=We.string.indexOf(">",We.pos);if(bt!=-1){var Zt=We.string.substring(We.start,bt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Zt)&&(Fe.md_inside=!0)}return We.backUp(1),Fe.htmlState=te.startState(Ye),Je(We,Fe,Te)}if(Me.xml&&fn==="<"&&We.match(/^\/\w*?>/))return Fe.md_inside=!1,"tag";if(fn==="*"||fn==="_"){for(var yt=1,zt=We.pos==1?" ":We.string.charAt(We.pos-2);yt<3&&We.eat(fn);)yt++;var Se=We.peek()||" ",se=!/\s/.test(Se)&&(!Le.test(Se)||/\s/.test(zt)||Le.test(zt)),fe=!/\s/.test(zt)&&(!Le.test(zt)||/\s/.test(Se)||Le.test(Se)),Ue=null,Be=null;if(yt%2&&(!Fe.em&&se&&(fn==="*"||!fe||Le.test(zt))?Ue=!0:Fe.em==fn&&fe&&(fn==="*"||!se||Le.test(Se))&&(Ue=!1)),yt>1&&(!Fe.strong&&se&&(fn==="*"||!fe||Le.test(zt))?Be=!0:Fe.strong==fn&&fe&&(fn==="*"||!se||Le.test(Se))&&(Be=!1)),Be!=null||Ue!=null){Me.highlightFormatting&&(Fe.formatting=Ue==null?"strong":Be==null?"em":"strong em"),Ue===!0&&(Fe.em=fn),Be===!0&&(Fe.strong=fn);var Dt=He(Fe);return Ue===!1&&(Fe.em=!1),Be===!1&&(Fe.strong=!1),Dt}}else if(fn===" "&&(We.eat("*")||We.eat("_"))){if(We.peek()===" ")return He(Fe);We.backUp(1)}if(Me.strikethrough){if(fn==="~"&&We.eatWhile(fn)){if(Fe.strikethrough){Me.highlightFormatting&&(Fe.formatting="strikethrough");var Dt=He(Fe);return Fe.strikethrough=!1,Dt}else if(We.match(/^[^\s]/,!1))return Fe.strikethrough=!0,Me.highlightFormatting&&(Fe.formatting="strikethrough"),He(Fe)}else if(fn===" "&&We.match(/^~~/,!0)){if(We.peek()===" ")return He(Fe);We.backUp(2)}}if(Me.emoji&&fn===":"&&We.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Fe.emoji=!0,Me.highlightFormatting&&(Fe.formatting="emoji");var gt=He(Fe);return Fe.emoji=!1,gt}return fn===" "&&(We.match(/^ +$/,!1)?Fe.trailingSpace++:Fe.trailingSpace&&(Fe.trailingSpaceNewLine=!0)),He(Fe)}function $e(We,Fe){var Ot=We.next();if(Ot===">"){Fe.f=Fe.inline=dt,Me.highlightFormatting&&(Fe.formatting="link");var Fn=He(Fe);return Fn?Fn+=" ":Fn="",Fn+Ve.linkInline}return We.match(/^[^>]+/,!0),Ve.linkInline}function Bt(We,Fe){if(We.eatSpace())return null;var Ot=We.next();return Ot==="("||Ot==="["?(Fe.f=Fe.inline=mt(Ot==="("?")":"]"),Me.highlightFormatting&&(Fe.formatting="link-string"),Fe.linkHref=!0,He(Fe)):"error"}var At={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function mt(We){return function(Fe,Ot){var Fn=Fe.next();if(Fn===We){Ot.f=Ot.inline=dt,Me.highlightFormatting&&(Ot.formatting="link-string");var fn=He(Ot);return Ot.linkHref=!1,fn}return Fe.match(At[We]),Ot.linkHref=!0,He(Ot)}}function Gt(We,Fe){return We.match(/^([^\]\\]|\\.)*\]:/,!1)?(Fe.f=Jt,We.next(),Me.highlightFormatting&&(Fe.formatting="link"),Fe.linkText=!0,He(Fe)):Ge(We,Fe,dt)}function Jt(We,Fe){if(We.match(/^\]:/,!0)){Fe.f=Fe.inline=gn,Me.highlightFormatting&&(Fe.formatting="link");var Ot=He(Fe);return Fe.linkText=!1,Ot}return We.match(/^([^\]\\]|\\.)+/,!0),Ve.linkText}function gn(We,Fe){return We.eatSpace()?null:(We.match(/^[^\s]+/,!0),We.peek()===void 0?Fe.linkTitle=!0:We.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Fe.f=Fe.inline=dt,Ve.linkHref+" url")}var An={startState:function(){return{f:Ne,prevLine:{stream:null},thisLine:{stream:null},block:Ne,htmlState:null,indentation:0,inline:dt,text:et,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(We){return{f:We.f,prevLine:We.prevLine,thisLine:We.thisLine,block:We.block,htmlState:We.htmlState&&te.copyState(Ye,We.htmlState),indentation:We.indentation,localMode:We.localMode,localState:We.localMode?te.copyState(We.localMode,We.localState):null,inline:We.inline,text:We.text,formatting:!1,linkText:We.linkText,linkTitle:We.linkTitle,linkHref:We.linkHref,code:We.code,em:We.em,strong:We.strong,strikethrough:We.strikethrough,emoji:We.emoji,header:We.header,setext:We.setext,hr:We.hr,taskList:We.taskList,list:We.list,listStack:We.listStack.slice(0),quote:We.quote,indentedCode:We.indentedCode,trailingSpace:We.trailingSpace,trailingSpaceNewLine:We.trailingSpaceNewLine,md_inside:We.md_inside,fencedEndRE:We.fencedEndRE}},token:function(We,Fe){if(Fe.formatting=!1,We!=Fe.thisLine.stream){if(Fe.header=0,Fe.hr=!1,We.match(/^\s*$/,!0))return xe(Fe),null;if(Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:We},Fe.taskList=!1,Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,!Fe.localState&&(Fe.f=Fe.block,Fe.f!=Te)){var Ot=We.match(/^\s*/,!0)[0].replace(/\t/g,ut).length;if(Fe.indentation=Ot,Fe.indentationDiff=null,Ot>0)return null}}return Fe.f(We,Fe)},innerMode:function(We){return We.block==Te?{state:We.htmlState,mode:Ye}:We.localState?{state:We.localState,mode:We.localMode}:{state:We,mode:An}},indent:function(We,Fe,Ot){return We.block==Te&&Ye.indent?Ye.indent(We.htmlState,Fe,Ot):We.localState&&We.localMode.indent?We.localMode.indent(We.localState,Fe,Ot):te.Pass},blankLine:xe,getType:He,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return An},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},98101:function(xn,wt,ce){(function(te){te(ce(89780))})(function(te){"use strict";te.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 Ke=0;Ke-1&&Ye.substring(Ve+1,Ye.length);if(ke)return te.findModeByExtension(ke)},te.findModeByName=function(Ye){Ye=Ye.toLowerCase();for(var _e=0;_e0?tt.cmdState[tt.cmdState.length-1]:null}function ve(tt){var nt=tt.cmdState.pop();nt&&nt.closeBracket()}function Ve(tt){for(var nt=tt.cmdState,Ze=nt.length-1;Ze>=0;Ze--){var Le=nt[Ze];if(Le.name!="DEFAULT")return Le}return{styleIdentifier:function(){return null}}}function ke(tt,nt,Ze){return function(){this.name=tt,this.bracketNo=0,this.style=nt,this.styles=Ze,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Re={};Re.importmodule=ke("importmodule","tag",["string","builtin"]),Re.documentclass=ke("documentclass","tag",["","atom"]),Re.usepackage=ke("usepackage","tag",["atom"]),Re.begin=ke("begin","tag",["atom"]),Re.end=ke("end","tag",["atom"]),Re.label=ke("label","tag",["atom"]),Re.ref=ke("ref","tag",["atom"]),Re.eqref=ke("eqref","tag",["atom"]),Re.cite=ke("cite","tag",["atom"]),Re.bibitem=ke("bibitem","tag",["atom"]),Re.Bibitem=ke("Bibitem","tag",["atom"]),Re.RBibitem=ke("RBibitem","tag",["atom"]),Re.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ge(tt,nt){tt.f=nt}function Xe(tt,nt){var Ze;if(tt.match(/^\\[a-zA-Z@]+/)){var Le=tt.current().slice(1);return Ze=Re.hasOwnProperty(Le)?Re[Le]:Re.DEFAULT,Ze=new Ze,Ye(nt,Ze),ge(nt,ct),Ze.style}if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/\\]/))return"tag";if(tt.match("\\["))return ge(nt,function(Ge,Je){return Ce(Ge,Je,"\\]")}),"keyword";if(tt.match("\\("))return ge(nt,function(Ge,Je){return Ce(Ge,Je,"\\)")}),"keyword";if(tt.match("$$"))return ge(nt,function(Ge,Je){return Ce(Ge,Je,"$$")}),"keyword";if(tt.match("$"))return ge(nt,function(Ge,Je){return Ce(Ge,Je,"$")}),"keyword";var ut=tt.next();if(ut=="%")return tt.skipToEnd(),"comment";if(ut=="}"||ut=="]"){if(Ze=_e(nt),Ze)Ze.closeBracket(ut),ge(nt,ct);else return"error";return"bracket"}else return ut=="{"||ut=="["?(Ze=Re.DEFAULT,Ze=new Ze,Ye(nt,Ze),"bracket"):/\d/.test(ut)?(tt.eatWhile(/[\w.%]/),"atom"):(tt.eatWhile(/[\w\-_]/),Ze=Ve(nt),Ze.name=="begin"&&(Ze.argument=tt.current()),Ze.styleIdentifier())}function Ce(tt,nt,Ze){if(tt.eatSpace())return null;if(Ze&&tt.match(Ze))return ge(nt,Xe),"keyword";if(tt.match(/^\\[a-zA-Z@]+/))return"tag";if(tt.match(/^[a-zA-Z]+/))return"variable-2";if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/]/)||tt.match(/^[\^_&]/))return"tag";if(tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Le=tt.next();return Le=="{"||Le=="}"||Le=="["||Le=="]"||Le=="("||Le==")"?"bracket":Le=="%"?(tt.skipToEnd(),"comment"):"error"}function ct(tt,nt){var Ze=tt.peek(),Le;return Ze=="{"||Ze=="["?(Le=_e(nt),Le.openBracket(Ze),tt.eat(Ze),ge(nt,Xe),"bracket"):/[ \t\r]/.test(Ze)?(tt.eat(Ze),null):(ge(nt,Xe),ve(nt),Xe(tt,nt))}return{startState:function(){var tt=Me.inMathMode?function(nt,Ze){return Ce(nt,Ze)}:Xe;return{cmdState:[],f:tt}},copyState:function(tt){return{cmdState:tt.cmdState.slice(),f:tt.f}},token:function(tt,nt){return nt.f(tt,nt)},blankLine:function(tt){tt.f=Xe,tt.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(xn,wt,ce){(function(te){te(ce(89780))})(function(te){"use strict";var Ke={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(Ye,_e){var ve=Ye.indentUnit,Ve={},ke=_e.htmlMode?Ke:Me;for(var Re in ke)Ve[Re]=ke[Re];for(var Re in _e)Ve[Re]=_e[Re];var ge,Xe;function Ce($e,Bt){function At(Jt){return Bt.tokenize=Jt,Jt($e,Bt)}var mt=$e.next();if(mt=="<")return $e.eat("!")?$e.eat("[")?$e.match("CDATA[")?At(nt("atom","]]>")):null:$e.match("--")?At(nt("comment","-->")):$e.match("DOCTYPE",!0,!0)?($e.eatWhile(/[\w\._\-]/),At(Ze(1))):null:$e.eat("?")?($e.eatWhile(/[\w\._\-]/),Bt.tokenize=nt("meta","?>"),"meta"):(ge=$e.eat("/")?"closeTag":"openTag",Bt.tokenize=ct,"tag bracket");if(mt=="&"){var Gt;return $e.eat("#")?$e.eat("x")?Gt=$e.eatWhile(/[a-fA-F\d]/)&&$e.eat(";"):Gt=$e.eatWhile(/[\d]/)&&$e.eat(";"):Gt=$e.eatWhile(/[\w\.\-:]/)&&$e.eat(";"),Gt?"atom":"error"}else return $e.eatWhile(/[^&<]/),null}Ce.isInText=!0;function ct($e,Bt){var At=$e.next();if(At==">"||At=="/"&&$e.eat(">"))return Bt.tokenize=Ce,ge=At==">"?"endTag":"selfcloseTag","tag bracket";if(At=="=")return ge="equals",null;if(At=="<"){Bt.tokenize=Ce,Bt.state=Je,Bt.tagName=Bt.tagStart=null;var mt=Bt.tokenize($e,Bt);return mt?mt+" tag error":"tag error"}else return/[\'\"]/.test(At)?(Bt.tokenize=tt(At),Bt.stringStartCol=$e.column(),Bt.tokenize($e,Bt)):($e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function tt($e){var Bt=function(At,mt){for(;!At.eol();)if(At.next()==$e){mt.tokenize=ct;break}return"string"};return Bt.isInAttribute=!0,Bt}function nt($e,Bt){return function(At,mt){for(;!At.eol();){if(At.match(Bt)){mt.tokenize=Ce;break}At.next()}return $e}}function Ze($e){return function(Bt,At){for(var mt;(mt=Bt.next())!=null;){if(mt=="<")return At.tokenize=Ze($e+1),At.tokenize(Bt,At);if(mt==">")if($e==1){At.tokenize=Ce;break}else return At.tokenize=Ze($e-1),At.tokenize(Bt,At)}return"meta"}}function Le($e,Bt,At){this.prev=$e.context,this.tagName=Bt,this.indent=$e.indented,this.startOfLine=At,(Ve.doNotIndent.hasOwnProperty(Bt)||$e.context&&$e.context.noIndent)&&(this.noIndent=!0)}function ut($e){$e.context&&($e.context=$e.context.prev)}function Ge($e,Bt){for(var At;;){if(!$e.context||(At=$e.context.tagName,!Ve.contextGrabbers.hasOwnProperty(At)||!Ve.contextGrabbers[At].hasOwnProperty(Bt)))return;ut($e)}}function Je($e,Bt,At){return $e=="openTag"?(At.tagStart=Bt.column(),Qe):$e=="closeTag"?xe:Je}function Qe($e,Bt,At){return $e=="word"?(At.tagName=Bt.current(),Xe="tag",at):Ve.allowMissingTagName&&$e=="endTag"?(Xe="tag bracket",at($e,Bt,At)):(Xe="error",Qe)}function xe($e,Bt,At){if($e=="word"){var mt=Bt.current();return At.context&&At.context.tagName!=mt&&Ve.implicitlyClosed.hasOwnProperty(At.context.tagName)&&ut(At),At.context&&At.context.tagName==mt||Ve.matchClosing===!1?(Xe="tag",Ne):(Xe="tag error",Te)}else return Ve.allowMissingTagName&&$e=="endTag"?(Xe="tag bracket",Ne($e,Bt,At)):(Xe="error",Te)}function Ne($e,Bt,At){return $e!="endTag"?(Xe="error",Ne):(ut(At),Je)}function Te($e,Bt,At){return Xe="error",Ne($e,Bt,At)}function at($e,Bt,At){if($e=="word")return Xe="attribute",He;if($e=="endTag"||$e=="selfcloseTag"){var mt=At.tagName,Gt=At.tagStart;return At.tagName=At.tagStart=null,$e=="selfcloseTag"||Ve.autoSelfClosers.hasOwnProperty(mt)?Ge(At,mt):(Ge(At,mt),At.context=new Le(At,mt,Gt==At.indented)),Je}return Xe="error",at}function He($e,Bt,At){return $e=="equals"?et:(Ve.allowMissing||(Xe="error"),at($e,Bt,At))}function et($e,Bt,At){return $e=="string"?dt:$e=="word"&&Ve.allowUnquoted?(Xe="string",at):(Xe="error",at($e,Bt,At))}function dt($e,Bt,At){return $e=="string"?dt:at($e,Bt,At)}return{startState:function($e){var Bt={tokenize:Ce,state:Je,indented:$e||0,tagName:null,tagStart:null,context:null};return $e!=null&&(Bt.baseIndent=$e),Bt},token:function($e,Bt){if(!Bt.tagName&&$e.sol()&&(Bt.indented=$e.indentation()),$e.eatSpace())return null;ge=null;var At=Bt.tokenize($e,Bt);return(At||ge)&&At!="comment"&&(Xe=null,Bt.state=Bt.state(ge||At,$e,Bt),Xe&&(At=Xe=="error"?At+" error":Xe)),At},indent:function($e,Bt,At){var mt=$e.context;if($e.tokenize.isInAttribute)return $e.tagStart==$e.indented?$e.stringStartCol+1:$e.indented+ve;if(mt&&mt.noIndent)return te.Pass;if($e.tokenize!=ct&&$e.tokenize!=Ce)return At?At.match(/^(\s*)/)[0].length:0;if($e.tagName)return Ve.multilineTagIndentPastTag!==!1?$e.tagStart+$e.tagName.length+2:$e.tagStart+ve*(Ve.multilineTagIndentFactor||1);if(Ve.alignCDATA&&/$/,blockCommentStart:"",configuration:Ve.htmlMode?"html":"xml",helperType:Ve.htmlMode?"html":"xml",skipAttribute:function($e){$e.state==et&&($e.state=at)},xmlCurrentTag:function($e){return $e.tagName?{name:$e.tagName,close:$e.type=="closeTag"}:null},xmlCurrentContext:function($e){for(var Bt=[],At=$e.context;At;At=At.prev)At.tagName&&Bt.push(At.tagName);return Bt.reverse()}}}),te.defineMIME("text/xml","xml"),te.defineMIME("application/xml","xml"),te.mimeModes.hasOwnProperty("text/html")||te.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(xn,wt,ce){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=void 0;var te=Object.assign||function(Ze){for(var Le=1;Le0&&(at=Qe[0]),at instanceof Error)throw at;var He=new Error("Unhandled error."+(at?" ("+at.message+")":""));throw He.context=at,He}var et=Te[Je];if(et===void 0)return!1;if(typeof et=="function")ce(et,this,Qe);else for(var dt=et.length,$e=ct(et,dt),xe=0;xe0&&at.length>Ne&&!at.warned){at.warned=!0;var He=new Error("Possible EventEmitter memory leak detected. "+at.length+" "+String(Je)+" listeners added. Use emitter.setMaxListeners() to increase limit");He.name="MaxListenersExceededWarning",He.emitter=Ge,He.type=Je,He.count=at.length,Ke(He)}return Ge}Ye.prototype.addListener=function(Je,Qe){return ke(this,Je,Qe,!1)},Ye.prototype.on=Ye.prototype.addListener,Ye.prototype.prependListener=function(Je,Qe){return ke(this,Je,Qe,!0)};function Re(){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 ge(Ge,Je,Qe){var xe={fired:!1,wrapFn:void 0,target:Ge,type:Je,listener:Qe},Ne=Re.bind(xe);return Ne.listener=Qe,xe.wrapFn=Ne,Ne}Ye.prototype.once=function(Je,Qe){return ve(Qe),this.on(Je,ge(this,Je,Qe)),this},Ye.prototype.prependOnceListener=function(Je,Qe){return ve(Qe),this.prependListener(Je,ge(this,Je,Qe)),this},Ye.prototype.removeListener=function(Je,Qe){var xe,Ne,Te,at,He;if(ve(Qe),Ne=this._events,Ne===void 0)return this;if(xe=Ne[Je],xe===void 0)return this;if(xe===Qe||xe.listener===Qe)--this._eventsCount===0?this._events=Object.create(null):(delete Ne[Je],Ne.removeListener&&this.emit("removeListener",Je,xe.listener||Qe));else if(typeof xe!="function"){for(Te=-1,at=xe.length-1;at>=0;at--)if(xe[at]===Qe||xe[at].listener===Qe){He=xe[at].listener,Te=at;break}if(Te<0)return this;Te===0?xe.shift():tt(xe,Te),xe.length===1&&(Ne[Je]=xe[0]),Ne.removeListener!==void 0&&this.emit("removeListener",Je,He||Qe)}return this},Ye.prototype.off=Ye.prototype.removeListener,Ye.prototype.removeAllListeners=function(Je){var Qe,xe,Ne;if(xe=this._events,xe===void 0)return this;if(xe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):xe[Je]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete xe[Je]),this;if(arguments.length===0){var Te=Object.keys(xe),at;for(Ne=0;Ne=0;Ne--)this.removeListener(Je,Qe[Ne]);return this};function Xe(Ge,Je,Qe){var xe=Ge._events;if(xe===void 0)return[];var Ne=xe[Je];return Ne===void 0?[]:typeof Ne=="function"?Qe?[Ne.listener||Ne]:[Ne]:Qe?nt(Ne):ct(Ne,Ne.length)}Ye.prototype.listeners=function(Je){return Xe(this,Je,!0)},Ye.prototype.rawListeners=function(Je){return Xe(this,Je,!1)},Ye.listenerCount=function(Ge,Je){return typeof Ge.listenerCount=="function"?Ge.listenerCount(Je):Ce.call(Ge,Je)},Ye.prototype.listenerCount=Ce;function Ce(Ge){var Je=this._events;if(Je!==void 0){var Qe=Je[Ge];if(typeof Qe=="function")return 1;if(Qe!==void 0)return Qe.length}return 0}Ye.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function ct(Ge,Je){for(var Qe=new Array(Je),xe=0;xe{const z=new Uint8Array(4),ye=new Uint32Array(z.buffer);return!((ye[0]=1)&z[0])})(),ve={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Ve{constructor(ye=Ye,Ae={}){Sa(this,"buffer");Sa(this,"byteLength");Sa(this,"byteOffset");Sa(this,"length");Sa(this,"offset");Sa(this,"lastWrittenByte");Sa(this,"littleEndian");Sa(this,"_data");Sa(this,"_mark");Sa(this,"_marks");let Pe=!1;typeof ye=="number"?ye=new ArrayBuffer(ye):(Pe=!0,this.lastWrittenByte=ye.byteLength);const qe=Ae.offset?Ae.offset>>>0:0,ot=ye.byteLength-qe;let En=qe;(ArrayBuffer.isView(ye)||ye instanceof Ve)&&(ye.byteLength!==ye.buffer.byteLength&&(En=ye.byteOffset+qe),ye=ye.buffer),Pe?this.lastWrittenByte=ot:this.lastWrittenByte=0,this.buffer=ye,this.length=ot,this.byteLength=ot,this.byteOffset=En,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,En,ot),this._mark=0,this._marks=[]}available(ye=1){return this.offset+ye<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(ye=1){return this.offset+=ye,this}back(ye=1){return this.offset-=ye,this}seek(ye){return this.offset=ye,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const ye=this._marks.pop();if(ye===void 0)throw new Error("Mark stack empty");return this.seek(ye),this}rewind(){return this.offset=0,this}ensureAvailable(ye=1){if(!this.available(ye)){const Pe=(this.offset+ye)*2,qe=new Uint8Array(Pe);qe.set(new Uint8Array(this.buffer)),this.buffer=qe.buffer,this.length=Pe,this.byteLength=Pe,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(ye=1){return this.readArray(ye,"uint8")}readArray(ye,Ae){const Pe=ve[Ae].BYTES_PER_ELEMENT*ye,qe=this.byteOffset+this.offset,ot=this.buffer.slice(qe,qe+Pe);if(this.littleEndian===_e&&Ae!=="uint8"&&Ae!=="int8"){const an=new Uint8Array(this.buffer.slice(qe,qe+Pe));an.reverse();const Tr=new ve[Ae](an.buffer);return this.offset+=Pe,Tr.reverse(),Tr}const En=new ve[Ae](ot);return this.offset+=Pe,En}readInt16(){const ye=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,ye}readUint16(){const ye=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,ye}readInt32(){const ye=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,ye}readUint32(){const ye=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,ye}readFloat32(){const ye=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,ye}readFloat64(){const ye=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,ye}readBigInt64(){const ye=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,ye}readBigUint64(){const ye=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,ye}readChar(){return String.fromCharCode(this.readInt8())}readChars(ye=1){let Ae="";for(let Pe=0;Pethis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const ke=4,Re=0,ge=1,Xe=2;function Ce(z){let ye=z.length;for(;--ye>=0;)z[ye]=0}const ct=0,tt=1,nt=2,Ze=3,Le=258,ut=29,Ge=256,Je=Ge+1+ut,Qe=30,xe=19,Ne=2*Je+1,Te=15,at=16,He=7,et=256,dt=16,$e=17,Bt=18,At=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),mt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Gt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Jt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gn=512,An=new Array((Je+2)*2);Ce(An);const We=new Array(Qe*2);Ce(We);const Fe=new Array(gn);Ce(Fe);const Ot=new Array(Le-Ze+1);Ce(Ot);const Fn=new Array(ut);Ce(Fn);const fn=new Array(Qe);Ce(fn);function Ct(z,ye,Ae,Pe,qe){this.static_tree=z,this.extra_bits=ye,this.extra_base=Ae,this.elems=Pe,this.max_length=qe,this.has_stree=z&&z.length}let $t,on,jn;function Dt(z,ye){this.dyn_tree=z,this.max_code=0,this.stat_desc=ye}const vt=z=>z<256?Fe[z]:Fe[256+(z>>>7)],pt=(z,ye)=>{z.pending_buf[z.pending++]=ye&255,z.pending_buf[z.pending++]=ye>>>8&255},bt=(z,ye,Ae)=>{z.bi_valid>at-Ae?(z.bi_buf|=ye<>at-z.bi_valid,z.bi_valid+=Ae-at):(z.bi_buf|=ye<{bt(z,Ae[ye*2],Ae[ye*2+1])},yt=(z,ye)=>{let Ae=0;do Ae|=z&1,z>>>=1,Ae<<=1;while(--ye>0);return Ae>>>1},zt=z=>{z.bi_valid===16?(pt(z,z.bi_buf),z.bi_buf=0,z.bi_valid=0):z.bi_valid>=8&&(z.pending_buf[z.pending++]=z.bi_buf&255,z.bi_buf>>=8,z.bi_valid-=8)},Se=(z,ye)=>{const Ae=ye.dyn_tree,Pe=ye.max_code,qe=ye.stat_desc.static_tree,ot=ye.stat_desc.has_stree,En=ye.stat_desc.extra_bits,an=ye.stat_desc.extra_base,Tr=ye.stat_desc.max_length;let Xt,kn,ci,Zr,Cr,xi,xa=0;for(Zr=0;Zr<=Te;Zr++)z.bl_count[Zr]=0;for(Ae[z.heap[z.heap_max]*2+1]=0,Xt=z.heap_max+1;XtTr&&(Zr=Tr,xa++),Ae[kn*2+1]=Zr,!(kn>Pe)&&(z.bl_count[Zr]++,Cr=0,kn>=an&&(Cr=En[kn-an]),xi=Ae[kn*2],z.opt_len+=xi*(Zr+Cr),ot&&(z.static_len+=xi*(qe[kn*2+1]+Cr)));if(xa!==0){do{for(Zr=Tr-1;z.bl_count[Zr]===0;)Zr--;z.bl_count[Zr]--,z.bl_count[Zr+1]+=2,z.bl_count[Tr]--,xa-=2}while(xa>0);for(Zr=Tr;Zr!==0;Zr--)for(kn=z.bl_count[Zr];kn!==0;)ci=z.heap[--Xt],!(ci>Pe)&&(Ae[ci*2+1]!==Zr&&(z.opt_len+=(Zr-Ae[ci*2+1])*Ae[ci*2],Ae[ci*2+1]=Zr),kn--)}},se=(z,ye,Ae)=>{const Pe=new Array(Te+1);let qe=0,ot,En;for(ot=1;ot<=Te;ot++)qe=qe+Ae[ot-1]<<1,Pe[ot]=qe;for(En=0;En<=ye;En++){let an=z[En*2+1];an!==0&&(z[En*2]=yt(Pe[an]++,an))}},fe=()=>{let z,ye,Ae,Pe,qe;const ot=new Array(Te+1);for(Ae=0,Pe=0;Pe>=7;Pe{let ye;for(ye=0;ye{z.bi_valid>8?pt(z,z.bi_buf):z.bi_valid>0&&(z.pending_buf[z.pending++]=z.bi_buf),z.bi_buf=0,z.bi_valid=0},gt=(z,ye,Ae,Pe)=>{const qe=ye*2,ot=Ae*2;return z[qe]{const Pe=z.heap[Ae];let qe=Ae<<1;for(;qe<=z.heap_len&&(qe{let Pe,qe,ot=0,En,an;if(z.sym_next!==0)do Pe=z.pending_buf[z.sym_buf+ot++]&255,Pe+=(z.pending_buf[z.sym_buf+ot++]&255)<<8,qe=z.pending_buf[z.sym_buf+ot++],Pe===0?Zt(z,qe,ye):(En=Ot[qe],Zt(z,En+Ge+1,ye),an=At[En],an!==0&&(qe-=Fn[En],bt(z,qe,an)),Pe--,En=vt(Pe),Zt(z,En,Ae),an=mt[En],an!==0&&(Pe-=fn[En],bt(z,Pe,an)));while(ot{const Ae=ye.dyn_tree,Pe=ye.stat_desc.static_tree,qe=ye.stat_desc.has_stree,ot=ye.stat_desc.elems;let En,an,Tr=-1,Xt;for(z.heap_len=0,z.heap_max=Ne,En=0;En>1;En>=1;En--)Mt(z,Ae,En);Xt=ot;do En=z.heap[1],z.heap[1]=z.heap[z.heap_len--],Mt(z,Ae,1),an=z.heap[1],z.heap[--z.heap_max]=En,z.heap[--z.heap_max]=an,Ae[Xt*2]=Ae[En*2]+Ae[an*2],z.depth[Xt]=(z.depth[En]>=z.depth[an]?z.depth[En]:z.depth[an])+1,Ae[En*2+1]=Ae[an*2+1]=Xt,z.heap[1]=Xt++,Mt(z,Ae,1);while(z.heap_len>=2);z.heap[--z.heap_max]=z.heap[1],Se(z,ye),se(Ae,Tr,z.bl_count)},oe=(z,ye,Ae)=>{let Pe,qe=-1,ot,En=ye[0*2+1],an=0,Tr=7,Xt=4;for(En===0&&(Tr=138,Xt=3),ye[(Ae+1)*2+1]=65535,Pe=0;Pe<=Ae;Pe++)ot=En,En=ye[(Pe+1)*2+1],!(++an{let Pe,qe=-1,ot,En=ye[0*2+1],an=0,Tr=7,Xt=4;for(En===0&&(Tr=138,Xt=3),Pe=0;Pe<=Ae;Pe++)if(ot=En,En=ye[(Pe+1)*2+1],!(++an{let ye;for(oe(z,z.dyn_ltree,z.l_desc.max_code),oe(z,z.dyn_dtree,z.d_desc.max_code),he(z,z.bl_desc),ye=xe-1;ye>=3&&z.bl_tree[Jt[ye]*2+1]===0;ye--);return z.opt_len+=3*(ye+1)+5+5+4,ye},we=(z,ye,Ae,Pe)=>{let qe;for(bt(z,ye-257,5),bt(z,Ae-1,5),bt(z,Pe-4,4),qe=0;qe{let ye=4093624447,Ae;for(Ae=0;Ae<=31;Ae++,ye>>>=1)if(ye&1&&z.dyn_ltree[Ae*2]!==0)return Re;if(z.dyn_ltree[9*2]!==0||z.dyn_ltree[10*2]!==0||z.dyn_ltree[13*2]!==0)return ge;for(Ae=32;Ae{Ee||(fe(),Ee=!0),z.l_desc=new Dt(z.dyn_ltree,$t),z.d_desc=new Dt(z.dyn_dtree,on),z.bl_desc=new Dt(z.bl_tree,jn),z.bi_buf=0,z.bi_valid=0,Ue(z)},Ut=(z,ye,Ae,Pe)=>{bt(z,(ct<<1)+(Pe?1:0),3),Be(z),pt(z,Ae),pt(z,~Ae),Ae&&z.pending_buf.set(z.window.subarray(ye,ye+Ae),z.pending),z.pending+=Ae},It=z=>{bt(z,tt<<1,3),Zt(z,et,An),zt(z)},ht=(z,ye,Ae,Pe)=>{let qe,ot,En=0;z.level>0?(z.strm.data_type===Xe&&(z.strm.data_type=le(z)),he(z,z.l_desc),he(z,z.d_desc),En=de(z),qe=z.opt_len+3+7>>>3,ot=z.static_len+3+7>>>3,ot<=qe&&(qe=ot)):qe=ot=Ae+5,Ae+4<=qe&&ye!==-1?Ut(z,ye,Ae,Pe):z.strategy===ke||ot===qe?(bt(z,(tt<<1)+(Pe?1:0),3),sn(z,An,We)):(bt(z,(nt<<1)+(Pe?1:0),3),we(z,z.l_desc.max_code+1,z.d_desc.max_code+1,En+1),sn(z,z.dyn_ltree,z.dyn_dtree)),Ue(z),Pe&&Be(z)},Bn=(z,ye,Ae)=>(z.pending_buf[z.sym_buf+z.sym_next++]=ye,z.pending_buf[z.sym_buf+z.sym_next++]=ye>>8,z.pending_buf[z.sym_buf+z.sym_next++]=Ae,ye===0?z.dyn_ltree[Ae*2]++:(z.matches++,ye--,z.dyn_ltree[(Ot[Ae]+Ge+1)*2]++,z.dyn_dtree[vt(ye)*2]++),z.sym_next===z.sym_end);var Vt=St,un=Ut,In=ht,or=Bn,vn=It,fr={_tr_init:Vt,_tr_stored_block:un,_tr_flush_block:In,_tr_tally:or,_tr_align:vn},yr=(z,ye,Ae,Pe)=>{let qe=z&65535|0,ot=z>>>16&65535|0,En=0;for(;Ae!==0;){En=Ae>2e3?2e3:Ae,Ae-=En;do qe=qe+ye[Pe++]|0,ot=ot+qe|0;while(--En);qe%=65521,ot%=65521}return qe|ot<<16|0};const Xn=()=>{let z,ye=[];for(var Ae=0;Ae<256;Ae++){z=Ae;for(var Pe=0;Pe<8;Pe++)z=z&1?3988292384^z>>>1:z>>>1;ye[Ae]=z}return ye},Mr=new Uint32Array(Xn());var Er=(z,ye,Ae,Pe)=>{const qe=Mr,ot=Pe+Ae;z^=-1;for(let En=Pe;En>>8^qe[(z^ye[En])&255];return z^-1},lr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Dr={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Kn,_tr_stored_block:tr,_tr_flush_block:Jn,_tr_tally:mn,_tr_align:zn}=fr,{Z_NO_FLUSH:en,Z_PARTIAL_FLUSH:Sn,Z_FULL_FLUSH:hr,Z_FINISH:sr,Z_BLOCK:cr,Z_OK:br,Z_STREAM_END:Gr,Z_STREAM_ERROR:Ir,Z_DATA_ERROR:Ur,Z_BUF_ERROR:Lr,Z_DEFAULT_COMPRESSION:qn,Z_FILTERED:yn,Z_HUFFMAN_ONLY:rt,Z_RLE:kr,Z_FIXED:zr,Z_DEFAULT_STRATEGY:Lt,Z_UNKNOWN:Tt,Z_DEFLATED:nr}=Dr,Tn=9,jt=15,_n=8,Ar=256+1+29,dr=30,xr=19,Nn=2*Ar+1,xt=15,Ft=3,pn=258,Ln=pn+Ft+1,wr=32,Rr=42,Nr=57,rr=69,Yn=73,_r=91,Br=103,qr=113,li=666,ai=1,Ci=2,ze=3,Ie=4,st=3,Et=(z,ye)=>(z.msg=lr[ye],ye),rn=z=>z*2-(z>4?9:0),Wt=z=>{let ye=z.length;for(;--ye>=0;)z[ye]=0},Qn=z=>{let ye,Ae,Pe,qe=z.w_size;ye=z.hash_size,Pe=ye;do Ae=z.head[--Pe],z.head[Pe]=Ae>=qe?Ae-qe:0;while(--ye);ye=qe,Pe=ye;do Ae=z.prev[--Pe],z.prev[Pe]=Ae>=qe?Ae-qe:0;while(--ye)};let Wn=(z,ye,Ae)=>(ye<{const ye=z.state;let Ae=ye.pending;Ae>z.avail_out&&(Ae=z.avail_out),Ae!==0&&(z.output.set(ye.pending_buf.subarray(ye.pending_out,ye.pending_out+Ae),z.next_out),z.next_out+=Ae,ye.pending_out+=Ae,z.total_out+=Ae,z.avail_out-=Ae,ye.pending-=Ae,ye.pending===0&&(ye.pending_out=0))},Zn=(z,ye)=>{Jn(z,z.block_start>=0?z.block_start:-1,z.strstart-z.block_start,ye),z.block_start=z.strstart,Vn(z.strm)},Gn=(z,ye)=>{z.pending_buf[z.pending++]=ye},ft=(z,ye)=>{z.pending_buf[z.pending++]=ye>>>8&255,z.pending_buf[z.pending++]=ye&255},Yt=(z,ye,Ae,Pe)=>{let qe=z.avail_in;return qe>Pe&&(qe=Pe),qe===0?0:(z.avail_in-=qe,ye.set(z.input.subarray(z.next_in,z.next_in+qe),Ae),z.state.wrap===1?z.adler=yr(z.adler,ye,qe,Ae):z.state.wrap===2&&(z.adler=Er(z.adler,ye,qe,Ae)),z.next_in+=qe,z.total_in+=qe,qe)},Rt=(z,ye)=>{let Ae=z.max_chain_length,Pe=z.strstart,qe,ot,En=z.prev_length,an=z.nice_match;const Tr=z.strstart>z.w_size-Ln?z.strstart-(z.w_size-Ln):0,Xt=z.window,kn=z.w_mask,ci=z.prev,Zr=z.strstart+pn;let Cr=Xt[Pe+En-1],xi=Xt[Pe+En];z.prev_length>=z.good_match&&(Ae>>=2),an>z.lookahead&&(an=z.lookahead);do if(qe=ye,!(Xt[qe+En]!==xi||Xt[qe+En-1]!==Cr||Xt[qe]!==Xt[Pe]||Xt[++qe]!==Xt[Pe+1])){Pe+=2,qe++;do;while(Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&Xt[++Pe]===Xt[++qe]&&PeEn){if(z.match_start=ye,En=ot,ot>=an)break;Cr=Xt[Pe+En-1],xi=Xt[Pe+En]}}while((ye=ci[ye&kn])>Tr&&--Ae!==0);return En<=z.lookahead?En:z.lookahead},Kt=z=>{const ye=z.w_size;let Ae,Pe,qe;do{if(Pe=z.window_size-z.lookahead-z.strstart,z.strstart>=ye+(ye-Ln)&&(z.window.set(z.window.subarray(ye,ye+ye-Pe),0),z.match_start-=ye,z.strstart-=ye,z.block_start-=ye,z.insert>z.strstart&&(z.insert=z.strstart),Qn(z),Pe+=ye),z.strm.avail_in===0)break;if(Ae=Yt(z.strm,z.window,z.strstart+z.lookahead,Pe),z.lookahead+=Ae,z.lookahead+z.insert>=Ft)for(qe=z.strstart-z.insert,z.ins_h=z.window[qe],z.ins_h=Wn(z,z.ins_h,z.window[qe+1]);z.insert&&(z.ins_h=Wn(z,z.ins_h,z.window[qe+Ft-1]),z.prev[qe&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=qe,qe++,z.insert--,!(z.lookahead+z.insert{let Ae=z.pending_buf_size-5>z.w_size?z.w_size:z.pending_buf_size-5,Pe,qe,ot,En=0,an=z.strm.avail_in;do{if(Pe=65535,ot=z.bi_valid+42>>3,z.strm.avail_outqe+z.strm.avail_in&&(Pe=qe+z.strm.avail_in),Pe>ot&&(Pe=ot),Pe>8,z.pending_buf[z.pending-2]=~Pe,z.pending_buf[z.pending-1]=~Pe>>8,Vn(z.strm),qe&&(qe>Pe&&(qe=Pe),z.strm.output.set(z.window.subarray(z.block_start,z.block_start+qe),z.strm.next_out),z.strm.next_out+=qe,z.strm.avail_out-=qe,z.strm.total_out+=qe,z.block_start+=qe,Pe-=qe),Pe&&(Yt(z.strm,z.strm.output,z.strm.next_out,Pe),z.strm.next_out+=Pe,z.strm.avail_out-=Pe,z.strm.total_out+=Pe)}while(En===0);return an-=z.strm.avail_in,an&&(an>=z.w_size?(z.matches=2,z.window.set(z.strm.input.subarray(z.strm.next_in-z.w_size,z.strm.next_in),0),z.strstart=z.w_size,z.insert=z.strstart):(z.window_size-z.strstart<=an&&(z.strstart-=z.w_size,z.window.set(z.window.subarray(z.w_size,z.w_size+z.strstart),0),z.matches<2&&z.matches++,z.insert>z.strstart&&(z.insert=z.strstart)),z.window.set(z.strm.input.subarray(z.strm.next_in-an,z.strm.next_in),z.strstart),z.strstart+=an,z.insert+=an>z.w_size-z.insert?z.w_size-z.insert:an),z.block_start=z.strstart),z.high_waterot&&z.block_start>=z.w_size&&(z.block_start-=z.w_size,z.strstart-=z.w_size,z.window.set(z.window.subarray(z.w_size,z.w_size+z.strstart),0),z.matches<2&&z.matches++,ot+=z.w_size,z.insert>z.strstart&&(z.insert=z.strstart)),ot>z.strm.avail_in&&(ot=z.strm.avail_in),ot&&(Yt(z.strm,z.window,z.strstart,ot),z.strstart+=ot,z.insert+=ot>z.w_size-z.insert?z.w_size-z.insert:ot),z.high_water>3,ot=z.pending_buf_size-ot>65535?65535:z.pending_buf_size-ot,Ae=ot>z.w_size?z.w_size:ot,qe=z.strstart-z.block_start,(qe>=Ae||(qe||ye===sr)&&ye!==en&&z.strm.avail_in===0&&qe<=ot)&&(Pe=qe>ot?ot:qe,En=ye===sr&&z.strm.avail_in===0&&Pe===qe?1:0,tr(z,z.block_start,Pe,En),z.block_start+=Pe,Vn(z.strm)),En?ze:ai)},dn=(z,ye)=>{let Ae,Pe;for(;;){if(z.lookahead=Ft&&(z.ins_h=Wn(z,z.ins_h,z.window[z.strstart+Ft-1]),Ae=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),Ae!==0&&z.strstart-Ae<=z.w_size-Ln&&(z.match_length=Rt(z,Ae)),z.match_length>=Ft)if(Pe=mn(z,z.strstart-z.match_start,z.match_length-Ft),z.lookahead-=z.match_length,z.match_length<=z.max_lazy_match&&z.lookahead>=Ft){z.match_length--;do z.strstart++,z.ins_h=Wn(z,z.ins_h,z.window[z.strstart+Ft-1]),Ae=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart;while(--z.match_length!==0);z.strstart++}else z.strstart+=z.match_length,z.match_length=0,z.ins_h=z.window[z.strstart],z.ins_h=Wn(z,z.ins_h,z.window[z.strstart+1]);else Pe=mn(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++;if(Pe&&(Zn(z,!1),z.strm.avail_out===0))return ai}return z.insert=z.strstart{let Ae,Pe,qe;for(;;){if(z.lookahead=Ft&&(z.ins_h=Wn(z,z.ins_h,z.window[z.strstart+Ft-1]),Ae=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),z.prev_length=z.match_length,z.prev_match=z.match_start,z.match_length=Ft-1,Ae!==0&&z.prev_length4096)&&(z.match_length=Ft-1)),z.prev_length>=Ft&&z.match_length<=z.prev_length){qe=z.strstart+z.lookahead-Ft,Pe=mn(z,z.strstart-1-z.prev_match,z.prev_length-Ft),z.lookahead-=z.prev_length-1,z.prev_length-=2;do++z.strstart<=qe&&(z.ins_h=Wn(z,z.ins_h,z.window[z.strstart+Ft-1]),Ae=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart);while(--z.prev_length!==0);if(z.match_available=0,z.match_length=Ft-1,z.strstart++,Pe&&(Zn(z,!1),z.strm.avail_out===0))return ai}else if(z.match_available){if(Pe=mn(z,0,z.window[z.strstart-1]),Pe&&Zn(z,!1),z.strstart++,z.lookahead--,z.strm.avail_out===0)return ai}else z.match_available=1,z.strstart++,z.lookahead--}return z.match_available&&(Pe=mn(z,0,z.window[z.strstart-1]),z.match_available=0),z.insert=z.strstart{let Ae,Pe,qe,ot;const En=z.window;for(;;){if(z.lookahead<=pn){if(Kt(z),z.lookahead<=pn&&ye===en)return ai;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Ft&&z.strstart>0&&(qe=z.strstart-1,Pe=En[qe],Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe])){ot=z.strstart+pn;do;while(Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe]&&Pe===En[++qe]&&qez.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=Ft?(Ae=mn(z,1,z.match_length-Ft),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(Ae=mn(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),Ae&&(Zn(z,!1),z.strm.avail_out===0))return ai}return z.insert=0,ye===sr?(Zn(z,!0),z.strm.avail_out===0?ze:Ie):z.sym_next&&(Zn(z,!1),z.strm.avail_out===0)?ai:Ci},wn=(z,ye)=>{let Ae;for(;;){if(z.lookahead===0&&(Kt(z),z.lookahead===0)){if(ye===en)return ai;break}if(z.match_length=0,Ae=mn(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,Ae&&(Zn(z,!1),z.strm.avail_out===0))return ai}return z.insert=0,ye===sr?(Zn(z,!0),z.strm.avail_out===0?ze:Ie):z.sym_next&&(Zn(z,!1),z.strm.avail_out===0)?ai:Ci};function Ht(z,ye,Ae,Pe,qe){this.good_length=z,this.max_lazy=ye,this.nice_length=Ae,this.max_chain=Pe,this.func=qe}const ln=[new Ht(0,0,0,0,nn),new Ht(4,4,8,4,dn),new Ht(4,5,16,8,dn),new Ht(4,6,32,32,dn),new Ht(4,4,16,16,Rn),new Ht(8,16,32,32,Rn),new Ht(8,16,128,128,Rn),new Ht(8,32,128,256,Rn),new Ht(32,128,258,1024,Rn),new Ht(32,258,258,4096,Rn)],hn=z=>{z.window_size=2*z.w_size,Wt(z.head),z.max_lazy_match=ln[z.level].max_lazy,z.good_match=ln[z.level].good_length,z.nice_match=ln[z.level].nice_length,z.max_chain_length=ln[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=Ft-1,z.match_available=0,z.ins_h=0};function tn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nr,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Nn*2),this.dyn_dtree=new Uint16Array((2*dr+1)*2),this.bl_tree=new Uint16Array((2*xr+1)*2),Wt(this.dyn_ltree),Wt(this.dyn_dtree),Wt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(xt+1),this.heap=new Uint16Array(2*Ar+1),Wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ar+1),Wt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const cn=z=>{if(!z)return 1;const ye=z.state;return!ye||ye.strm!==z||ye.status!==Rr&&ye.status!==Nr&&ye.status!==rr&&ye.status!==Yn&&ye.status!==_r&&ye.status!==Br&&ye.status!==qr&&ye.status!==li?1:0},er=z=>{if(cn(z))return Et(z,Ir);z.total_in=z.total_out=0,z.data_type=Tt;const ye=z.state;return ye.pending=0,ye.pending_out=0,ye.wrap<0&&(ye.wrap=-ye.wrap),ye.status=ye.wrap===2?Nr:ye.wrap?Rr:qr,z.adler=ye.wrap===2?0:1,ye.last_flush=-2,Kn(ye),br},Nt=z=>{const ye=er(z);return ye===br&&hn(z.state),ye},qt=(z,ye)=>cn(z)||z.state.wrap!==2?Ir:(z.state.gzhead=ye,br),Mn=(z,ye,Ae,Pe,qe,ot)=>{if(!z)return Ir;let En=1;if(ye===qn&&(ye=6),Pe<0?(En=0,Pe=-Pe):Pe>15&&(En=2,Pe-=16),qe<1||qe>Tn||Ae!==nr||Pe<8||Pe>15||ye<0||ye>9||ot<0||ot>zr||Pe===8&&En!==1)return Et(z,Ir);Pe===8&&(Pe=9);const an=new tn;return z.state=an,an.strm=z,an.status=Rr,an.wrap=En,an.gzhead=null,an.w_bits=Pe,an.w_size=1<Mn(z,ye,nr,jt,_n,Lt),$n=(z,ye)=>{if(cn(z)||ye>cr||ye<0)return z?Et(z,Ir):Ir;const Ae=z.state;if(!z.output||z.avail_in!==0&&!z.input||Ae.status===li&&ye!==sr)return Et(z,z.avail_out===0?Lr:Ir);const Pe=Ae.last_flush;if(Ae.last_flush=ye,Ae.pending!==0){if(Vn(z),z.avail_out===0)return Ae.last_flush=-1,br}else if(z.avail_in===0&&rn(ye)<=rn(Pe)&&ye!==sr)return Et(z,Lr);if(Ae.status===li&&z.avail_in!==0)return Et(z,Lr);if(Ae.status===Rr&&Ae.wrap===0&&(Ae.status=qr),Ae.status===Rr){let qe=nr+(Ae.w_bits-8<<4)<<8,ot=-1;if(Ae.strategy>=rt||Ae.level<2?ot=0:Ae.level<6?ot=1:Ae.level===6?ot=2:ot=3,qe|=ot<<6,Ae.strstart!==0&&(qe|=wr),qe+=31-qe%31,ft(Ae,qe),Ae.strstart!==0&&(ft(Ae,z.adler>>>16),ft(Ae,z.adler&65535)),z.adler=1,Ae.status=qr,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,br}if(Ae.status===Nr){if(z.adler=0,Gn(Ae,31),Gn(Ae,139),Gn(Ae,8),Ae.gzhead)Gn(Ae,(Ae.gzhead.text?1:0)+(Ae.gzhead.hcrc?2:0)+(Ae.gzhead.extra?4:0)+(Ae.gzhead.name?8:0)+(Ae.gzhead.comment?16:0)),Gn(Ae,Ae.gzhead.time&255),Gn(Ae,Ae.gzhead.time>>8&255),Gn(Ae,Ae.gzhead.time>>16&255),Gn(Ae,Ae.gzhead.time>>24&255),Gn(Ae,Ae.level===9?2:Ae.strategy>=rt||Ae.level<2?4:0),Gn(Ae,Ae.gzhead.os&255),Ae.gzhead.extra&&Ae.gzhead.extra.length&&(Gn(Ae,Ae.gzhead.extra.length&255),Gn(Ae,Ae.gzhead.extra.length>>8&255)),Ae.gzhead.hcrc&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending,0)),Ae.gzindex=0,Ae.status=rr;else if(Gn(Ae,0),Gn(Ae,0),Gn(Ae,0),Gn(Ae,0),Gn(Ae,0),Gn(Ae,Ae.level===9?2:Ae.strategy>=rt||Ae.level<2?4:0),Gn(Ae,st),Ae.status=qr,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,br}if(Ae.status===rr){if(Ae.gzhead.extra){let qe=Ae.pending,ot=(Ae.gzhead.extra.length&65535)-Ae.gzindex;for(;Ae.pending+ot>Ae.pending_buf_size;){let an=Ae.pending_buf_size-Ae.pending;if(Ae.pending_buf.set(Ae.gzhead.extra.subarray(Ae.gzindex,Ae.gzindex+an),Ae.pending),Ae.pending=Ae.pending_buf_size,Ae.gzhead.hcrc&&Ae.pending>qe&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-qe,qe)),Ae.gzindex+=an,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,br;qe=0,ot-=an}let En=new Uint8Array(Ae.gzhead.extra);Ae.pending_buf.set(En.subarray(Ae.gzindex,Ae.gzindex+ot),Ae.pending),Ae.pending+=ot,Ae.gzhead.hcrc&&Ae.pending>qe&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-qe,qe)),Ae.gzindex=0}Ae.status=Yn}if(Ae.status===Yn){if(Ae.gzhead.name){let qe=Ae.pending,ot;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>qe&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-qe,qe)),Vn(z),Ae.pending!==0)return Ae.last_flush=-1,br;qe=0}Ae.gzindexqe&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-qe,qe)),Ae.gzindex=0}Ae.status=_r}if(Ae.status===_r){if(Ae.gzhead.comment){let qe=Ae.pending,ot;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>qe&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-qe,qe)),Vn(z),Ae.pending!==0)return Ae.last_flush=-1,br;qe=0}Ae.gzindexqe&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-qe,qe))}Ae.status=Br}if(Ae.status===Br){if(Ae.gzhead.hcrc){if(Ae.pending+2>Ae.pending_buf_size&&(Vn(z),Ae.pending!==0))return Ae.last_flush=-1,br;Gn(Ae,z.adler&255),Gn(Ae,z.adler>>8&255),z.adler=0}if(Ae.status=qr,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,br}if(z.avail_in!==0||Ae.lookahead!==0||ye!==en&&Ae.status!==li){let qe=Ae.level===0?nn(Ae,ye):Ae.strategy===rt?wn(Ae,ye):Ae.strategy===kr?it(Ae,ye):ln[Ae.level].func(Ae,ye);if((qe===ze||qe===Ie)&&(Ae.status=li),qe===ai||qe===ze)return z.avail_out===0&&(Ae.last_flush=-1),br;if(qe===Ci&&(ye===Sn?zn(Ae):ye!==cr&&(tr(Ae,0,0,!1),ye===hr&&(Wt(Ae.head),Ae.lookahead===0&&(Ae.strstart=0,Ae.block_start=0,Ae.insert=0))),Vn(z),z.avail_out===0))return Ae.last_flush=-1,br}return ye!==sr?br:Ae.wrap<=0?Gr:(Ae.wrap===2?(Gn(Ae,z.adler&255),Gn(Ae,z.adler>>8&255),Gn(Ae,z.adler>>16&255),Gn(Ae,z.adler>>24&255),Gn(Ae,z.total_in&255),Gn(Ae,z.total_in>>8&255),Gn(Ae,z.total_in>>16&255),Gn(Ae,z.total_in>>24&255)):(ft(Ae,z.adler>>>16),ft(Ae,z.adler&65535)),Vn(z),Ae.wrap>0&&(Ae.wrap=-Ae.wrap),Ae.pending!==0?br:Gr)},Fr=z=>{if(cn(z))return Ir;const ye=z.state.status;return z.state=null,ye===qr?Et(z,Ur):br},gr=(z,ye)=>{let Ae=ye.length;if(cn(z))return Ir;const Pe=z.state,qe=Pe.wrap;if(qe===2||qe===1&&Pe.status!==Rr||Pe.lookahead)return Ir;if(qe===1&&(z.adler=yr(z.adler,ye,Ae,0)),Pe.wrap=0,Ae>=Pe.w_size){qe===0&&(Wt(Pe.head),Pe.strstart=0,Pe.block_start=0,Pe.insert=0);let Tr=new Uint8Array(Pe.w_size);Tr.set(ye.subarray(Ae-Pe.w_size,Ae),0),ye=Tr,Ae=Pe.w_size}const ot=z.avail_in,En=z.next_in,an=z.input;for(z.avail_in=Ae,z.next_in=0,z.input=ye,Kt(Pe);Pe.lookahead>=Ft;){let Tr=Pe.strstart,Xt=Pe.lookahead-(Ft-1);do Pe.ins_h=Wn(Pe,Pe.ins_h,Pe.window[Tr+Ft-1]),Pe.prev[Tr&Pe.w_mask]=Pe.head[Pe.ins_h],Pe.head[Pe.ins_h]=Tr,Tr++;while(--Xt);Pe.strstart=Tr,Pe.lookahead=Ft-1,Kt(Pe)}return Pe.strstart+=Pe.lookahead,Pe.block_start=Pe.strstart,Pe.insert=Pe.lookahead,Pe.lookahead=0,Pe.match_length=Pe.prev_length=Ft-1,Pe.match_available=0,z.next_in=En,z.input=an,z.avail_in=ot,Pe.wrap=qe,br};var Wr=On,Qr=Mn,ni=Nt,Ai=er,Jr=qt,hi=$n,ii=Fr,$r=gr,ri="pako deflate (from Nodeca project)",Or={deflateInit:Wr,deflateInit2:Qr,deflateReset:ni,deflateResetKeep:Ai,deflateSetHeader:Jr,deflate:hi,deflateEnd:ii,deflateSetDictionary:$r,deflateInfo:ri};const ei=(z,ye)=>Object.prototype.hasOwnProperty.call(z,ye);var gi=function(z){const ye=Array.prototype.slice.call(arguments,1);for(;ye.length;){const Ae=ye.shift();if(Ae){if(typeof Ae!="object")throw new TypeError(Ae+"must be non-object");for(const Pe in Ae)ei(Ae,Pe)&&(z[Pe]=Ae[Pe])}}return z},ti=z=>{let ye=0;for(let Pe=0,qe=z.length;Pe=252?6:z>=248?5:z>=240?4:z>=224?3:z>=192?2:1;Li[254]=Li[254]=1;var _a=z=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(z);let ye,Ae,Pe,qe,ot,En=z.length,an=0;for(qe=0;qe>>6,ye[ot++]=128|Ae&63):Ae<65536?(ye[ot++]=224|Ae>>>12,ye[ot++]=128|Ae>>>6&63,ye[ot++]=128|Ae&63):(ye[ot++]=240|Ae>>>18,ye[ot++]=128|Ae>>>12&63,ye[ot++]=128|Ae>>>6&63,ye[ot++]=128|Ae&63);return ye};const Oa=(z,ye)=>{if(ye<65534&&z.subarray&&Ei)return String.fromCharCode.apply(null,z.length===ye?z:z.subarray(0,ye));let Ae="";for(let Pe=0;Pe{const Ae=ye||z.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(z.subarray(0,ye));let Pe,qe;const ot=new Array(Ae*2);for(qe=0,Pe=0;Pe4){ot[qe++]=65533,Pe+=an-1;continue}for(En&=an===2?31:an===3?15:7;an>1&&Pe1){ot[qe++]=65533;continue}En<65536?ot[qe++]=En:(En-=65536,ot[qe++]=55296|En>>10&1023,ot[qe++]=56320|En&1023)}return Oa(ot,qe)},da=(z,ye)=>{ye=ye||z.length,ye>z.length&&(ye=z.length);let Ae=ye-1;for(;Ae>=0&&(z[Ae]&192)===128;)Ae--;return Ae<0||Ae===0?ye:Ae+Li[z[Ae]]>ye?Ae:ye},qi={string2buf:_a,buf2string:Ma,utf8border:da};function $i(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var na=$i;const Ca=Object.prototype.toString,{Z_NO_FLUSH:ha,Z_SYNC_FLUSH:ma,Z_FULL_FLUSH:ya,Z_FINISH:oi,Z_OK:mi,Z_STREAM_END:bi,Z_DEFAULT_COMPRESSION:Fi,Z_DEFAULT_STRATEGY:Hi,Z_DEFLATED:Xi}=Dr;function Mi(z){this.options=fi.assign({level:Fi,method:Xi,chunkSize:16384,windowBits:15,memLevel:8,strategy:Hi},z||{});let ye=this.options;ye.raw&&ye.windowBits>0?ye.windowBits=-ye.windowBits:ye.gzip&&ye.windowBits>0&&ye.windowBits<16&&(ye.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new na,this.strm.avail_out=0;let Ae=Or.deflateInit2(this.strm,ye.level,ye.method,ye.windowBits,ye.memLevel,ye.strategy);if(Ae!==mi)throw new Error(lr[Ae]);if(ye.header&&Or.deflateSetHeader(this.strm,ye.header),ye.dictionary){let Pe;if(typeof ye.dictionary=="string"?Pe=qi.string2buf(ye.dictionary):Ca.call(ye.dictionary)==="[object ArrayBuffer]"?Pe=new Uint8Array(ye.dictionary):Pe=ye.dictionary,Ae=Or.deflateSetDictionary(this.strm,Pe),Ae!==mi)throw new Error(lr[Ae]);this._dict_set=!0}}Mi.prototype.push=function(z,ye){const Ae=this.strm,Pe=this.options.chunkSize;let qe,ot;if(this.ended)return!1;for(ye===~~ye?ot=ye:ot=ye===!0?oi:ha,typeof z=="string"?Ae.input=qi.string2buf(z):Ca.call(z)==="[object ArrayBuffer]"?Ae.input=new Uint8Array(z):Ae.input=z,Ae.next_in=0,Ae.avail_in=Ae.input.length;;){if(Ae.avail_out===0&&(Ae.output=new Uint8Array(Pe),Ae.next_out=0,Ae.avail_out=Pe),(ot===ma||ot===ya)&&Ae.avail_out<=6){this.onData(Ae.output.subarray(0,Ae.next_out)),Ae.avail_out=0;continue}if(qe=Or.deflate(Ae,ot),qe===bi)return Ae.next_out>0&&this.onData(Ae.output.subarray(0,Ae.next_out)),qe=Or.deflateEnd(this.strm),this.onEnd(qe),this.ended=!0,qe===mi;if(Ae.avail_out===0){this.onData(Ae.output);continue}if(ot>0&&Ae.next_out>0){this.onData(Ae.output.subarray(0,Ae.next_out)),Ae.avail_out=0;continue}if(Ae.avail_in===0)break}return!0},Mi.prototype.onData=function(z){this.chunks.push(z)},Mi.prototype.onEnd=function(z){z===mi&&(this.result=fi.flattenChunks(this.chunks)),this.chunks=[],this.err=z,this.msg=this.strm.msg};function wa(z,ye){const Ae=new Mi(ye);if(Ae.push(z,!0),Ae.err)throw Ae.msg||lr[Ae.err];return Ae.result}function Ba(z,ye){return ye=ye||{},ye.raw=!0,wa(z,ye)}function Qi(z,ye){return ye=ye||{},ye.gzip=!0,wa(z,ye)}var vr=Mi,ui=wa,wi=Ba,ka=Qi,ji=Dr,Ua={Deflate:vr,deflate:ui,deflateRaw:wi,gzip:ka,constants:ji};const Ti=16209,_A=16191;var fA=function(ye,Ae){let Pe,qe,ot,En,an,Tr,Xt,kn,ci,Zr,Cr,xi,xa,Pi,Ki,aa,Ri,Hr,Gi,La,ki,Ea,oa,Zi;const sa=ye.state;Pe=ye.next_in,oa=ye.input,qe=Pe+(ye.avail_in-5),ot=ye.next_out,Zi=ye.output,En=ot-(Ae-ye.avail_out),an=ot+(ye.avail_out-257),Tr=sa.dmax,Xt=sa.wsize,kn=sa.whave,ci=sa.wnext,Zr=sa.window,Cr=sa.hold,xi=sa.bits,xa=sa.lencode,Pi=sa.distcode,Ki=(1<>>24,Cr>>>=Hr,xi-=Hr,Hr=Ri>>>16&255,Hr===0)Zi[ot++]=Ri&65535;else if(Hr&16){Gi=Ri&65535,Hr&=15,Hr&&(xi>>=Hr,xi-=Hr),xi<15&&(Cr+=oa[Pe++]<>>24,Cr>>>=Hr,xi-=Hr,Hr=Ri>>>16&255,Hr&16){if(La=Ri&65535,Hr&=15,xiTr){ye.msg="invalid distance too far back",sa.mode=Ti;break e}if(Cr>>>=Hr,xi-=Hr,Hr=ot-En,La>Hr){if(Hr=La-Hr,Hr>kn&&sa.sane){ye.msg="invalid distance too far back",sa.mode=Ti;break e}if(ki=0,Ea=Zr,ci===0){if(ki+=Xt-Hr,Hr2;)Zi[ot++]=Ea[ki++],Zi[ot++]=Ea[ki++],Zi[ot++]=Ea[ki++],Gi-=3;Gi&&(Zi[ot++]=Ea[ki++],Gi>1&&(Zi[ot++]=Ea[ki++]))}else{ki=ot-La;do Zi[ot++]=Zi[ki++],Zi[ot++]=Zi[ki++],Zi[ot++]=Zi[ki++],Gi-=3;while(Gi>2);Gi&&(Zi[ot++]=Zi[ki++],Gi>1&&(Zi[ot++]=Zi[ki++]))}}else if(Hr&64){ye.msg="invalid distance code",sa.mode=Ti;break e}else{Ri=Pi[(Ri&65535)+(Cr&(1<>3,Pe-=Gi,xi-=Gi<<3,Cr&=(1<{const Tr=an.bits;let Xt=0,kn=0,ci=0,Zr=0,Cr=0,xi=0,xa=0,Pi=0,Ki=0,aa=0,Ri,Hr,Gi,La,ki,Ea=null,oa;const Zi=new Uint16Array(Za+1),sa=new Uint16Array(Za+1);let Po=null,vl,Ko,zs;for(Xt=0;Xt<=Za;Xt++)Zi[Xt]=0;for(kn=0;kn=1&&Zi[Zr]===0;Zr--);if(Cr>Zr&&(Cr=Zr),Zr===0)return qe[ot++]=1<<24|64<<16|0,qe[ot++]=1<<24|64<<16|0,an.bits=1,0;for(ci=1;ci0&&(z===wA||Zr!==1))return-1;for(sa[1]=0,Xt=1;XtVi||z===iA&&Ki>Oi)return 1;for(;;){vl=Xt-xa,En[kn]+1=oa?(Ko=Po[En[kn]-oa],zs=Ea[En[kn]-oa]):(Ko=96,zs=0),Ri=1<>xa)+Hr]=vl<<24|Ko<<16|zs|0;while(Hr!==0);for(Ri=1<>=1;if(Ri!==0?(aa&=Ri-1,aa+=Ri):aa=0,kn++,--Zi[Xt]===0){if(Xt===Zr)break;Xt=ye[Ae+En[kn]]}if(Xt>Cr&&(aa&La)!==Gi){for(xa===0&&(xa=Cr),ki+=ci,xi=Xt-xa,Pi=1<Vi||z===iA&&Ki>Oi)return 1;Gi=aa&La,qe[Gi]=Cr<<24|xi<<16|ki-ot|0}}return aa!==0&&(qe[ki+aa]=Xt-xa<<24|64<<16|0),an.bits=Cr,0};const ua=0,uA=1,UA=2,{Z_FINISH:DA,Z_BLOCK:qa,Z_TREES:fa,Z_OK:Ni,Z_STREAM_END:Di,Z_NEED_DICT:pa,Z_STREAM_ERROR:ra,Z_DATA_ERROR:Pa,Z_MEM_ERROR:Ha,Z_BUF_ERROR:IA,Z_DEFLATED:CA}=Dr,QA=16180,ia=16181,$a=16182,gA=16183,LA=16184,VA=16185,jo=16186,Do=16187,ZA=16188,jA=16189,eA=16190,tA=16191,cA=16192,mo=16193,Io=16194,ls=16195,zA=16196,us=16197,Yo=16198,TA=16199,Qo=16200,Lo=16201,Xo=16202,Jo=16203,qo=16204,lo=16205,yo=16206,YA=16207,to=16208,Da=16209,uo=16210,cs=16211,$o=852,es=592,no=15,fs=z=>(z>>>24&255)+(z>>>8&65280)+((z&65280)<<8)+((z&255)<<24);function Bo(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const XA=z=>{if(!z)return 1;const ye=z.state;return!ye||ye.strm!==z||ye.modecs?1:0},ro=z=>{if(XA(z))return ra;const ye=z.state;return z.total_in=z.total_out=ye.total=0,z.msg="",ye.wrap&&(z.adler=ye.wrap&1),ye.mode=QA,ye.last=0,ye.havedict=0,ye.flags=-1,ye.dmax=32768,ye.head=null,ye.hold=0,ye.bits=0,ye.lencode=ye.lendyn=new Int32Array($o),ye.distcode=ye.distdyn=new Int32Array(es),ye.sane=1,ye.back=-1,Ni},co=z=>{if(XA(z))return ra;const ye=z.state;return ye.wsize=0,ye.whave=0,ye.wnext=0,ro(z)},io=(z,ye)=>{let Ae;if(XA(z))return ra;const Pe=z.state;return ye<0?(Ae=0,ye=-ye):(Ae=(ye>>4)+5,ye<48&&(ye&=15)),ye&&(ye<8||ye>15)?ra:(Pe.window!==null&&Pe.wbits!==ye&&(Pe.window=null),Pe.wrap=Ae,Pe.wbits=ye,co(z))},zi=(z,ye)=>{if(!z)return ra;const Ae=new Bo;z.state=Ae,Ae.strm=z,Ae.window=null,Ae.mode=QA;const Pe=io(z,ye);return Pe!==Ni&&(z.state=null),Pe},Wi=z=>zi(z,no);let Wa=!0,Ga,nA;const fo=z=>{if(Wa){Ga=new Int32Array(512),nA=new Int32Array(32);let ye=0;for(;ye<144;)z.lens[ye++]=8;for(;ye<256;)z.lens[ye++]=9;for(;ye<280;)z.lens[ye++]=7;for(;ye<288;)z.lens[ye++]=8;for(ga(uA,z.lens,0,288,Ga,0,z.work,{bits:9}),ye=0;ye<32;)z.lens[ye++]=5;ga(UA,z.lens,0,32,nA,0,z.work,{bits:5}),Wa=!1}z.lencode=Ga,z.lenbits=9,z.distcode=nA,z.distbits=5},JA=(z,ye,Ae,Pe)=>{let qe;const ot=z.state;return ot.window===null&&(ot.wsize=1<=ot.wsize?(ot.window.set(ye.subarray(Ae-ot.wsize,Ae),0),ot.wnext=0,ot.whave=ot.wsize):(qe=ot.wsize-ot.wnext,qe>Pe&&(qe=Pe),ot.window.set(ye.subarray(Ae-Pe,Ae-Pe+qe),ot.wnext),Pe-=qe,Pe?(ot.window.set(ye.subarray(Ae-Pe,Ae),0),ot.wnext=Pe,ot.whave=ot.wsize):(ot.wnext+=qe,ot.wnext===ot.wsize&&(ot.wnext=0),ot.whave{let Ae,Pe,qe,ot,En,an,Tr,Xt,kn,ci,Zr,Cr,xi,xa,Pi=0,Ki,aa,Ri,Hr,Gi,La,ki,Ea;const oa=new Uint8Array(4);let Zi,sa;const Po=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(XA(z)||!z.output||!z.input&&z.avail_in!==0)return ra;Ae=z.state,Ae.mode===tA&&(Ae.mode=cA),En=z.next_out,qe=z.output,Tr=z.avail_out,ot=z.next_in,Pe=z.input,an=z.avail_in,Xt=Ae.hold,kn=Ae.bits,ci=an,Zr=Tr,Ea=Ni;e:for(;;)switch(Ae.mode){case QA:if(Ae.wrap===0){Ae.mode=cA;break}for(;kn<16;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>8&255,Ae.check=Er(Ae.check,oa,2,0),Xt=0,kn=0,Ae.mode=ia;break}if(Ae.head&&(Ae.head.done=!1),!(Ae.wrap&1)||(((Xt&255)<<8)+(Xt>>8))%31){z.msg="incorrect header check",Ae.mode=Da;break}if((Xt&15)!==CA){z.msg="unknown compression method",Ae.mode=Da;break}if(Xt>>>=4,kn-=4,ki=(Xt&15)+8,Ae.wbits===0&&(Ae.wbits=ki),ki>15||ki>Ae.wbits){z.msg="invalid window size",Ae.mode=Da;break}Ae.dmax=1<>8&1),Ae.flags&512&&Ae.wrap&4&&(oa[0]=Xt&255,oa[1]=Xt>>>8&255,Ae.check=Er(Ae.check,oa,2,0)),Xt=0,kn=0,Ae.mode=$a;case $a:for(;kn<32;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>8&255,oa[2]=Xt>>>16&255,oa[3]=Xt>>>24&255,Ae.check=Er(Ae.check,oa,4,0)),Xt=0,kn=0,Ae.mode=gA;case gA:for(;kn<16;){if(an===0)break e;an--,Xt+=Pe[ot++]<>8),Ae.flags&512&&Ae.wrap&4&&(oa[0]=Xt&255,oa[1]=Xt>>>8&255,Ae.check=Er(Ae.check,oa,2,0)),Xt=0,kn=0,Ae.mode=LA;case LA:if(Ae.flags&1024){for(;kn<16;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>8&255,Ae.check=Er(Ae.check,oa,2,0)),Xt=0,kn=0}else Ae.head&&(Ae.head.extra=null);Ae.mode=VA;case VA:if(Ae.flags&1024&&(Cr=Ae.length,Cr>an&&(Cr=an),Cr&&(Ae.head&&(ki=Ae.head.extra_len-Ae.length,Ae.head.extra||(Ae.head.extra=new Uint8Array(Ae.head.extra_len)),Ae.head.extra.set(Pe.subarray(ot,ot+Cr),ki)),Ae.flags&512&&Ae.wrap&4&&(Ae.check=Er(Ae.check,Pe,Cr,ot)),an-=Cr,ot+=Cr,Ae.length-=Cr),Ae.length))break e;Ae.length=0,Ae.mode=jo;case jo:if(Ae.flags&2048){if(an===0)break e;Cr=0;do ki=Pe[ot+Cr++],Ae.head&&ki&&Ae.length<65536&&(Ae.head.name+=String.fromCharCode(ki));while(ki&&Cr>9&1,Ae.head.done=!0),z.adler=Ae.check=0,Ae.mode=tA;break;case jA:for(;kn<32;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=kn&7,kn-=kn&7,Ae.mode=yo;break}for(;kn<3;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=1,kn-=1,Xt&3){case 0:Ae.mode=mo;break;case 1:if(fo(Ae),Ae.mode=TA,ye===fa){Xt>>>=2,kn-=2;break e}break;case 2:Ae.mode=zA;break;case 3:z.msg="invalid block type",Ae.mode=Da}Xt>>>=2,kn-=2;break;case mo:for(Xt>>>=kn&7,kn-=kn&7;kn<32;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>16^65535)){z.msg="invalid stored block lengths",Ae.mode=Da;break}if(Ae.length=Xt&65535,Xt=0,kn=0,Ae.mode=Io,ye===fa)break e;case Io:Ae.mode=ls;case ls:if(Cr=Ae.length,Cr){if(Cr>an&&(Cr=an),Cr>Tr&&(Cr=Tr),Cr===0)break e;qe.set(Pe.subarray(ot,ot+Cr),En),an-=Cr,ot+=Cr,Tr-=Cr,En+=Cr,Ae.length-=Cr;break}Ae.mode=tA;break;case zA:for(;kn<14;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=5,kn-=5,Ae.ndist=(Xt&31)+1,Xt>>>=5,kn-=5,Ae.ncode=(Xt&15)+4,Xt>>>=4,kn-=4,Ae.nlen>286||Ae.ndist>30){z.msg="too many length or distance symbols",Ae.mode=Da;break}Ae.have=0,Ae.mode=us;case us:for(;Ae.have>>=3,kn-=3}for(;Ae.have<19;)Ae.lens[Po[Ae.have++]]=0;if(Ae.lencode=Ae.lendyn,Ae.lenbits=7,Zi={bits:Ae.lenbits},Ea=ga(ua,Ae.lens,0,19,Ae.lencode,0,Ae.work,Zi),Ae.lenbits=Zi.bits,Ea){z.msg="invalid code lengths set",Ae.mode=Da;break}Ae.have=0,Ae.mode=Yo;case Yo:for(;Ae.have>>24,aa=Pi>>>16&255,Ri=Pi&65535,!(Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=Ki,kn-=Ki,Ae.lens[Ae.have++]=Ri;else{if(Ri===16){for(sa=Ki+2;kn>>=Ki,kn-=Ki,Ae.have===0){z.msg="invalid bit length repeat",Ae.mode=Da;break}ki=Ae.lens[Ae.have-1],Cr=3+(Xt&3),Xt>>>=2,kn-=2}else if(Ri===17){for(sa=Ki+3;kn>>=Ki,kn-=Ki,ki=0,Cr=3+(Xt&7),Xt>>>=3,kn-=3}else{for(sa=Ki+7;kn>>=Ki,kn-=Ki,ki=0,Cr=11+(Xt&127),Xt>>>=7,kn-=7}if(Ae.have+Cr>Ae.nlen+Ae.ndist){z.msg="invalid bit length repeat",Ae.mode=Da;break}for(;Cr--;)Ae.lens[Ae.have++]=ki}}if(Ae.mode===Da)break;if(Ae.lens[256]===0){z.msg="invalid code -- missing end-of-block",Ae.mode=Da;break}if(Ae.lenbits=9,Zi={bits:Ae.lenbits},Ea=ga(uA,Ae.lens,0,Ae.nlen,Ae.lencode,0,Ae.work,Zi),Ae.lenbits=Zi.bits,Ea){z.msg="invalid literal/lengths set",Ae.mode=Da;break}if(Ae.distbits=6,Ae.distcode=Ae.distdyn,Zi={bits:Ae.distbits},Ea=ga(UA,Ae.lens,Ae.nlen,Ae.ndist,Ae.distcode,0,Ae.work,Zi),Ae.distbits=Zi.bits,Ea){z.msg="invalid distances set",Ae.mode=Da;break}if(Ae.mode=TA,ye===fa)break e;case TA:Ae.mode=Qo;case Qo:if(an>=6&&Tr>=258){z.next_out=En,z.avail_out=Tr,z.next_in=ot,z.avail_in=an,Ae.hold=Xt,Ae.bits=kn,fA(z,Zr),En=z.next_out,qe=z.output,Tr=z.avail_out,ot=z.next_in,Pe=z.input,an=z.avail_in,Xt=Ae.hold,kn=Ae.bits,Ae.mode===tA&&(Ae.back=-1);break}for(Ae.back=0;Pi=Ae.lencode[Xt&(1<>>24,aa=Pi>>>16&255,Ri=Pi&65535,!(Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>Hr)],Ki=Pi>>>24,aa=Pi>>>16&255,Ri=Pi&65535,!(Hr+Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=Hr,kn-=Hr,Ae.back+=Hr}if(Xt>>>=Ki,kn-=Ki,Ae.back+=Ki,Ae.length=Ri,aa===0){Ae.mode=lo;break}if(aa&32){Ae.back=-1,Ae.mode=tA;break}if(aa&64){z.msg="invalid literal/length code",Ae.mode=Da;break}Ae.extra=aa&15,Ae.mode=Lo;case Lo:if(Ae.extra){for(sa=Ae.extra;kn>>=Ae.extra,kn-=Ae.extra,Ae.back+=Ae.extra}Ae.was=Ae.length,Ae.mode=Xo;case Xo:for(;Pi=Ae.distcode[Xt&(1<>>24,aa=Pi>>>16&255,Ri=Pi&65535,!(Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>Hr)],Ki=Pi>>>24,aa=Pi>>>16&255,Ri=Pi&65535,!(Hr+Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=Hr,kn-=Hr,Ae.back+=Hr}if(Xt>>>=Ki,kn-=Ki,Ae.back+=Ki,aa&64){z.msg="invalid distance code",Ae.mode=Da;break}Ae.offset=Ri,Ae.extra=aa&15,Ae.mode=Jo;case Jo:if(Ae.extra){for(sa=Ae.extra;kn>>=Ae.extra,kn-=Ae.extra,Ae.back+=Ae.extra}if(Ae.offset>Ae.dmax){z.msg="invalid distance too far back",Ae.mode=Da;break}Ae.mode=qo;case qo:if(Tr===0)break e;if(Cr=Zr-Tr,Ae.offset>Cr){if(Cr=Ae.offset-Cr,Cr>Ae.whave&&Ae.sane){z.msg="invalid distance too far back",Ae.mode=Da;break}Cr>Ae.wnext?(Cr-=Ae.wnext,xi=Ae.wsize-Cr):xi=Ae.wnext-Cr,Cr>Ae.length&&(Cr=Ae.length),xa=Ae.window}else xa=qe,xi=En-Ae.offset,Cr=Ae.length;Cr>Tr&&(Cr=Tr),Tr-=Cr,Ae.length-=Cr;do qe[En++]=xa[xi++];while(--Cr);Ae.length===0&&(Ae.mode=Qo);break;case lo:if(Tr===0)break e;qe[En++]=Ae.length,Tr--,Ae.mode=Qo;break;case yo:if(Ae.wrap){for(;kn<32;){if(an===0)break e;an--,Xt|=Pe[ot++]<{if(XA(z))return ra;let ye=z.state;return ye.window&&(ye.window=null),z.state=null,Ni},qA=(z,ye)=>{if(XA(z))return ra;const Ae=z.state;return Ae.wrap&2?(Ae.head=ye,ye.done=!1,Ni):ra},eu=(z,ye)=>{const Ae=ye.length;let Pe,qe,ot;return XA(z)||(Pe=z.state,Pe.wrap!==0&&Pe.mode!==eA)?ra:Pe.mode===eA&&(qe=1,qe=yr(qe,ye,Ae,0),qe!==Pe.check)?Pa:(ot=JA(z,ye,Ae,Ae),ot?(Pe.mode=uo,Ha):(Pe.havedict=1,Ni))};var tu=co,nu=io,ru=ro,Ds=Wi,iu=zi,MA=ho,AA=HA,vA=qA,sA=eu,To="pako inflate (from Nodeca project)",WA={inflateReset:tu,inflateReset2:nu,inflateResetKeep:ru,inflateInit:Ds,inflateInit2:iu,inflate:MA,inflateEnd:AA,inflateGetHeader:vA,inflateSetDictionary:sA,inflateInfo:To};function Is(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var au=Is;const Ul=Object.prototype.toString,{Z_NO_FLUSH:Au,Z_FINISH:Js,Z_OK:ts,Z_STREAM_END:Co,Z_NEED_DICT:qs,Z_STREAM_ERROR:$s,Z_DATA_ERROR:Qs,Z_MEM_ERROR:Dl}=Dr;function ns(z){this.options=fi.assign({chunkSize:1024*64,windowBits:15,to:""},z||{});const ye=this.options;ye.raw&&ye.windowBits>=0&&ye.windowBits<16&&(ye.windowBits=-ye.windowBits,ye.windowBits===0&&(ye.windowBits=-15)),ye.windowBits>=0&&ye.windowBits<16&&!(z&&z.windowBits)&&(ye.windowBits+=32),ye.windowBits>15&&ye.windowBits<48&&(ye.windowBits&15||(ye.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new na,this.strm.avail_out=0;let Ae=WA.inflateInit2(this.strm,ye.windowBits);if(Ae!==ts)throw new Error(lr[Ae]);if(this.header=new au,WA.inflateGetHeader(this.strm,this.header),ye.dictionary&&(typeof ye.dictionary=="string"?ye.dictionary=qi.string2buf(ye.dictionary):Ul.call(ye.dictionary)==="[object ArrayBuffer]"&&(ye.dictionary=new Uint8Array(ye.dictionary)),ye.raw&&(Ae=WA.inflateSetDictionary(this.strm,ye.dictionary),Ae!==ts)))throw new Error(lr[Ae])}ns.prototype.push=function(z,ye){const Ae=this.strm,Pe=this.options.chunkSize,qe=this.options.dictionary;let ot,En,an;if(this.ended)return!1;for(ye===~~ye?En=ye:En=ye===!0?Js:Au,Ul.call(z)==="[object ArrayBuffer]"?Ae.input=new Uint8Array(z):Ae.input=z,Ae.next_in=0,Ae.avail_in=Ae.input.length;;){for(Ae.avail_out===0&&(Ae.output=new Uint8Array(Pe),Ae.next_out=0,Ae.avail_out=Pe),ot=WA.inflate(Ae,En),ot===qs&&qe&&(ot=WA.inflateSetDictionary(Ae,qe),ot===ts?ot=WA.inflate(Ae,En):ot===Qs&&(ot=qs));Ae.avail_in>0&&ot===Co&&Ae.state.wrap>0&&z[Ae.next_in]!==0;)WA.inflateReset(Ae),ot=WA.inflate(Ae,En);switch(ot){case $s:case Qs:case qs:case Dl:return this.onEnd(ot),this.ended=!0,!1}if(an=Ae.avail_out,Ae.next_out&&(Ae.avail_out===0||ot===Co))if(this.options.to==="string"){let Tr=qi.utf8border(Ae.output,Ae.next_out),Xt=Ae.next_out-Tr,kn=qi.buf2string(Ae.output,Tr);Ae.next_out=Xt,Ae.avail_out=Pe-Xt,Xt&&Ae.output.set(Ae.output.subarray(Tr,Tr+Xt),0),this.onData(kn)}else this.onData(Ae.output.length===Ae.next_out?Ae.output:Ae.output.subarray(0,Ae.next_out));if(!(ot===ts&&an===0)){if(ot===Co)return ot=WA.inflateEnd(this.strm),this.onEnd(ot),this.ended=!0,!0;if(Ae.avail_in===0)break}}return!0},ns.prototype.onData=function(z){this.chunks.push(z)},ns.prototype.onEnd=function(z){z===ts&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=fi.flattenChunks(this.chunks)),this.chunks=[],this.err=z,this.msg=this.strm.msg};function ds(z,ye){const Ae=new ns(ye);if(Ae.push(z),Ae.err)throw Ae.msg||lr[Ae.err];return Ae.result}function Il(z,ye){return ye=ye||{},ye.raw=!0,ds(z,ye)}var hs=ns,ou=ds,Ls=Il,RA=ds,Ql=Dr,Ll={Inflate:hs,inflate:ou,inflateRaw:Ls,ungzip:RA,constants:Ql};const{Deflate:Tl,deflate:OA,deflateRaw:va,gzip:xA}=Ua,{Inflate:xo,inflate:Eo,inflateRaw:el,ungzip:tl}=Ll;var Ml=Tl,su=OA,nl=va,ps=xA,Ts=xo,Ms=Eo,bo=el,oA=tl,Nl=Dr,wu={Deflate:Ml,deflate:su,deflateRaw:nl,gzip:ps,Inflate:Ts,inflate:Ms,inflateRaw:bo,ungzip:oA,constants:Nl};const gs=[];for(let z=0;z<256;z++){let ye=z;for(let Ae=0;Ae<8;Ae++)ye&1?ye=3988292384^ye>>>1:ye=ye>>>1;gs[z]=ye}const Ns=4294967295;function Hl(z,ye,Ae){let Pe=z;for(let qe=0;qe>>8;return Pe}function rl(z,ye){return(Hl(Ns,z,ye)^Ns)>>>0}function il(z,ye,Ae){const Pe=z.readUint32(),qe=rl(new Uint8Array(z.buffer,z.byteOffset+z.offset-ye-4,ye),ye);if(qe!==Pe)throw new Error(`CRC mismatch for chunk ${Ae}. Expected ${Pe}, found ${qe}`)}function Bu(z,ye){z.writeUint32(rl(new Uint8Array(z.buffer,z.byteOffset+z.offset-ye,ye),ye))}function Rl(z,ye,Ae){for(let Pe=0;Pe>1)&255}else{for(;ot>1)&255;for(;ot>1)&255}}function Al(z,ye,Ae,Pe,qe){let ot=0;if(Ae.length===0){for(;ot=Ae||La>=Pe))for(let ki=0;ki>8&255}const ys=new Uint16Array([255]),dA=new Uint8Array(ys.buffer)[0]===255,Rs=new Uint8Array(0);function ul(z){const{data:ye,width:Ae,height:Pe,channels:qe,depth:ot}=z,En=Math.ceil(ot/8)*qe,an=Math.ceil(ot/8*qe*Ae),Tr=new Uint8Array(Pe*an);let Xt=Rs,kn=0,ci,Zr;for(let Cr=0;Cr>8&255}const So=Uint8Array.of(137,80,78,71,13,10,26,10);function Mo(z){z.writeBytes(So)}function ws(z){if(!cl(z.readBytes(So.length)))throw new Error("wrong PNG signature")}function cl(z){if(z.length79)throw new Error("keyword length must be between 1 and 79")}const Os=/^[\u0000-\u00FF]*$/;function hl(z){if(!Os.test(z))throw new Error("invalid latin1 text")}function Cs(z,ye,Ae){const Pe=Ho(ye);z[Pe]=Pl(ye,Ae-Pe.length-1)}function Cu(z,ye,Ae){dl(ye),hl(Ae);const Pe=ye.length+1+Ae.length;z.writeUint32(Pe),z.writeChars(fl),z.writeChars(ye),z.writeByte(Bs),z.writeChars(Ae),writeCrc(z,Pe+4)}function Ho(z){for(z.mark();z.readByte()!==Bs;);const ye=z.offset;z.reset();const Ae=No.decode(z.readBytes(ye-z.offset-1));return z.skip(1),dl(Ae),Ae}function Pl(z,ye){return No.decode(z.readBytes(ye))}const EA={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Ps={UNKNOWN:-1,DEFLATE:0},is={UNKNOWN:-1,ADAPTIVE:0},Ro={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},po={NONE:0,BACKGROUND:1,PREVIOUS:2},Oo={SOURCE:0,OVER:1};class xs extends Ve{constructor(Ae,Pe={}){super(Ae);Sa(this,"_checkCrc");Sa(this,"_inflator");Sa(this,"_png");Sa(this,"_apng");Sa(this,"_end");Sa(this,"_hasPalette");Sa(this,"_palette");Sa(this,"_hasTransparency");Sa(this,"_transparency");Sa(this,"_compressionMethod");Sa(this,"_filterMethod");Sa(this,"_interlaceMethod");Sa(this,"_colorType");Sa(this,"_isAnimated");Sa(this,"_numberOfFrames");Sa(this,"_numberOfPlays");Sa(this,"_frames");Sa(this,"_writingDataChunks");const{checkCrc:qe=!1}=Pe;this._checkCrc=qe,this._inflator=new Ts,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Ps.UNKNOWN,this._filterMethod=is.UNKNOWN,this._interlaceMethod=Ro.UNKNOWN,this._colorType=EA.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ws(this);!this._end;){const Ae=this.readUint32(),Pe=this.readChars(4);this.decodeChunk(Ae,Pe)}return this.decodeImage(),this._png}decodeApng(){for(ws(this);!this._end;){const Ae=this.readUint32(),Pe=this.readChars(4);this.decodeApngChunk(Ae,Pe)}return this.decodeApngImage(),this._apng}decodeChunk(Ae,Pe){const qe=this.offset;switch(Pe){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(Ae);break;case"IDAT":this.decodeIDAT(Ae);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(Ae);break;case"iCCP":this.decodeiCCP(Ae);break;case fl:Cs(this._png.text,this,Ae);break;case"pHYs":this.decodepHYs();break;default:this.skip(Ae);break}if(this.offset-qe!==Ae)throw new Error(`Length mismatch while decoding chunk ${Pe}`);this._checkCrc?il(this,Ae+4,Pe):this.skip(4)}decodeApngChunk(Ae,Pe){const qe=this.offset;switch(Pe!=="fdAT"&&Pe!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),Pe){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(Ae);break;default:this.decodeChunk(Ae,Pe),this.offset=qe+Ae;break}if(this.offset-qe!==Ae)throw new Error(`Length mismatch while decoding chunk ${Pe}`);this._checkCrc?il(this,Ae+4,Pe):this.skip(4)}decodeIHDR(){const Ae=this._png;Ae.width=this.readUint32(),Ae.height=this.readUint32(),Ae.depth=lu(this.readUint8());const Pe=this.readUint8();this._colorType=Pe;let qe;switch(Pe){case EA.GREYSCALE:qe=1;break;case EA.TRUECOLOUR:qe=3;break;case EA.INDEXED_COLOUR:qe=1;break;case EA.GREYSCALE_ALPHA:qe=2;break;case EA.TRUECOLOUR_ALPHA:qe=4;break;case EA.UNKNOWN:default:throw new Error(`Unknown color type: ${Pe}`)}if(this._png.channels=qe,this._compressionMethod=this.readUint8(),this._compressionMethod!==Ps.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const Ae={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(Ae)}decodePLTE(Ae){if(Ae%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${Ae}`);const Pe=Ae/3;this._hasPalette=!0;const qe=[];this._palette=qe;for(let ot=0;otthis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${Ae/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(Ae/2);for(let Pe=0;Pethis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${Ae} vs ${this._palette.length})`);let Pe=0;for(;Pe{const Tr=((En+Pe.yOffset)*this._png.width+Pe.xOffset+an)*this._png.channels,Xt=(En*Pe.width+an)*this._png.channels;return{index:Tr,frameIndex:Xt}};switch(Pe.blendOp){case Oo.SOURCE:for(let En=0;EnPe.at(-1)!==255);this.writeUint32(Ae.length),this.writeChars("tRNS");for(const Pe of Ae)this.writeByte(Pe.at(-1));writeCrc(this,4+Ae.length)}encodeIDAT(Ae){this.writeUint32(Ae.length),this.writeChars("IDAT"),this.writeBytes(Ae),writeCrc(this,Ae.length+4)}encodeData(){const{width:Ae,height:Pe,channels:qe,depth:ot,data:En}=this._png,an=ot<=8?Math.ceil(Ae*ot/8)*qe:Math.ceil(Ae*ot/8*qe/2),Tr=new IOBuffer().setBigEndian();let Xt=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Zr=0;Zr0)return z;throw new TypeError(`${ye} must be a positive integer`)}function as(z,ye){const{channels:Ae=4,depth:Pe=8}=z;if(Ae!==4&&Ae!==3&&Ae!==2&&Ae!==1)throw new RangeError(`unsupported number of channels: ${Ae}`);const qe={channels:Ae,depth:Pe,colorType:ColorType.UNKNOWN};switch(Ae){case 4:qe.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:qe.colorType=ColorType.TRUECOLOUR;break;case 1:ye?qe.colorType=ColorType.INDEXED_COLOUR:qe.colorType=ColorType.GREYSCALE;break;case 2:qe.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return qe}function uu(z,ye,Ae,Pe){for(let qe=0;qe>8&255),Ae.writeByte(Ri&255)}}return Pe}function gl(z,ye,Ae,Pe){for(let qe=0;qe>1|(Le&21845)<<1;ut=(ut&52428)>>2|(ut&13107)<<2,ut=(ut&61680)>>4|(ut&3855)<<4,Ze[Le]=((ut&65280)>>8|(ut&255)<<8)>>1}for(var Ge=function(ze,Ie,st){for(var Et=ze.length,rn=0,Wt=new Ye(Ie);rn>Wn]=Vn}else for(Hn=new Ye(Et),rn=0;rn>15-ze[rn]);return Hn},Je=new Me(288),Le=0;Le<144;++Le)Je[Le]=8;for(var Le=144;Le<256;++Le)Je[Le]=9;for(var Le=256;Le<280;++Le)Je[Le]=7;for(var Le=280;Le<288;++Le)Je[Le]=8;for(var Qe=new Me(32),Le=0;Le<32;++Le)Qe[Le]=5;var xe=Ge(Je,9,0),Ne=null,Te=Ge(Qe,5,0),at=null,He=function(ze){for(var Ie=ze[0],st=1;stIe&&(Ie=ze[st]);return Ie},et=function(ze,Ie,st){var Et=Ie/8|0;return(ze[Et]|ze[Et+1]<<8)>>(Ie&7)&st},dt=function(ze,Ie){var st=Ie/8|0;return(ze[st]|ze[st+1]<<8|ze[st+2]<<16)>>(Ie&7)},$e=function(ze){return(ze+7)/8|0},Bt=function(ze,Ie,st){return(Ie==null||Ie<0)&&(Ie=0),(st==null||st>ze.length)&&(st=ze.length),new Me(ze.subarray(Ie,st))},At={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},mt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Gt=function(ze,Ie,st){var Et=new Error(Ie||mt[ze]);if(Et.code=ze,Error.captureStackTrace&&Error.captureStackTrace(Et,Gt),!st)throw Et;return Et},Jt=function(ze,Ie,st,Et){var rn=ze.length,Wt=Et?Et.length:0;if(!rn||Ie.f&&!Ie.l)return st||new Me(0);var Qn=!st,Hn=Qn||Ie.i!=2,Wn=Ie.i;Qn&&(st=new Me(rn*3));var Vn=function(fi){var Ei=st.length;if(fi>Ei){var Li=new Me(Math.max(Ei*2,fi));Li.set(st),st=Li}},Zn=Ie.f||0,Gn=Ie.p||0,ft=Ie.b||0,Yt=Ie.l,Rt=Ie.d,Kt=Ie.m,nn=Ie.n,dn=rn*8;do{if(!Yt){Zn=et(ze,Gn,1);var Rn=et(ze,Gn+1,3);if(Gn+=3,Rn)if(Rn==1)Yt=Ne,Rt=at,Kt=9,nn=5;else if(Rn==2){var ln=et(ze,Gn,31)+257,hn=et(ze,Gn+10,15)+4,tn=ln+et(ze,Gn+5,31)+1;Gn+=14;for(var cn=new Me(tn),er=new Me(19),Nt=0;Nt>4;if(it<16)cn[Nt++]=it;else{var Fr=0,gr=0;for(it==16?(gr=3+et(ze,Gn,3),Gn+=2,Fr=cn[Nt-1]):it==17?(gr=3+et(ze,Gn,7),Gn+=3):it==18&&(gr=11+et(ze,Gn,127),Gn+=7);gr--;)cn[Nt++]=Fr}}var Wr=cn.subarray(0,ln),Qr=cn.subarray(ln);Kt=He(Wr),nn=He(Qr),Yt=Ge(Wr,Kt,1),Rt=Ge(Qr,nn,1)}else Gt(1);else{var it=$e(Gn)+4,wn=ze[it-4]|ze[it-3]<<8,Ht=it+wn;if(Ht>rn){Wn&&Gt(0);break}Hn&&Vn(ft+wn),st.set(ze.subarray(it,Ht),ft),Ie.b=ft+=wn,Ie.p=Gn=Ht*8,Ie.f=Zn;continue}if(Gn>dn){Wn&&Gt(0);break}}Hn&&Vn(ft+131072);for(var ni=(1<>4;if(Gn+=Fr&15,Gn>dn){Wn&&Gt(0);break}if(Fr||Gt(2),hi<256)st[ft++]=hi;else if(hi==256){Jr=Gn,Yt=null;break}else{var ii=hi-254;if(hi>264){var Nt=hi-257,$r=ve[Nt];ii=et(ze,Gn,(1<<$r)-1)+Xe[Nt],Gn+=$r}var ri=Rt[dt(ze,Gn)&Ai],Or=ri>>4;ri||Gt(3),Gn+=ri&15;var Qr=tt[Or];if(Or>3){var $r=Ve[Or];Qr+=dt(ze,Gn)&(1<<$r)-1,Gn+=$r}if(Gn>dn){Wn&&Gt(0);break}Hn&&Vn(ft+131072);var ei=ft+ii;if(ft>8},An=function(ze,Ie,st){st<<=Ie&7;var Et=Ie/8|0;ze[Et]|=st,ze[Et+1]|=st>>8,ze[Et+2]|=st>>16},We=function(ze,Ie){for(var st=[],Et=0;Etft&&(ft=Wt[Et].s);var Yt=new Ye(ft+1),Rt=Fe(st[Zn-1],Yt,0);if(Rt>Ie){var Et=0,Kt=0,nn=Rt-Ie,dn=1<Ie)Kt+=dn-(1<>=nn;Kt>0;){var it=Wt[Et].s;Yt[it]=0&&Kt;--Et){var wn=Wt[Et].s;Yt[wn]==Ie&&(--Yt[wn],++Kt)}Rt=Ie}return{t:new Me(Yt),l:Rt}},Fe=function(ze,Ie,st){return ze.s==-1?Math.max(Fe(ze.l,Ie,st+1),Fe(ze.r,Ie,st+1)):Ie[ze.s]=st},Ot=function(ze){for(var Ie=ze.length;Ie&&!ze[--Ie];);for(var st=new Ye(++Ie),Et=0,rn=ze[0],Wt=1,Qn=function(Wn){st[Et++]=Wn},Hn=1;Hn<=Ie;++Hn)if(ze[Hn]==rn&&Hn!=Ie)++Wt;else{if(!rn&&Wt>2){for(;Wt>138;Wt-=138)Qn(32754);Wt>2&&(Qn(Wt>10?Wt-11<<5|28690:Wt-3<<5|12305),Wt=0)}else if(Wt>3){for(Qn(rn),--Wt;Wt>6;Wt-=6)Qn(8304);Wt>2&&(Qn(Wt-3<<5|8208),Wt=0)}for(;Wt--;)Qn(rn);Wt=1,rn=ze[Hn]}return{c:st.subarray(0,Et),n:Ie}},Fn=function(ze,Ie){for(var st=0,Et=0;Et>8,ze[rn+2]=ze[rn]^255,ze[rn+3]=ze[rn+1]^255;for(var Wt=0;Wt4&&!er[ke[qt-1]];--qt);var Mn=Vn+5<<3,On=Fn(rn,Je)+Fn(Wt,Qe)+Qn,$n=Fn(rn,ft)+Fn(Wt,Kt)+Qn+14+3*qt+Fn(hn,er)+2*hn[16]+3*hn[17]+7*hn[18];if(Wn>=0&&Mn<=On&&Mn<=$n)return fn(Ie,Zn,ze.subarray(Wn,Wn+Vn));var Fr,gr,Wr,Qr;if(gn(Ie,Zn,1+($n15&&(gn(Ie,Zn,hi[tn]>>5&127),Zn+=hi[tn]>>12)}}else Fr=xe,gr=Je,Wr=Te,Qr=Qe;for(var tn=0;tn255){var ii=$r>>18&31;An(Ie,Zn,Fr[ii+257]),Zn+=gr[ii+257],ii>7&&(gn(Ie,Zn,$r>>23&31),Zn+=ve[ii]);var ri=$r&31;An(Ie,Zn,Wr[ri]),Zn+=Qr[ri],ri>3&&(An(Ie,Zn,$r>>5&8191),Zn+=Ve[ri])}else An(Ie,Zn,Fr[$r]),Zn+=gr[$r]}return An(Ie,Zn,Fr[256]),Zn+gr[256]},$t=new _e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),on=new Me(0),jn=function(ze,Ie,st,Et,rn,Wt){var Qn=Wt.z||ze.length,Hn=new Me(Et+Qn+5*(1+Math.ceil(Qn/7e3))+rn),Wn=Hn.subarray(Et,Hn.length-rn),Vn=Wt.l,Zn=(Wt.r||0)&7;if(Ie){Zn&&(Wn[0]=Wt.r>>3);for(var Gn=$t[Ie-1],ft=Gn>>13,Yt=Gn&8191,Rt=(1<7e3||er>24576)&&(Fr>423||!Vn)){Zn=Ct(ze,Wn,0,wn,Ht,ln,tn,er,qt,cn-qt,Zn),er=hn=tn=0,qt=cn;for(var gr=0;gr<286;++gr)Ht[gr]=0;for(var gr=0;gr<30;++gr)ln[gr]=0}var Wr=2,Qr=0,ni=Yt,Ai=On-$n&32767;if(Fr>2&&Mn==it(cn-Ai))for(var Jr=Math.min(ft,Fr)-1,hi=Math.min(32767,cn),ii=Math.min(258,Fr);Ai<=hi&&--ni&&On!=$n;){if(ze[cn+Wr]==ze[cn+Wr-Ai]){for(var $r=0;$rWr){if(Wr=$r,Qr=Ai,$r>Jr)break;for(var ri=Math.min(Ai,$r-2),Or=0,gr=0;grOr&&(Or=ti,$n=ei)}}}On=$n,$n=Kt[On],Ai+=On-$n&32767}if(Qr){wn[er++]=268435456|Ce[Wr]<<18|nt[Qr];var fi=Ce[Wr]&31,Ei=nt[Qr]&31;tn+=ve[fi]+Ve[Ei],++Ht[257+fi],++ln[Ei],Nt=cn+Wr,++hn}else wn[er++]=ze[cn],++Ht[ze[cn]]}}for(cn=Math.max(cn,Nt);cn=Qn&&(Wn[Zn/8|0]=Vn,Li=Qn),Zn=fn(Wn,Zn+1,ze.subarray(cn,Li))}Wt.i=Qn}return Bt(Hn,0,Et+$e(Zn)+rn)},Dt=null,vt=function(){var ze=-1;return{p:function(Ie){for(var st=ze,Et=0;Et>>8;ze=st},d:function(){return~ze}}},pt=function(){var ze=1,Ie=0;return{p:function(st){for(var Et=ze,rn=Ie,Wt=st.length|0,Qn=0;Qn!=Wt;){for(var Hn=Math.min(Qn+2655,Wt);Qn>16),rn=(rn&65535)+15*(rn>>16)}ze=Et,Ie=rn},d:function(){return ze%=65521,Ie%=65521,(ze&255)<<24|(ze&65280)<<8|(Ie&255)<<8|Ie>>8}}},bt=function(ze,Ie,st,Et,rn){if(!rn&&(rn={l:1},Ie.dictionary)){var Wt=Ie.dictionary.subarray(-32768),Qn=new Me(Wt.length+ze.length);Qn.set(Wt),Qn.set(ze,Wt.length),ze=Qn,rn.w=Wt.length}return jn(ze,Ie.level==null?6:Ie.level,Ie.mem==null?rn.l?Math.ceil(Math.max(8,Math.min(13,Math.log(ze.length)))*1.5):20:12+Ie.mem,st,Et,rn)},Zt=function(ze,Ie){var st={};for(var Et in ze)st[Et]=ze[Et];for(var Et in Ie)st[Et]=Ie[Et];return st},yt=function(ze,Ie,st){for(var Et=ze(),rn=ze.toString(),Wt=rn.slice(rn.indexOf("[")+1,rn.lastIndexOf("]")).replace(/\s+/g,"").split(","),Qn=0;Qn>>0},St=function(ze,Ie){return Ee(ze,Ie)+Ee(ze,Ie+4)*4294967296},Ut=function(ze,Ie,st){for(;st;++Ie)ze[Ie]=st,st>>>=8},It=function(ze,Ie){var st=Ie.filename;if(ze[0]=31,ze[1]=139,ze[2]=8,ze[8]=Ie.level<2?4:Ie.level==9?2:0,ze[9]=3,Ie.mtime!=0&&Ut(ze,4,Math.floor(new Date(Ie.mtime||Date.now())/1e3)),st){ze[3]=8;for(var Et=0;Et<=st.length;++Et)ze[Et+10]=st.charCodeAt(Et)}},ht=function(ze){(ze[0]!=31||ze[1]!=139||ze[2]!=8)&&Gt(6,"invalid gzip data");var Ie=ze[3],st=10;Ie&4&&(st+=(ze[10]|ze[11]<<8)+2);for(var Et=(Ie>>3&1)+(Ie>>4&1);Et>0;Et-=!ze[st++]);return st+(Ie&2)},Bn=function(ze){var Ie=ze.length;return(ze[Ie-4]|ze[Ie-3]<<8|ze[Ie-2]<<16|ze[Ie-1]<<24)>>>0},Vt=function(ze){return 10+(ze.filename?ze.filename.length+1:0)},un=function(ze,Ie){var st=Ie.level,Et=st==0?0:st<6?1:st==9?3:2;if(ze[0]=120,ze[1]=Et<<6|(Ie.dictionary&&32),ze[1]|=31-(ze[0]<<8|ze[1])%31,Ie.dictionary){var rn=pt();rn.p(Ie.dictionary),Ut(ze,2,rn.d())}},In=function(ze,Ie){return((ze[0]&15)!=8||ze[0]>>4>7||(ze[0]<<8|ze[1])%31)&&Gt(6,"invalid zlib data"),(ze[1]>>5&1)==+!Ie&&Gt(6,"invalid zlib data: "+(ze[1]&32?"need":"unexpected")+" dictionary"),(ze[1]>>3&4)+2};function or(ze,Ie){return typeof ze=="function"&&(Ie=ze,ze={}),this.ondata=Ie,ze}var vn=null,fr=null;function ur(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),re(ze,Ie,[Ue],function(Et){return he(yr(Et.data[0],Et.data[1]))},0,st)}function yr(ze,Ie){return bt(ze,Ie||{},0,0)}var Xn=null,Mr=null;function Kr(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),re(ze,Ie,[fe],function(Et){return he(Er(Et.data[0],oe(Et.data[1])))},1,st)}function Er(ze,Ie){return Jt(ze,{i:2},Ie&&Ie.out,Ie&&Ie.dictionary)}var lr=null,Dr=null;function Kn(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),re(ze,Ie,[Ue,Be,function(){return[tr]}],function(Et){return he(tr(Et.data[0],Et.data[1]))},2,st)}function tr(ze,Ie){Ie||(Ie={});var st=vt(),Et=ze.length;st.p(ze);var rn=bt(ze,Ie,Vt(Ie),8),Wt=rn.length;return It(rn,Ie),Ut(rn,Wt-8,st.d()),Ut(rn,Wt-4,Et),rn}var Jn=null,mn=null;function zn(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),re(ze,Ie,[fe,gt,function(){return[en]}],function(Et){return he(en(Et.data[0],Et.data[1]))},3,st)}function en(ze,Ie){var st=ht(ze);return st+8>ze.length&&Gt(6,"invalid gzip data"),Jt(ze.subarray(st,-8),{i:2},Ie&&Ie.out||new Me(Bn(ze)),Ie&&Ie.dictionary)}var Sn=null,hr=null;function sr(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),re(ze,Ie,[Ue,Mt,function(){return[cr]}],function(Et){return he(cr(Et.data[0],Et.data[1]))},4,st)}function cr(ze,Ie){Ie||(Ie={});var st=pt();st.p(ze);var Et=bt(ze,Ie,Ie.dictionary?6:2,4);return un(Et,Ie),Ut(Et,Et.length-4,st.d()),Et}var br=null,Gr=null;function Ir(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),re(ze,Ie,[fe,sn,function(){return[Ur]}],function(Et){return he(Ur(Et.data[0],oe(Et.data[1])))},5,st)}function Ur(ze,Ie){return Jt(ze.subarray(In(ze,Ie&&Ie.dictionary),-4),{i:2},Ie&&Ie.out,Ie&&Ie.dictionary)}var Lr=null,qn=null;function yn(ze,Ie,st){return st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7),ze[0]==31&&ze[1]==139&&ze[2]==8?zn(ze,Ie,st):(ze[0]&15)!=8||ze[0]>>4>7||(ze[0]<<8|ze[1])%31?Kr(ze,Ie,st):Ir(ze,Ie,st)}function rt(ze,Ie){return ze[0]==31&&ze[1]==139&&ze[2]==8?en(ze,Ie):(ze[0]&15)!=8||ze[0]>>4>7||(ze[0]<<8|ze[1])%31?Er(ze,Ie):Ur(ze,Ie)}var kr=function(ze,Ie,st,Et){for(var rn in ze){var Wt=ze[rn],Qn=Ie+rn,Hn=Et;Array.isArray(Wt)&&(Hn=Zt(Et,Wt[1]),Wt=Wt[0]),Wt instanceof Me?st[Qn]=[Wt,Hn]:(st[Qn+="/"]=[new Me(0),Hn],kr(Wt,Qn,st,Et))}},zr=typeof TextEncoder!="undefined"&&new TextEncoder,Lt=typeof TextDecoder!="undefined"&&new TextDecoder,Tt=0;try{Lt.decode(on,{stream:!0}),Tt=1}catch(ze){}var nr=function(ze){for(var Ie="",st=0;;){var Et=ze[st++],rn=(Et>127)+(Et>223)+(Et>239);if(st+rn>ze.length)return{s:Ie,r:Bt(ze,st-1)};rn?rn==3?(Et=((Et&15)<<18|(ze[st++]&63)<<12|(ze[st++]&63)<<6|ze[st++]&63)-65536,Ie+=String.fromCharCode(55296|Et>>10,56320|Et&1023)):rn&1?Ie+=String.fromCharCode((Et&31)<<6|ze[st++]&63):Ie+=String.fromCharCode((Et&15)<<12|(ze[st++]&63)<<6|ze[st++]&63):Ie+=String.fromCharCode(Et)}},Tn=null,jt=null;function _n(ze,Ie){if(Ie){for(var st=new Me(ze.length),Et=0;Et>1)),Qn=0,Hn=function(Zn){Wt[Qn++]=Zn},Et=0;EtWt.length){var Wn=new Me(Qn+8+(rn-Et<<1));Wn.set(Wt),Wt=Wn}var Vn=ze.charCodeAt(Et);Vn<128||Ie?Hn(Vn):Vn<2048?(Hn(192|Vn>>6),Hn(128|Vn&63)):Vn>55295&&Vn<57344?(Vn=65536+(Vn&1047552)|ze.charCodeAt(++Et)&1023,Hn(240|Vn>>18),Hn(128|Vn>>12&63),Hn(128|Vn>>6&63),Hn(128|Vn&63)):(Hn(224|Vn>>12),Hn(128|Vn>>6&63),Hn(128|Vn&63))}return Bt(Wt,0,Qn)}function ir(ze,Ie){if(Ie){for(var st="",Et=0;Et65535&&Gt(9),Ie+=Et+4}return Ie},xt=function(ze,Ie,st,Et,rn,Wt,Qn,Hn){var Wn=Et.length,Vn=st.extra,Zn=Hn&&Hn.length,Gn=Nn(Vn);Ut(ze,Ie,Qn!=null?33639248:67324752),Ie+=4,Qn!=null&&(ze[Ie++]=20,ze[Ie++]=st.os),ze[Ie]=20,Ie+=2,ze[Ie++]=st.flag<<1|(Wt<0&&8),ze[Ie++]=rn&&8,ze[Ie++]=st.compression&255,ze[Ie++]=st.compression>>8;var ft=new Date(st.mtime==null?Date.now():st.mtime),Yt=ft.getFullYear()-1980;if((Yt<0||Yt>119)&&Gt(10),Ut(ze,Ie,Yt<<25|ft.getMonth()+1<<21|ft.getDate()<<16|ft.getHours()<<11|ft.getMinutes()<<5|ft.getSeconds()>>1),Ie+=4,Wt!=-1&&(Ut(ze,Ie,st.crc),Ut(ze,Ie+4,Wt<0?-Wt-2:Wt),Ut(ze,Ie+8,st.size)),Ut(ze,Ie+12,Wn),Ut(ze,Ie+14,Gn),Ie+=16,Qn!=null&&(Ut(ze,Ie,Zn),Ut(ze,Ie+6,st.attrs),Ut(ze,Ie+10,Qn),Ie+=14),ze.set(Et,Ie),Ie+=Wn,Gn)for(var Rt in Vn){var Kt=Vn[Rt],nn=Kt.length;Ut(ze,Ie,+Rt),Ut(ze,Ie+2,nn),ze.set(Kt,Ie+4),Ie+=4+nn}return Zn&&(ze.set(Hn,Ie),Ie+=Zn),Ie},Ft=function(ze,Ie,st,Et,rn){Ut(ze,Ie,101010256),Ut(ze,Ie+8,st),Ut(ze,Ie+10,st),Ut(ze,Ie+12,Et),Ut(ze,Ie+16,rn)},pn=null,Ln=null,wr=null,Rr=null;function Nr(ze,Ie,st){st||(st=Ie,Ie={}),typeof st!="function"&&Gt(7);var Et={};kr(ze,"",Et,Ie);var rn=Object.keys(Et),Wt=rn.length,Qn=0,Hn=0,Wn=Wt,Vn=new Array(Wt),Zn=[],Gn=function(){for(var nn=0;nn65535&&On(Gt(11,0,1),null),!Mn)On(null,it);else if(ln<16e4)try{On(null,yr(it,wn))}catch($n){On($n,null)}else Zn.push(ur(it,wn,On))},Kt=0;Kt65535&&Gt(11);var dn=Zn?yr(Wn,Vn):Wn,Rn=dn.length,it=vt();it.p(Wn),Et.push(Zt(Vn,{size:Wn.length,crc:it.d(),c:dn,f:Gn,m:Rt,u:ft!=Qn.length||Rt&&Yt.length!=Kt,o:rn,compression:Zn})),rn+=30+ft+nn+Rn,Wt+=76+2*(ft+nn)+(Kt||0)+Rn}for(var wn=new Me(Wt+22),Ht=rn,ln=Wt-rn,hn=0;hn65558)return Qn(Gt(13,0,1),null),rn;var Wn=le(ze,Hn+8);if(Wn){var Vn=Wn,Zn=Ee(ze,Hn+16),Gn=Zn==4294967295||Vn==65535;if(Gn){var ft=Ee(ze,Hn-12);Gn=Ee(ze,ft)==101075792,Gn&&(Vn=Wn=Ee(ze,ft+32),Zn=Ee(ze,ft+48))}for(var Yt=Ie&&Ie.filter,Rt=function(nn){var dn=dr(ze,Zn,Gn),Rn=dn[0],it=dn[1],wn=dn[2],Ht=dn[3],ln=dn[4],hn=dn[5],tn=Ar(ze,hn);Zn=ln;var cn=function(Nt,qt){Nt?(rn(),Qn(Nt,null)):(qt&&(Wt[Ht]=qt),--Wn||Qn(null,Wt))};if(!Yt||Yt({name:Ht,size:it,originalSize:wn,compression:Rn}))if(!Rn)cn(null,Bt(ze,tn,tn+it));else if(Rn==8){var er=ze.subarray(tn,tn+it);if(wn<524288||it>.8*wn)try{cn(null,Er(er,{out:new Me(wn)}))}catch(Nt){cn(Nt,null)}else Et.push(Kr(er,{size:wn},cn))}else cn(Gt(14,"unknown compression type "+Rn,1),null);else cn(null,null)},Kt=0;Kt65558)&&Gt(13);var rn=le(ze,Et+8);if(!rn)return{};var Wt=Ee(ze,Et+16),Qn=Wt==4294967295||rn==65535;if(Qn){var Hn=Ee(ze,Et-12);Qn=Ee(ze,Hn)==101075792,Qn&&(rn=Ee(ze,Hn+32),Wt=Ee(ze,Hn+48))}for(var Wn=Ie&&Ie.filter,Vn=0;Vn0&&Oe[Oe.length-1])&&(Cn[0]===6||Cn[0]===2)){ae=0;continue}if(Cn[0]===3&&(!Oe||Cn[1]>Oe[0]&&Cn[1]=55296&&me<=56319&&ae>10)+55296,lt%1024+56320)),(me+1===ae||ie.length>16384)&&(Oe+=String.fromCharCode.apply(String,ie),ie.length=0)}return Oe},ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ce=0;Ce>4,Dn[me++]=(lt&15)<<4|kt>>2,Dn[me++]=(kt&3)<<6|_t&63;return Cn},Le=function(ne){for(var ee=ne.length,ae=[],ie=0;ie>Ge,Te=1<>Ge,et=Ne+He,dt=et,$e=32,Bt=dt+$e,At=65536>>Je,mt=1<=0){if(ee<55296||ee>56319&&ee<=65535)return ae=this.index[ee>>Ge],ae=(ae<>Ge)],ae=(ae<>Je),ae=this.index[ae],ae+=ee>>Ge&Gt,ae=this.index[ae],ae=(ae<Ct?(me.push(!0),kt-=Ct):me.push(!1),["normal","auto","loose"].indexOf(ee)!==-1&&[8208,8211,12316,12448].indexOf(Oe)!==-1)return ie.push(lt),ae.push(Be);if(kt===Dt||kt===zt){if(lt===0)return ie.push(lt),ae.push(ht);var _t=ae[lt-1];return hr.indexOf(_t)===-1?(ie.push(ie[lt-1]),ae.push(_t)):(ie.push(lt),ae.push(ht))}if(ie.push(lt),kt===Bn)return ae.push(ee==="strict"?oe:fr);if(kt===Kr||kt===It)return ae.push(ht);if(kt===Er)return Oe>=131072&&Oe<=196605||Oe>=196608&&Oe<=262141?ae.push(fr):ae.push(ht);ae.push(kt)}),[ie,ae,me]},Gr=function(ne,ee,ae,ie){var me=ie[ae];if(Array.isArray(ne)?ne.indexOf(me)!==-1:ne===me)for(var Oe=ae;Oe<=ie.length;){Oe++;var lt=ie[Oe];if(lt===ee)return!0;if(lt!==yt)break}if(me===yt)for(var Oe=ae;Oe>0;){Oe--;var kt=ie[Oe];if(Array.isArray(ne)?ne.indexOf(kt)!==-1:ne===kt)for(var _t=ae;_t<=ie.length;){_t++;var lt=ie[_t];if(lt===ee)return!0;if(lt!==yt)break}if(kt!==yt)break}return!1},Ir=function(ne,ee){for(var ae=ne;ae>=0;){var ie=ee[ae];if(ie===yt)ae--;else return ie}return 0},Ur=function(ne,ee,ae,ie,me){if(ae[ie]===0)return Kn;var Oe=ie-1;if(Array.isArray(me)&&me[Oe]===!0)return Kn;var lt=Oe-1,kt=Oe+1,_t=ee[Oe],Cn=lt>=0?ee[lt]:0,Dn=ee[kt];if(_t===on&&Dn===jn)return Kn;if(zn.indexOf(_t)!==-1)return Dr;if(zn.indexOf(Dn)!==-1||en.indexOf(Dn)!==-1)return Kn;if(Ir(Oe,ee)===bt)return tr;if(Jn.get(ne[Oe])===zt||(_t===Vt||_t===un)&&Jn.get(ne[kt])===zt||_t===pt||Dn===pt||_t===Zt||[yt,se,Ue].indexOf(_t)===-1&&Dn===Zt||[gt,Mt,sn,we,Ut].indexOf(Dn)!==-1||Ir(Oe,ee)===re||Gr(de,re,Oe,ee)||Gr([gt,Mt],oe,Oe,ee)||Gr(Se,Se,Oe,ee))return Kn;if(_t===yt)return tr;if(_t===de||Dn===de)return Kn;if(Dn===Be||_t===Be)return tr;if([se,Ue,oe].indexOf(Dn)!==-1||_t===fe||Cn===vn&&cr.indexOf(_t)!==-1||_t===Ut&&Dn===vn||Dn===he||mn.indexOf(Dn)!==-1&&_t===le||mn.indexOf(_t)!==-1&&Dn===le||_t===St&&[fr,Vt,un].indexOf(Dn)!==-1||[fr,Vt,un].indexOf(_t)!==-1&&Dn===Ee||mn.indexOf(_t)!==-1&&Sn.indexOf(Dn)!==-1||Sn.indexOf(_t)!==-1&&mn.indexOf(Dn)!==-1||[St,Ee].indexOf(_t)!==-1&&(Dn===le||[re,Ue].indexOf(Dn)!==-1&&ee[kt+1]===le)||[re,Ue].indexOf(_t)!==-1&&Dn===le||_t===le&&[le,Ut,we].indexOf(Dn)!==-1)return Kn;if([le,Ut,we,gt,Mt].indexOf(Dn)!==-1)for(var Pn=Oe;Pn>=0;){var mr=ee[Pn];if(mr===le)return Kn;if([Ut,we].indexOf(mr)!==-1)Pn--;else break}if([St,Ee].indexOf(Dn)!==-1)for(var Pn=[gt,Mt].indexOf(_t)!==-1?lt:Oe;Pn>=0;){var mr=ee[Pn];if(mr===le)return Kn;if([Ut,we].indexOf(mr)!==-1)Pn--;else break}if(ur===_t&&[ur,yr,In,or].indexOf(Dn)!==-1||[yr,In].indexOf(_t)!==-1&&[yr,Xn].indexOf(Dn)!==-1||[Xn,or].indexOf(_t)!==-1&&Dn===Xn||sr.indexOf(_t)!==-1&&[he,Ee].indexOf(Dn)!==-1||sr.indexOf(Dn)!==-1&&_t===St||mn.indexOf(_t)!==-1&&mn.indexOf(Dn)!==-1||_t===we&&mn.indexOf(Dn)!==-1||mn.concat(le).indexOf(_t)!==-1&&Dn===re&&lr.indexOf(ne[kt])===-1||mn.concat(le).indexOf(Dn)!==-1&&_t===Mt)return Kn;if(_t===Mr&&Dn===Mr){for(var Bi=ae[Oe],Xr=1;Bi>0&&(Bi--,ee[Bi]===Mr);)Xr++;if(Xr%2!==0)return Kn}return _t===Vt&&Dn===un?Kn:tr},Lr=function(ne,ee){ee||(ee={lineBreak:"normal",wordBreak:"normal"});var ae=br(ne,ee.lineBreak),ie=ae[0],me=ae[1],Oe=ae[2];(ee.wordBreak==="break-all"||ee.wordBreak==="break-word")&&(me=me.map(function(kt){return[le,ht,Kr].indexOf(kt)!==-1?fr:kt}));var lt=ee.wordBreak==="keep-all"?Oe.map(function(kt,_t){return kt&&ne[_t]>=19968&&ne[_t]<=40959}):void 0;return[ie,me,lt]},qn=function(){function ne(ee,ae,ie,me){this.codePoints=ee,this.required=ae===Dr,this.start=ie,this.end=me}return ne.prototype.slice=function(){return Re.apply(void 0,this.codePoints.slice(this.start,this.end))},ne}(),yn=function(ne,ee){var ae=ke(ne),ie=Lr(ae,ee),me=ie[0],Oe=ie[1],lt=ie[2],kt=ae.length,_t=0,Cn=0;return{next:function(){if(Cn>=kt)return{done:!0,value:null};for(var Dn=Kn;Cn=nn&&ne<=57},qt=function(ne){return ne>=55296&&ne<=57343},Mn=function(ne){return Nt(ne)||ne>=ln&&ne<=tn||ne>=dn&&ne<=it},On=function(ne){return ne>=dn&&ne<=Ht},$n=function(ne){return ne>=ln&&ne<=er},Fr=function(ne){return On(ne)||$n(ne)},gr=function(ne){return ne>=Ie},Wr=function(ne){return ne===Tt||ne===jt||ne===_n},Qr=function(ne){return Fr(ne)||gr(ne)||ne===pn},ni=function(ne){return Qr(ne)||Nt(ne)||ne===Ln},Ai=function(ne){return ne>=Vn&&ne<=Zn||ne===Gn||ne>=ft&&ne<=Yt||ne===Rt},Jr=function(ne,ee){return ne!==Tn?!1:ee!==Tt},hi=function(ne,ee,ae){return ne===Ln?Qr(ee)||Jr(ee,ae):Qr(ne)?!0:!!(ne===Tn&&Jr(ne,ee))},ii=function(ne,ee,ae){return ne===rn||ne===Ln?Nt(ee)?!0:ee===Wn&&Nt(ae):Nt(ne===Wn?ee:ne)},$r=function(ne){var ee=0,ae=1;(ne[ee]===rn||ne[ee]===Ln)&&(ne[ee]===Ln&&(ae=-1),ee++);for(var ie=[];Nt(ne[ee]);)ie.push(ne[ee++]);var me=ie.length?parseInt(Re.apply(void 0,ie),10):0;ne[ee]===Wn&&ee++;for(var Oe=[];Nt(ne[ee]);)Oe.push(ne[ee++]);var lt=Oe.length,kt=lt?parseInt(Re.apply(void 0,Oe),10):0;(ne[ee]===hn||ne[ee]===Rn)&&ee++;var _t=1;(ne[ee]===rn||ne[ee]===Ln)&&(ne[ee]===Ln&&(_t=-1),ee++);for(var Cn=[];Nt(ne[ee]);)Cn.push(ne[ee++]);var Dn=Cn.length?parseInt(Re.apply(void 0,Cn),10):0;return ae*(me+kt*Math.pow(10,-lt))*Math.pow(10,_t*Dn)},ri={type:2},Or={type:3},ei={type:4},gi={type:13},ti={type:8},fi={type:21},Ei={type:9},Li={type:10},_a={type:11},Oa={type:12},Ma={type:14},da={type:23},qi={type:1},$i={type:25},na={type:24},Ca={type:26},ha={type:27},ma={type:28},ya={type:29},oi={type:31},mi={type:32},bi=function(){function ne(){this._value=[]}return ne.prototype.write=function(ee){this._value=this._value.concat(ke(ee))},ne.prototype.read=function(){for(var ee=[],ae=this.consumeToken();ae!==mi;)ee.push(ae),ae=this.consumeToken();return ee},ne.prototype.consumeToken=function(){var ee=this.consumeCodePoint();switch(ee){case ir:return this.consumeStringToken(ir);case Ar:var ae=this.peekCodePoint(0),ie=this.peekCodePoint(1),me=this.peekCodePoint(2);if(ni(ae)||Jr(ie,me)){var Oe=hi(ae,ie,me)?kr:rt,lt=this.consumeName();return{type:5,value:lt,flags:Oe}}break;case dr:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),gi;break;case Nn:return this.consumeStringToken(Nn);case xt:return ri;case Ft:return Or;case Et:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),Ma;break;case rn:if(ii(ee,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ee),this.consumeNumericToken();break;case Wt:return ei;case Ln:var kt=ee,_t=this.peekCodePoint(0),Cn=this.peekCodePoint(1);if(ii(kt,_t,Cn))return this.reconsumeCodePoint(ee),this.consumeNumericToken();if(hi(kt,_t,Cn))return this.reconsumeCodePoint(ee),this.consumeIdentLikeToken();if(_t===Ln&&Cn===Nr)return this.consumeCodePoint(),this.consumeCodePoint(),na;break;case Wn:if(ii(ee,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ee),this.consumeNumericToken();break;case nr:if(this.peekCodePoint(0)===Et)for(this.consumeCodePoint();;){var Dn=this.consumeCodePoint();if(Dn===Et&&(Dn=this.consumeCodePoint(),Dn===nr))return this.consumeToken();if(Dn===Kt)return this.consumeToken()}break;case Qn:return Ca;case Hn:return ha;case Rr:if(this.peekCodePoint(0)===wr&&this.peekCodePoint(1)===Ln&&this.peekCodePoint(2)===Ln)return this.consumeCodePoint(),this.consumeCodePoint(),$i;break;case rr:var Pn=this.peekCodePoint(0),mr=this.peekCodePoint(1),Bi=this.peekCodePoint(2);if(hi(Pn,mr,Bi)){var lt=this.consumeName();return{type:7,value:lt}}break;case Yn:return ma;case Tn:if(Jr(ee,this.peekCodePoint(0)))return this.reconsumeCodePoint(ee),this.consumeIdentLikeToken();break;case _r:return ya;case Br:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),ti;break;case qr:return _a;case ai:return Oa;case wn:case cn:var Xr=this.peekCodePoint(0),di=this.peekCodePoint(1);return Xr===rn&&(Mn(di)||di===li)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ee),this.consumeIdentLikeToken();case Ci:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),Ei;if(this.peekCodePoint(0)===Ci)return this.consumeCodePoint(),fi;break;case ze:if(this.peekCodePoint(0)===ar)return this.consumeCodePoint(),Li;break;case Kt:return mi}return Wr(ee)?(this.consumeWhiteSpace(),oi):Nt(ee)?(this.reconsumeCodePoint(ee),this.consumeNumericToken()):Qr(ee)?(this.reconsumeCodePoint(ee),this.consumeIdentLikeToken()):{type:6,value:Re(ee)}},ne.prototype.consumeCodePoint=function(){var ee=this._value.shift();return typeof ee=="undefined"?-1:ee},ne.prototype.reconsumeCodePoint=function(ee){this._value.unshift(ee)},ne.prototype.peekCodePoint=function(ee){return ee>=this._value.length?-1:this._value[ee]},ne.prototype.consumeUnicodeRangeToken=function(){for(var ee=[],ae=this.consumeCodePoint();Mn(ae)&&ee.length<6;)ee.push(ae),ae=this.consumeCodePoint();for(var ie=!1;ae===li&&ee.length<6;)ee.push(ae),ae=this.consumeCodePoint(),ie=!0;if(ie){var me=parseInt(Re.apply(void 0,ee.map(function(_t){return _t===li?nn:_t})),16),Oe=parseInt(Re.apply(void 0,ee.map(function(_t){return _t===li?tn:_t})),16);return{type:30,start:me,end:Oe}}var lt=parseInt(Re.apply(void 0,ee),16);if(this.peekCodePoint(0)===Ln&&Mn(this.peekCodePoint(1))){this.consumeCodePoint(),ae=this.consumeCodePoint();for(var kt=[];Mn(ae)&&kt.length<6;)kt.push(ae),ae=this.consumeCodePoint();var Oe=parseInt(Re.apply(void 0,kt),16);return{type:30,start:lt,end:Oe}}else return{type:30,start:lt,end:lt}},ne.prototype.consumeIdentLikeToken=function(){var ee=this.consumeName();return ee.toLowerCase()==="url"&&this.peekCodePoint(0)===xt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===xt?(this.consumeCodePoint(),{type:19,value:ee}):{type:20,value:ee}},ne.prototype.consumeUrlToken=function(){var ee=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Kt)return{type:22,value:""};var ae=this.peekCodePoint(0);if(ae===Nn||ae===ir){var ie=this.consumeStringToken(this.consumeCodePoint());return ie.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Kt||this.peekCodePoint(0)===Ft)?(this.consumeCodePoint(),{type:22,value:ie.value}):(this.consumeBadUrlRemnants(),da)}for(;;){var me=this.consumeCodePoint();if(me===Kt||me===Ft)return{type:22,value:Re.apply(void 0,ee)};if(Wr(me))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Kt||this.peekCodePoint(0)===Ft?(this.consumeCodePoint(),{type:22,value:Re.apply(void 0,ee)}):(this.consumeBadUrlRemnants(),da);if(me===ir||me===Nn||me===xt||Ai(me))return this.consumeBadUrlRemnants(),da;if(me===Tn)if(Jr(me,this.peekCodePoint(0)))ee.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),da;else ee.push(me)}},ne.prototype.consumeWhiteSpace=function(){for(;Wr(this.peekCodePoint(0));)this.consumeCodePoint()},ne.prototype.consumeBadUrlRemnants=function(){for(;;){var ee=this.consumeCodePoint();if(ee===Ft||ee===Kt)return;Jr(ee,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ne.prototype.consumeStringSlice=function(ee){for(var ae=5e4,ie="";ee>0;){var me=Math.min(ae,ee);ie+=Re.apply(void 0,this._value.splice(0,me)),ee-=me}return this._value.shift(),ie},ne.prototype.consumeStringToken=function(ee){var ae="",ie=0;do{var me=this._value[ie];if(me===Kt||me===void 0||me===ee)return ae+=this.consumeStringSlice(ie),{type:0,value:ae};if(me===Tt)return this._value.splice(0,ie),qi;if(me===Tn){var Oe=this._value[ie+1];Oe!==Kt&&Oe!==void 0&&(Oe===Tt?(ae+=this.consumeStringSlice(ie),ie=-1,this._value.shift()):Jr(me,Oe)&&(ae+=this.consumeStringSlice(ie),ae+=Re(this.consumeEscapedCodePoint()),ie=-1))}ie++}while(!0)},ne.prototype.consumeNumber=function(){var ee=[],ae=zr,ie=this.peekCodePoint(0);for((ie===rn||ie===Ln)&&ee.push(this.consumeCodePoint());Nt(this.peekCodePoint(0));)ee.push(this.consumeCodePoint());ie=this.peekCodePoint(0);var me=this.peekCodePoint(1);if(ie===Wn&&Nt(me))for(ee.push(this.consumeCodePoint(),this.consumeCodePoint()),ae=Lt;Nt(this.peekCodePoint(0));)ee.push(this.consumeCodePoint());ie=this.peekCodePoint(0),me=this.peekCodePoint(1);var Oe=this.peekCodePoint(2);if((ie===hn||ie===Rn)&&((me===rn||me===Ln)&&Nt(Oe)||Nt(me)))for(ee.push(this.consumeCodePoint(),this.consumeCodePoint()),ae=Lt;Nt(this.peekCodePoint(0));)ee.push(this.consumeCodePoint());return[$r(ee),ae]},ne.prototype.consumeNumericToken=function(){var ee=this.consumeNumber(),ae=ee[0],ie=ee[1],me=this.peekCodePoint(0),Oe=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(hi(me,Oe,lt)){var kt=this.consumeName();return{type:15,number:ae,flags:ie,unit:kt}}return me===xr?(this.consumeCodePoint(),{type:16,number:ae,flags:ie}):{type:17,number:ae,flags:ie}},ne.prototype.consumeEscapedCodePoint=function(){var ee=this.consumeCodePoint();if(Mn(ee)){for(var ae=Re(ee);Mn(this.peekCodePoint(0))&&ae.length<6;)ae+=Re(this.consumeCodePoint());Wr(this.peekCodePoint(0))&&this.consumeCodePoint();var ie=parseInt(ae,16);return ie===0||qt(ie)||ie>1114111?st:ie}return ee===Kt?st:ee},ne.prototype.consumeName=function(){for(var ee="";;){var ae=this.consumeCodePoint();if(ni(ae))ee+=Re(ae);else if(Jr(ae,this.peekCodePoint(0)))ee+=Re(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(ae),ee}},ne}(),Fi=function(){function ne(ee){this._tokens=ee}return ne.create=function(ee){var ae=new bi;return ae.write(ee),new ne(ae.read())},ne.parseValue=function(ee){return ne.create(ee).parseComponentValue()},ne.parseValues=function(ee){return ne.create(ee).parseComponentValues()},ne.prototype.parseComponentValue=function(){for(var ee=this.consumeToken();ee.type===31;)ee=this.consumeToken();if(ee.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ee);var ae=this.consumeComponentValue();do ee=this.consumeToken();while(ee.type===31);if(ee.type===32)return ae;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ne.prototype.parseComponentValues=function(){for(var ee=[];;){var ae=this.consumeComponentValue();if(ae.type===32)return ee;ee.push(ae),ee.push()}},ne.prototype.consumeComponentValue=function(){var ee=this.consumeToken();switch(ee.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ee.type);case 19:return this.consumeFunction(ee)}return ee},ne.prototype.consumeSimpleBlock=function(ee){for(var ae={type:ee,values:[]},ie=this.consumeToken();;){if(ie.type===32||wi(ie,ee))return ae;this.reconsumeToken(ie),ae.values.push(this.consumeComponentValue()),ie=this.consumeToken()}},ne.prototype.consumeFunction=function(ee){for(var ae={name:ee.value,values:[],type:18};;){var ie=this.consumeToken();if(ie.type===32||ie.type===3)return ae;this.reconsumeToken(ie),ae.values.push(this.consumeComponentValue())}},ne.prototype.consumeToken=function(){var ee=this._tokens.shift();return typeof ee=="undefined"?mi:ee},ne.prototype.reconsumeToken=function(ee){this._tokens.unshift(ee)},ne}(),Hi=function(ne){return ne.type===15},Xi=function(ne){return ne.type===17},Mi=function(ne){return ne.type===20},wa=function(ne){return ne.type===0},Ba=function(ne,ee){return Mi(ne)&&ne.value===ee},Qi=function(ne){return ne.type!==31},vr=function(ne){return ne.type!==31&&ne.type!==4},ui=function(ne){var ee=[],ae=[];return ne.forEach(function(ie){if(ie.type===4){if(ae.length===0)throw new Error("Error parsing function args, zero tokens for arg");ee.push(ae),ae=[];return}ie.type!==31&&ae.push(ie)}),ae.length&&ee.push(ae),ee},wi=function(ne,ee){return ee===11&&ne.type===12||ee===28&&ne.type===29?!0:ee===2&&ne.type===3},ka=function(ne){return ne.type===17||ne.type===15},ji=function(ne){return ne.type===16||ka(ne)},Ua=function(ne){return ne.length>1?[ne[0],ne[1]]:[ne[0]]},Ti={type:17,number:0,flags:zr},_A={type:16,number:50,flags:zr},fA={type:16,number:100,flags:zr},Za=function(ne,ee,ae){var ie=ne[0],me=ne[1];return[Vi(ie,ee),Vi(typeof me!="undefined"?me:ie,ae)]},Vi=function(ne,ee){if(ne.type===16)return ne.number/100*ee;if(Hi(ne))switch(ne.unit){case"rem":case"em":return 16*ne.number;case"px":default:return ne.number}return ne.number},Oi="deg",wA="grad",BA="rad",iA="turn",za={name:"angle",parse:function(ne,ee){if(ee.type===15)switch(ee.unit){case Oi:return Math.PI*ee.number/180;case wA:return Math.PI/200*ee.number;case BA:return ee.number;case iA:return Math.PI*2*ee.number}throw new Error("Unsupported angle type")}},KA=function(ne){return ne.type===15&&(ne.unit===Oi||ne.unit===wA||ne.unit===BA||ne.unit===iA)},kA=function(ne){var ee=ne.filter(Mi).map(function(ae){return ae.value}).join(" ");switch(ee){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ti,Ti];case"to top":case"bottom":return Na(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ti,fA];case"to right":case"left":return Na(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fA,fA];case"to bottom":case"top":return Na(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fA,Ti];case"to left":case"right":return Na(270)}return 0},Na=function(ne){return Math.PI*ne/180},aA={name:"color",parse:function(ne,ee){if(ee.type===18){var ae=Ni[ee.name];if(typeof ae=="undefined")throw new Error('Attempting to parse an unsupported color function "'+ee.name+'"');return ae(ne,ee.values)}if(ee.type===5){if(ee.value.length===3){var ie=ee.value.substring(0,1),me=ee.value.substring(1,2),Oe=ee.value.substring(2,3);return uA(parseInt(ie+ie,16),parseInt(me+me,16),parseInt(Oe+Oe,16),1)}if(ee.value.length===4){var ie=ee.value.substring(0,1),me=ee.value.substring(1,2),Oe=ee.value.substring(2,3),lt=ee.value.substring(3,4);return uA(parseInt(ie+ie,16),parseInt(me+me,16),parseInt(Oe+Oe,16),parseInt(lt+lt,16)/255)}if(ee.value.length===6){var ie=ee.value.substring(0,2),me=ee.value.substring(2,4),Oe=ee.value.substring(4,6);return uA(parseInt(ie,16),parseInt(me,16),parseInt(Oe,16),1)}if(ee.value.length===8){var ie=ee.value.substring(0,2),me=ee.value.substring(2,4),Oe=ee.value.substring(4,6),lt=ee.value.substring(6,8);return uA(parseInt(ie,16),parseInt(me,16),parseInt(Oe,16),parseInt(lt,16)/255)}}if(ee.type===20){var kt=pa[ee.value.toUpperCase()];if(typeof kt!="undefined")return kt}return pa.TRANSPARENT}},ga=function(ne){return(255&ne)===0},ua=function(ne){var ee=255&ne,ae=255&ne>>8,ie=255&ne>>16,me=255&ne>>24;return ee<255?"rgba("+me+","+ie+","+ae+","+ee/255+")":"rgb("+me+","+ie+","+ae+")"},uA=function(ne,ee,ae,ie){return(ne<<24|ee<<16|ae<<8|Math.round(ie*255)<<0)>>>0},UA=function(ne,ee){if(ne.type===17)return ne.number;if(ne.type===16){var ae=ee===3?1:255;return ee===3?ne.number/100*ae:Math.round(ne.number/100*ae)}return 0},DA=function(ne,ee){var ae=ee.filter(vr);if(ae.length===3){var ie=ae.map(UA),me=ie[0],Oe=ie[1],lt=ie[2];return uA(me,Oe,lt,1)}if(ae.length===4){var kt=ae.map(UA),me=kt[0],Oe=kt[1],lt=kt[2],_t=kt[3];return uA(me,Oe,lt,_t)}return 0};function qa(ne,ee,ae){return ae<0&&(ae+=1),ae>=1&&(ae-=1),ae<1/6?(ee-ne)*ae*6+ne:ae<1/2?ee:ae<2/3?(ee-ne)*6*(2/3-ae)+ne:ne}var fa=function(ne,ee){var ae=ee.filter(vr),ie=ae[0],me=ae[1],Oe=ae[2],lt=ae[3],kt=(ie.type===17?Na(ie.number):za.parse(ne,ie))/(Math.PI*2),_t=ji(me)?me.number/100:0,Cn=ji(Oe)?Oe.number/100:0,Dn=typeof lt!="undefined"&&ji(lt)?Vi(lt,1):1;if(_t===0)return uA(Cn*255,Cn*255,Cn*255,1);var Pn=Cn<=.5?Cn*(_t+1):Cn+_t-Cn*_t,mr=Cn*2-Pn,Bi=qa(mr,Pn,kt+1/3),Xr=qa(mr,Pn,kt),di=qa(mr,Pn,kt-1/3);return uA(Bi*255,Xr*255,di*255,Dn)},Ni={hsl:fa,hsla:fa,rgb:DA,rgba:DA},Di=function(ne,ee){return aA.parse(ne,Fi.create(ee).parseComponentValue())},pa={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ra={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ne,ee){return ee.map(function(ae){if(Mi(ae))switch(ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pa={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ha=function(ne,ee){var ae=aA.parse(ne,ee[0]),ie=ee[1];return ie&&ji(ie)?{color:ae,stop:ie}:{color:ae,stop:null}},IA=function(ne,ee){var ae=ne[0],ie=ne[ne.length-1];ae.stop===null&&(ae.stop=Ti),ie.stop===null&&(ie.stop=fA);for(var me=[],Oe=0,lt=0;ltOe?me.push(_t):me.push(Oe),Oe=_t}else me.push(null)}for(var Cn=null,lt=0;ltlt.optimumDistance)?{optimumCorner:kt,optimumDistance:Dn}:lt},{optimumDistance:me?1/0:-1/0,optimumCorner:null}).optimumCorner},gA=function(ne,ee,ae,ie,me){var Oe=0,lt=0;switch(ne.size){case 0:ne.shape===0?Oe=lt=Math.min(Math.abs(ee),Math.abs(ee-ie),Math.abs(ae),Math.abs(ae-me)):ne.shape===1&&(Oe=Math.min(Math.abs(ee),Math.abs(ee-ie)),lt=Math.min(Math.abs(ae),Math.abs(ae-me)));break;case 2:if(ne.shape===0)Oe=lt=Math.min(ia(ee,ae),ia(ee,ae-me),ia(ee-ie,ae),ia(ee-ie,ae-me));else if(ne.shape===1){var kt=Math.min(Math.abs(ae),Math.abs(ae-me))/Math.min(Math.abs(ee),Math.abs(ee-ie)),_t=$a(ie,me,ee,ae,!0),Cn=_t[0],Dn=_t[1];Oe=ia(Cn-ee,(Dn-ae)/kt),lt=kt*Oe}break;case 1:ne.shape===0?Oe=lt=Math.max(Math.abs(ee),Math.abs(ee-ie),Math.abs(ae),Math.abs(ae-me)):ne.shape===1&&(Oe=Math.max(Math.abs(ee),Math.abs(ee-ie)),lt=Math.max(Math.abs(ae),Math.abs(ae-me)));break;case 3:if(ne.shape===0)Oe=lt=Math.max(ia(ee,ae),ia(ee,ae-me),ia(ee-ie,ae),ia(ee-ie,ae-me));else if(ne.shape===1){var kt=Math.max(Math.abs(ae),Math.abs(ae-me))/Math.max(Math.abs(ee),Math.abs(ee-ie)),Pn=$a(ie,me,ee,ae,!1),Cn=Pn[0],Dn=Pn[1];Oe=ia(Cn-ee,(Dn-ae)/kt),lt=kt*Oe}break}return Array.isArray(ne.size)&&(Oe=Vi(ne.size[0],ie),lt=ne.size.length===2?Vi(ne.size[1],me):Oe),[Oe,lt]},LA=function(ne,ee){var ae=Na(180),ie=[];return ui(ee).forEach(function(me,Oe){if(Oe===0){var lt=me[0];if(lt.type===20&<.value==="to"){ae=kA(me);return}else if(KA(lt)){ae=za.parse(ne,lt);return}}var kt=Ha(ne,me);ie.push(kt)}),{angle:ae,stops:ie,type:1}},VA=function(ne,ee){var ae=Na(180),ie=[];return ui(ee).forEach(function(me,Oe){if(Oe===0){var lt=me[0];if(lt.type===20&&["top","left","right","bottom"].indexOf(lt.value)!==-1){ae=kA(me);return}else if(KA(lt)){ae=(za.parse(ne,lt)+Na(270))%Na(360);return}}var kt=Ha(ne,me);ie.push(kt)}),{angle:ae,stops:ie,type:1}},jo=function(ne,ee){var ae=Na(180),ie=[],me=1,Oe=0,lt=3,kt=[];return ui(ee).forEach(function(_t,Cn){var Dn=_t[0];if(Cn===0){if(Mi(Dn)&&Dn.value==="linear"){me=1;return}else if(Mi(Dn)&&Dn.value==="radial"){me=2;return}}if(Dn.type===18){if(Dn.name==="from"){var Pn=aA.parse(ne,Dn.values[0]);ie.push({stop:Ti,color:Pn})}else if(Dn.name==="to"){var Pn=aA.parse(ne,Dn.values[0]);ie.push({stop:fA,color:Pn})}else if(Dn.name==="color-stop"){var mr=Dn.values.filter(vr);if(mr.length===2){var Pn=aA.parse(ne,mr[1]),Bi=mr[0];Xi(Bi)&&ie.push({stop:{type:16,number:Bi.number*100,flags:Bi.flags},color:Pn})}}}}),me===1?{angle:(ae+Na(180))%Na(360),stops:ie,type:me}:{size:lt,shape:Oe,stops:ie,position:kt,type:me}},Do="closest-side",ZA="farthest-side",jA="closest-corner",eA="farthest-corner",tA="circle",cA="ellipse",mo="cover",Io="contain",ls=function(ne,ee){var ae=0,ie=3,me=[],Oe=[];return ui(ee).forEach(function(lt,kt){var _t=!0;if(kt===0){var Cn=!1;_t=lt.reduce(function(Pn,mr){if(Cn)if(Mi(mr))switch(mr.value){case"center":return Oe.push(_A),Pn;case"top":case"left":return Oe.push(Ti),Pn;case"right":case"bottom":return Oe.push(fA),Pn}else(ji(mr)||ka(mr))&&Oe.push(mr);else if(Mi(mr))switch(mr.value){case tA:return ae=0,!1;case cA:return ae=1,!1;case"at":return Cn=!0,!1;case Do:return ie=0,!1;case mo:case ZA:return ie=1,!1;case Io:case jA:return ie=2,!1;case eA:return ie=3,!1}else if(ka(mr)||ji(mr))return Array.isArray(ie)||(ie=[]),ie.push(mr),!1;return Pn},_t)}if(_t){var Dn=Ha(ne,lt);me.push(Dn)}}),{size:ie,shape:ae,stops:me,position:Oe,type:2}},zA=function(ne,ee){var ae=0,ie=3,me=[],Oe=[];return ui(ee).forEach(function(lt,kt){var _t=!0;if(kt===0?_t=lt.reduce(function(Dn,Pn){if(Mi(Pn))switch(Pn.value){case"center":return Oe.push(_A),!1;case"top":case"left":return Oe.push(Ti),!1;case"right":case"bottom":return Oe.push(fA),!1}else if(ji(Pn)||ka(Pn))return Oe.push(Pn),!1;return Dn},_t):kt===1&&(_t=lt.reduce(function(Dn,Pn){if(Mi(Pn))switch(Pn.value){case tA:return ae=0,!1;case cA:return ae=1,!1;case Io:case Do:return ie=0,!1;case ZA:return ie=1,!1;case jA:return ie=2,!1;case mo:case eA:return ie=3,!1}else if(ka(Pn)||ji(Pn))return Array.isArray(ie)||(ie=[]),ie.push(Pn),!1;return Dn},_t)),_t){var Cn=Ha(ne,lt);me.push(Cn)}}),{size:ie,shape:ae,stops:me,position:Oe,type:2}},us=function(ne){return ne.type===1},Yo=function(ne){return ne.type===2},TA={name:"image",parse:function(ne,ee){if(ee.type===22){var ae={url:ee.value,type:0};return ne.cache.addImage(ee.value),ae}if(ee.type===18){var ie=Lo[ee.name];if(typeof ie=="undefined")throw new Error('Attempting to parse an unsupported image function "'+ee.name+'"');return ie(ne,ee.values)}throw new Error("Unsupported image type "+ee.type)}};function Qo(ne){return!(ne.type===20&&ne.value==="none")&&(ne.type!==18||!!Lo[ne.name])}var Lo={"linear-gradient":LA,"-moz-linear-gradient":VA,"-ms-linear-gradient":VA,"-o-linear-gradient":VA,"-webkit-linear-gradient":VA,"radial-gradient":ls,"-moz-radial-gradient":zA,"-ms-radial-gradient":zA,"-o-radial-gradient":zA,"-webkit-radial-gradient":zA,"-webkit-gradient":jo},Xo={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ne,ee){if(ee.length===0)return[];var ae=ee[0];return ae.type===20&&ae.value==="none"?[]:ee.filter(function(ie){return vr(ie)&&Qo(ie)}).map(function(ie){return TA.parse(ne,ie)})}},Jo={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ne,ee){return ee.map(function(ae){if(Mi(ae))switch(ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qo={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ne,ee){return ui(ee).map(function(ae){return ae.filter(ji)}).map(Ua)}},lo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ne,ee){return ui(ee).map(function(ae){return ae.filter(Mi).map(function(ie){return ie.value}).join(" ")}).map(yo)}},yo=function(ne){switch(ne){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},YA;(function(ne){ne.AUTO="auto",ne.CONTAIN="contain",ne.COVER="cover"})(YA||(YA={}));var to={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ne,ee){return ui(ee).map(function(ae){return ae.filter(Da)})}},Da=function(ne){return Mi(ne)||ji(ne)},uo=function(ne){return{name:"border-"+ne+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},cs=uo("top"),$o=uo("right"),es=uo("bottom"),wo=uo("left"),no=function(ne){return{name:"border-radius-"+ne,initialValue:"0 0",prefix:!1,type:1,parse:function(ee,ae){return Ua(ae.filter(ji))}}},fs=no("top-left"),Bo=no("top-right"),XA=no("bottom-right"),ro=no("bottom-left"),co=function(ne){return{name:"border-"+ne+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ee,ae){switch(ae){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},io=co("top"),zi=co("right"),Wi=co("bottom"),Wa=co("left"),Ga=function(ne){return{name:"border-"+ne+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ee,ae){return Hi(ae)?ae.number:0}}},nA=Ga("top"),fo=Ga("right"),JA=Ga("bottom"),ho=Ga("left"),HA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"rtl":return 1;case"ltr":default:return 0}}},eu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ne,ee){return ee.filter(Mi).reduce(function(ae,ie){return ae|tu(ie.value)},0)}},tu=function(ne){switch(ne){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},nu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ru={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ne,ee){return ee.type===20&&ee.value==="normal"?0:ee.type===17||ee.type===15?ee.number:0}},Ds;(function(ne){ne.NORMAL="normal",ne.STRICT="strict"})(Ds||(Ds={}));var iu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"strict":return Ds.STRICT;case"normal":default:return Ds.NORMAL}}},MA={name:"line-height",initialValue:"normal",prefix:!1,type:4},AA=function(ne,ee){return Mi(ne)&&ne.value==="normal"?1.2*ee:ne.type===17?ee*ne.number:ji(ne)?Vi(ne,ee):ee},vA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ne,ee){return ee.type===20&&ee.value==="none"?null:TA.parse(ne,ee)}},sA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"inside":return 0;case"outside":default:return 1}}},To={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},WA=function(ne){return{name:"margin-"+ne,initialValue:"0",prefix:!1,type:4}},Is=WA("top"),au=WA("right"),Ul=WA("bottom"),Au=WA("left"),Js={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ne,ee){return ee.filter(Mi).map(function(ae){switch(ae.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ts={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"break-word":return"break-word";case"normal":default:return"normal"}}},Co=function(ne){return{name:"padding-"+ne,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qs=Co("top"),$s=Co("right"),Qs=Co("bottom"),Dl=Co("left"),ns={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ds={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ne,ee){switch(ee){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Il={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ne,ee){return ee.length===1&&Ba(ee[0],"none")?[]:ui(ee).map(function(ae){for(var ie={color:pa.TRANSPARENT,offsetX:Ti,offsetY:Ti,blur:Ti},me=0,Oe=0;Oe1?1:0],this.overflowWrap=pi(ee,ts,ae.overflowWrap),this.paddingTop=pi(ee,qs,ae.paddingTop),this.paddingRight=pi(ee,$s,ae.paddingRight),this.paddingBottom=pi(ee,Qs,ae.paddingBottom),this.paddingLeft=pi(ee,Dl,ae.paddingLeft),this.paintOrder=pi(ee,Bu,ae.paintOrder),this.position=pi(ee,ds,ae.position),this.textAlign=pi(ee,ns,ae.textAlign),this.textDecorationColor=pi(ee,Ml,(ie=ae.textDecorationColor)!==null&&ie!==void 0?ie:ae.color),this.textDecorationLine=pi(ee,su,(me=ae.textDecorationLine)!==null&&me!==void 0?me:ae.textDecoration),this.textShadow=pi(ee,Il,ae.textShadow),this.textTransform=pi(ee,hs,ae.textTransform),this.transform=pi(ee,ou,ae.transform),this.transformOrigin=pi(ee,OA,ae.transformOrigin),this.visibility=pi(ee,va,ae.visibility),this.webkitTextStrokeColor=pi(ee,Rl,ae.webkitTextStrokeColor),this.webkitTextStrokeWidth=pi(ee,vs,ae.webkitTextStrokeWidth),this.wordBreak=pi(ee,xo,ae.wordBreak),this.zIndex=pi(ee,Eo,ae.zIndex)}return ne.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},ne.prototype.isTransparent=function(){return ga(this.backgroundColor)},ne.prototype.isTransformed=function(){return this.transform!==null},ne.prototype.isPositioned=function(){return this.position!==0},ne.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ne.prototype.isFloating=function(){return this.float!==0},ne.prototype.isInlineLevel=function(){return oA(this.display,4)||oA(this.display,33554432)||oA(this.display,268435456)||oA(this.display,536870912)||oA(this.display,67108864)||oA(this.display,134217728)},ne}(),Ol=function(){function ne(ee,ae){this.content=pi(ee,Nl,ae.content),this.quotes=pi(ee,Hl,ae.quotes)}return ne}(),Al=function(){function ne(ee,ae){this.counterIncrement=pi(ee,wu,ae.counterIncrement),this.counterReset=pi(ee,gs,ae.counterReset)}return ne}(),pi=function(ne,ee,ae){var ie=new bi,me=ae!==null&&typeof ae!="undefined"?ae.toString():ee.initialValue;ie.write(me);var Oe=new Fi(ie.read());switch(ee.type){case 2:var lt=Oe.parseComponentValue();return ee.parse(ne,Mi(lt)?lt.value:ee.initialValue);case 0:return ee.parse(ne,Oe.parseComponentValue());case 1:return ee.parse(ne,Oe.parseComponentValues());case 4:return Oe.parseComponentValue();case 3:switch(ee.format){case"angle":return za.parse(ne,Oe.parseComponentValue());case"color":return aA.parse(ne,Oe.parseComponentValue());case"image":return TA.parse(ne,Oe.parseComponentValue());case"length":var kt=Oe.parseComponentValue();return ka(kt)?kt:Ti;case"length-percentage":var _t=Oe.parseComponentValue();return ji(_t)?_t:Ti;case"time":return el.parse(ne,Oe.parseComponentValue())}break}},rs="data-html2canvas-debug",ol=function(ne){var ee=ne.getAttribute(rs);switch(ee){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ms=function(ne,ee){var ae=ol(ne);return ae===1||ee===ae},$A=function(){function ne(ee,ae){if(this.context=ee,this.textNodes=[],this.elements=[],this.flags=0,ms(ae,3))debugger;this.styles=new al(ee,window.getComputedStyle(ae,null)),Vl(ae)&&(this.styles.animationDuration.some(function(ie){return ie>0})&&(ae.style.animationDuration="0s"),this.styles.transform!==null&&(ae.style.transform="none")),this.bounds=ve(this.context,ae),ms(ae,4)&&(this.flags|=16)}return ne}(),sl="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ys=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Hs=0;Hs>4,Dn[me++]=(lt&15)<<4|kt>>2,Dn[me++]=(kt&3)<<6|_t&63;return Cn},Rs=function(ne){for(var ee=ne.length,ae=[],ie=0;ie>Fo,fl=1<>Fo,dl=cl+No,Os=dl,hl=32,Cs=Os+hl,Cu=65536>>So,Ho=1<=0){if(ee<55296||ee>56319&&ee<=65535)return ae=this.index[ee>>Fo],ae=(ae<>Fo)],ae=(ae<>So),ae=this.index[ae],ae+=ee>>Fo&Pl,ae=this.index[ae],ae=(ae<=55296&&me<=56319&&ae>10)+55296,lt%1024+56320)),(me+1===ae||ie.length>16384)&&(Oe+=String.fromCharCode.apply(String,ie),ie.length=0)}return Oe},qe=is(sl),ot="\xD7",En="\xF7",an=function(ne){return qe.get(ne)},Tr=function(ne,ee,ae){var ie=ae-2,me=ee[ie],Oe=ee[ae-1],lt=ee[ae];if(Oe===Ks&<===go)return ot;if(Oe===Ks||Oe===go||Oe===_o||lt===Ks||lt===go||lt===_o)return En;if(Oe===pl&&[pl,gl,Kl,bA].indexOf(lt)!==-1||(Oe===Kl||Oe===gl)&&(lt===gl||lt===Zs)||(Oe===bA||Oe===Zs)&<===Zs||lt===Zl||lt===as||lt===uu||Oe===lu)return ot;if(Oe===Zl&<===z){for(;me===as;)me=ee[--ie];if(me===z)return ot}if(Oe===ye&<===ye){for(var kt=0;me===ye;)kt++,me=ee[--ie];if(kt%2===0)return ot}return En},Xt=function(ne){var ee=Ae(ne),ae=ee.length,ie=0,me=0,Oe=ee.map(an);return{next:function(){if(ie>=ae)return{done:!0,value:null};for(var lt=ot;ielt.x||Dn.y>lt.y;return lt=Dn,Cn===0?!0:Pn});return ne.body.removeChild(ee),kt},Cr=function(){return typeof new Image().crossOrigin!="undefined"},xi=function(){return typeof new XMLHttpRequest().responseType=="string"},xa=function(ne){var ee=new Image,ae=ne.createElement("canvas"),ie=ae.getContext("2d");if(!ie)return!1;ee.src="data:image/svg+xml,";try{ie.drawImage(ee,0,0),ae.toDataURL()}catch(me){return!1}return!0},Pi=function(ne){return ne[0]===0&&ne[1]===255&&ne[2]===0&&ne[3]===255},Ki=function(ne){var ee=ne.createElement("canvas"),ae=100;ee.width=ae,ee.height=ae;var ie=ee.getContext("2d");if(!ie)return Promise.reject(!1);ie.fillStyle="rgb(0, 255, 0)",ie.fillRect(0,0,ae,ae);var me=new Image,Oe=ee.toDataURL();me.src=Oe;var lt=aa(ae,ae,0,0,me);return ie.fillStyle="red",ie.fillRect(0,0,ae,ae),Ri(lt).then(function(kt){ie.drawImage(kt,0,0);var _t=ie.getImageData(0,0,ae,ae).data;ie.fillStyle="red",ie.fillRect(0,0,ae,ae);var Cn=ne.createElement("div");return Cn.style.backgroundImage="url("+Oe+")",Cn.style.height=ae+"px",Pi(_t)?Ri(aa(ae,ae,0,0,Cn)):Promise.reject(!1)}).then(function(kt){return ie.drawImage(kt,0,0),Pi(ie.getImageData(0,0,ae,ae).data)}).catch(function(){return!1})},aa=function(ne,ee,ae,ie,me){var Oe="http://www.w3.org/2000/svg",lt=document.createElementNS(Oe,"svg"),kt=document.createElementNS(Oe,"foreignObject");return lt.setAttributeNS(null,"width",ne.toString()),lt.setAttributeNS(null,"height",ee.toString()),kt.setAttributeNS(null,"width","100%"),kt.setAttributeNS(null,"height","100%"),kt.setAttributeNS(null,"x",ae.toString()),kt.setAttributeNS(null,"y",ie.toString()),kt.setAttributeNS(null,"externalResourcesRequired","true"),lt.appendChild(kt),kt.appendChild(me),lt},Ri=function(ne){return new Promise(function(ee,ae){var ie=new Image;ie.onload=function(){return ee(ie)},ie.onerror=ae,ie.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ne))})},Hr={get SUPPORT_RANGE_BOUNDS(){var ne=ci(document);return Object.defineProperty(Hr,"SUPPORT_RANGE_BOUNDS",{value:ne}),ne},get SUPPORT_WORD_BREAKING(){var ne=Hr.SUPPORT_RANGE_BOUNDS&&Zr(document);return Object.defineProperty(Hr,"SUPPORT_WORD_BREAKING",{value:ne}),ne},get SUPPORT_SVG_DRAWING(){var ne=xa(document);return Object.defineProperty(Hr,"SUPPORT_SVG_DRAWING",{value:ne}),ne},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ne=typeof Array.from=="function"&&typeof window.fetch=="function"?Ki(document):Promise.resolve(!1);return Object.defineProperty(Hr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ne}),ne},get SUPPORT_CORS_IMAGES(){var ne=Cr();return Object.defineProperty(Hr,"SUPPORT_CORS_IMAGES",{value:ne}),ne},get SUPPORT_RESPONSE_TYPE(){var ne=xi();return Object.defineProperty(Hr,"SUPPORT_RESPONSE_TYPE",{value:ne}),ne},get SUPPORT_CORS_XHR(){var ne="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Hr,"SUPPORT_CORS_XHR",{value:ne}),ne},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var ne=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Hr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:ne}),ne}},Gi=function(){function ne(ee,ae){this.text=ee,this.bounds=ae}return ne}(),La=function(ne,ee,ae,ie){var me=sa(ee,ae),Oe=[],lt=0;return me.forEach(function(kt){if(ae.textDecorationLine.length||kt.trim().length>0)if(Hr.SUPPORT_RANGE_BOUNDS){var _t=Ea(ie,lt,kt.length).getClientRects();if(_t.length>1){var Cn=oa(kt),Dn=0;Cn.forEach(function(mr){Oe.push(new Gi(mr,_e.fromDOMRectList(ne,Ea(ie,Dn+lt,mr.length).getClientRects()))),Dn+=mr.length})}else Oe.push(new Gi(kt,_e.fromDOMRectList(ne,_t)))}else{var Pn=ie.splitText(kt.length);Oe.push(new Gi(kt,ki(ne,ie))),ie=Pn}else Hr.SUPPORT_RANGE_BOUNDS||(ie=ie.splitText(kt.length));lt+=kt.length}),Oe},ki=function(ne,ee){var ae=ee.ownerDocument;if(ae){var ie=ae.createElement("html2canvaswrapper");ie.appendChild(ee.cloneNode(!0));var me=ee.parentNode;if(me){me.replaceChild(ie,ee);var Oe=ve(ne,ie);return ie.firstChild&&me.replaceChild(ie.firstChild,ie),Oe}}return _e.EMPTY},Ea=function(ne,ee,ae){var ie=ne.ownerDocument;if(!ie)throw new Error("Node has no owner document");var me=ie.createRange();return me.setStart(ne,ee),me.setEnd(ne,ee+ae),me},oa=function(ne){if(Hr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ee=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(ee.segment(ne)).map(function(ae){return ae.segment})}return kn(ne)},Zi=function(ne,ee){if(Hr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ae=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ae.segment(ne)).map(function(ie){return ie.segment})}return vl(ne,ee)},sa=function(ne,ee){return ee.letterSpacing!==0?oa(ne):Zi(ne,ee)},Po=[32,160,4961,65792,65793,4153,4241],vl=function(ne,ee){for(var ae=yn(ne,{lineBreak:ee.lineBreak,wordBreak:ee.overflowWrap==="break-word"?"break-word":ee.wordBreak}),ie=[],me,Oe=function(){if(me.value){var lt=me.value.slice(),kt=ke(lt),_t="";kt.forEach(function(Cn){Po.indexOf(Cn)===-1?_t+=Re(Cn):(_t.length&&ie.push(_t),ie.push(Re(Cn)),_t="")}),_t.length&&ie.push(_t)}};!(me=ae.next()).done;)Oe();return ie},Ko=function(){function ne(ee,ae,ie){this.text=zs(ae.data,ie.textTransform),this.textBounds=La(ee,this.text,ie,ae)}return ne}(),zs=function(ne,ee){switch(ee){case 1:return ne.toLowerCase();case 3:return ne.replace(Wu,ml);case 2:return ne.toUpperCase();default:return ne}},Wu=/(^|\s|:|-|\(|\))([a-z])/g,ml=function(ne,ee,ae){return ne.length>0?ee+ae.toUpperCase():ne},cu=function(ne){ce(ee,ne);function ee(ae,ie){var me=ne.call(this,ae,ie)||this;return me.src=ie.currentSrc||ie.src,me.intrinsicWidth=ie.naturalWidth,me.intrinsicHeight=ie.naturalHeight,me.context.cache.addImage(me.src),me}return ee}($A),fu=function(ne){ce(ee,ne);function ee(ae,ie){var me=ne.call(this,ae,ie)||this;return me.canvas=ie,me.intrinsicWidth=ie.width,me.intrinsicHeight=ie.height,me}return ee}($A),xu=function(ne){ce(ee,ne);function ee(ae,ie){var me=ne.call(this,ae,ie)||this,Oe=new XMLSerializer,lt=ve(ae,ie);return ie.setAttribute("width",lt.width+"px"),ie.setAttribute("height",lt.height+"px"),me.svg="data:image/svg+xml,"+encodeURIComponent(Oe.serializeToString(ie)),me.intrinsicWidth=ie.width.baseVal.value,me.intrinsicHeight=ie.height.baseVal.value,me.context.cache.addImage(me.svg),me}return ee}($A),zl=function(ne){ce(ee,ne);function ee(ae,ie){var me=ne.call(this,ae,ie)||this;return me.value=ie.value,me}return ee}($A),Wl=function(ne){ce(ee,ne);function ee(ae,ie){var me=ne.call(this,ae,ie)||this;return me.start=ie.start,me.reversed=typeof ie.reversed=="boolean"&&ie.reversed===!0,me}return ee}($A),Gu=[{type:15,flags:0,unit:"px",number:3}],Eu=[{type:16,flags:0,number:50}],bu=function(ne){return ne.width>ne.height?new _e(ne.left+(ne.width-ne.height)/2,ne.top,ne.height,ne.height):ne.width0)ae.textNodes.push(new Ko(ne,me,ae.styles));else if(Gs(me))if(gu(me)&&me.assignedNodes)me.assignedNodes().forEach(function(kt){return wl(ne,kt,ae,ie)});else{var lt=Uu(ne,me);lt.styles.isVisible()&&(Iu(me,lt,ie)?lt.flags|=4:du(lt.styles)&&(lt.flags|=2),ju.indexOf(me.tagName)!==-1&&(lt.flags|=8),ae.elements.push(lt),me.slot,me.shadowRoot?wl(ne,me.shadowRoot,lt,ie):!Cl(me)&&!Lu(me)&&!xl(me)&&wl(ne,me,lt,ie))}},Uu=function(ne,ee){return Es(ee)?new cu(ne,ee):Tu(ee)?new fu(ne,ee):Lu(ee)?new xu(ne,ee):Qu(ee)?new zl(ne,ee):jl(ee)?new Wl(ne,ee):Yu(ee)?new Gl(ne,ee):xl(ee)?new Su(ne,ee):Cl(ee)?new _u(ne,ee):ao(ee)?new ku(ne,ee):new $A(ne,ee)},Du=function(ne,ee){var ae=Uu(ne,ee);return ae.flags|=4,wl(ne,ee,ae,ae),ae},Iu=function(ne,ee,ae){return ee.styles.isPositionedWithZIndex()||ee.styles.opacity<1||ee.styles.isTransformed()||Ka(ne)&&ae.styles.isTransparent()},du=function(ne){return ne.isPositioned()||ne.isFloating()},hu=function(ne){return ne.nodeType===Node.TEXT_NODE},Gs=function(ne){return ne.nodeType===Node.ELEMENT_NODE},Vl=function(ne){return Gs(ne)&&typeof ne.style!="undefined"&&!Zo(ne)},Zo=function(ne){return typeof ne.className=="object"},Qu=function(ne){return ne.tagName==="LI"},jl=function(ne){return ne.tagName==="OL"},Yu=function(ne){return ne.tagName==="INPUT"},Xu=function(ne){return ne.tagName==="HTML"},Lu=function(ne){return ne.tagName==="svg"},Ka=function(ne){return ne.tagName==="BODY"},Tu=function(ne){return ne.tagName==="CANVAS"},Yl=function(ne){return ne.tagName==="VIDEO"},Es=function(ne){return ne.tagName==="IMG"},ao=function(ne){return ne.tagName==="IFRAME"},Bl=function(ne){return ne.tagName==="STYLE"},pu=function(ne){return ne.tagName==="SCRIPT"},Cl=function(ne){return ne.tagName==="TEXTAREA"},xl=function(ne){return ne.tagName==="SELECT"},gu=function(ne){return ne.tagName==="SLOT"},vu=function(ne){return ne.tagName.indexOf("-")>0},Mu=function(){function ne(){this.counters={}}return ne.prototype.getCounterValue=function(ee){var ae=this.counters[ee];return ae&&ae.length?ae[ae.length-1]:1},ne.prototype.getCounterValues=function(ee){var ae=this.counters[ee];return ae||[]},ne.prototype.pop=function(ee){var ae=this;ee.forEach(function(ie){return ae.counters[ie].pop()})},ne.prototype.parse=function(ee){var ae=this,ie=ee.counterIncrement,me=ee.counterReset,Oe=!0;ie!==null&&ie.forEach(function(kt){var _t=ae.counters[kt.counter];_t&&kt.increment!==0&&(Oe=!1,_t.length||_t.push(1),_t[Math.max(0,_t.length-1)]+=kt.increment)});var lt=[];return Oe&&me.forEach(function(kt){var _t=ae.counters[kt.counter];lt.push(kt.counter),_t||(_t=ae.counters[kt.counter]=[]),_t.push(kt.reset)}),lt},ne}(),Nu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xl={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Hu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Ia={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},bs=function(ne,ee,ae,ie,me,Oe){return neae?E(ne,me,Oe.length>0):ie.integers.reduce(function(lt,kt,_t){for(;ne>=kt;)ne-=kt,lt+=ie.values[_t];return lt},"")+Oe},Ru=function(ne,ee,ae,ie){var me="";do ae||ne--,me=ie(ne)+me,ne/=ee;while(ne*ee>=ee);return me},Va=function(ne,ee,ae,ie,me){var Oe=ae-ee+1;return(ne<0?"-":"")+(Ru(Math.abs(ne),Oe,ie,function(lt){return Re(Math.floor(lt%Oe)+ee)})+me)},Fs=function(ne,ee,ae){ae===void 0&&(ae=". ");var ie=ee.length;return Ru(Math.abs(ne),ie,!1,function(me){return ee[Math.floor(me%ie)]})+ae},zo=1,os=2,Ta=4,El=8,Wo=function(ne,ee,ae,ie,me,Oe){if(ne<-9999||ne>9999)return E(ne,4,me.length>0);var lt=Math.abs(ne),kt=me;if(lt===0)return ee[0]+kt;for(var _t=0;lt>0&&_t<=4;_t++){var Cn=lt%10;Cn===0&&oA(Oe,zo)&&kt!==""?kt=ee[Cn]+kt:Cn>1||Cn===1&&_t===0||Cn===1&&_t===1&&oA(Oe,os)||Cn===1&&_t===1&&oA(Oe,Ta)&&ne>100||Cn===1&&_t>1&&oA(Oe,El)?kt=ee[Cn]+(_t>0?ae[_t-1]:"")+kt:Cn===1&&_t>0&&(kt=ae[_t-1]+kt),lt=Math.floor(lt/10)}return(ne<0?ie:"")+kt},Ou="\u5341\u767E\u5343\u842C",bl="\u62FE\u4F70\u4EDF\u842C",a="\u30DE\u30A4\u30CA\u30B9",y="\uB9C8\uC774\uB108\uC2A4",E=function(ne,ee,ae){var ie=ae?". ":"",me=ae?"\u3001":"",Oe=ae?", ":"",lt=ae?" ":"";switch(ee){case 0:return"\u2022"+lt;case 1:return"\u25E6"+lt;case 2:return"\u25FE"+lt;case 5:var kt=Va(ne,48,57,!0,ie);return kt.length<4?"0"+kt:kt;case 4:return Fs(ne,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",me);case 6:return bs(ne,1,3999,Nu,3,ie).toLowerCase();case 7:return bs(ne,1,3999,Nu,3,ie);case 8:return Va(ne,945,969,!1,ie);case 9:return Va(ne,97,122,!1,ie);case 10:return Va(ne,65,90,!1,ie);case 11:return Va(ne,1632,1641,!0,ie);case 12:case 49:return bs(ne,1,9999,Xl,3,ie);case 35:return bs(ne,1,9999,Xl,3,ie).toLowerCase();case 13:return Va(ne,2534,2543,!0,ie);case 14:case 30:return Va(ne,6112,6121,!0,ie);case 15:return Fs(ne,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",me);case 16:return Fs(ne,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",me);case 17:case 48:return Wo(ne,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ou,"\u8CA0",me,os|Ta|El);case 47:return Wo(ne,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",bl,"\u8CA0",me,zo|os|Ta|El);case 42:return Wo(ne,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ou,"\u8D1F",me,os|Ta|El);case 41:return Wo(ne,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",bl,"\u8D1F",me,zo|os|Ta|El);case 26:return Wo(ne,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,me,0);case 25:return Wo(ne,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,me,zo|os|Ta);case 31:return Wo(ne,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",y,Oe,zo|os|Ta);case 33:return Wo(ne,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",y,Oe,0);case 32:return Wo(ne,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",y,Oe,zo|os|Ta);case 18:return Va(ne,2406,2415,!0,ie);case 20:return bs(ne,1,19999,Ia,3,ie);case 21:return Va(ne,2790,2799,!0,ie);case 22:return Va(ne,2662,2671,!0,ie);case 22:return bs(ne,1,10999,Hu,3,ie);case 23:return Fs(ne,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Fs(ne,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Va(ne,3302,3311,!0,ie);case 28:return Fs(ne,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",me);case 29:return Fs(ne,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",me);case 34:return Va(ne,3792,3801,!0,ie);case 37:return Va(ne,6160,6169,!0,ie);case 38:return Va(ne,4160,4169,!0,ie);case 39:return Va(ne,2918,2927,!0,ie);case 40:return Va(ne,1776,1785,!0,ie);case 43:return Va(ne,3046,3055,!0,ie);case 44:return Va(ne,3174,3183,!0,ie);case 45:return Va(ne,3664,3673,!0,ie);case 46:return Va(ne,3872,3881,!0,ie);case 3:default:return Va(ne,48,57,!0,ie)}},x="data-html2canvas-ignore",b=function(){function ne(ee,ae,ie){if(this.context=ee,this.options=ie,this.scrolledElements=[],this.referenceElement=ae,this.counters=new Mu,this.quoteDepth=0,!ae.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(ae.ownerDocument.documentElement,!1)}return ne.prototype.toIFrame=function(ee,ae){var ie=this,me=pe(ee,ae);if(!me.contentWindow)return Promise.reject("Unable to find iframe window");var Oe=ee.defaultView.pageXOffset,lt=ee.defaultView.pageYOffset,kt=me.contentWindow,_t=kt.document,Cn=je(me).then(function(){return Ke(ie,void 0,void 0,function(){var Dn,Pn;return Me(this,function(mr){switch(mr.label){case 0:return this.scrolledElements.forEach(pr),kt&&(kt.scrollTo(ae.left,ae.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(kt.scrollY!==ae.top||kt.scrollX!==ae.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(kt.scrollX-ae.left,kt.scrollY-ae.top,0,0))),Dn=this.options.onclone,Pn=this.clonedReferenceElement,typeof Pn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:_t.fonts&&_t.fonts.ready?[4,_t.fonts.ready]:[3,2];case 1:mr.sent(),mr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,De(_t)]:[3,4];case 3:mr.sent(),mr.label=4;case 4:return typeof Dn=="function"?[2,Promise.resolve().then(function(){return Dn(_t,Pn)}).then(function(){return me})]:[2,me]}})})});return _t.open(),_t.write(Un(document.doctype)+""),bn(this.referenceElement.ownerDocument,Oe,lt),_t.replaceChild(_t.adoptNode(this.documentElement),_t.documentElement),_t.close(),Cn},ne.prototype.createElementClone=function(ee){if(ms(ee,2))debugger;if(Tu(ee))return this.createCanvasClone(ee);if(Yl(ee))return this.createVideoClone(ee);if(Bl(ee))return this.createStyleClone(ee);var ae=ee.cloneNode(!1);return Es(ae)&&(Es(ee)&&ee.currentSrc&&ee.currentSrc!==ee.src&&(ae.src=ee.currentSrc,ae.srcset=""),ae.loading==="lazy"&&(ae.loading="eager")),vu(ae)?this.createCustomElementClone(ae):ae},ne.prototype.createCustomElementClone=function(ee){var ae=document.createElement("html2canvascustomelement");return Pt(ee.style,ae),ae},ne.prototype.createStyleClone=function(ee){try{var ae=ee.sheet;if(ae&&ae.cssRules){var ie=[].slice.call(ae.cssRules,0).reduce(function(Oe,lt){return lt&&typeof lt.cssText=="string"?Oe+lt.cssText:Oe},""),me=ee.cloneNode(!1);return me.textContent=ie,me}}catch(Oe){if(this.context.logger.error("Unable to access cssRules property",Oe),Oe.name!=="SecurityError")throw Oe}return ee.cloneNode(!1)},ne.prototype.createCanvasClone=function(ee){var ae;if(this.options.inlineImages&&ee.ownerDocument){var ie=ee.ownerDocument.createElement("img");try{return ie.src=ee.toDataURL(),ie}catch(Cn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ee)}}var me=ee.cloneNode(!1);try{me.width=ee.width,me.height=ee.height;var Oe=ee.getContext("2d"),lt=me.getContext("2d");if(lt)if(!this.options.allowTaint&&Oe)lt.putImageData(Oe.getImageData(0,0,ee.width,ee.height),0,0);else{var kt=(ae=ee.getContext("webgl2"))!==null&&ae!==void 0?ae:ee.getContext("webgl");if(kt){var _t=kt.getContextAttributes();(_t==null?void 0:_t.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ee)}lt.drawImage(ee,0,0)}return me}catch(Cn){this.context.logger.info("Unable to clone canvas as it is tainted",ee)}return me},ne.prototype.createVideoClone=function(ee){var ae=ee.ownerDocument.createElement("canvas");ae.width=ee.offsetWidth,ae.height=ee.offsetHeight;var ie=ae.getContext("2d");try{return ie&&(ie.drawImage(ee,0,0,ae.width,ae.height),this.options.allowTaint||ie.getImageData(0,0,ae.width,ae.height)),ae}catch(Oe){this.context.logger.info("Unable to clone video as it is tainted",ee)}var me=ee.ownerDocument.createElement("canvas");return me.width=ee.offsetWidth,me.height=ee.offsetHeight,me},ne.prototype.appendChildNode=function(ee,ae,ie){(!Gs(ae)||!pu(ae)&&!ae.hasAttribute(x)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(ae)))&&(!this.options.copyStyles||!Gs(ae)||!Bl(ae))&&ee.appendChild(this.cloneNode(ae,ie))},ne.prototype.cloneChildNodes=function(ee,ae,ie){for(var me=this,Oe=ee.shadowRoot?ee.shadowRoot.firstChild:ee.firstChild;Oe;Oe=Oe.nextSibling)if(Gs(Oe)&&gu(Oe)&&typeof Oe.assignedNodes=="function"){var lt=Oe.assignedNodes();lt.length&<.forEach(function(kt){return me.appendChildNode(ae,kt,ie)})}else this.appendChildNode(ae,Oe,ie)},ne.prototype.cloneNode=function(ee,ae){if(hu(ee))return document.createTextNode(ee.data);if(!ee.ownerDocument)return ee.cloneNode(!1);var ie=ee.ownerDocument.defaultView;if(ie&&Gs(ee)&&(Vl(ee)||Zo(ee))){var me=this.createElementClone(ee);me.style.transitionProperty="none";var Oe=ie.getComputedStyle(ee),lt=ie.getComputedStyle(ee,":before"),kt=ie.getComputedStyle(ee,":after");this.referenceElement===ee&&Vl(me)&&(this.clonedReferenceElement=me),Ka(me)&&vi(me);var _t=this.counters.parse(new Al(this.context,Oe)),Cn=this.resolvePseudoContent(ee,me,lt,ue.BEFORE);vu(ee)&&(ae=!0),Yl(ee)||this.cloneChildNodes(ee,me,ae),Cn&&me.insertBefore(Cn,me.firstChild);var Dn=this.resolvePseudoContent(ee,me,kt,ue.AFTER);return Dn&&me.appendChild(Dn),this.counters.pop(_t),(Oe&&(this.options.copyStyles||Zo(ee))&&!ao(ee)||ae)&&Pt(Oe,me),(ee.scrollTop!==0||ee.scrollLeft!==0)&&this.scrolledElements.push([me,ee.scrollLeft,ee.scrollTop]),(Cl(ee)||xl(ee))&&(Cl(me)||xl(me))&&(me.value=ee.value),me}return ee.cloneNode(!1)},ne.prototype.resolvePseudoContent=function(ee,ae,ie,me){var Oe=this;if(ie){var lt=ie.content,kt=ae.ownerDocument;if(!(!kt||!lt||lt==="none"||lt==="-moz-alt-content"||ie.display==="none")){this.counters.parse(new Al(this.context,ie));var _t=new Ol(this.context,ie),Cn=kt.createElement("html2canvaspseudoelement");Pt(ie,Cn),_t.content.forEach(function(Pn){if(Pn.type===0)Cn.appendChild(kt.createTextNode(Pn.value));else if(Pn.type===22){var mr=kt.createElement("img");mr.src=Pn.value,mr.style.opacity="1",Cn.appendChild(mr)}else if(Pn.type===18){if(Pn.name==="attr"){var Bi=Pn.values.filter(Mi);Bi.length&&Cn.appendChild(kt.createTextNode(ee.getAttribute(Bi[0].value)||""))}else if(Pn.name==="counter"){var Xr=Pn.values.filter(vr),di=Xr[0],Aa=Xr[1];if(di&&Mi(di)){var Ui=Oe.counters.getCounterValue(di.value),Si=Aa&&Mi(Aa)?To.parse(Oe.context,Aa.value):3;Cn.appendChild(kt.createTextNode(E(Ui,Si,!1)))}}else if(Pn.name==="counters"){var Qa=Pn.values.filter(vr),di=Qa[0],la=Qa[1],Aa=Qa[2];if(di&&Mi(di)){var Yi=Oe.counters.getCounterValues(di.value),yi=Aa&&Mi(Aa)?To.parse(Oe.context,Aa.value):3,ba=la&&la.type===0?la.value:"",Fa=Yi.map(function(Ao){return E(Ao,yi,!1)}).join(ba);Cn.appendChild(kt.createTextNode(Fa))}}}else if(Pn.type===20)switch(Pn.value){case"open-quote":Cn.appendChild(kt.createTextNode(rl(_t.quotes,Oe.quoteDepth++,!0)));break;case"close-quote":Cn.appendChild(kt.createTextNode(rl(_t.quotes,--Oe.quoteDepth,!1)));break;default:Cn.appendChild(kt.createTextNode(Pn.value))}}),Cn.className=jr+" "+si;var Dn=me===ue.BEFORE?" "+jr:" "+si;return Zo(ae)?ae.className.baseValue+=Dn:ae.className+=Dn,Cn}}},ne.destroy=function(ee){return ee.parentNode?(ee.parentNode.removeChild(ee),!0):!1},ne}(),ue;(function(ne){ne[ne.BEFORE=0]="BEFORE",ne[ne.AFTER=1]="AFTER"})(ue||(ue={}));var pe=function(ne,ee){var ae=ne.createElement("iframe");return ae.className="html2canvas-container",ae.style.visibility="hidden",ae.style.position="fixed",ae.style.left="-10000px",ae.style.top="0px",ae.style.border="0",ae.width=ee.width.toString(),ae.height=ee.height.toString(),ae.scrolling="no",ae.setAttribute(x,"true"),ne.body.appendChild(ae),ae},be=function(ne){return new Promise(function(ee){if(ne.complete){ee();return}if(!ne.src){ee();return}ne.onload=ee,ne.onerror=ee})},De=function(ne){return Promise.all([].slice.call(ne.images,0).map(be))},je=function(ne){return new Promise(function(ee,ae){var ie=ne.contentWindow;if(!ie)return ae("No window assigned for iframe");var me=ie.document;ie.onload=ne.onload=function(){ie.onload=ne.onload=null;var Oe=setInterval(function(){me.body.childNodes.length>0&&me.readyState==="complete"&&(clearInterval(Oe),ee(ne))},50)}})},Qt=["all","d","content"],Pt=function(ne,ee){for(var ae=ne.length-1;ae>=0;ae--){var ie=ne.item(ae);Qt.indexOf(ie)===-1&&ee.style.setProperty(ie,ne.getPropertyValue(ie))}return ee},Un=function(ne){var ee="";return ne&&(ee+=""),ee},bn=function(ne,ee,ae){ne&&ne.defaultView&&(ee!==ne.defaultView.pageXOffset||ae!==ne.defaultView.pageYOffset)&&ne.defaultView.scrollTo(ee,ae)},pr=function(ne){var ee=ne[0],ae=ne[1],ie=ne[2];ee.scrollLeft=ae,ee.scrollTop=ie},Sr=":before",Pr=":after",jr="___html2canvas___pseudoelement_before",si="___html2canvas___pseudoelement_after",Yr=`{ content: "" !important; display: none !important; }`,vi=function(ne){Ii(ne,"."+jr+Sr+Yr+` .`+si+Pr+Yr)},Ii=function(ne,ee){var ae=ne.ownerDocument;if(ae){var ie=ae.createElement("style");ie.textContent=ee,ne.appendChild(ie)}},_i=function(){function ne(){}return ne.getOrigin=function(ee){var ae=ne._link;return ae?(ae.href=ee,ae.href=ae.href,ae.protocol+ae.hostname+ae.port):"about:blank"},ne.isSameOrigin=function(ee){return ne.getOrigin(ee)===ne._origin},ne.setContext=function(ee){ne._link=ee.document.createElement("a"),ne._origin=ne.getOrigin(ee.location.href)},ne._origin="about:blank",ne}(),ea=function(){function ne(ee,ae){this.context=ee,this._options=ae,this._cache={}}return ne.prototype.addImage=function(ee){var ae=Promise.resolve();return this.has(ee)||(SA(ee)||GA(ee))&&(this._cache[ee]=this.loadImage(ee)).catch(function(){}),ae},ne.prototype.match=function(ee){return this._cache[ee]},ne.prototype.loadImage=function(ee){return Ke(this,void 0,void 0,function(){var ae,ie,me,Oe,lt=this;return Me(this,function(kt){switch(kt.label){case 0:return ae=_i.isSameOrigin(ee),ie=!FA(ee)&&this._options.useCORS===!0&&Hr.SUPPORT_CORS_IMAGES&&!ae,me=!FA(ee)&&!ae&&!SA(ee)&&typeof this._options.proxy=="string"&&Hr.SUPPORT_CORS_XHR&&!ie,!ae&&this._options.allowTaint===!1&&!FA(ee)&&!SA(ee)&&!me&&!ie?[2]:(Oe=ee,me?[4,this.proxy(Oe)]:[3,2]);case 1:Oe=kt.sent(),kt.label=2;case 2:return this.context.logger.debug("Added image "+ee.substring(0,256)),[4,new Promise(function(_t,Cn){var Dn=new Image;Dn.onload=function(){return _t(Dn)},Dn.onerror=Cn,(lA(Oe)||ie)&&(Dn.crossOrigin="anonymous"),Dn.src=Oe,Dn.complete===!0&&setTimeout(function(){return _t(Dn)},500),lt._options.imageTimeout>0&&setTimeout(function(){return Cn("Timed out ("+lt._options.imageTimeout+"ms) loading image")},lt._options.imageTimeout)})];case 3:return[2,kt.sent()]}})})},ne.prototype.has=function(ee){return typeof this._cache[ee]!="undefined"},ne.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ne.prototype.proxy=function(ee){var ae=this,ie=this._options.proxy;if(!ie)throw new Error("No proxy defined");var me=ee.substring(0,256);return new Promise(function(Oe,lt){var kt=Hr.SUPPORT_RESPONSE_TYPE?"blob":"text",_t=new XMLHttpRequest;_t.onload=function(){if(_t.status===200)if(kt==="text")Oe(_t.response);else{var Pn=new FileReader;Pn.addEventListener("load",function(){return Oe(Pn.result)},!1),Pn.addEventListener("error",function(mr){return lt(mr)},!1),Pn.readAsDataURL(_t.response)}else lt("Failed to proxy resource "+me+" with status code "+_t.status)},_t.onerror=lt;var Cn=ie.indexOf("?")>-1?"&":"?";if(_t.open("GET",""+ie+Cn+"url="+encodeURIComponent(ee)+"&responseType="+kt),kt!=="text"&&_t instanceof XMLHttpRequest&&(_t.responseType=kt),ae._options.imageTimeout){var Dn=ae._options.imageTimeout;_t.timeout=Dn,_t.ontimeout=function(){return lt("Timed out ("+Dn+"ms) proxying "+me)}}_t.send()})},ne}(),Ra=/^data:image\/svg\+xml/i,hA=/^data:image\/.*;base64,/i,rA=/^data:image\/.*/i,GA=function(ne){return Hr.SUPPORT_SVG_DRAWING||!mA(ne)},FA=function(ne){return rA.test(ne)},lA=function(ne){return hA.test(ne)},SA=function(ne){return ne.substr(0,4)==="blob"},mA=function(ne){return ne.substr(-3).toLowerCase()==="svg"||Ra.test(ne)},Vr=function(){function ne(ee,ae){this.type=0,this.x=ee,this.y=ae}return ne.prototype.add=function(ee,ae){return new ne(this.x+ee,this.y+ae)},ne}(),ja=function(ne,ee,ae){return new Vr(ne.x+(ee.x-ne.x)*ae,ne.y+(ee.y-ne.y)*ae)},Ya=function(){function ne(ee,ae,ie,me){this.type=1,this.start=ee,this.startControl=ae,this.endControl=ie,this.end=me}return ne.prototype.subdivide=function(ee,ae){var ie=ja(this.start,this.startControl,ee),me=ja(this.startControl,this.endControl,ee),Oe=ja(this.endControl,this.end,ee),lt=ja(ie,me,ee),kt=ja(me,Oe,ee),_t=ja(lt,kt,ee);return ae?new ne(this.start,ie,lt,_t):new ne(_t,kt,Oe,this.end)},ne.prototype.add=function(ee,ae){return new ne(this.start.add(ee,ae),this.startControl.add(ee,ae),this.endControl.add(ee,ae),this.end.add(ee,ae))},ne.prototype.reverse=function(){return new ne(this.end,this.endControl,this.startControl,this.start)},ne}(),Xa=function(ne){return ne.type===1},Vs=function(){function ne(ee){var ae=ee.styles,ie=ee.bounds,me=Za(ae.borderTopLeftRadius,ie.width,ie.height),Oe=me[0],lt=me[1],kt=Za(ae.borderTopRightRadius,ie.width,ie.height),_t=kt[0],Cn=kt[1],Dn=Za(ae.borderBottomRightRadius,ie.width,ie.height),Pn=Dn[0],mr=Dn[1],Bi=Za(ae.borderBottomLeftRadius,ie.width,ie.height),Xr=Bi[0],di=Bi[1],Aa=[];Aa.push((Oe+_t)/ie.width),Aa.push((Xr+Pn)/ie.width),Aa.push((lt+di)/ie.height),Aa.push((Cn+mr)/ie.height);var Ui=Math.max.apply(Math,Aa);Ui>1&&(Oe/=Ui,lt/=Ui,_t/=Ui,Cn/=Ui,Pn/=Ui,mr/=Ui,Xr/=Ui,di/=Ui);var Si=ie.width-_t,Qa=ie.height-mr,la=ie.width-Pn,Yi=ie.height-di,yi=ae.borderTopWidth,ba=ae.borderRightWidth,Fa=ae.borderBottomWidth,Ji=ae.borderLeftWidth,yA=Vi(ae.paddingTop,ee.bounds.width),Ao=Vi(ae.paddingRight,ee.bounds.width),vo=Vi(ae.paddingBottom,ee.bounds.width),Ja=Vi(ae.paddingLeft,ee.bounds.width);this.topLeftBorderDoubleOuterBox=Oe>0||lt>0?ta(ie.left+Ji/3,ie.top+yi/3,Oe-Ji/3,lt-yi/3,ca.TOP_LEFT):new Vr(ie.left+Ji/3,ie.top+yi/3),this.topRightBorderDoubleOuterBox=Oe>0||lt>0?ta(ie.left+Si,ie.top+yi/3,_t-ba/3,Cn-yi/3,ca.TOP_RIGHT):new Vr(ie.left+ie.width-ba/3,ie.top+yi/3),this.bottomRightBorderDoubleOuterBox=Pn>0||mr>0?ta(ie.left+la,ie.top+Qa,Pn-ba/3,mr-Fa/3,ca.BOTTOM_RIGHT):new Vr(ie.left+ie.width-ba/3,ie.top+ie.height-Fa/3),this.bottomLeftBorderDoubleOuterBox=Xr>0||di>0?ta(ie.left+Ji/3,ie.top+Yi,Xr-Ji/3,di-Fa/3,ca.BOTTOM_LEFT):new Vr(ie.left+Ji/3,ie.top+ie.height-Fa/3),this.topLeftBorderDoubleInnerBox=Oe>0||lt>0?ta(ie.left+Ji*2/3,ie.top+yi*2/3,Oe-Ji*2/3,lt-yi*2/3,ca.TOP_LEFT):new Vr(ie.left+Ji*2/3,ie.top+yi*2/3),this.topRightBorderDoubleInnerBox=Oe>0||lt>0?ta(ie.left+Si,ie.top+yi*2/3,_t-ba*2/3,Cn-yi*2/3,ca.TOP_RIGHT):new Vr(ie.left+ie.width-ba*2/3,ie.top+yi*2/3),this.bottomRightBorderDoubleInnerBox=Pn>0||mr>0?ta(ie.left+la,ie.top+Qa,Pn-ba*2/3,mr-Fa*2/3,ca.BOTTOM_RIGHT):new Vr(ie.left+ie.width-ba*2/3,ie.top+ie.height-Fa*2/3),this.bottomLeftBorderDoubleInnerBox=Xr>0||di>0?ta(ie.left+Ji*2/3,ie.top+Yi,Xr-Ji*2/3,di-Fa*2/3,ca.BOTTOM_LEFT):new Vr(ie.left+Ji*2/3,ie.top+ie.height-Fa*2/3),this.topLeftBorderStroke=Oe>0||lt>0?ta(ie.left+Ji/2,ie.top+yi/2,Oe-Ji/2,lt-yi/2,ca.TOP_LEFT):new Vr(ie.left+Ji/2,ie.top+yi/2),this.topRightBorderStroke=Oe>0||lt>0?ta(ie.left+Si,ie.top+yi/2,_t-ba/2,Cn-yi/2,ca.TOP_RIGHT):new Vr(ie.left+ie.width-ba/2,ie.top+yi/2),this.bottomRightBorderStroke=Pn>0||mr>0?ta(ie.left+la,ie.top+Qa,Pn-ba/2,mr-Fa/2,ca.BOTTOM_RIGHT):new Vr(ie.left+ie.width-ba/2,ie.top+ie.height-Fa/2),this.bottomLeftBorderStroke=Xr>0||di>0?ta(ie.left+Ji/2,ie.top+Yi,Xr-Ji/2,di-Fa/2,ca.BOTTOM_LEFT):new Vr(ie.left+Ji/2,ie.top+ie.height-Fa/2),this.topLeftBorderBox=Oe>0||lt>0?ta(ie.left,ie.top,Oe,lt,ca.TOP_LEFT):new Vr(ie.left,ie.top),this.topRightBorderBox=_t>0||Cn>0?ta(ie.left+Si,ie.top,_t,Cn,ca.TOP_RIGHT):new Vr(ie.left+ie.width,ie.top),this.bottomRightBorderBox=Pn>0||mr>0?ta(ie.left+la,ie.top+Qa,Pn,mr,ca.BOTTOM_RIGHT):new Vr(ie.left+ie.width,ie.top+ie.height),this.bottomLeftBorderBox=Xr>0||di>0?ta(ie.left,ie.top+Yi,Xr,di,ca.BOTTOM_LEFT):new Vr(ie.left,ie.top+ie.height),this.topLeftPaddingBox=Oe>0||lt>0?ta(ie.left+Ji,ie.top+yi,Math.max(0,Oe-Ji),Math.max(0,lt-yi),ca.TOP_LEFT):new Vr(ie.left+Ji,ie.top+yi),this.topRightPaddingBox=_t>0||Cn>0?ta(ie.left+Math.min(Si,ie.width-ba),ie.top+yi,Si>ie.width+ba?0:Math.max(0,_t-ba),Math.max(0,Cn-yi),ca.TOP_RIGHT):new Vr(ie.left+ie.width-ba,ie.top+yi),this.bottomRightPaddingBox=Pn>0||mr>0?ta(ie.left+Math.min(la,ie.width-Ji),ie.top+Math.min(Qa,ie.height-Fa),Math.max(0,Pn-ba),Math.max(0,mr-Fa),ca.BOTTOM_RIGHT):new Vr(ie.left+ie.width-ba,ie.top+ie.height-Fa),this.bottomLeftPaddingBox=Xr>0||di>0?ta(ie.left+Ji,ie.top+Math.min(Yi,ie.height-Fa),Math.max(0,Xr-Ji),Math.max(0,di-Fa),ca.BOTTOM_LEFT):new Vr(ie.left+Ji,ie.top+ie.height-Fa),this.topLeftContentBox=Oe>0||lt>0?ta(ie.left+Ji+Ja,ie.top+yi+yA,Math.max(0,Oe-(Ji+Ja)),Math.max(0,lt-(yi+yA)),ca.TOP_LEFT):new Vr(ie.left+Ji+Ja,ie.top+yi+yA),this.topRightContentBox=_t>0||Cn>0?ta(ie.left+Math.min(Si,ie.width+Ji+Ja),ie.top+yi+yA,Si>ie.width+Ji+Ja?0:_t-Ji+Ja,Cn-(yi+yA),ca.TOP_RIGHT):new Vr(ie.left+ie.width-(ba+Ao),ie.top+yi+yA),this.bottomRightContentBox=Pn>0||mr>0?ta(ie.left+Math.min(la,ie.width-(Ji+Ja)),ie.top+Math.min(Qa,ie.height+yi+yA),Math.max(0,Pn-(ba+Ao)),mr-(Fa+vo),ca.BOTTOM_RIGHT):new Vr(ie.left+ie.width-(ba+Ao),ie.top+ie.height-(Fa+vo)),this.bottomLeftContentBox=Xr>0||di>0?ta(ie.left+Ji+Ja,ie.top+Yi,Math.max(0,Xr-(Ji+Ja)),di-(Fa+vo),ca.BOTTOM_LEFT):new Vr(ie.left+Ji+Ja,ie.top+ie.height-(Fa+vo))}return ne}(),ca;(function(ne){ne[ne.TOP_LEFT=0]="TOP_LEFT",ne[ne.TOP_RIGHT=1]="TOP_RIGHT",ne[ne.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ne[ne.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ca||(ca={}));var ta=function(ne,ee,ae,ie,me){var Oe=4*((Math.sqrt(2)-1)/3),lt=ae*Oe,kt=ie*Oe,_t=ne+ae,Cn=ee+ie;switch(me){case ca.TOP_LEFT:return new Ya(new Vr(ne,Cn),new Vr(ne,Cn-kt),new Vr(_t-lt,ee),new Vr(_t,ee));case ca.TOP_RIGHT:return new Ya(new Vr(ne,ee),new Vr(ne+lt,ee),new Vr(_t,Cn-kt),new Vr(_t,Cn));case ca.BOTTOM_RIGHT:return new Ya(new Vr(_t,ee),new Vr(_t,ee+kt),new Vr(ne+lt,Cn),new Vr(ne,Cn));case ca.BOTTOM_LEFT:default:return new Ya(new Vr(_t,Cn),new Vr(_t-lt,Cn),new Vr(ne,ee+kt),new Vr(ne,ee))}},eo=function(ne){return[ne.topLeftBorderBox,ne.topRightBorderBox,ne.bottomRightBorderBox,ne.bottomLeftBorderBox]},pA=function(ne){return[ne.topLeftContentBox,ne.topRightContentBox,ne.bottomRightContentBox,ne.bottomLeftContentBox]},js=function(ne){return[ne.topLeftPaddingBox,ne.topRightPaddingBox,ne.bottomRightPaddingBox,ne.bottomLeftPaddingBox]},Go=function(){function ne(ee,ae,ie){this.offsetX=ee,this.offsetY=ae,this.matrix=ie,this.type=0,this.target=6}return ne}(),ko=function(){function ne(ee,ae){this.path=ee,this.target=ae,this.type=1}return ne}(),Ss=function(){function ne(ee){this.opacity=ee,this.type=2,this.target=6}return ne}(),NA=function(ne){return ne.type===0},_s=function(ne){return ne.type===1},mu=function(ne){return ne.type===2},tc=function(ne,ee){return ne.length===ee.length?ne.some(function(ae,ie){return ae===ee[ie]}):!1},dc=function(ne,ee,ae,ie,me){return ne.map(function(Oe,lt){switch(lt){case 0:return Oe.add(ee,ae);case 1:return Oe.add(ee+ie,ae);case 2:return Oe.add(ee+ie,ae+me);case 3:return Oe.add(ee,ae+me)}return Oe})},nc=function(){function ne(ee){this.element=ee,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ne}(),rc=function(){function ne(ee,ae){if(this.container=ee,this.parent=ae,this.effects=[],this.curves=new Vs(this.container),this.container.styles.opacity<1&&this.effects.push(new Ss(this.container.styles.opacity)),this.container.styles.transform!==null){var ie=this.container.bounds.left+this.container.styles.transformOrigin[0].number,me=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Oe=this.container.styles.transform;this.effects.push(new Go(ie,me,Oe))}if(this.container.styles.overflowX!==0){var lt=eo(this.curves),kt=js(this.curves);tc(lt,kt)?this.effects.push(new ko(lt,6)):(this.effects.push(new ko(lt,2)),this.effects.push(new ko(kt,4)))}}return ne.prototype.getEffects=function(ee){for(var ae=[2,3].indexOf(this.container.styles.position)===-1,ie=this.parent,me=this.effects.slice(0);ie;){var Oe=ie.effects.filter(function(_t){return!_s(_t)});if(ae||ie.container.styles.position!==0||!ie.parent){if(me.unshift.apply(me,Oe),ae=[2,3].indexOf(ie.container.styles.position)===-1,ie.container.styles.overflowX!==0){var lt=eo(ie.curves),kt=js(ie.curves);tc(lt,kt)||me.unshift(new ko(kt,6))}}else me.unshift.apply(me,Oe);ie=ie.parent}return me.filter(function(_t){return oA(_t.target,ee)})},ne}(),Ju=function(ne,ee,ae,ie){ne.container.elements.forEach(function(me){var Oe=oA(me.flags,4),lt=oA(me.flags,2),kt=new rc(me,ne);oA(me.styles.display,2048)&&ie.push(kt);var _t=oA(me.flags,8)?[]:ie;if(Oe||lt){var Cn=Oe||me.styles.isPositioned()?ae:ee,Dn=new nc(kt);if(me.styles.isPositioned()||me.styles.opacity<1||me.styles.isTransformed()){var Pn=me.styles.zIndex.order;if(Pn<0){var mr=0;Cn.negativeZIndex.some(function(Xr,di){return Pn>Xr.element.container.styles.zIndex.order?(mr=di,!1):mr>0}),Cn.negativeZIndex.splice(mr,0,Dn)}else if(Pn>0){var Bi=0;Cn.positiveZIndex.some(function(Xr,di){return Pn>=Xr.element.container.styles.zIndex.order?(Bi=di+1,!1):Bi>0}),Cn.positiveZIndex.splice(Bi,0,Dn)}else Cn.zeroOrAutoZIndexOrTransformedOrOpacity.push(Dn)}else me.styles.isFloating()?Cn.nonPositionedFloats.push(Dn):Cn.nonPositionedInlineLevel.push(Dn);Ju(kt,Dn,Oe?Dn:ae,_t)}else me.styles.isInlineLevel()?ee.inlineLevel.push(kt):ee.nonInlineLevel.push(kt),Ju(kt,ee,ae,_t);oA(me.flags,8)&&ic(me,_t)})},ic=function(ne,ee){for(var ae=ne instanceof Wl?ne.start:1,ie=ne instanceof Wl?ne.reversed:!1,me=0;me0&&ae.intrinsicHeight>0){var Oe=Ku(ae),lt=js(ie);this.path(lt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(me,0,0,ae.intrinsicWidth,ae.intrinsicHeight,Oe.left,Oe.top,Oe.width,Oe.height),this.ctx.restore()}},ee.prototype.renderNodeContent=function(ae){return Ke(this,void 0,void 0,function(){var ie,me,Oe,lt,kt,_t,Si,Si,Cn,Dn,Pn,mr,la,Bi,Xr,Yi,di,Aa,Ui,Si,Qa,la,Yi;return Me(this,function(yi){switch(yi.label){case 0:this.applyEffects(ae.getEffects(4)),ie=ae.container,me=ae.curves,Oe=ie.styles,lt=0,kt=ie.textNodes,yi.label=1;case 1:return lt0&&PA>0&&(Fa=Oe.ctx.createPattern(Yi,"repeat"),Oe.renderRepeat(yA,Fa,oo,so))):Yo(Dn)&&(Ji=qu(ae,ie,[null,null,null]),yA=Ji[0],Ao=Ji[1],vo=Ji[2],Ja=Ji[3],PA=Ji[4],Ys=Dn.position.length===0?[_A]:Dn.position,oo=Vi(Ys[0],Ja),so=Vi(Ys[Ys.length-1],PA),Fl=gA(Dn,oo,so,Ja,PA),ss=Fl[0],Xs=Fl[1],ss>0&&Xs>0&&(Sl=Oe.ctx.createRadialGradient(Ao+oo,vo+so,0,Ao+oo,vo+so,ss),IA(Dn.stops,ss*2).forEach(function(yu){return Sl.addColorStop(yu.stop,ua(yu.color))}),Oe.path(yA),Oe.ctx.fillStyle=Sl,ss!==Xs?(_l=ae.bounds.left+.5*ae.bounds.width,ks=ae.bounds.top+.5*ae.bounds.height,kl=Xs/ss,Us=1/kl,Oe.ctx.save(),Oe.ctx.translate(_l,ks),Oe.ctx.transform(1,0,0,kl,0,0),Oe.ctx.translate(-_l,-ks),Oe.ctx.fillRect(Ao,Us*(vo-ks)+ks,Ja,PA*Us),Oe.ctx.restore()):Oe.ctx.fill())),$l.label=6;case 6:return ie--,[2]}})},Oe=this,lt=0,kt=ae.styles.backgroundImage.slice(0).reverse(),Cn.label=1;case 1:return lt0?Dn.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Dn.color,Dn.width,kt,ae.curves,2)]:[3,11]):[3,13];case 4:return mr.sent(),[3,11];case 5:return Dn.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Dn.color,Dn.width,kt,ae.curves,3)];case 6:return mr.sent(),[3,11];case 7:return Dn.style!==4?[3,9]:[4,this.renderDoubleBorder(Dn.color,Dn.width,kt,ae.curves)];case 8:return mr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Dn.color,kt,ae.curves)];case 10:mr.sent(),mr.label=11;case 11:kt++,mr.label=12;case 12:return _t++,[3,3];case 13:return[2]}})})},ee.prototype.renderDashedDottedBorder=function(ae,ie,me,Oe,lt){return Ke(this,void 0,void 0,function(){var kt,_t,Cn,Dn,Pn,mr,Bi,Xr,di,Aa,Ui,Si,Qa,la,Yi,yi,Yi,yi;return Me(this,function(ba){return this.ctx.save(),kt=vc(Oe,me),_t=ac(Oe,me),lt===2&&(this.path(_t),this.ctx.clip()),Xa(_t[0])?(Cn=_t[0].start.x,Dn=_t[0].start.y):(Cn=_t[0].x,Dn=_t[0].y),Xa(_t[1])?(Pn=_t[1].end.x,mr=_t[1].end.y):(Pn=_t[1].x,mr=_t[1].y),me===0||me===2?Bi=Math.abs(Cn-Pn):Bi=Math.abs(Dn-mr),this.ctx.beginPath(),lt===3?this.formatPath(kt):this.formatPath(_t.slice(0,2)),Xr=ie<3?ie*3:ie*2,di=ie<3?ie*2:ie,lt===3&&(Xr=ie,di=ie),Aa=!0,Bi<=Xr*2?Aa=!1:Bi<=Xr*2+di?(Ui=Bi/(2*Xr+di),Xr*=Ui,di*=Ui):(Si=Math.floor((Bi+di)/(Xr+di)),Qa=(Bi-Si*Xr)/(Si-1),la=(Bi-(Si+1)*Xr)/Si,di=la<=0||Math.abs(di-Qa)>1,ge=-7,Xe=Ke?Ye-1:0,Ce=Ke?-1:1,ct=ce[te+Xe];for(Xe+=Ce,_e=ct&(1<<-ge)-1,ct>>=-ge,ge+=Ve;ge>0;_e=_e*256+ce[te+Xe],Xe+=Ce,ge-=8);for(ve=_e&(1<<-ge)-1,_e>>=-ge,ge+=Me;ge>0;ve=ve*256+ce[te+Xe],Xe+=Ce,ge-=8);if(_e===0)_e=1-Re;else{if(_e===ke)return ve?NaN:(ct?-1:1)*(1/0);ve=ve+Math.pow(2,Me),_e=_e-Re}return(ct?-1:1)*ve*Math.pow(2,_e-Me)},wt.write=function(ce,te,Ke,Me,Ye,_e){var ve,Ve,ke,Re=_e*8-Ye-1,ge=(1<>1,Ce=Ye===23?Math.pow(2,-24)-Math.pow(2,-77):0,ct=Me?0:_e-1,tt=Me?1:-1,nt=te<0||te===0&&1/te<0?1:0;for(te=Math.abs(te),isNaN(te)||te===1/0?(Ve=isNaN(te)?1:0,ve=ge):(ve=Math.floor(Math.log(te)/Math.LN2),te*(ke=Math.pow(2,-ve))<1&&(ve--,ke*=2),ve+Xe>=1?te+=Ce/ke:te+=Ce*Math.pow(2,1-Xe),te*ke>=2&&(ve++,ke/=2),ve+Xe>=ge?(Ve=0,ve=ge):ve+Xe>=1?(Ve=(te*ke-1)*Math.pow(2,Ye),ve=ve+Xe):(Ve=te*Math.pow(2,Xe-1)*Math.pow(2,Ye),ve=0));Ye>=8;ce[Ke+ct]=Ve&255,ct+=tt,Ve/=256,Ye-=8);for(ve=ve<0;ce[Ke+ct]=ve&255,ct+=tt,ve/=256,Re-=8);ce[Ke+ct-tt]|=nt*128}},66042:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Bt}});var te=ce(33885),Ke=ce(42978),Me=ce(43403),Ye=ce(34280),_e=ce(59301),ve=_e.createContext(null),Ve=_e.createContext({}),ke=ve,Re=ce(20068),ge=ce(54476),Xe=ce(92310),Ce=ce.n(Xe),ct=ce(77900),tt=ce(10228),nt=ce(26112),Ze=ce(75931),Le=ce(8654),ut=["prefixCls","className","containerRef"],Ge=function(mt){var Gt=mt.prefixCls,Jt=mt.className,gn=mt.containerRef,An=(0,Ze.Z)(mt,ut),We=_e.useContext(Ve),Fe=We.panel,Ot=(0,Le.x1)(Fe,gn);return _e.createElement("div",(0,ge.Z)({className:Ce()("".concat(Gt,"-content"),Jt),role:"dialog",ref:Ot},(0,nt.Z)(mt,{aria:!0}),{"aria-modal":"true"},An))},Je=Ge,Qe=ce(48736);function xe(At){return typeof At=="string"&&String(Number(At))===At?((0,Qe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(At)):At}function Ne(At){warning(!("wrapperClassName"in At),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!At.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Te={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function at(At,mt){var Gt,Jt,gn,An=At.prefixCls,We=At.open,Fe=At.placement,Ot=At.inline,Fn=At.push,fn=At.forceRender,Ct=At.autoFocus,$t=At.keyboard,on=At.classNames,jn=At.rootClassName,Dt=At.rootStyle,vt=At.zIndex,pt=At.className,bt=At.id,Zt=At.style,yt=At.motion,zt=At.width,Se=At.height,se=At.children,fe=At.mask,Ue=At.maskClosable,Be=At.maskMotion,gt=At.maskClassName,Mt=At.maskStyle,sn=At.afterOpenChange,he=At.onClose,oe=At.onMouseEnter,re=At.onMouseOver,de=At.onMouseLeave,we=At.onClick,le=At.onKeyDown,Ee=At.onKeyUp,St=At.styles,Ut=At.drawerRender,It=_e.useRef(),ht=_e.useRef(),Bn=_e.useRef();_e.useImperativeHandle(mt,function(){return It.current});var Vt=function(Jn){var mn=Jn.keyCode,zn=Jn.shiftKey;switch(mn){case tt.Z.TAB:{if(mn===tt.Z.TAB){if(!zn&&document.activeElement===Bn.current){var en;(en=ht.current)===null||en===void 0||en.focus({preventScroll:!0})}else if(zn&&document.activeElement===ht.current){var Sn;(Sn=Bn.current)===null||Sn===void 0||Sn.focus({preventScroll:!0})}}break}case tt.Z.ESC:{he&&$t&&(Jn.stopPropagation(),he(Jn));break}}};_e.useEffect(function(){if(We&&Ct){var tr;(tr=It.current)===null||tr===void 0||tr.focus({preventScroll:!0})}},[We]);var un=_e.useState(!1),In=(0,Ke.Z)(un,2),or=In[0],vn=In[1],fr=_e.useContext(ke),ur;typeof Fn=="boolean"?ur=Fn?{}:{distance:0}:ur=Fn||{};var yr=(Gt=(Jt=(gn=ur)===null||gn===void 0?void 0:gn.distance)!==null&&Jt!==void 0?Jt:fr==null?void 0:fr.pushDistance)!==null&&Gt!==void 0?Gt:180,Xn=_e.useMemo(function(){return{pushDistance:yr,push:function(){vn(!0)},pull:function(){vn(!1)}}},[yr]);_e.useEffect(function(){if(We){var tr;fr==null||(tr=fr.push)===null||tr===void 0||tr.call(fr)}else{var Jn;fr==null||(Jn=fr.pull)===null||Jn===void 0||Jn.call(fr)}},[We]),_e.useEffect(function(){return function(){var tr;fr==null||(tr=fr.pull)===null||tr===void 0||tr.call(fr)}},[]);var Mr=fe&&_e.createElement(ct.default,(0,ge.Z)({key:"mask"},Be,{visible:We}),function(tr,Jn){var mn=tr.className,zn=tr.style;return _e.createElement("div",{className:Ce()("".concat(An,"-mask"),mn,on==null?void 0:on.mask,gt),style:(0,te.Z)((0,te.Z)((0,te.Z)({},zn),Mt),St==null?void 0:St.mask),onClick:Ue&&We?he:void 0,ref:Jn})}),Kr=typeof yt=="function"?yt(Fe):yt,Er={};if(or&&yr)switch(Fe){case"top":Er.transform="translateY(".concat(yr,"px)");break;case"bottom":Er.transform="translateY(".concat(-yr,"px)");break;case"left":Er.transform="translateX(".concat(yr,"px)");break;default:Er.transform="translateX(".concat(-yr,"px)");break}Fe==="left"||Fe==="right"?Er.width=xe(zt):Er.height=xe(Se);var lr={onMouseEnter:oe,onMouseOver:re,onMouseLeave:de,onClick:we,onKeyDown:le,onKeyUp:Ee},Dr=_e.createElement(ct.default,(0,ge.Z)({key:"panel"},Kr,{visible:We,forceRender:fn,onVisibleChanged:function(Jn){sn==null||sn(Jn)},removeOnLeave:!1,leavedClassName:"".concat(An,"-content-wrapper-hidden")}),function(tr,Jn){var mn=tr.className,zn=tr.style,en=_e.createElement(Je,(0,ge.Z)({id:bt,containerRef:Jn,prefixCls:An,className:Ce()(pt,on==null?void 0:on.content),style:(0,te.Z)((0,te.Z)({},Zt),St==null?void 0:St.content)},(0,nt.Z)(At,{aria:!0}),lr),se);return _e.createElement("div",(0,ge.Z)({className:Ce()("".concat(An,"-content-wrapper"),on==null?void 0:on.wrapper,mn),style:(0,te.Z)((0,te.Z)((0,te.Z)({},Er),zn),St==null?void 0:St.wrapper)},(0,nt.Z)(At,{data:!0})),Ut?Ut(en):en)}),Kn=(0,te.Z)({},Dt);return vt&&(Kn.zIndex=vt),_e.createElement(ke.Provider,{value:Xn},_e.createElement("div",{className:Ce()(An,"".concat(An,"-").concat(Fe),jn,(0,Re.Z)((0,Re.Z)({},"".concat(An,"-open"),We),"".concat(An,"-inline"),Ot)),style:Kn,tabIndex:-1,ref:It,onKeyDown:Vt},Mr,_e.createElement("div",{tabIndex:0,ref:ht,style:Te,"aria-hidden":"true","data-sentinel":"start"}),Dr,_e.createElement("div",{tabIndex:0,ref:Bn,style:Te,"aria-hidden":"true","data-sentinel":"end"})))}var He=_e.forwardRef(at),et=He,dt=function(mt){var Gt=mt.open,Jt=Gt===void 0?!1:Gt,gn=mt.prefixCls,An=gn===void 0?"rc-drawer":gn,We=mt.placement,Fe=We===void 0?"right":We,Ot=mt.autoFocus,Fn=Ot===void 0?!0:Ot,fn=mt.keyboard,Ct=fn===void 0?!0:fn,$t=mt.width,on=$t===void 0?378:$t,jn=mt.mask,Dt=jn===void 0?!0:jn,vt=mt.maskClosable,pt=vt===void 0?!0:vt,bt=mt.getContainer,Zt=mt.forceRender,yt=mt.afterOpenChange,zt=mt.destroyOnClose,Se=mt.onMouseEnter,se=mt.onMouseOver,fe=mt.onMouseLeave,Ue=mt.onClick,Be=mt.onKeyDown,gt=mt.onKeyUp,Mt=mt.panelRef,sn=_e.useState(!1),he=(0,Ke.Z)(sn,2),oe=he[0],re=he[1],de=_e.useState(!1),we=(0,Ke.Z)(de,2),le=we[0],Ee=we[1];(0,Ye.Z)(function(){Ee(!0)},[]);var St=le?Jt:!1,Ut=_e.useRef(),It=_e.useRef();(0,Ye.Z)(function(){St&&(It.current=document.activeElement)},[St]);var ht=function(or){var vn;if(re(or),yt==null||yt(or),!or&&It.current&&!((vn=Ut.current)!==null&&vn!==void 0&&vn.contains(It.current))){var fr;(fr=It.current)===null||fr===void 0||fr.focus({preventScroll:!0})}},Bn=_e.useMemo(function(){return{panel:Mt}},[Mt]);if(!Zt&&!oe&&!St&&zt)return null;var Vt={onMouseEnter:Se,onMouseOver:se,onMouseLeave:fe,onClick:Ue,onKeyDown:Be,onKeyUp:gt},un=(0,te.Z)((0,te.Z)({},mt),{},{open:St,prefixCls:An,placement:Fe,autoFocus:Fn,keyboard:Ct,width:on,mask:Dt,maskClosable:pt,inline:bt===!1,afterOpenChange:ht,ref:Ut},Vt);return _e.createElement(Ve.Provider,{value:Bn},_e.createElement(Me.Z,{open:St||Zt||oe,autoDestroy:!1,getContainer:bt,autoLock:Dt&&(St||oe)},_e.createElement(et,un)))},$e=dt,Bt=$e},91574:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return we}});var te=ce(54476),Ke=ce(33885),Me=ce(20068),Ye=ce(42978),_e=ce(76190),ve=ce(75931),Ve=ce(92310),ke=ce.n(Ve),Re=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},Xe={cssFloat:1,styleFloat:1,float:1};function Ce(le){return le.nodeType===1?le.ownerDocument.defaultView.getComputedStyle(le,null):{}}function ct(le,Ee,St){if(Ee=Ee.toLowerCase(),St==="auto"){if(Ee==="height")return le.offsetHeight;if(Ee==="width")return le.offsetWidth}return Ee in ge||(ge[Ee]=Re.test(Ee)),ge[Ee]?parseFloat(St)||0:St}function tt(le,Ee){var St=arguments.length,Ut=Ce(le);return Ee=Xe[Ee]?"cssFloat"in le.style?"cssFloat":"styleFloat":Ee,St===1?Ut:ct(le,Ee,Ut[Ee]||le.style[Ee])}function nt(le,Ee,St){var Ut=arguments.length;if(Ee=Xe[Ee]?"cssFloat"in le.style?"cssFloat":"styleFloat":Ee,Ut===3)return typeof St=="number"&&Re.test(Ee)&&(St="".concat(St,"px")),le.style[Ee]=St,St;for(var It in Ee)Ee.hasOwnProperty(It)&&nt(le,It,Ee[It]);return Ce(le)}function Ze(le){return le===document.body?document.documentElement.clientWidth:le.offsetWidth}function Le(le){return le===document.body?window.innerHeight||document.documentElement.clientHeight:le.offsetHeight}function ut(){var le=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ee=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:le,height:Ee}}function Ge(){var le=document.documentElement.clientWidth,Ee=window.innerHeight||document.documentElement.clientHeight;return{width:le,height:Ee}}function Je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Qe(le){var Ee=le.getBoundingClientRect(),St=document.documentElement;return{left:Ee.left+(window.pageXOffset||St.scrollLeft)-(St.clientLeft||document.body.clientLeft||0),top:Ee.top+(window.pageYOffset||St.scrollTop)-(St.clientTop||document.body.clientTop||0)}}var xe=ce(18929),Ne=ce(59301),Te=ce(55311),at=ce(8224),He=ce(10228),et=ce(43403),dt=ce(77900),$e=Ne.createContext(null),Bt=function(Ee){var St=Ee.visible,Ut=Ee.maskTransitionName,It=Ee.getContainer,ht=Ee.prefixCls,Bn=Ee.rootClassName,Vt=Ee.icons,un=Ee.countRender,In=Ee.showSwitch,or=Ee.showProgress,vn=Ee.current,fr=Ee.transform,ur=Ee.count,yr=Ee.scale,Xn=Ee.minScale,Mr=Ee.maxScale,Kr=Ee.closeIcon,Er=Ee.onActive,lr=Ee.onClose,Dr=Ee.onZoomIn,Kn=Ee.onZoomOut,tr=Ee.onRotateRight,Jn=Ee.onRotateLeft,mn=Ee.onFlipX,zn=Ee.onFlipY,en=Ee.onReset,Sn=Ee.toolbarRender,hr=Ee.zIndex,sr=Ee.image,cr=(0,Ne.useContext)($e),br=Vt.rotateLeft,Gr=Vt.rotateRight,Ir=Vt.zoomIn,Ur=Vt.zoomOut,Lr=Vt.close,qn=Vt.left,yn=Vt.right,rt=Vt.flipX,kr=Vt.flipY,zr="".concat(ht,"-operations-operation");Ne.useEffect(function(){var Nn=function(Ft){Ft.keyCode===He.Z.ESC&&lr()};return St&&window.addEventListener("keydown",Nn),function(){window.removeEventListener("keydown",Nn)}},[St]);var Lt=function(xt,Ft){xt.preventDefault(),xt.stopPropagation(),Er(Ft)},Tt=Ne.useCallback(function(Nn){var xt=Nn.type,Ft=Nn.disabled,pn=Nn.onClick,Ln=Nn.icon;return Ne.createElement("div",{key:xt,className:ke()(zr,"".concat(ht,"-operations-operation-").concat(xt),(0,Me.Z)({},"".concat(ht,"-operations-operation-disabled"),!!Ft)),onClick:pn},Ln)},[zr,ht]),nr=In?Tt({icon:qn,onClick:function(xt){return Lt(xt,-1)},type:"prev",disabled:vn===0}):void 0,Tn=In?Tt({icon:yn,onClick:function(xt){return Lt(xt,1)},type:"next",disabled:vn===ur-1}):void 0,jt=Tt({icon:kr,onClick:zn,type:"flipY"}),_n=Tt({icon:rt,onClick:mn,type:"flipX"}),ir=Tt({icon:br,onClick:Jn,type:"rotateLeft"}),ar=Tt({icon:Gr,onClick:tr,type:"rotateRight"}),Ar=Tt({icon:Ur,onClick:Kn,type:"zoomOut",disabled:yr<=Xn}),dr=Tt({icon:Ir,onClick:Dr,type:"zoomIn",disabled:yr===Mr}),xr=Ne.createElement("div",{className:"".concat(ht,"-operations")},jt,_n,ir,ar,Ar,dr);return Ne.createElement(dt.default,{visible:St,motionName:Ut},function(Nn){var xt=Nn.className,Ft=Nn.style;return Ne.createElement(et.Z,{open:!0,getContainer:It!=null?It:document.body},Ne.createElement("div",{className:ke()("".concat(ht,"-operations-wrapper"),xt,Bn),style:(0,Ke.Z)((0,Ke.Z)({},Ft),{},{zIndex:hr})},Kr===null?null:Ne.createElement("button",{className:"".concat(ht,"-close"),onClick:lr},Kr||Lr),In&&Ne.createElement(Ne.Fragment,null,Ne.createElement("div",{className:ke()("".concat(ht,"-switch-left"),(0,Me.Z)({},"".concat(ht,"-switch-left-disabled"),vn===0)),onClick:function(Ln){return Lt(Ln,-1)}},qn),Ne.createElement("div",{className:ke()("".concat(ht,"-switch-right"),(0,Me.Z)({},"".concat(ht,"-switch-right-disabled"),vn===ur-1)),onClick:function(Ln){return Lt(Ln,1)}},yn)),Ne.createElement("div",{className:"".concat(ht,"-footer")},or&&Ne.createElement("div",{className:"".concat(ht,"-progress")},un?un(vn+1,ur):"".concat(vn+1," / ").concat(ur)),Sn?Sn(xr,(0,Ke.Z)((0,Ke.Z)({icons:{prevIcon:nr,nextIcon:Tn,flipYIcon:jt,flipXIcon:_n,rotateLeftIcon:ir,rotateRightIcon:ar,zoomOutIcon:Ar,zoomInIcon:dr},actions:{onActive:Er,onFlipY:zn,onFlipX:mn,onRotateLeft:Jn,onRotateRight:tr,onZoomOut:Kn,onZoomIn:Dr,onReset:en,onClose:lr},transform:fr},cr?{current:vn,total:ur}:{}),{},{image:sr})):xr)))})},At=Bt,mt=ce(13697),Gt=ce(16089),Jt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function gn(le,Ee,St,Ut){var It=(0,Ne.useRef)(null),ht=(0,Ne.useRef)([]),Bn=(0,Ne.useState)(Jt),Vt=(0,Ye.Z)(Bn,2),un=Vt[0],In=Vt[1],or=function(yr){In(Jt),(0,mt.Z)(Jt,un)||Ut==null||Ut({transform:Jt,action:yr})},vn=function(yr,Xn){It.current===null&&(ht.current=[],It.current=(0,Gt.Z)(function(){In(function(Mr){var Kr=Mr;return ht.current.forEach(function(Er){Kr=(0,Ke.Z)((0,Ke.Z)({},Kr),Er)}),It.current=null,Ut==null||Ut({transform:Kr,action:Xn}),Kr})})),ht.current.push((0,Ke.Z)((0,Ke.Z)({},un),yr))},fr=function(yr,Xn,Mr,Kr,Er){var lr=le.current,Dr=lr.width,Kn=lr.height,tr=lr.offsetWidth,Jn=lr.offsetHeight,mn=lr.offsetLeft,zn=lr.offsetTop,en=yr,Sn=un.scale*yr;Sn>St?(Sn=St,en=St/un.scale):SnUt){if(Ee>0)return(0,Me.Z)({},le,ht);if(Ee<0&&ItUt)return(0,Me.Z)({},le,Ee<0?ht:-ht);return{}}function Fe(le,Ee,St,Ut){var It=Ge(),ht=It.width,Bn=It.height,Vt=null;return le<=ht&&Ee<=Bn?Vt={x:0,y:0}:(le>ht||Ee>Bn)&&(Vt=(0,Ke.Z)((0,Ke.Z)({},We("x",St,le,ht)),We("y",Ut,Ee,Bn))),Vt}var Ot=1,Fn=1;function fn(le,Ee,St,Ut,It,ht,Bn){var Vt=It.rotate,un=It.scale,In=It.x,or=It.y,vn=(0,Ne.useState)(!1),fr=(0,Ye.Z)(vn,2),ur=fr[0],yr=fr[1],Xn=(0,Ne.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Mr=function(Kn){!Ee||Kn.button!==0||(Kn.preventDefault(),Kn.stopPropagation(),Xn.current={diffX:Kn.pageX-In,diffY:Kn.pageY-or,transformX:In,transformY:or},yr(!0))},Kr=function(Kn){St&&ur&&ht({x:Kn.pageX-Xn.current.diffX,y:Kn.pageY-Xn.current.diffY},"move")},Er=function(){if(St&&ur){yr(!1);var Kn=Xn.current,tr=Kn.transformX,Jn=Kn.transformY,mn=In!==tr&&or!==Jn;if(!mn)return;var zn=le.current.offsetWidth*un,en=le.current.offsetHeight*un,Sn=le.current.getBoundingClientRect(),hr=Sn.left,sr=Sn.top,cr=Vt%180!==0,br=Fe(cr?en:zn,cr?zn:en,hr,sr);br&&ht((0,Ke.Z)({},br),"dragRebound")}},lr=function(Kn){if(!(!St||Kn.deltaY==0)){var tr=Math.abs(Kn.deltaY/100),Jn=Math.min(tr,Fn),mn=Ot+Jn*Ut;Kn.deltaY>0&&(mn=Ot/mn),Bn(mn,"wheel",Kn.clientX,Kn.clientY)}};return(0,Ne.useEffect)(function(){var Dr,Kn,tr,Jn;if(Ee){tr=(0,at.Z)(window,"mouseup",Er,!1),Jn=(0,at.Z)(window,"mousemove",Kr,!1);try{window.top!==window.self&&(Dr=(0,at.Z)(window.top,"mouseup",Er,!1),Kn=(0,at.Z)(window.top,"mousemove",Kr,!1))}catch(mn){(0,An.Kp)(!1,"[rc-image] ".concat(mn))}}return function(){var mn,zn,en,Sn;(mn=tr)===null||mn===void 0||mn.remove(),(zn=Jn)===null||zn===void 0||zn.remove(),(en=Dr)===null||en===void 0||en.remove(),(Sn=Kn)===null||Sn===void 0||Sn.remove()}},[St,ur,In,or,Vt,Ee]),{isMoving:ur,onMouseDown:Mr,onMouseMove:Kr,onMouseUp:Er,onWheel:lr}}function Ct(le){return new Promise(function(Ee){if(!le){Ee(!1);return}var St=document.createElement("img");St.onerror=function(){return Ee(!1)},St.onload=function(){return Ee(!0)},St.src=le})}function $t(le){var Ee=le.src,St=le.isCustomPlaceholder,Ut=le.fallback,It=(0,Ne.useState)(St?"loading":"normal"),ht=(0,Ye.Z)(It,2),Bn=ht[0],Vt=ht[1],un=(0,Ne.useRef)(!1),In=Bn==="error";(0,Ne.useEffect)(function(){var ur=!0;return Ct(Ee).then(function(yr){!yr&&ur&&Vt("error")}),function(){ur=!1}},[Ee]),(0,Ne.useEffect)(function(){St&&!un.current?Vt("loading"):In&&Vt("normal")},[Ee]);var or=function(){Vt("normal")},vn=function(yr){un.current=!1,Bn==="loading"&&yr!==null&&yr!==void 0&&yr.complete&&(yr.naturalWidth||yr.naturalHeight)&&(un.current=!0,or())},fr=In&&Ut?{src:Ut}:{onLoad:or,src:Ee};return[vn,fr,Bn]}function on(le,Ee){var St=le.x-Ee.x,Ut=le.y-Ee.y;return Math.hypot(St,Ut)}function jn(le,Ee,St,Ut){var It=on(le,St),ht=on(Ee,Ut);if(It===0&&ht===0)return[le.x,le.y];var Bn=It/(It+ht),Vt=le.x+Bn*(Ee.x-le.x),un=le.y+Bn*(Ee.y-le.y);return[Vt,un]}function Dt(le,Ee,St,Ut,It,ht,Bn){var Vt=It.rotate,un=It.scale,In=It.x,or=It.y,vn=(0,Ne.useState)(!1),fr=(0,Ye.Z)(vn,2),ur=fr[0],yr=fr[1],Xn=(0,Ne.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Mr=function(Kn){Xn.current=(0,Ke.Z)((0,Ke.Z)({},Xn.current),Kn)},Kr=function(Kn){if(Ee){Kn.stopPropagation(),yr(!0);var tr=Kn.touches,Jn=tr===void 0?[]:tr;Jn.length>1?Mr({point1:{x:Jn[0].clientX,y:Jn[0].clientY},point2:{x:Jn[1].clientX,y:Jn[1].clientY},eventType:"touchZoom"}):Mr({point1:{x:Jn[0].clientX-In,y:Jn[0].clientY-or},eventType:"move"})}},Er=function(Kn){var tr=Kn.touches,Jn=tr===void 0?[]:tr,mn=Xn.current,zn=mn.point1,en=mn.point2,Sn=mn.eventType;if(Jn.length>1&&Sn==="touchZoom"){var hr={x:Jn[0].clientX,y:Jn[0].clientY},sr={x:Jn[1].clientX,y:Jn[1].clientY},cr=jn(zn,en,hr,sr),br=(0,Ye.Z)(cr,2),Gr=br[0],Ir=br[1],Ur=on(hr,sr)/on(zn,en);Bn(Ur,"touchZoom",Gr,Ir,!0),Mr({point1:hr,point2:sr,eventType:"touchZoom"})}else Sn==="move"&&(ht({x:Jn[0].clientX-zn.x,y:Jn[0].clientY-zn.y},"move"),Mr({eventType:"move"}))},lr=function(){if(St){if(ur&&yr(!1),Mr({eventType:"none"}),Ut>un)return ht({x:0,y:0,scale:Ut},"touchZoom");var Kn=le.current.offsetWidth*un,tr=le.current.offsetHeight*un,Jn=le.current.getBoundingClientRect(),mn=Jn.left,zn=Jn.top,en=Vt%180!==0,Sn=Fe(en?tr:Kn,en?Kn:tr,mn,zn);Sn&&ht((0,Ke.Z)({},Sn),"dragRebound")}};return(0,Ne.useEffect)(function(){var Dr;return St&&Ee&&(Dr=(0,at.Z)(window,"touchmove",function(Kn){return Kn.preventDefault()},{passive:!1})),function(){var Kn;(Kn=Dr)===null||Kn===void 0||Kn.remove()}},[St,Ee]),{isTouching:ur,onTouchStart:Kr,onTouchMove:Er,onTouchEnd:lr}}var vt=["fallback","src","imgRef"],pt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],bt=function(Ee){var St=Ee.fallback,Ut=Ee.src,It=Ee.imgRef,ht=(0,ve.Z)(Ee,vt),Bn=$t({src:Ut,fallback:St}),Vt=(0,Ye.Z)(Bn,2),un=Vt[0],In=Vt[1];return Ne.createElement("img",(0,te.Z)({ref:function(vn){It.current=vn,un(vn)}},ht,In))},Zt=function(Ee){var St=Ee.prefixCls,Ut=Ee.src,It=Ee.alt,ht=Ee.imageInfo,Bn=Ee.fallback,Vt=Ee.movable,un=Vt===void 0?!0:Vt,In=Ee.onClose,or=Ee.visible,vn=Ee.icons,fr=vn===void 0?{}:vn,ur=Ee.rootClassName,yr=Ee.closeIcon,Xn=Ee.getContainer,Mr=Ee.current,Kr=Mr===void 0?0:Mr,Er=Ee.count,lr=Er===void 0?1:Er,Dr=Ee.countRender,Kn=Ee.scaleStep,tr=Kn===void 0?.5:Kn,Jn=Ee.minScale,mn=Jn===void 0?1:Jn,zn=Ee.maxScale,en=zn===void 0?50:zn,Sn=Ee.transitionName,hr=Sn===void 0?"zoom":Sn,sr=Ee.maskTransitionName,cr=sr===void 0?"fade":sr,br=Ee.imageRender,Gr=Ee.imgCommonProps,Ir=Ee.toolbarRender,Ur=Ee.onTransform,Lr=Ee.onChange,qn=(0,ve.Z)(Ee,pt),yn=(0,Ne.useRef)(),rt=(0,Ne.useContext)($e),kr=rt&&lr>1,zr=rt&&lr>=1,Lt=(0,Ne.useState)(!0),Tt=(0,Ye.Z)(Lt,2),nr=Tt[0],Tn=Tt[1],jt=gn(yn,mn,en,Ur),_n=jt.transform,ir=jt.resetTransform,ar=jt.updateTransform,Ar=jt.dispatchZoomChange,dr=fn(yn,un,or,tr,_n,ar,Ar),xr=dr.isMoving,Nn=dr.onMouseDown,xt=dr.onWheel,Ft=Dt(yn,un,or,mn,_n,ar,Ar),pn=Ft.isTouching,Ln=Ft.onTouchStart,wr=Ft.onTouchMove,Rr=Ft.onTouchEnd,Nr=_n.rotate,rr=_n.scale,Yn=ke()((0,Me.Z)({},"".concat(St,"-moving"),xr));(0,Ne.useEffect)(function(){nr||Tn(!0)},[nr]);var _r=function(){ir("close")},Br=function(){Ar(Ot+tr,"zoomIn")},qr=function(){Ar(Ot/(Ot+tr),"zoomOut")},li=function(){ar({rotate:Nr+90},"rotateRight")},ai=function(){ar({rotate:Nr-90},"rotateLeft")},Ci=function(){ar({flipX:!_n.flipX},"flipX")},ze=function(){ar({flipY:!_n.flipY},"flipY")},Ie=function(){ir("reset")},st=function(Wn){var Vn=Kr+Wn;!Number.isInteger(Vn)||Vn<0||Vn>lr-1||(Tn(!1),ir(Wn<0?"prev":"next"),Lr==null||Lr(Vn,Kr))},Et=function(Wn){!or||!kr||(Wn.keyCode===He.Z.LEFT?st(-1):Wn.keyCode===He.Z.RIGHT&&st(1))},rn=function(Wn){or&&(rr!==1?ar({x:0,y:0,scale:1},"doubleClick"):Ar(Ot+tr,"doubleClick",Wn.clientX,Wn.clientY))};(0,Ne.useEffect)(function(){var Hn=(0,at.Z)(window,"keydown",Et,!1);return function(){Hn.remove()}},[or,kr,Kr]);var Wt=Ne.createElement(bt,(0,te.Z)({},Gr,{width:Ee.width,height:Ee.height,imgRef:yn,className:"".concat(St,"-img"),alt:It,style:{transform:"translate3d(".concat(_n.x,"px, ").concat(_n.y,"px, 0) scale3d(").concat(_n.flipX?"-":"").concat(rr,", ").concat(_n.flipY?"-":"").concat(rr,", 1) rotate(").concat(Nr,"deg)"),transitionDuration:(!nr||pn)&&"0s"},fallback:Bn,src:Ut,onWheel:xt,onMouseDown:Nn,onDoubleClick:rn,onTouchStart:Ln,onTouchMove:wr,onTouchEnd:Rr,onTouchCancel:Rr})),Qn=(0,Ke.Z)({url:Ut,alt:It},ht);return Ne.createElement(Ne.Fragment,null,Ne.createElement(Te.Z,(0,te.Z)({transitionName:hr,maskTransitionName:cr,closable:!1,keyboard:!0,prefixCls:St,onClose:In,visible:or,classNames:{wrapper:Yn},rootClassName:ur,getContainer:Xn},qn,{afterClose:_r}),Ne.createElement("div",{className:"".concat(St,"-img-wrapper")},br?br(Wt,(0,Ke.Z)({transform:_n,image:Qn},rt?{current:Kr}:{})):Wt)),Ne.createElement(At,{visible:or,transform:_n,maskTransitionName:cr,closeIcon:yr,getContainer:Xn,prefixCls:St,rootClassName:ur,icons:fr,countRender:Dr,showSwitch:kr,showProgress:zr,current:Kr,count:lr,scale:rr,minScale:mn,maxScale:en,toolbarRender:Ir,onActive:st,onZoomIn:Br,onZoomOut:qr,onRotateRight:li,onRotateLeft:ai,onFlipX:Ci,onFlipY:ze,onClose:In,onReset:Ie,zIndex:qn.zIndex!==void 0?qn.zIndex+1:void 0,image:Qn}))},yt=Zt,zt=ce(94480),Se=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function se(le){var Ee=Ne.useState({}),St=(0,Ye.Z)(Ee,2),Ut=St[0],It=St[1],ht=Ne.useCallback(function(Vt,un){return It(function(In){return(0,Ke.Z)((0,Ke.Z)({},In),{},(0,Me.Z)({},Vt,un))}),function(){It(function(In){var or=(0,Ke.Z)({},In);return delete or[Vt],or})}},[]),Bn=Ne.useMemo(function(){return le?le.map(function(Vt){if(typeof Vt=="string")return{data:{src:Vt}};var un={};return Object.keys(Vt).forEach(function(In){["src"].concat((0,zt.Z)(Se)).includes(In)&&(un[In]=Vt[In])}),{data:un}}):Object.keys(Ut).reduce(function(Vt,un){var In=Ut[un],or=In.canPreview,vn=In.data;return or&&Vt.push({data:vn,id:un}),Vt},[])},[le,Ut]);return[Bn,ht,!!le]}var fe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ue=["src"],Be=function(Ee){var St,Ut=Ee.previewPrefixCls,It=Ut===void 0?"rc-image-preview":Ut,ht=Ee.children,Bn=Ee.icons,Vt=Bn===void 0?{}:Bn,un=Ee.items,In=Ee.preview,or=Ee.fallback,vn=(0,_e.Z)(In)==="object"?In:{},fr=vn.visible,ur=vn.onVisibleChange,yr=vn.getContainer,Xn=vn.current,Mr=vn.movable,Kr=vn.minScale,Er=vn.maxScale,lr=vn.countRender,Dr=vn.closeIcon,Kn=vn.onChange,tr=vn.onTransform,Jn=vn.toolbarRender,mn=vn.imageRender,zn=(0,ve.Z)(vn,fe),en=se(un),Sn=(0,Ye.Z)(en,3),hr=Sn[0],sr=Sn[1],cr=Sn[2],br=(0,xe.Z)(0,{value:Xn}),Gr=(0,Ye.Z)(br,2),Ir=Gr[0],Ur=Gr[1],Lr=(0,Ne.useState)(!1),qn=(0,Ye.Z)(Lr,2),yn=qn[0],rt=qn[1],kr=((St=hr[Ir])===null||St===void 0?void 0:St.data)||{},zr=kr.src,Lt=(0,ve.Z)(kr,Ue),Tt=(0,xe.Z)(!!fr,{value:fr,onChange:function(pn,Ln){ur==null||ur(pn,Ln,Ir)}}),nr=(0,Ye.Z)(Tt,2),Tn=nr[0],jt=nr[1],_n=(0,Ne.useState)(null),ir=(0,Ye.Z)(_n,2),ar=ir[0],Ar=ir[1],dr=Ne.useCallback(function(Ft,pn,Ln,wr){var Rr=cr?hr.findIndex(function(Nr){return Nr.data.src===pn}):hr.findIndex(function(Nr){return Nr.id===Ft});Ur(Rr<0?0:Rr),jt(!0),Ar({x:Ln,y:wr}),rt(!0)},[hr,cr]);Ne.useEffect(function(){Tn?yn||Ur(0):rt(!1)},[Tn]);var xr=function(pn,Ln){Ur(pn),Kn==null||Kn(pn,Ln)},Nn=function(){jt(!1),Ar(null)},xt=Ne.useMemo(function(){return{register:sr,onPreview:dr}},[sr,dr]);return Ne.createElement($e.Provider,{value:xt},ht,Ne.createElement(yt,(0,te.Z)({"aria-hidden":!Tn,movable:Mr,visible:Tn,prefixCls:It,closeIcon:Dr,onClose:Nn,mousePosition:ar,imgCommonProps:Lt,src:zr,fallback:or,icons:Vt,minScale:Kr,maxScale:Er,getContainer:yr,current:Ir,count:hr.length,countRender:lr,onTransform:tr,toolbarRender:Jn,imageRender:mn,onChange:xr},zn)))},gt=Be,Mt=0;function sn(le,Ee){var St=Ne.useState(function(){return Mt+=1,String(Mt)}),Ut=(0,Ye.Z)(St,1),It=Ut[0],ht=Ne.useContext($e),Bn={data:Ee,canPreview:le};return Ne.useEffect(function(){if(ht)return ht.register(It,Bn)},[]),Ne.useEffect(function(){ht&&ht.register(It,Bn)},[le,Ee]),It}var he=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],oe=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],re=function(Ee){var St=Ee.src,Ut=Ee.alt,It=Ee.onPreviewClose,ht=Ee.prefixCls,Bn=ht===void 0?"rc-image":ht,Vt=Ee.previewPrefixCls,un=Vt===void 0?"".concat(Bn,"-preview"):Vt,In=Ee.placeholder,or=Ee.fallback,vn=Ee.width,fr=Ee.height,ur=Ee.style,yr=Ee.preview,Xn=yr===void 0?!0:yr,Mr=Ee.className,Kr=Ee.onClick,Er=Ee.onError,lr=Ee.wrapperClassName,Dr=Ee.wrapperStyle,Kn=Ee.rootClassName,tr=(0,ve.Z)(Ee,he),Jn=In&&In!==!0,mn=(0,_e.Z)(Xn)==="object"?Xn:{},zn=mn.src,en=mn.visible,Sn=en===void 0?void 0:en,hr=mn.onVisibleChange,sr=hr===void 0?It:hr,cr=mn.getContainer,br=cr===void 0?void 0:cr,Gr=mn.mask,Ir=mn.maskClassName,Ur=mn.movable,Lr=mn.icons,qn=mn.scaleStep,yn=mn.minScale,rt=mn.maxScale,kr=mn.imageRender,zr=mn.toolbarRender,Lt=(0,ve.Z)(mn,oe),Tt=zn!=null?zn:St,nr=(0,xe.Z)(!!Sn,{value:Sn,onChange:sr}),Tn=(0,Ye.Z)(nr,2),jt=Tn[0],_n=Tn[1],ir=$t({src:St,isCustomPlaceholder:Jn,fallback:or}),ar=(0,Ye.Z)(ir,3),Ar=ar[0],dr=ar[1],xr=ar[2],Nn=(0,Ne.useState)(null),xt=(0,Ye.Z)(Nn,2),Ft=xt[0],pn=xt[1],Ln=(0,Ne.useContext)($e),wr=!!Xn,Rr=function(){_n(!1),pn(null)},Nr=ke()(Bn,lr,Kn,(0,Me.Z)({},"".concat(Bn,"-error"),xr==="error")),rr=(0,Ne.useMemo)(function(){var qr={};return Se.forEach(function(li){Ee[li]!==void 0&&(qr[li]=Ee[li])}),qr},Se.map(function(qr){return Ee[qr]})),Yn=(0,Ne.useMemo)(function(){return(0,Ke.Z)((0,Ke.Z)({},rr),{},{src:Tt})},[Tt,rr]),_r=sn(wr,Yn),Br=function(li){var ai=Qe(li.target),Ci=ai.left,ze=ai.top;Ln?Ln.onPreview(_r,Tt,Ci,ze):(pn({x:Ci,y:ze}),_n(!0)),Kr==null||Kr(li)};return Ne.createElement(Ne.Fragment,null,Ne.createElement("div",(0,te.Z)({},tr,{className:Nr,onClick:wr?Br:Kr,style:(0,Ke.Z)({width:vn,height:fr},Dr)}),Ne.createElement("img",(0,te.Z)({},rr,{className:ke()("".concat(Bn,"-img"),(0,Me.Z)({},"".concat(Bn,"-img-placeholder"),In===!0),Mr),style:(0,Ke.Z)({height:fr},ur),ref:Ar},dr,{width:vn,height:fr,onError:Er})),xr==="loading"&&Ne.createElement("div",{"aria-hidden":"true",className:"".concat(Bn,"-placeholder")},In),Gr&&wr&&Ne.createElement("div",{className:ke()("".concat(Bn,"-mask"),Ir),style:{display:(ur==null?void 0:ur.display)==="none"?"none":void 0}},Gr)),!Ln&&wr&&Ne.createElement(yt,(0,te.Z)({"aria-hidden":!jt,visible:jt,prefixCls:un,onClose:Rr,mousePosition:Ft,src:Tt,alt:Ut,imageInfo:{width:vn,height:fr},fallback:or,getContainer:br,icons:Lr,movable:Ur,scaleStep:qn,minScale:yn,maxScale:rt,rootClassName:Kn,imageRender:kr,imgCommonProps:rr,toolbarRender:zr},Lt)))};re.PreviewGroup=gt;var de=re,we=de},20922:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Dt}});var te=ce(54476),Ke=ce(20068),Me=ce(76190),Ye=ce(42978),_e=ce(75931),ve=ce(67732),Ve=ce(83652);function ke(){return typeof BigInt=="function"}function Re(vt){return!vt&&vt!==0&&!Number.isNaN(vt)||!String(vt).trim()}function ge(vt){var pt=vt.trim(),bt=pt.startsWith("-");bt&&(pt=pt.slice(1)),pt=pt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),pt.startsWith(".")&&(pt="0".concat(pt));var Zt=pt||"0",yt=Zt.split("."),zt=yt[0]||"0",Se=yt[1]||"0";zt==="0"&&Se==="0"&&(bt=!1);var se=bt?"-":"";return{negative:bt,negativeStr:se,trimStr:Zt,integerStr:zt,decimalStr:Se,fullStr:"".concat(se).concat(Zt)}}function Xe(vt){var pt=String(vt);return!Number.isNaN(Number(pt))&&pt.includes("e")}function Ce(vt){var pt=String(vt);if(Xe(vt)){var bt=Number(pt.slice(pt.indexOf("e-")+2)),Zt=pt.match(/\.(\d+)/);return Zt!=null&&Zt[1]&&(bt+=Zt[1].length),bt}return pt.includes(".")&&tt(pt)?pt.length-pt.indexOf(".")-1:0}function ct(vt){var pt=String(vt);if(Xe(vt)){if(vt>Number.MAX_SAFE_INTEGER)return String(ke()?BigInt(vt).toString():Number.MAX_SAFE_INTEGER);if(vt0&&arguments[0]!==void 0?arguments[0]:!0;return bt?this.isInvalidate()?"":ge("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),vt}(),Ze=function(){function vt(pt){if((0,ve.Z)(this,vt),(0,Ke.Z)(this,"origin",""),(0,Ke.Z)(this,"number",void 0),(0,Ke.Z)(this,"empty",void 0),Re(pt)){this.empty=!0;return}this.origin=String(pt),this.number=Number(pt)}return(0,Ve.Z)(vt,[{key:"negate",value:function(){return new vt(-this.toNumber())}},{key:"add",value:function(bt){if(this.isInvalidate())return new vt(bt);var Zt=Number(bt);if(Number.isNaN(Zt))return this;var yt=this.number+Zt;if(yt>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(ytNumber.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(yt0&&arguments[0]!==void 0?arguments[0]:!0;return bt?this.isInvalidate()?"":ct(this.number):this.origin}}]),vt}();function Le(vt){return ke()?new nt(vt):new Ze(vt)}function ut(vt,pt,bt){var Zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(vt==="")return"";var yt=ge(vt),zt=yt.negativeStr,Se=yt.integerStr,se=yt.decimalStr,fe="".concat(pt).concat(se),Ue="".concat(zt).concat(Se);if(bt>=0){var Be=Number(se[bt]);if(Be>=5&&!Zt){var gt=Le(vt).add("".concat(zt,"0.").concat("0".repeat(bt)).concat(10-Be));return ut(gt.toString(),pt,bt,Zt)}return bt===0?Ue:"".concat(Ue).concat(pt).concat(se.padEnd(bt,"0").slice(0,bt))}return fe===".0"?Ue:"".concat(Ue).concat(fe)}var Ge=Le,Je=ce(92310),Qe=ce.n(Je),xe=ce(36901),Ne=ce(34280);function Te(vt,pt){return typeof Proxy!="undefined"&&vt?new Proxy(vt,{get:function(Zt,yt){if(pt[yt])return pt[yt];var zt=Zt[yt];return typeof zt=="function"?zt.bind(Zt):zt}}):vt}var at=ce(8654),He=ce(59301),et=ce(48736);function dt(vt,pt){var bt=(0,He.useRef)(null);function Zt(){try{var zt=vt.selectionStart,Se=vt.selectionEnd,se=vt.value,fe=se.substring(0,zt),Ue=se.substring(Se);bt.current={start:zt,end:Se,value:se,beforeTxt:fe,afterTxt:Ue}}catch(Be){}}function yt(){if(vt&&bt.current&&pt)try{var zt=vt.value,Se=bt.current,se=Se.beforeTxt,fe=Se.afterTxt,Ue=Se.start,Be=zt.length;if(zt.startsWith(se))Be=se.length;else if(zt.endsWith(fe))Be=zt.length-bt.current.afterTxt.length;else{var gt=se[Ue-1],Mt=zt.indexOf(gt,Ue-1);Mt!==-1&&(Be=Mt+1)}vt.setSelectionRange(Be,Be)}catch(sn){(0,et.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(sn.message))}}return[Zt,yt]}var $e=ce(49658),Bt=function(){var pt=(0,He.useState)(!1),bt=(0,Ye.Z)(pt,2),Zt=bt[0],yt=bt[1];return(0,Ne.Z)(function(){yt((0,$e.Z)())},[]),Zt},At=Bt,mt=ce(16089),Gt=200,Jt=600;function gn(vt){var pt=vt.prefixCls,bt=vt.upNode,Zt=vt.downNode,yt=vt.upDisabled,zt=vt.downDisabled,Se=vt.onStep,se=He.useRef(),fe=He.useRef([]),Ue=He.useRef();Ue.current=Se;var Be=function(){clearTimeout(se.current)},gt=function(le,Ee){le.preventDefault(),Be(),Ue.current(Ee);function St(){Ue.current(Ee),se.current=setTimeout(St,Gt)}se.current=setTimeout(St,Jt)};He.useEffect(function(){return function(){Be(),fe.current.forEach(function(we){return mt.Z.cancel(we)})}},[]);var Mt=At();if(Mt)return null;var sn="".concat(pt,"-handler"),he=Qe()(sn,"".concat(sn,"-up"),(0,Ke.Z)({},"".concat(sn,"-up-disabled"),yt)),oe=Qe()(sn,"".concat(sn,"-down"),(0,Ke.Z)({},"".concat(sn,"-down-disabled"),zt)),re=function(){return fe.current.push((0,mt.Z)(Be))},de={unselectable:"on",role:"button",onMouseUp:re,onMouseLeave:re};return He.createElement("div",{className:"".concat(sn,"-wrap")},He.createElement("span",(0,te.Z)({},de,{onMouseDown:function(le){gt(le,!0)},"aria-label":"Increase Value","aria-disabled":yt,className:he}),bt||He.createElement("span",{unselectable:"on",className:"".concat(pt,"-handler-up-inner")})),He.createElement("span",(0,te.Z)({},de,{onMouseDown:function(le){gt(le,!1)},"aria-label":"Decrease Value","aria-disabled":zt,className:oe}),Zt||He.createElement("span",{unselectable:"on",className:"".concat(pt,"-handler-down-inner")})))}function An(vt){var pt=typeof vt=="number"?ct(vt):ge(vt).fullStr,bt=pt.includes(".");return bt?ge(pt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:vt+"0"}var We=ce(30292),Fe=function(){var vt=(0,He.useRef)(0),pt=function(){mt.Z.cancel(vt.current)};return(0,He.useEffect)(function(){return pt},[]),function(bt){pt(),vt.current=(0,mt.Z)(function(){bt()})}},Ot=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Fn=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],fn=function(pt,bt){return pt||bt.isEmpty()?bt.toString():bt.toNumber()},Ct=function(pt){var bt=Ge(pt);return bt.isInvalidate()?null:bt},$t=He.forwardRef(function(vt,pt){var bt=vt.prefixCls,Zt=vt.className,yt=vt.style,zt=vt.min,Se=vt.max,se=vt.step,fe=se===void 0?1:se,Ue=vt.defaultValue,Be=vt.value,gt=vt.disabled,Mt=vt.readOnly,sn=vt.upHandler,he=vt.downHandler,oe=vt.keyboard,re=vt.changeOnWheel,de=re===void 0?!1:re,we=vt.controls,le=we===void 0?!0:we,Ee=vt.classNames,St=vt.stringMode,Ut=vt.parser,It=vt.formatter,ht=vt.precision,Bn=vt.decimalSeparator,Vt=vt.onChange,un=vt.onInput,In=vt.onPressEnter,or=vt.onStep,vn=vt.changeOnBlur,fr=vn===void 0?!0:vn,ur=vt.domRef,yr=(0,_e.Z)(vt,Ot),Xn="".concat(bt,"-input"),Mr=He.useRef(null),Kr=He.useState(!1),Er=(0,Ye.Z)(Kr,2),lr=Er[0],Dr=Er[1],Kn=He.useRef(!1),tr=He.useRef(!1),Jn=He.useRef(!1),mn=He.useState(function(){return Ge(Be!=null?Be:Ue)}),zn=(0,Ye.Z)(mn,2),en=zn[0],Sn=zn[1];function hr(rr){Be===void 0&&Sn(rr)}var sr=He.useCallback(function(rr,Yn){if(!Yn)return ht>=0?ht:Math.max(Ce(rr),Ce(fe))},[ht,fe]),cr=He.useCallback(function(rr){var Yn=String(rr);if(Ut)return Ut(Yn);var _r=Yn;return Bn&&(_r=_r.replace(Bn,".")),_r.replace(/[^\w.-]+/g,"")},[Ut,Bn]),br=He.useRef(""),Gr=He.useCallback(function(rr,Yn){if(It)return It(rr,{userTyping:Yn,input:String(br.current)});var _r=typeof rr=="number"?ct(rr):rr;if(!Yn){var Br=sr(_r,Yn);if(tt(_r)&&(Bn||Br>=0)){var qr=Bn||".";_r=ut(_r,qr,Br)}}return _r},[It,sr,Bn]),Ir=He.useState(function(){var rr=Ue!=null?Ue:Be;return en.isInvalidate()&&["string","number"].includes((0,Me.Z)(rr))?Number.isNaN(rr)?"":rr:Gr(en.toString(),!1)}),Ur=(0,Ye.Z)(Ir,2),Lr=Ur[0],qn=Ur[1];br.current=Lr;function yn(rr,Yn){qn(Gr(rr.isInvalidate()?rr.toString(!1):rr.toString(!Yn),Yn))}var rt=He.useMemo(function(){return Ct(Se)},[Se,ht]),kr=He.useMemo(function(){return Ct(zt)},[zt,ht]),zr=He.useMemo(function(){return!rt||!en||en.isInvalidate()?!1:rt.lessEquals(en)},[rt,en]),Lt=He.useMemo(function(){return!kr||!en||en.isInvalidate()?!1:en.lessEquals(kr)},[kr,en]),Tt=dt(Mr.current,lr),nr=(0,Ye.Z)(Tt,2),Tn=nr[0],jt=nr[1],_n=function(Yn){return rt&&!Yn.lessEquals(rt)?rt:kr&&!kr.lessEquals(Yn)?kr:null},ir=function(Yn){return!_n(Yn)},ar=function(Yn,_r){var Br=Yn,qr=ir(Br)||Br.isEmpty();if(!Br.isEmpty()&&!_r&&(Br=_n(Br)||Br,qr=!0),!Mt&&!gt&&qr){var li=Br.toString(),ai=sr(li,_r);return ai>=0&&(Br=Ge(ut(li,".",ai)),ir(Br)||(Br=Ge(ut(li,".",ai,!0)))),Br.equals(en)||(hr(Br),Vt==null||Vt(Br.isEmpty()?null:fn(St,Br)),Be===void 0&&yn(Br,_r)),Br}return en},Ar=Fe(),dr=function rr(Yn){if(Tn(),br.current=Yn,qn(Yn),!tr.current){var _r=cr(Yn),Br=Ge(_r);Br.isNaN()||ar(Br,!0)}un==null||un(Yn),Ar(function(){var qr=Yn;Ut||(qr=Yn.replace(/。/g,".")),qr!==Yn&&rr(qr)})},xr=function(){tr.current=!0},Nn=function(){tr.current=!1,dr(Mr.current.value)},xt=function(Yn){dr(Yn.target.value)},Ft=function(Yn){var _r;if(!(Yn&&zr||!Yn&&Lt)){Kn.current=!1;var Br=Ge(Jn.current?An(fe):fe);Yn||(Br=Br.negate());var qr=(en||Ge(0)).add(Br.toString()),li=ar(qr,!1);or==null||or(fn(St,li),{offset:Jn.current?An(fe):fe,type:Yn?"up":"down"}),(_r=Mr.current)===null||_r===void 0||_r.focus()}},pn=function(Yn){var _r=Ge(cr(Lr)),Br;_r.isNaN()?Br=ar(en,Yn):Br=ar(_r,Yn),Be!==void 0?yn(en,!1):Br.isNaN()||yn(Br,!1)},Ln=function(){Kn.current=!0},wr=function(Yn){var _r=Yn.key,Br=Yn.shiftKey;Kn.current=!0,Jn.current=Br,_r==="Enter"&&(tr.current||(Kn.current=!1),pn(!1),In==null||In(Yn)),oe!==!1&&!tr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_r)&&(Ft(_r==="Up"||_r==="ArrowUp"),Yn.preventDefault())},Rr=function(){Kn.current=!1,Jn.current=!1};He.useEffect(function(){if(de&&lr){var rr=function(Br){Ft(Br.deltaY<0),Br.preventDefault()},Yn=Mr.current;if(Yn)return Yn.addEventListener("wheel",rr,{passive:!1}),function(){return Yn.removeEventListener("wheel",rr)}}});var Nr=function(){fr&&pn(!1),Dr(!1),Kn.current=!1};return(0,Ne.o)(function(){en.isInvalidate()||yn(en,!1)},[ht,It]),(0,Ne.o)(function(){var rr=Ge(Be);Sn(rr);var Yn=Ge(cr(Lr));(!rr.equals(Yn)||!Kn.current||It)&&yn(rr,Kn.current)},[Be]),(0,Ne.o)(function(){It&&jt()},[Lr]),He.createElement("div",{ref:ur,className:Qe()(bt,Zt,(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},"".concat(bt,"-focused"),lr),"".concat(bt,"-disabled"),gt),"".concat(bt,"-readonly"),Mt),"".concat(bt,"-not-a-number"),en.isNaN()),"".concat(bt,"-out-of-range"),!en.isInvalidate()&&!ir(en))),style:yt,onFocus:function(){Dr(!0)},onBlur:Nr,onKeyDown:wr,onKeyUp:Rr,onCompositionStart:xr,onCompositionEnd:Nn,onBeforeInput:Ln},le&&He.createElement(gn,{prefixCls:bt,upNode:sn,downNode:he,upDisabled:zr,downDisabled:Lt,onStep:Ft}),He.createElement("div",{className:"".concat(Xn,"-wrap")},He.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":zt,"aria-valuemax":Se,"aria-valuenow":en.isInvalidate()?null:en.toString(),step:fe},yr,{ref:(0,at.sQ)(Mr,pt),className:Xn,value:Lr,onChange:xt,disabled:gt,readOnly:Mt}))))}),on=He.forwardRef(function(vt,pt){var bt=vt.disabled,Zt=vt.style,yt=vt.prefixCls,zt=yt===void 0?"rc-input-number":yt,Se=vt.value,se=vt.prefix,fe=vt.suffix,Ue=vt.addonBefore,Be=vt.addonAfter,gt=vt.className,Mt=vt.classNames,sn=(0,_e.Z)(vt,Fn),he=He.useRef(null),oe=He.useRef(null),re=He.useRef(null),de=function(le){re.current&&(0,We.nH)(re.current,le)};return He.useImperativeHandle(pt,function(){return Te(re.current,{focus:de,nativeElement:he.current.nativeElement||oe.current})}),He.createElement(xe.BaseInput,{className:gt,triggerFocus:de,prefixCls:zt,value:Se,disabled:bt,style:Zt,prefix:se,suffix:fe,addonAfter:Be,addonBefore:Ue,classNames:Mt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:he},He.createElement($t,(0,te.Z)({prefixCls:zt,disabled:bt,ref:re,domRef:oe,className:Mt==null?void 0:Mt.input},sn)))}),jn=on,Dt=jn},23425:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Te}});var te=ce(20068),Ke=ce(54476),Me=ce(76190),Ye=ce(33885),_e=ce(42978),ve=ce(92310),Ve=ce.n(ve),ke=ce(18929),Re=ce(10228),ge=ce(26112),Xe=ce(48736),Ce=ce(59301),ct=ce(17119),tt=[10,20,50,100],nt=function(He){var et=He.pageSizeOptions,dt=et===void 0?tt:et,$e=He.locale,Bt=He.changeSize,At=He.pageSize,mt=He.goButton,Gt=He.quickGo,Jt=He.rootPrefixCls,gn=He.disabled,An=He.buildOptionText,We=He.showSizeChanger,Fe=He.sizeChangerRender,Ot=Ce.useState(""),Fn=(0,_e.Z)(Ot,2),fn=Fn[0],Ct=Fn[1],$t=function(){return!fn||Number.isNaN(fn)?void 0:Number(fn)},on=typeof An=="function"?An:function(Se){return"".concat(Se," ").concat($e.items_per_page)},jn=function(se){Ct(se.target.value)},Dt=function(se){mt||fn===""||(Ct(""),!(se.relatedTarget&&(se.relatedTarget.className.indexOf("".concat(Jt,"-item-link"))>=0||se.relatedTarget.className.indexOf("".concat(Jt,"-item"))>=0))&&(Gt==null||Gt($t())))},vt=function(se){fn!==""&&(se.keyCode===Re.Z.ENTER||se.type==="click")&&(Ct(""),Gt==null||Gt($t()))},pt=function(){return dt.some(function(se){return se.toString()===At.toString()})?dt:dt.concat([At]).sort(function(se,fe){var Ue=Number.isNaN(Number(se))?0:Number(se),Be=Number.isNaN(Number(fe))?0:Number(fe);return Ue-Be})},bt="".concat(Jt,"-options");if(!We&&!Gt)return null;var Zt=null,yt=null,zt=null;return We&&Fe&&(Zt=Fe({disabled:gn,size:At,onSizeChange:function(se){Bt==null||Bt(Number(se))},"aria-label":$e.page_size,className:"".concat(bt,"-size-changer"),options:pt().map(function(Se){return{label:on(Se),value:Se}})})),Gt&&(mt&&(zt=typeof mt=="boolean"?Ce.createElement("button",{type:"button",onClick:vt,onKeyUp:vt,disabled:gn,className:"".concat(bt,"-quick-jumper-button")},$e.jump_to_confirm):Ce.createElement("span",{onClick:vt,onKeyUp:vt},mt)),yt=Ce.createElement("div",{className:"".concat(bt,"-quick-jumper")},$e.jump_to,Ce.createElement("input",{disabled:gn,type:"text",value:fn,onChange:jn,onKeyUp:vt,onBlur:Dt,"aria-label":$e.page}),$e.page,zt)),Ce.createElement("li",{className:bt},Zt,yt)},Ze=nt,Le=function(He){var et=He.rootPrefixCls,dt=He.page,$e=He.active,Bt=He.className,At=He.showTitle,mt=He.onClick,Gt=He.onKeyPress,Jt=He.itemRender,gn="".concat(et,"-item"),An=Ve()(gn,"".concat(gn,"-").concat(dt),(0,te.Z)((0,te.Z)({},"".concat(gn,"-active"),$e),"".concat(gn,"-disabled"),!dt),Bt),We=function(){mt(dt)},Fe=function(fn){Gt(fn,mt,dt)},Ot=Jt(dt,"page",Ce.createElement("a",{rel:"nofollow"},dt));return Ot?Ce.createElement("li",{title:At?String(dt):null,className:An,onClick:We,onKeyDown:Fe,tabIndex:0},Ot):null},ut=Le,Ge=function(He,et,dt){return dt};function Je(){}function Qe(at){var He=Number(at);return typeof He=="number"&&!Number.isNaN(He)&&isFinite(He)&&Math.floor(He)===He}function xe(at,He,et){var dt=typeof at=="undefined"?He:at;return Math.floor((et-1)/dt)+1}var Ne=function(He){var et=He.prefixCls,dt=et===void 0?"rc-pagination":et,$e=He.selectPrefixCls,Bt=$e===void 0?"rc-select":$e,At=He.className,mt=He.current,Gt=He.defaultCurrent,Jt=Gt===void 0?1:Gt,gn=He.total,An=gn===void 0?0:gn,We=He.pageSize,Fe=He.defaultPageSize,Ot=Fe===void 0?10:Fe,Fn=He.onChange,fn=Fn===void 0?Je:Fn,Ct=He.hideOnSinglePage,$t=He.align,on=He.showPrevNextJumpers,jn=on===void 0?!0:on,Dt=He.showQuickJumper,vt=He.showLessItems,pt=He.showTitle,bt=pt===void 0?!0:pt,Zt=He.onShowSizeChange,yt=Zt===void 0?Je:Zt,zt=He.locale,Se=zt===void 0?ct.Z:zt,se=He.style,fe=He.totalBoundaryShowSizeChanger,Ue=fe===void 0?50:fe,Be=He.disabled,gt=He.simple,Mt=He.showTotal,sn=He.showSizeChanger,he=sn===void 0?An>Ue:sn,oe=He.sizeChangerRender,re=He.pageSizeOptions,de=He.itemRender,we=de===void 0?Ge:de,le=He.jumpPrevIcon,Ee=He.jumpNextIcon,St=He.prevIcon,Ut=He.nextIcon,It=Ce.useRef(null),ht=(0,ke.Z)(10,{value:We,defaultValue:Ot}),Bn=(0,_e.Z)(ht,2),Vt=Bn[0],un=Bn[1],In=(0,ke.Z)(1,{value:mt,defaultValue:Jt,postState:function(Qn){return Math.max(1,Math.min(Qn,xe(void 0,Vt,An)))}}),or=(0,_e.Z)(In,2),vn=or[0],fr=or[1],ur=Ce.useState(vn),yr=(0,_e.Z)(ur,2),Xn=yr[0],Mr=yr[1];(0,Ce.useEffect)(function(){Mr(vn)},[vn]);var Kr=fn!==Je,Er="current"in He,lr=Math.max(1,vn-(vt?3:5)),Dr=Math.min(xe(void 0,Vt,An),vn+(vt?3:5));function Kn(Wt,Qn){var Hn=Wt||Ce.createElement("button",{type:"button","aria-label":Qn,className:"".concat(dt,"-item-link")});return typeof Wt=="function"&&(Hn=Ce.createElement(Wt,(0,Ye.Z)({},He))),Hn}function tr(Wt){var Qn=Wt.target.value,Hn=xe(void 0,Vt,An),Wn;return Qn===""?Wn=Qn:Number.isNaN(Number(Qn))?Wn=Xn:Qn>=Hn?Wn=Hn:Wn=Number(Qn),Wn}function Jn(Wt){return Qe(Wt)&&Wt!==vn&&Qe(An)&&An>0}var mn=An>Vt?Dt:!1;function zn(Wt){(Wt.keyCode===Re.Z.UP||Wt.keyCode===Re.Z.DOWN)&&Wt.preventDefault()}function en(Wt){var Qn=tr(Wt);switch(Qn!==Xn&&Mr(Qn),Wt.keyCode){case Re.Z.ENTER:sr(Qn);break;case Re.Z.UP:sr(Qn-1);break;case Re.Z.DOWN:sr(Qn+1);break;default:break}}function Sn(Wt){sr(tr(Wt))}function hr(Wt){var Qn=xe(Wt,Vt,An),Hn=vn>Qn&&Qn!==0?Qn:vn;un(Wt),Mr(Hn),yt==null||yt(vn,Wt),fr(Hn),fn==null||fn(Hn,Wt)}function sr(Wt){if(Jn(Wt)&&!Be){var Qn=xe(void 0,Vt,An),Hn=Wt;return Wt>Qn?Hn=Qn:Wt<1&&(Hn=1),Hn!==Xn&&Mr(Hn),fr(Hn),fn==null||fn(Hn,Vt),Hn}return vn}var cr=vn>1,br=vn2?Hn-2:0),Vn=2;VnAn?An:vn*Vt])),ir=null,ar=xe(void 0,Vt,An);if(Ct&&An<=Vt)return null;var Ar=[],dr={rootPrefixCls:dt,onClick:sr,onKeyPress:qn,showTitle:bt,itemRender:we,page:-1},xr=vn-1>0?vn-1:0,Nn=vn+1=wr*2&&vn!==3&&(Ar[0]=Ce.cloneElement(Ar[0],{className:Ve()("".concat(dt,"-item-after-jump-prev"),Ar[0].props.className)}),Ar.unshift(Tn)),ar-vn>=wr*2&&vn!==ar-2){var ai=Ar[Ar.length-1];Ar[Ar.length-1]=Ce.cloneElement(ai,{className:Ve()("".concat(dt,"-item-before-jump-next"),ai.props.className)}),Ar.push(ir)}Br!==1&&Ar.unshift(Ce.createElement(ut,(0,Ke.Z)({},dr,{key:1,page:1}))),qr!==ar&&Ar.push(Ce.createElement(ut,(0,Ke.Z)({},dr,{key:ar,page:ar})))}var Ci=Lt(xr);if(Ci){var ze=!cr||!ar;Ci=Ce.createElement("li",{title:bt?Se.prev_page:null,onClick:Gr,tabIndex:ze?null:0,onKeyDown:yn,className:Ve()("".concat(dt,"-prev"),(0,te.Z)({},"".concat(dt,"-disabled"),ze)),"aria-disabled":ze},Ci)}var Ie=Tt(Nn);if(Ie){var st,Et;gt?(st=!br,Et=cr?0:null):(st=!br||!ar,Et=st?null:0),Ie=Ce.createElement("li",{title:bt?Se.next_page:null,onClick:Ir,tabIndex:Et,onKeyDown:rt,className:Ve()("".concat(dt,"-next"),(0,te.Z)({},"".concat(dt,"-disabled"),st)),"aria-disabled":st},Ie)}var rn=Ve()(dt,At,(0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)({},"".concat(dt,"-start"),$t==="start"),"".concat(dt,"-center"),$t==="center"),"".concat(dt,"-end"),$t==="end"),"".concat(dt,"-simple"),gt),"".concat(dt,"-disabled"),Be));return Ce.createElement("ul",(0,Ke.Z)({className:rn,style:se,ref:It},jt),_n,Ci,gt?Ln:Ar,Ie,Ce.createElement(Ze,{locale:Se,rootPrefixCls:dt,disabled:Be,selectPrefixCls:Bt,changeSize:hr,pageSize:Vt,pageSizeOptions:re,quickGo:mn?sr:null,goButton:pn,showSizeChanger:he,sizeChangerRender:oe}))},Te=Ne},25930:function(xn,wt,ce){"use strict";ce.d(wt,{Cd:function(){return dt}});var te=ce(54476),Ke=ce(33885),Me=ce(75931),Ye=ce(59301),_e=ce(92310),ve=ce.n(_e),Ve={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ke=function(){var At=(0,Ye.useRef)([]),mt=(0,Ye.useRef)(null);return(0,Ye.useEffect)(function(){var Gt=Date.now(),Jt=!1;At.current.forEach(function(gn){if(gn){Jt=!0;var An=gn.style;An.transitionDuration=".3s, .3s, .3s, .06s",mt.current&&Gt-mt.current<100&&(An.transitionDuration="0s, 0s")}}),Jt&&(mt.current=Date.now())}),At.current},Re=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ge=function(At){var mt=(0,Ke.Z)((0,Ke.Z)({},Ve),At),Gt=mt.className,Jt=mt.percent,gn=mt.prefixCls,An=mt.strokeColor,We=mt.strokeLinecap,Fe=mt.strokeWidth,Ot=mt.style,Fn=mt.trailColor,fn=mt.trailWidth,Ct=mt.transition,$t=(0,Me.Z)(mt,Re);delete $t.gapPosition;var on=Array.isArray(Jt)?Jt:[Jt],jn=Array.isArray(An)?An:[An],Dt=ke(),vt=Fe/2,pt=100-Fe/2,bt="M ".concat(We==="round"?vt:0,",").concat(vt,` L `).concat(We==="round"?pt:100,",").concat(vt),Zt="0 0 100 ".concat(Fe),yt=0;return Ye.createElement("svg",(0,te.Z)({className:ve()("".concat(gn,"-line"),Gt),viewBox:Zt,preserveAspectRatio:"none",style:Ot},$t),Ye.createElement("path",{className:"".concat(gn,"-line-trail"),d:bt,strokeLinecap:We,stroke:Fn,strokeWidth:fn||Fe,fillOpacity:"0"}),on.map(function(zt,Se){var se=1;switch(We){case"round":se=1-Fe/100;break;case"square":se=1-Fe/2/100;break;default:se=1;break}var fe={strokeDasharray:"".concat(zt*se,"px, 100px"),strokeDashoffset:"-".concat(yt,"px"),transition:Ct||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=jn[Se]||jn[jn.length-1];return yt+=zt,Ye.createElement("path",{key:Se,className:"".concat(gn,"-line-path"),d:bt,strokeLinecap:We,stroke:Ue,strokeWidth:Fe,fillOpacity:"0",ref:function(gt){Dt[Se]=gt},style:fe})}))},Xe=ge,Ce=ce(76190),ct=ce(42978),tt=ce(47273),nt=0,Ze=(0,tt.Z)();function Le(){var Bt;return Ze?(Bt=nt,nt+=1):Bt="TEST_OR_SSR",Bt}var ut=function(Bt){var At=Ye.useState(),mt=(0,ct.Z)(At,2),Gt=mt[0],Jt=mt[1];return Ye.useEffect(function(){Jt("rc_progress_".concat(Le()))},[]),Bt||Gt},Ge=function(At){var mt=At.bg,Gt=At.children;return Ye.createElement("div",{style:{width:"100%",height:"100%",background:mt}},Gt)};function Je(Bt,At){return Object.keys(Bt).map(function(mt){var Gt=parseFloat(mt),Jt="".concat(Math.floor(Gt*At),"%");return"".concat(Bt[mt]," ").concat(Jt)})}var Qe=Ye.forwardRef(function(Bt,At){var mt=Bt.prefixCls,Gt=Bt.color,Jt=Bt.gradientId,gn=Bt.radius,An=Bt.style,We=Bt.ptg,Fe=Bt.strokeLinecap,Ot=Bt.strokeWidth,Fn=Bt.size,fn=Bt.gapDegree,Ct=Gt&&(0,Ce.Z)(Gt)==="object",$t=Ct?"#FFF":void 0,on=Fn/2,jn=Ye.createElement("circle",{className:"".concat(mt,"-circle-path"),r:gn,cx:on,cy:on,stroke:$t,strokeLinecap:Fe,strokeWidth:Ot,opacity:We===0?0:1,style:An,ref:At});if(!Ct)return jn;var Dt="".concat(Jt,"-conic"),vt=fn?"".concat(180+fn/2,"deg"):"0deg",pt=Je(Gt,(360-fn)/360),bt=Je(Gt,1),Zt="conic-gradient(from ".concat(vt,", ").concat(pt.join(", "),")"),yt="linear-gradient(to ".concat(fn?"bottom":"top",", ").concat(bt.join(", "),")");return Ye.createElement(Ye.Fragment,null,Ye.createElement("mask",{id:Dt},jn),Ye.createElement("foreignObject",{x:0,y:0,width:Fn,height:Fn,mask:"url(#".concat(Dt,")")},Ye.createElement(Ge,{bg:yt},Ye.createElement(Ge,{bg:Zt}))))}),xe=Qe,Ne=100,Te=function(At,mt,Gt,Jt,gn,An,We,Fe,Ot,Fn){var fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ct=Gt/100*360*((360-An)/360),$t=An===0?0:{bottom:0,top:180,left:90,right:-90}[We],on=(100-Jt)/100*mt;Ot==="round"&&Jt!==100&&(on+=Fn/2,on>=mt&&(on=mt-.01));var jn=Ne/2;return{stroke:typeof Fe=="string"?Fe:void 0,strokeDasharray:"".concat(mt,"px ").concat(At),strokeDashoffset:on+fn,transform:"rotate(".concat(gn+Ct+$t,"deg)"),transformOrigin:"".concat(jn,"px ").concat(jn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},at=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function He(Bt){var At=Bt!=null?Bt:[];return Array.isArray(At)?At:[At]}var et=function(At){var mt=(0,Ke.Z)((0,Ke.Z)({},Ve),At),Gt=mt.id,Jt=mt.prefixCls,gn=mt.steps,An=mt.strokeWidth,We=mt.trailWidth,Fe=mt.gapDegree,Ot=Fe===void 0?0:Fe,Fn=mt.gapPosition,fn=mt.trailColor,Ct=mt.strokeLinecap,$t=mt.style,on=mt.className,jn=mt.strokeColor,Dt=mt.percent,vt=(0,Me.Z)(mt,at),pt=Ne/2,bt=ut(Gt),Zt="".concat(bt,"-gradient"),yt=pt-An/2,zt=Math.PI*2*yt,Se=Ot>0?90+Ot/2:-90,se=zt*((360-Ot)/360),fe=(0,Ce.Z)(gn)==="object"?gn:{count:gn,gap:2},Ue=fe.count,Be=fe.gap,gt=He(Dt),Mt=He(jn),sn=Mt.find(function(Ee){return Ee&&(0,Ce.Z)(Ee)==="object"}),he=sn&&(0,Ce.Z)(sn)==="object",oe=he?"butt":Ct,re=Te(zt,se,0,100,Se,Ot,Fn,fn,oe,An),de=ke(),we=function(){var St=0;return gt.map(function(Ut,It){var ht=Mt[It]||Mt[Mt.length-1],Bn=Te(zt,se,St,Ut,Se,Ot,Fn,ht,oe,An);return St+=Ut,Ye.createElement(xe,{key:It,color:ht,ptg:Ut,radius:yt,prefixCls:Jt,gradientId:Zt,style:Bn,strokeLinecap:oe,strokeWidth:An,gapDegree:Ot,ref:function(un){de[It]=un},size:Ne})}).reverse()},le=function(){var St=Math.round(Ue*(gt[0]/100)),Ut=100/Ue,It=0;return new Array(Ue).fill(null).map(function(ht,Bn){var Vt=Bn<=St-1?Mt[0]:fn,un=Vt&&(0,Ce.Z)(Vt)==="object"?"url(#".concat(Zt,")"):void 0,In=Te(zt,se,It,Ut,Se,Ot,Fn,Vt,"butt",An,Be);return It+=(se-In.strokeDashoffset+Be)*100/se,Ye.createElement("circle",{key:Bn,className:"".concat(Jt,"-circle-path"),r:yt,cx:pt,cy:pt,stroke:un,strokeWidth:An,opacity:1,style:In,ref:function(vn){de[Bn]=vn}})})};return Ye.createElement("svg",(0,te.Z)({className:ve()("".concat(Jt,"-circle"),on),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:$t,id:Gt,role:"presentation"},vt),!Ue&&Ye.createElement("circle",{className:"".concat(Jt,"-circle-trail"),r:yt,cx:pt,cy:pt,stroke:fn,strokeLinecap:oe,strokeWidth:We||An,style:re}),Ue?le():we())},dt=et,$e={Line:Xe,Circle:dt}},738:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Je}});var te=ce(54476),Ke=ce(20068),Me=ce(42978),Ye=ce(75931),_e=ce(92310),ve=ce.n(_e),Ve=ce(18929),ke=ce(10228),Re=ce(26112),ge=ce(59301);function Xe(Qe,xe){var Ne=Qe.disabled,Te=Qe.prefixCls,at=Qe.character,He=Qe.characterRender,et=Qe.index,dt=Qe.count,$e=Qe.value,Bt=Qe.allowHalf,At=Qe.focused,mt=Qe.onHover,Gt=Qe.onClick,Jt=function(Ct){mt(Ct,et)},gn=function(Ct){Gt(Ct,et)},An=function(Ct){Ct.keyCode===ke.Z.ENTER&&Gt(Ct,et)},We=et+1,Fe=new Set([Te]);$e===0&&et===0&&At?Fe.add("".concat(Te,"-focused")):Bt&&$e+.5>=We&&$eet?"true":"false","aria-posinset":et+1,"aria-setsize":dt,tabIndex:Ne?-1:0},ge.createElement("div",{className:"".concat(Te,"-first")},Ot),ge.createElement("div",{className:"".concat(Te,"-second")},Ot)));return He&&(Fn=He(Fn,Qe)),Fn}var Ce=ge.forwardRef(Xe);function ct(){var Qe=ge.useRef({});function xe(Te){return Qe.current[Te]}function Ne(Te){return function(at){Qe.current[Te]=at}}return[xe,Ne]}function tt(Qe){var xe=Qe.pageXOffset,Ne="scrollLeft";if(typeof xe!="number"){var Te=Qe.document;xe=Te.documentElement[Ne],typeof xe!="number"&&(xe=Te.body[Ne])}return xe}function nt(Qe){var xe,Ne,Te=Qe.ownerDocument,at=Te.body,He=Te&&Te.documentElement,et=Qe.getBoundingClientRect();return xe=et.left,Ne=et.top,xe-=He.clientLeft||at.clientLeft||0,Ne-=He.clientTop||at.clientTop||0,{left:xe,top:Ne}}function Ze(Qe){var xe=nt(Qe),Ne=Qe.ownerDocument,Te=Ne.defaultView||Ne.parentWindow;return xe.left+=tt(Te),xe.left}var Le=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ut(Qe,xe){var Ne=Qe.prefixCls,Te=Ne===void 0?"rc-rate":Ne,at=Qe.className,He=Qe.defaultValue,et=Qe.value,dt=Qe.count,$e=dt===void 0?5:dt,Bt=Qe.allowHalf,At=Bt===void 0?!1:Bt,mt=Qe.allowClear,Gt=mt===void 0?!0:mt,Jt=Qe.keyboard,gn=Jt===void 0?!0:Jt,An=Qe.character,We=An===void 0?"\u2605":An,Fe=Qe.characterRender,Ot=Qe.disabled,Fn=Qe.direction,fn=Fn===void 0?"ltr":Fn,Ct=Qe.tabIndex,$t=Ct===void 0?0:Ct,on=Qe.autoFocus,jn=Qe.onHoverChange,Dt=Qe.onChange,vt=Qe.onFocus,pt=Qe.onBlur,bt=Qe.onKeyDown,Zt=Qe.onMouseLeave,yt=(0,Ye.Z)(Qe,Le),zt=ct(),Se=(0,Me.Z)(zt,2),se=Se[0],fe=Se[1],Ue=ge.useRef(null),Be=function(){if(!Ot){var lr;(lr=Ue.current)===null||lr===void 0||lr.focus()}};ge.useImperativeHandle(xe,function(){return{focus:Be,blur:function(){if(!Ot){var lr;(lr=Ue.current)===null||lr===void 0||lr.blur()}}}});var gt=(0,Ve.Z)(He||0,{value:et}),Mt=(0,Me.Z)(gt,2),sn=Mt[0],he=Mt[1],oe=(0,Ve.Z)(null),re=(0,Me.Z)(oe,2),de=re[0],we=re[1],le=function(lr,Dr){var Kn=fn==="rtl",tr=lr+1;if(At){var Jn=se(lr),mn=Ze(Jn),zn=Jn.clientWidth;(Kn&&Dr-mn>zn/2||!Kn&&Dr-mn0&&!Kn||Dr===ke.Z.RIGHT&&sn>0&&Kn?(Ee(sn-tr),lr.preventDefault()):Dr===ke.Z.LEFT&&sn<$e&&Kn&&(Ee(sn+tr),lr.preventDefault())),bt==null||bt(lr)};ge.useEffect(function(){on&&!Ot&&Be()},[]);var Mr=new Array($e).fill(0).map(function(Er,lr){return ge.createElement(Ce,{ref:fe(lr),index:lr,count:$e,disabled:Ot,prefixCls:"".concat(Te,"-star"),allowHalf:At,value:or===null?sn:or,onClick:yr,onHover:fr,key:Er||lr,character:We,characterRender:Fe,focused:It})}),Kr=ve()(Te,at,(0,Ke.Z)((0,Ke.Z)({},"".concat(Te,"-disabled"),Ot),"".concat(Te,"-rtl"),fn==="rtl"));return ge.createElement("ul",(0,te.Z)({className:Kr,onMouseLeave:ur,tabIndex:Ot?-1:$t,onFocus:Ot?null:Bn,onBlur:Ot?null:Vt,onKeyDown:Ot?null:Xn,ref:Ue},(0,Re.Z)(yt,{aria:!0,data:!0,attr:!0})),Mr)}var Ge=ge.forwardRef(ut),Je=Ge},6551:function(xn,wt,ce){"use strict";ce.d(wt,{ZP:function(){return Ve}});var te=ce(42978),Ke=ce(59301),Me=ce(47273),Ye=0,_e=(0,Me.Z)();function ve(){var ke;return _e?(ke=Ye,Ye+=1):ke="TEST_OR_SSR",ke}function Ve(ke){var Re=Ke.useState(),ge=(0,te.Z)(Re,2),Xe=ge[0],Ce=ge[1];return Ke.useEffect(function(){Ce("rc_select_".concat(ve()))},[]),ke||Xe}},37463:function(xn,wt,ce){"use strict";ce.d(wt,{Ac:function(){return ht},Xo:function(){return Vt},Wx:function(){return In},ZP:function(){return zr},lk:function(){return Je}});var te=ce(54476),Ke=ce(94480),Me=ce(20068),Ye=ce(33885),_e=ce(42978),ve=ce(75931),Ve=ce(76190),ke=ce(18929),Re=ce(48736),ge=ce(59301),Xe=ce(92310),Ce=ce.n(Xe),ct=ce(34280),tt=ce(49658),nt=ce(8654),Ze=function(Tt){var nr=Tt.className,Tn=Tt.customizeIcon,jt=Tt.customizeIconProps,_n=Tt.children,ir=Tt.onMouseDown,ar=Tt.onClick,Ar=typeof Tn=="function"?Tn(jt):Tn;return ge.createElement("span",{className:nr,onMouseDown:function(xr){xr.preventDefault(),ir==null||ir(xr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ar,"aria-hidden":!0},Ar!==void 0?Ar:ge.createElement("span",{className:Ce()(nr.split(/\s+/).map(function(dr){return"".concat(dr,"-icon")}))},_n))},Le=Ze,ut=function(Tt,nr,Tn,jt,_n){var ir=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ar=arguments.length>6?arguments[6]:void 0,Ar=arguments.length>7?arguments[7]:void 0,dr=ge.useMemo(function(){if((0,Ve.Z)(jt)==="object")return jt.clearIcon;if(_n)return _n},[jt,_n]),xr=ge.useMemo(function(){return!!(!ir&&jt&&(Tn.length||ar)&&!(Ar==="combobox"&&ar===""))},[jt,ir,Tn.length,ar,Ar]);return{allowClear:xr,clearIcon:ge.createElement(Le,{className:"".concat(Tt,"-clear"),onMouseDown:nr,customizeIcon:dr},"\xD7")}},Ge=ge.createContext(null);function Je(){return ge.useContext(Ge)}function Qe(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Tt=ge.useState(!1),nr=(0,_e.Z)(Tt,2),Tn=nr[0],jt=nr[1],_n=ge.useRef(null),ir=function(){window.clearTimeout(_n.current)};ge.useEffect(function(){return ir},[]);var ar=function(dr,xr){ir(),_n.current=window.setTimeout(function(){jt(dr),xr&&xr()},Lt)};return[Tn,ar,ir]}function xe(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Tt=ge.useRef(null),nr=ge.useRef(null);ge.useEffect(function(){return function(){window.clearTimeout(nr.current)}},[]);function Tn(jt){(jt||Tt.current===null)&&(Tt.current=jt),window.clearTimeout(nr.current),nr.current=window.setTimeout(function(){Tt.current=null},Lt)}return[function(){return Tt.current},Tn]}function Ne(Lt,Tt,nr,Tn){var jt=ge.useRef(null);jt.current={open:Tt,triggerOpen:nr,customizedTrigger:Tn},ge.useEffect(function(){function _n(ir){var ar;if(!((ar=jt.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var Ar=ir.target;Ar.shadowRoot&&ir.composed&&(Ar=ir.composedPath()[0]||Ar),jt.current.open&&Lt().filter(function(dr){return dr}).every(function(dr){return!dr.contains(Ar)&&dr!==Ar})&&jt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_n),function(){return window.removeEventListener("mousedown",_n)}},[])}var Te=ce(10228);function at(Lt){return Lt&&![Te.Z.ESC,Te.Z.SHIFT,Te.Z.BACKSPACE,Te.Z.TAB,Te.Z.WIN_KEY,Te.Z.ALT,Te.Z.META,Te.Z.WIN_KEY_RIGHT,Te.Z.CTRL,Te.Z.SEMICOLON,Te.Z.EQUALS,Te.Z.CAPS_LOCK,Te.Z.CONTEXT_MENU,Te.Z.F1,Te.Z.F2,Te.Z.F3,Te.Z.F4,Te.Z.F5,Te.Z.F6,Te.Z.F7,Te.Z.F8,Te.Z.F9,Te.Z.F10,Te.Z.F11,Te.Z.F12].includes(Lt)}var He=ce(26112),et=ce(11780);function dt(Lt,Tt,nr){var Tn=(0,Ye.Z)((0,Ye.Z)({},Lt),nr?Tt:{});return Object.keys(Tt).forEach(function(jt){var _n=Tt[jt];typeof _n=="function"&&(Tn[jt]=function(){for(var ir,ar=arguments.length,Ar=new Array(ar),dr=0;drrr&&(Mn="".concat(On.slice(0,rr),"..."))}var $n=function(gr){gr&&gr.stopPropagation(),li(tn)};return typeof Br=="function"?Rn(Nt,Mn,cn,qt,$n):dn(tn,Mn,cn,qt,$n)},wn=function(tn){if(!jt.length)return null;var cn=typeof _r=="function"?_r(tn):_r;return typeof Br=="function"?Rn(void 0,cn,!1,!1,void 0,!0):dn({title:cn},cn,!1)},Ht=ge.createElement("div",{className:"".concat(Rt,"-search"),style:{width:Wn},onFocus:function(){Yt(!0)},onBlur:function(){Yt(!1)}},ge.createElement(Gt,{ref:Ar,open:_n,prefixCls:Tn,id:nr,inputElement:null,disabled:xr,autoFocus:Ft,autoComplete:pn,editable:nn,activeDescendantId:Ln,value:Kt,onKeyDown:ze,onMouseDown:Ie,onChange:ai,onPaste:Ci,onCompositionStart:st,onCompositionEnd:Et,onBlur:rn,tabIndex:wr,attrs:(0,He.Z)(Tt,!0)}),ge.createElement("span",{ref:Wt,className:"".concat(Rt,"-search-mirror"),"aria-hidden":!0},Kt,"\xA0")),ln=ge.createElement(et.Z,{prefixCls:"".concat(Rt,"-overflow"),data:jt,renderItem:it,renderRest:wn,suffix:Ht,itemKey:Ct,maxCount:Nr});return ge.createElement("span",{className:"".concat(Rt,"-wrap")},ln,!jt.length&&!Kt&&ge.createElement("span",{className:"".concat(Rt,"-placeholder")},dr))},jn=on,Dt=function(Tt){var nr=Tt.inputElement,Tn=Tt.prefixCls,jt=Tt.id,_n=Tt.inputRef,ir=Tt.disabled,ar=Tt.autoFocus,Ar=Tt.autoComplete,dr=Tt.activeDescendantId,xr=Tt.mode,Nn=Tt.open,xt=Tt.values,Ft=Tt.placeholder,pn=Tt.tabIndex,Ln=Tt.showSearch,wr=Tt.searchValue,Rr=Tt.activeValue,Nr=Tt.maxLength,rr=Tt.onInputKeyDown,Yn=Tt.onInputMouseDown,_r=Tt.onInputChange,Br=Tt.onInputPaste,qr=Tt.onInputCompositionStart,li=Tt.onInputCompositionEnd,ai=Tt.onInputBlur,Ci=Tt.title,ze=ge.useState(!1),Ie=(0,_e.Z)(ze,2),st=Ie[0],Et=Ie[1],rn=xr==="combobox",Wt=rn||Ln,Qn=xt[0],Hn=wr||"";rn&&Rr&&!st&&(Hn=Rr),ge.useEffect(function(){rn&&Et(!1)},[rn,Rr]);var Wn=xr!=="combobox"&&!Nn&&!Ln?!1:!!Hn,Vn=Ci===void 0?Fn(Qn):Ci,Zn=ge.useMemo(function(){return Qn?null:ge.createElement("span",{className:"".concat(Tn,"-selection-placeholder"),style:Wn?{visibility:"hidden"}:void 0},Ft)},[Qn,Wn,Ft,Tn]);return ge.createElement("span",{className:"".concat(Tn,"-selection-wrap")},ge.createElement("span",{className:"".concat(Tn,"-selection-search")},ge.createElement(Gt,{ref:_n,prefixCls:Tn,id:jt,open:Nn,inputElement:nr,disabled:ir,autoFocus:ar,autoComplete:Ar,editable:Wt,activeDescendantId:dr,value:Hn,onKeyDown:rr,onMouseDown:Yn,onChange:function(ft){Et(!0),_r(ft)},onPaste:Br,onCompositionStart:qr,onCompositionEnd:li,onBlur:ai,tabIndex:pn,attrs:(0,He.Z)(Tt,!0),maxLength:rn?Nr:void 0})),!rn&&Qn?ge.createElement("span",{className:"".concat(Tn,"-selection-item"),title:Vn,style:Wn?{visibility:"hidden"}:void 0},Qn.label):null,Zn)},vt=Dt,pt=function(Tt,nr){var Tn=(0,ge.useRef)(null),jt=(0,ge.useRef)(!1),_n=Tt.prefixCls,ir=Tt.open,ar=Tt.mode,Ar=Tt.showSearch,dr=Tt.tokenWithEnter,xr=Tt.disabled,Nn=Tt.prefix,xt=Tt.autoClearSearchValue,Ft=Tt.onSearch,pn=Tt.onSearchSubmit,Ln=Tt.onToggleOpen,wr=Tt.onInputKeyDown,Rr=Tt.onInputBlur,Nr=Tt.domRef;ge.useImperativeHandle(nr,function(){return{focus:function(Vn){Tn.current.focus(Vn)},blur:function(){Tn.current.blur()}}});var rr=xe(0),Yn=(0,_e.Z)(rr,2),_r=Yn[0],Br=Yn[1],qr=function(Vn){var Zn=Vn.which,Gn=Tn.current instanceof HTMLTextAreaElement;!Gn&&ir&&(Zn===Te.Z.UP||Zn===Te.Z.DOWN)&&Vn.preventDefault(),wr&&wr(Vn),Zn===Te.Z.ENTER&&ar==="tags"&&!jt.current&&!ir&&(pn==null||pn(Vn.target.value)),!(Gn&&!ir&&~[Te.Z.UP,Te.Z.DOWN,Te.Z.LEFT,Te.Z.RIGHT].indexOf(Zn))&&at(Zn)&&Ln(!0)},li=function(){Br(!0)},ai=(0,ge.useRef)(null),Ci=function(Vn){Ft(Vn,!0,jt.current)!==!1&&Ln(!0)},ze=function(){jt.current=!0},Ie=function(Vn){jt.current=!1,ar!=="combobox"&&Ci(Vn.target.value)},st=function(Vn){var Zn=Vn.target.value;if(dr&&ai.current&&/[\r\n]/.test(ai.current)){var Gn=ai.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Zn=Zn.replace(Gn,ai.current)}ai.current=null,Ci(Zn)},Et=function(Vn){var Zn=Vn.clipboardData,Gn=Zn==null?void 0:Zn.getData("text");ai.current=Gn||""},rn=function(Vn){var Zn=Vn.target;if(Zn!==Tn.current){var Gn=document.body.style.msTouchAction!==void 0;Gn?setTimeout(function(){Tn.current.focus()}):Tn.current.focus()}},Wt=function(Vn){var Zn=_r();Vn.target!==Tn.current&&!Zn&&!(ar==="combobox"&&xr)&&Vn.preventDefault(),(ar!=="combobox"&&(!Ar||!Zn)||!ir)&&(ir&&xt!==!1&&Ft("",!0,!1),Ln())},Qn={inputRef:Tn,onInputKeyDown:qr,onInputMouseDown:li,onInputChange:st,onInputPaste:Et,onInputCompositionStart:ze,onInputCompositionEnd:Ie,onInputBlur:Rr},Hn=ar==="multiple"||ar==="tags"?ge.createElement(jn,(0,te.Z)({},Tt,Qn)):ge.createElement(vt,(0,te.Z)({},Tt,Qn));return ge.createElement("div",{ref:Nr,className:"".concat(_n,"-selector"),onClick:rn,onMouseDown:Wt},Nn&&ge.createElement("div",{className:"".concat(_n,"-prefix")},Nn),Hn)},bt=ge.forwardRef(pt),Zt=bt,yt=ce(65030),zt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Se=function(Tt){var nr=Tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"}}},se=function(Tt,nr){var Tn=Tt.prefixCls,jt=Tt.disabled,_n=Tt.visible,ir=Tt.children,ar=Tt.popupElement,Ar=Tt.animation,dr=Tt.transitionName,xr=Tt.dropdownStyle,Nn=Tt.dropdownClassName,xt=Tt.direction,Ft=xt===void 0?"ltr":xt,pn=Tt.placement,Ln=Tt.builtinPlacements,wr=Tt.dropdownMatchSelectWidth,Rr=Tt.dropdownRender,Nr=Tt.dropdownAlign,rr=Tt.getPopupContainer,Yn=Tt.empty,_r=Tt.getTriggerDOMNode,Br=Tt.onPopupVisibleChange,qr=Tt.onPopupMouseEnter,li=(0,ve.Z)(Tt,zt),ai="".concat(Tn,"-dropdown"),Ci=ar;Rr&&(Ci=Rr(ar));var ze=ge.useMemo(function(){return Ln||Se(wr)},[Ln,wr]),Ie=Ar?"".concat(ai,"-").concat(Ar):dr,st=typeof wr=="number",Et=ge.useMemo(function(){return st?null:wr===!1?"minWidth":"width"},[wr,st]),rn=xr;st&&(rn=(0,Ye.Z)((0,Ye.Z)({},rn),{},{width:wr}));var Wt=ge.useRef(null);return ge.useImperativeHandle(nr,function(){return{getPopupElement:function(){var Hn;return(Hn=Wt.current)===null||Hn===void 0?void 0:Hn.popupElement}}}),ge.createElement(yt.Z,(0,te.Z)({},li,{showAction:Br?["click"]:[],hideAction:Br?["click"]:[],popupPlacement:pn||(Ft==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ze,prefixCls:ai,popupTransitionName:Ie,popup:ge.createElement("div",{onMouseEnter:qr},Ci),ref:Wt,stretch:Et,popupAlign:Nr,popupVisible:_n,getPopupContainer:rr,popupClassName:Ce()(Nn,(0,Me.Z)({},"".concat(ai,"-empty"),Yn)),popupStyle:rn,getTriggerDOMNode:_r,onPopupVisibleChange:Br}),ir)},fe=ge.forwardRef(se),Ue=fe,Be=ce(66712);function gt(Lt,Tt){var nr=Lt.key,Tn;return"value"in Lt&&(Tn=Lt.value),nr!=null?nr:Tn!==void 0?Tn:"rc-index-key-".concat(Tt)}function Mt(Lt){return typeof Lt!="undefined"&&!Number.isNaN(Lt)}function sn(Lt,Tt){var nr=Lt||{},Tn=nr.label,jt=nr.value,_n=nr.options,ir=nr.groupLabel,ar=Tn||(Tt?"children":"label");return{label:ar,value:jt||"value",options:_n||"options",groupLabel:ir||ar}}function he(Lt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nr=Tt.fieldNames,Tn=Tt.childrenAsData,jt=[],_n=sn(nr,!1),ir=_n.label,ar=_n.value,Ar=_n.options,dr=_n.groupLabel;function xr(Nn,xt){Array.isArray(Nn)&&Nn.forEach(function(Ft){if(xt||!(Ar in Ft)){var pn=Ft[ar];jt.push({key:gt(Ft,jt.length),groupOption:xt,data:Ft,label:Ft[ir],value:pn})}else{var Ln=Ft[dr];Ln===void 0&&Tn&&(Ln=Ft.label),jt.push({key:gt(Ft,jt.length),group:!0,data:Ft,label:Ln}),xr(Ft[Ar],!0)}})}return xr(Lt,!1),jt}function oe(Lt){var Tt=(0,Ye.Z)({},Lt);return"props"in Tt||Object.defineProperty(Tt,"props",{get:function(){return(0,Re.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Tt}}),Tt}var re=function(Tt,nr,Tn){if(!nr||!nr.length)return null;var jt=!1,_n=function ar(Ar,dr){var xr=(0,Be.Z)(dr),Nn=xr[0],xt=xr.slice(1);if(!Nn)return[Ar];var Ft=Ar.split(Nn);return jt=jt||Ft.length>1,Ft.reduce(function(pn,Ln){return[].concat((0,Ke.Z)(pn),(0,Ke.Z)(ar(Ln,xt)))},[]).filter(Boolean)},ir=_n(Tt,nr);return jt?typeof Tn!="undefined"?ir.slice(0,Tn):ir:null},de=ge.createContext(null),we=de;function le(Lt){var Tt=Lt.visible,nr=Lt.values;if(!Tt)return null;var Tn=50;return ge.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(nr.slice(0,Tn).map(function(jt){var _n=jt.label,ir=jt.value;return["number","string"].includes((0,Ve.Z)(_n))?_n:ir}).join(", ")),nr.length>Tn?", ...":null)}var Ee=["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"],St=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ut=function(Tt){return Tt==="tags"||Tt==="multiple"},It=ge.forwardRef(function(Lt,Tt){var nr,Tn=Lt.id,jt=Lt.prefixCls,_n=Lt.className,ir=Lt.showSearch,ar=Lt.tagRender,Ar=Lt.direction,dr=Lt.omitDomProps,xr=Lt.displayValues,Nn=Lt.onDisplayValuesChange,xt=Lt.emptyOptions,Ft=Lt.notFoundContent,pn=Ft===void 0?"Not Found":Ft,Ln=Lt.onClear,wr=Lt.mode,Rr=Lt.disabled,Nr=Lt.loading,rr=Lt.getInputElement,Yn=Lt.getRawInputElement,_r=Lt.open,Br=Lt.defaultOpen,qr=Lt.onDropdownVisibleChange,li=Lt.activeValue,ai=Lt.onActiveValueChange,Ci=Lt.activeDescendantId,ze=Lt.searchValue,Ie=Lt.autoClearSearchValue,st=Lt.onSearch,Et=Lt.onSearchSplit,rn=Lt.tokenSeparators,Wt=Lt.allowClear,Qn=Lt.prefix,Hn=Lt.suffixIcon,Wn=Lt.clearIcon,Vn=Lt.OptionList,Zn=Lt.animation,Gn=Lt.transitionName,ft=Lt.dropdownStyle,Yt=Lt.dropdownClassName,Rt=Lt.dropdownMatchSelectWidth,Kt=Lt.dropdownRender,nn=Lt.dropdownAlign,dn=Lt.placement,Rn=Lt.builtinPlacements,it=Lt.getPopupContainer,wn=Lt.showAction,Ht=wn===void 0?[]:wn,ln=Lt.onFocus,hn=Lt.onBlur,tn=Lt.onKeyUp,cn=Lt.onKeyDown,er=Lt.onMouseDown,Nt=(0,ve.Z)(Lt,Ee),qt=Ut(wr),Mn=(ir!==void 0?ir:qt)||wr==="combobox",On=(0,Ye.Z)({},Nt);St.forEach(function(Ni){delete On[Ni]}),dr==null||dr.forEach(function(Ni){delete On[Ni]});var $n=ge.useState(!1),Fr=(0,_e.Z)($n,2),gr=Fr[0],Wr=Fr[1];ge.useEffect(function(){Wr((0,tt.Z)())},[]);var Qr=ge.useRef(null),ni=ge.useRef(null),Ai=ge.useRef(null),Jr=ge.useRef(null),hi=ge.useRef(null),ii=ge.useRef(!1),$r=Qe(),ri=(0,_e.Z)($r,3),Or=ri[0],ei=ri[1],gi=ri[2];ge.useImperativeHandle(Tt,function(){var Ni,Di;return{focus:(Ni=Jr.current)===null||Ni===void 0?void 0:Ni.focus,blur:(Di=Jr.current)===null||Di===void 0?void 0:Di.blur,scrollTo:function(ra){var Pa;return(Pa=hi.current)===null||Pa===void 0?void 0:Pa.scrollTo(ra)},nativeElement:Qr.current||ni.current}});var ti=ge.useMemo(function(){var Ni;if(wr!=="combobox")return ze;var Di=(Ni=xr[0])===null||Ni===void 0?void 0:Ni.value;return typeof Di=="string"||typeof Di=="number"?String(Di):""},[ze,wr,xr]),fi=wr==="combobox"&&typeof rr=="function"&&rr()||null,Ei=typeof Yn=="function"&&Yn(),Li=(0,nt.x1)(ni,Ei==null||(nr=Ei.props)===null||nr===void 0?void 0:nr.ref),_a=ge.useState(!1),Oa=(0,_e.Z)(_a,2),Ma=Oa[0],da=Oa[1];(0,ct.Z)(function(){da(!0)},[]);var qi=(0,ke.Z)(!1,{defaultValue:Br,value:_r}),$i=(0,_e.Z)(qi,2),na=$i[0],Ca=$i[1],ha=Ma?na:!1,ma=!pn&&xt;(Rr||ma&&ha&&wr==="combobox")&&(ha=!1);var ya=ma?!1:ha,oi=ge.useCallback(function(Ni){var Di=Ni!==void 0?Ni:!ha;Rr||(Ca(Di),ha!==Di&&(qr==null||qr(Di)))},[Rr,ha,Ca,qr]),mi=ge.useMemo(function(){return(rn||[]).some(function(Ni){return[` `,`\r `].includes(Ni)})},[rn]),bi=ge.useContext(we)||{},Fi=bi.maxCount,Hi=bi.rawValues,Xi=function(Di,pa,ra){if(!(qt&&Mt(Fi)&&(Hi==null?void 0:Hi.size)>=Fi)){var Pa=!0,Ha=Di;ai==null||ai(null);var IA=re(Di,rn,Mt(Fi)?Fi-Hi.size:void 0),CA=ra?null:IA;return wr!=="combobox"&&CA&&(Ha="",Et==null||Et(CA),oi(!1),Pa=!1),st&&ti!==Ha&&st(Ha,{source:pa?"typing":"effect"}),Pa}},Mi=function(Di){!Di||!Di.trim()||st(Di,{source:"submit"})};ge.useEffect(function(){!ha&&!qt&&wr!=="combobox"&&Xi("",!1,!1)},[ha]),ge.useEffect(function(){na&&Rr&&Ca(!1),Rr&&!ii.current&&ei(!1)},[Rr]);var wa=xe(),Ba=(0,_e.Z)(wa,2),Qi=Ba[0],vr=Ba[1],ui=ge.useRef(!1),wi=function(Di){var pa=Qi(),ra=Di.key,Pa=ra==="Enter";if(Pa&&(wr!=="combobox"&&Di.preventDefault(),ha||oi(!0)),vr(!!ti),ra==="Backspace"&&!pa&&qt&&!ti&&xr.length){for(var Ha=(0,Ke.Z)(xr),IA=null,CA=Ha.length-1;CA>=0;CA-=1){var QA=Ha[CA];if(!QA.disabled){Ha.splice(CA,1),IA=QA;break}}IA&&Nn(Ha,{type:"remove",values:[IA]})}for(var ia=arguments.length,$a=new Array(ia>1?ia-1:0),gA=1;gA1?pa-1:0),Pa=1;Pa1?IA-1:0),QA=1;QA=pn},[ar,pn,Yn==null?void 0:Yn.size]),rn=function(Ht){Ht.preventDefault()},Wt=function(Ht){var ln;(ln=st.current)===null||ln===void 0||ln.scrollTo(typeof Ht=="number"?{index:Ht}:Ht)},Qn=ge.useCallback(function(wn){return Ar==="combobox"?!1:Yn.has(wn)},[Ar,(0,Ke.Z)(Yn).toString(),Yn.size]),Hn=function(Ht){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=Ie.length,tn=0;tn1&&arguments[1]!==void 0?arguments[1]:!1;Gn(Ht);var hn={source:ln?"keyboard":"mouse"},tn=Ie[Ht];if(!tn){wr(null,-1,hn);return}wr(tn.value,Ht,hn)};(0,ge.useEffect)(function(){ft(Rr!==!1?Hn(0):-1)},[Ie.length,dr]);var Yt=ge.useCallback(function(wn){return Ar==="combobox"?String(wn).toLowerCase()===dr.toLowerCase():Yn.has(wn)},[Ar,dr,(0,Ke.Z)(Yn).toString(),Yn.size]);(0,ge.useEffect)(function(){var wn=setTimeout(function(){if(!ar&&ir&&Yn.size===1){var ln=Array.from(Yn)[0],hn=Ie.findIndex(function(tn){var cn=tn.data;return dr?String(cn.value).startsWith(dr):cn.value===ln});hn!==-1&&(ft(hn),Wt(hn))}});if(ir){var Ht;(Ht=st.current)===null||Ht===void 0||Ht.scrollTo(void 0)}return function(){return clearTimeout(wn)}},[ir,dr]);var Rt=function(Ht){Ht!==void 0&&Nr(Ht,{selected:!Yn.has(Ht)}),ar||xr(!1)};if(ge.useImperativeHandle(nr,function(){return{onKeyDown:function(Ht){var ln=Ht.which,hn=Ht.ctrlKey;switch(ln){case Te.Z.N:case Te.Z.P:case Te.Z.UP:case Te.Z.DOWN:{var tn=0;if(ln===Te.Z.UP?tn=-1:ln===Te.Z.DOWN?tn=1:ur()&&hn&&(ln===Te.Z.N?tn=1:ln===Te.Z.P&&(tn=-1)),tn!==0){var cn=Hn(Zn+tn,tn);Wt(cn),ft(cn,!0)}break}case Te.Z.TAB:case Te.Z.ENTER:{var er,Nt=Ie[Zn];Nt&&!(Nt!=null&&(er=Nt.data)!==null&&er!==void 0&&er.disabled)&&!Et?Rt(Nt.value):Rt(void 0),ir&&Ht.preventDefault();break}case Te.Z.ESC:xr(!1),ir&&Ht.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ht){Wt(Ht)}}}),Ie.length===0)return ge.createElement("div",{role:"listbox",id:"".concat(_n,"_list"),className:"".concat(ze,"-empty"),onMouseDown:rn},Nn);var Kt=Object.keys(_r).map(function(wn){return _r[wn]}),nn=function(Ht){return Ht.label};function dn(wn,Ht){var ln=wn.group;return{role:ln?"presentation":"option",id:"".concat(_n,"_list_").concat(Ht)}}var Rn=function(Ht){var ln=Ie[Ht];if(!ln)return null;var hn=ln.data||{},tn=hn.value,cn=ln.group,er=(0,He.Z)(hn,!0),Nt=nn(ln);return ln?ge.createElement("div",(0,te.Z)({"aria-label":typeof Nt=="string"&&!cn?Nt:null},er,{key:Ht},dn(ln,Ht),{"aria-selected":Yt(tn)}),tn):null},it={role:"listbox",id:"".concat(_n,"_list")};return ge.createElement(ge.Fragment,null,Br&&ge.createElement("div",(0,te.Z)({},it,{style:{height:0,width:0,overflow:"hidden"}}),Rn(Zn-1),Rn(Zn),Rn(Zn+1)),ge.createElement(fr.Z,{itemKey:"key",ref:st,data:Ie,height:li,itemHeight:ai,fullHeight:!1,onMouseDown:rn,onScroll:xt,virtual:Br,direction:qr,innerProps:Br?null:it},function(wn,Ht){var ln=wn.group,hn=wn.groupOption,tn=wn.data,cn=wn.label,er=wn.value,Nt=tn.key;if(ln){var qt,Mn=(qt=tn.title)!==null&&qt!==void 0?qt:Xn(cn)?cn.toString():void 0;return ge.createElement("div",{className:Ce()(ze,"".concat(ze,"-group"),tn.className),title:Mn},cn!==void 0?cn:Nt)}var On=tn.disabled,$n=tn.title,Fr=tn.children,gr=tn.style,Wr=tn.className,Qr=(0,ve.Z)(tn,yr),ni=(0,vn.Z)(Qr,Kt),Ai=Qn(er),Jr=On||!Ai&&Et,hi="".concat(ze,"-option"),ii=Ce()(ze,hi,Wr,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(hi,"-grouped"),hn),"".concat(hi,"-active"),Zn===Ht&&!Jr),"".concat(hi,"-disabled"),Jr),"".concat(hi,"-selected"),Ai)),$r=nn(wn),ri=!rr||typeof rr=="function"||Ai,Or=typeof $r=="number"?$r:$r||er,ei=Xn(Or)?Or.toString():void 0;return $n!==void 0&&(ei=$n),ge.createElement("div",(0,te.Z)({},(0,He.Z)(ni),Br?{}:dn(wn,Ht),{"aria-selected":Yt(er),className:ii,title:ei,onMouseMove:function(){Zn===Ht||Jr||ft(Ht)},onClick:function(){Jr||Rt(er)},style:gr}),ge.createElement("div",{className:"".concat(hi,"-content")},typeof Ci=="function"?Ci(wn,{index:Ht}):Or),ge.isValidElement(rr)||Ai,ri&&ge.createElement(Le,{className:"".concat(ze,"-option-state"),customizeIcon:rr,customizeIconProps:{value:er,disabled:Jr,isSelected:Ai}},Ai?"\u2713":null))}))},Kr=ge.forwardRef(Mr),Er=Kr,lr=function(Lt,Tt){var nr=ge.useRef({values:new Map,options:new Map}),Tn=ge.useMemo(function(){var _n=nr.current,ir=_n.values,ar=_n.options,Ar=Lt.map(function(Nn){if(Nn.label===void 0){var xt;return(0,Ye.Z)((0,Ye.Z)({},Nn),{},{label:(xt=ir.get(Nn.value))===null||xt===void 0?void 0:xt.label})}return Nn}),dr=new Map,xr=new Map;return Ar.forEach(function(Nn){dr.set(Nn.value,Nn),xr.set(Nn.value,Tt.get(Nn.value)||ar.get(Nn.value))}),nr.current.values=dr,nr.current.options=xr,Ar},[Lt,Tt]),jt=ge.useCallback(function(_n){return Tt.get(_n)||nr.current.options.get(_n)},[Tt]);return[Tn,jt]};function Dr(Lt,Tt){return Jt(Lt).join("").toUpperCase().includes(Tt)}var Kn=function(Lt,Tt,nr,Tn,jt){return ge.useMemo(function(){if(!nr||Tn===!1)return Lt;var _n=Tt.options,ir=Tt.label,ar=Tt.value,Ar=[],dr=typeof Tn=="function",xr=nr.toUpperCase(),Nn=dr?Tn:function(Ft,pn){return jt?Dr(pn[jt],xr):pn[_n]?Dr(pn[ir!=="children"?ir:"label"],xr):Dr(pn[ar],xr)},xt=dr?function(Ft){return oe(Ft)}:function(Ft){return Ft};return Lt.forEach(function(Ft){if(Ft[_n]){var pn=Nn(nr,xt(Ft));if(pn)Ar.push(Ft);else{var Ln=Ft[_n].filter(function(wr){return Nn(nr,xt(wr))});Ln.length&&Ar.push((0,Ye.Z)((0,Ye.Z)({},Ft),{},(0,Me.Z)({},_n,Ln)))}return}Nn(nr,xt(Ft))&&Ar.push(Ft)}),Ar},[Lt,Tn,jt,nr,Tt])},tr=ce(6551),Jn=ce(11592),mn=["children","value"],zn=["children"];function en(Lt){var Tt=Lt,nr=Tt.key,Tn=Tt.props,jt=Tn.children,_n=Tn.value,ir=(0,ve.Z)(Tn,mn);return(0,Ye.Z)({key:nr,value:_n!==void 0?_n:nr,children:jt},ir)}function Sn(Lt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Jn.Z)(Lt).map(function(nr,Tn){if(!ge.isValidElement(nr)||!nr.type)return null;var jt=nr,_n=jt.type.isSelectOptGroup,ir=jt.key,ar=jt.props,Ar=ar.children,dr=(0,ve.Z)(ar,zn);return Tt||!_n?en(nr):(0,Ye.Z)((0,Ye.Z)({key:"__RC_SELECT_GRP__".concat(ir===null?Tn:ir,"__"),label:ir},dr),{},{options:Sn(Ar)})}).filter(function(nr){return nr})}var hr=function(Tt,nr,Tn,jt,_n){return ge.useMemo(function(){var ir=Tt,ar=!Tt;ar&&(ir=Sn(nr));var Ar=new Map,dr=new Map,xr=function(Ft,pn,Ln){Ln&&typeof Ln=="string"&&Ft.set(pn[Ln],pn)},Nn=function xt(Ft){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ln=0;Ln1&&arguments[1]!==void 0?arguments[1]:!1,ir=0;ir0?oi(Fi.options):Fi.options}):Fi})},ri=ge.useMemo(function(){return Nr?$r(ii):ii},[ii,Nr,it]),Or=ge.useMemo(function(){return he(ri,{fieldNames:nn,childrenAsData:Rt})},[ri,nn,Rt]),ei=function(mi){var bi=cn(mi);if(Mn(bi),Vn&&(bi.length!==gr.length||bi.some(function(Xi,Mi){var wa;return((wa=gr[Mi])===null||wa===void 0?void 0:wa.value)!==(Xi==null?void 0:Xi.value)}))){var Fi=Wn?bi:bi.map(function(Xi){return Xi.value}),Hi=bi.map(function(Xi){return oe(Wr(Xi.value))});Vn(Yt?Fi:Fi[0],Yt?Hi:Hi[0])}},gi=ge.useState(null),ti=(0,_e.Z)(gi,2),fi=ti[0],Ei=ti[1],Li=ge.useState(0),_a=(0,_e.Z)(Li,2),Oa=_a[0],Ma=_a[1],da=li!==void 0?li:Tn!=="combobox",qi=ge.useCallback(function(oi,mi){var bi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fi=bi.source,Hi=Fi===void 0?"keyboard":Fi;Ma(mi),ir&&Tn==="combobox"&&oi!==null&&Hi==="keyboard"&&Ei(String(oi))},[ir,Tn]),$i=function(mi,bi,Fi){var Hi=function(){var ji,Ua=Wr(mi);return[Wn?{label:Ua==null?void 0:Ua[nn.label],value:mi,key:(ji=Ua==null?void 0:Ua.key)!==null&&ji!==void 0?ji:mi}:mi,oe(Ua)]};if(bi&&Ft){var Xi=Hi(),Mi=(0,_e.Z)(Xi,2),wa=Mi[0],Ba=Mi[1];Ft(wa,Ba)}else if(!bi&&pn&&Fi!=="clear"){var Qi=Hi(),vr=(0,_e.Z)(Qi,2),ui=vr[0],wi=vr[1];pn(ui,wi)}},na=cr(function(oi,mi){var bi,Fi=Yt?mi.selected:!0;Fi?bi=Yt?[].concat((0,Ke.Z)(gr),[oi]):[oi]:bi=gr.filter(function(Hi){return Hi.value!==oi}),ei(bi),$i(oi,Fi),Tn==="combobox"?Ei(""):(!Ut||xt)&&(wn(""),Ei(""))}),Ca=function(mi,bi){ei(mi);var Fi=bi.type,Hi=bi.values;(Fi==="remove"||Fi==="clear")&&Hi.forEach(function(Xi){$i(Xi.value,!1,Fi)})},ha=function(mi,bi){if(wn(mi),Ei(null),bi.source==="submit"){var Fi=(mi||"").trim();if(Fi){var Hi=Array.from(new Set([].concat((0,Ke.Z)(ni),[Fi])));ei(Hi),$i(Fi,!0),wn("")}return}bi.source!=="blur"&&(Tn==="combobox"&&ei(mi),xr==null||xr(mi))},ma=function(mi){var bi=mi;Tn!=="tags"&&(bi=mi.map(function(Hi){var Xi=hn.get(Hi);return Xi==null?void 0:Xi.value}).filter(function(Hi){return Hi!==void 0}));var Fi=Array.from(new Set([].concat((0,Ke.Z)(ni),(0,Ke.Z)(bi))));ei(Fi),Fi.forEach(function(Hi){$i(Hi,!0)})},ya=ge.useMemo(function(){var oi=Ci!==!1&&wr!==!1;return(0,Ye.Z)((0,Ye.Z)({},Ht),{},{flattenOptions:Or,onActiveValue:qi,defaultActiveFirstOption:da,onSelect:na,menuItemSelectedIcon:ai,rawValues:ni,fieldNames:nn,virtual:oi,direction:ze,listHeight:st,listItemHeight:rn,childrenAsData:Rt,maxCount:Zn,optionRender:Br})},[Zn,Ht,Or,qi,da,na,ai,ni,nn,Ci,wr,ze,st,rn,Rt,Br]);return ge.createElement(we.Provider,{value:ya},ge.createElement(ht,(0,te.Z)({},Gn,{id:ft,prefixCls:_n,ref:Tt,omitDomProps:Lr,mode:Tn,displayValues:Qr,onDisplayValuesChange:Ca,direction:ze,searchValue:it,onSearch:ha,autoClearSearchValue:xt,onSearchSplit:ma,dropdownMatchSelectWidth:wr,OptionList:Er,emptyOptions:!Or.length,activeValue:fi,activeDescendantId:"".concat(ft,"_list_").concat(Oa)})))}),rt=yn;rt.Option=In,rt.OptGroup=Vt;var kr=rt,zr=kr},63158:function(xn,wt,ce){"use strict";var te=ce(54476),Ke=ce(20068),Me=ce(42978),Ye=ce(75931),_e=ce(59301),ve=ce(92310),Ve=ce.n(ve),ke=ce(18929),Re=ce(10228),ge=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Xe=_e.forwardRef(function(Ce,ct){var tt,nt=Ce.prefixCls,Ze=nt===void 0?"rc-switch":nt,Le=Ce.className,ut=Ce.checked,Ge=Ce.defaultChecked,Je=Ce.disabled,Qe=Ce.loadingIcon,xe=Ce.checkedChildren,Ne=Ce.unCheckedChildren,Te=Ce.onClick,at=Ce.onChange,He=Ce.onKeyDown,et=(0,Ye.Z)(Ce,ge),dt=(0,ke.Z)(!1,{value:ut,defaultValue:Ge}),$e=(0,Me.Z)(dt,2),Bt=$e[0],At=$e[1];function mt(An,We){var Fe=Bt;return Je||(Fe=An,At(Fe),at==null||at(Fe,We)),Fe}function Gt(An){An.which===Re.Z.LEFT?mt(!1,An):An.which===Re.Z.RIGHT&&mt(!0,An),He==null||He(An)}function Jt(An){var We=mt(!Bt,An);Te==null||Te(We,An)}var gn=Ve()(Ze,Le,(tt={},(0,Ke.Z)(tt,"".concat(Ze,"-checked"),Bt),(0,Ke.Z)(tt,"".concat(Ze,"-disabled"),Je),tt));return _e.createElement("button",(0,te.Z)({},et,{type:"button",role:"switch","aria-checked":Bt,disabled:Je,className:gn,ref:ct,onKeyDown:Gt,onClick:Jt}),Qe,_e.createElement("span",{className:"".concat(Ze,"-inner")},_e.createElement("span",{className:"".concat(Ze,"-inner-checked")},xe),_e.createElement("span",{className:"".concat(Ze,"-inner-unchecked")},Ne)))});Xe.displayName="Switch",wt.Z=Xe},86351:function(xn,wt,ce){"use strict";ce.d(wt,{R:function(){return Ke},w:function(){return te}});var te={},Ke="rc-table-internal-hook"},97347:function(xn,wt,ce){"use strict";ce.d(wt,{L:function(){return Ze},Z:function(){return Qe}});var te=ce(42978),Ke=ce(20068),Me=ce(94480),Ye=ce(76190),_e=ce(33885),ve=ce(75931),Ve=ce(11592),ke=ce(48736),Re=ce(59301),ge=ce(86351),Xe=ce(54451);function Ce(xe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ne=="number"?Ne:Ne.endsWith("%")?xe*parseFloat(Ne)/100:null}function ct(xe,Ne,Te){return Re.useMemo(function(){if(Ne&&Ne>0){var at=0,He=0;xe.forEach(function(Jt){var gn=Ce(Ne,Jt.width);gn?at+=gn:He+=1});var et=Math.max(Ne,Te),dt=Math.max(et-at,He),$e=He,Bt=dt/He,At=0,mt=xe.map(function(Jt){var gn=(0,_e.Z)({},Jt),An=Ce(Ne,gn.width);if(An)gn.width=An;else{var We=Math.floor(Bt);gn.width=$e===1?dt:We,dt-=We,$e-=1}return At+=gn.width,gn});if(At0?(0,_e.Z)((0,_e.Z)({},Ne),{},{children:Le(Te)}):Ne})}function ut(xe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return xe.filter(function(Te){return Te&&(0,Ye.Z)(Te)==="object"}).reduce(function(Te,at,He){var et=at.fixed,dt=et===!0?"left":et,$e="".concat(Ne,"-").concat(He),Bt=at.children;return Bt&&Bt.length>0?[].concat((0,Me.Z)(Te),(0,Me.Z)(ut(Bt,$e).map(function(At){return(0,_e.Z)({fixed:dt},At)}))):[].concat((0,Me.Z)(Te),[(0,_e.Z)((0,_e.Z)({key:$e},at),{},{fixed:dt})])},[])}function Ge(xe){return xe.map(function(Ne){var Te=Ne.fixed,at=(0,ve.Z)(Ne,nt),He=Te;return Te==="left"?He="right":Te==="right"&&(He="left"),(0,_e.Z)({fixed:He},at)})}function Je(xe,Ne){var Te=xe.prefixCls,at=xe.columns,He=xe.children,et=xe.expandable,dt=xe.expandedKeys,$e=xe.columnTitle,Bt=xe.getRowKey,At=xe.onTriggerExpand,mt=xe.expandIcon,Gt=xe.rowExpandable,Jt=xe.expandIconColumnIndex,gn=xe.direction,An=xe.expandRowByClick,We=xe.columnWidth,Fe=xe.fixed,Ot=xe.scrollWidth,Fn=xe.clientWidth,fn=Re.useMemo(function(){var Zt=at||Ze(He)||[];return Le(Zt.slice())},[at,He]),Ct=Re.useMemo(function(){if(et){var Zt=fn.slice();if(!Zt.includes(ge.w)){var yt=Jt||0;yt>=0&&(yt||Fe==="left"||!Fe)&&Zt.splice(yt,0,ge.w),Fe==="right"&&Zt.splice(fn.length,0,ge.w)}var zt=Zt.indexOf(ge.w);Zt=Zt.filter(function(Ue,Be){return Ue!==ge.w||Be===zt});var Se=fn[zt],se;Fe?se=Fe:se=Se?Se.fixed:null;var fe=(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},Xe.v,{className:"".concat(Te,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",$e),"fixed",se),"className","".concat(Te,"-row-expand-icon-cell")),"width",We),"render",function(Be,gt,Mt){var sn=Bt(gt,Mt),he=dt.has(sn),oe=Gt?Gt(gt):!0,re=mt({prefixCls:Te,expanded:he,expandable:oe,record:gt,onExpand:At});return An?Re.createElement("span",{onClick:function(we){return we.stopPropagation()}},re):re});return Zt.map(function(Ue){return Ue===ge.w?fe:Ue})}return fn.filter(function(Ue){return Ue!==ge.w})},[et,fn,Bt,dt,mt,gn]),$t=Re.useMemo(function(){var Zt=Ct;return Ne&&(Zt=Ne(Zt)),Zt.length||(Zt=[{render:function(){return null}}]),Zt},[Ne,Ct,gn]),on=Re.useMemo(function(){return gn==="rtl"?Ge(ut($t)):ut($t)},[$t,gn,Ot]),jn=Re.useMemo(function(){for(var Zt=-1,yt=on.length-1;yt>=0;yt-=1){var zt=on[yt].fixed;if(zt==="left"||zt===!0){Zt=yt;break}}if(Zt>=0)for(var Se=0;Se<=Zt;Se+=1){var se=on[Se].fixed;if(se!=="left"&&se!==!0)return!0}var fe=on.findIndex(function(gt){var Mt=gt.fixed;return Mt==="right"});if(fe>=0)for(var Ue=fe;Ue=Rt}function on(ft,Yt){return Re(xe,function(Rt){var Kt=$t(ft,Yt||1,Rt.hoverStartRow,Rt.hoverEndRow);return[Kt,Rt.onHover]})}var jn=ce(70425),Dt=function(Yt){var Rt=Yt.ellipsis,Kt=Yt.rowType,nn=Yt.children,dn,Rn=Rt===!0?{showTitle:!0}:Rt;return Rn&&(Rn.showTitle||Kt==="header")&&(typeof nn=="string"||typeof nn=="number"?dn=nn.toString():ve.isValidElement(nn)&&typeof nn.props.children=="string"&&(dn=nn.props.children)),dn};function vt(ft){var Yt,Rt,Kt,nn,dn,Rn,it,wn,Ht=ft.component,ln=ft.children,hn=ft.ellipsis,tn=ft.scope,cn=ft.prefixCls,er=ft.className,Nt=ft.align,qt=ft.record,Mn=ft.render,On=ft.dataIndex,$n=ft.renderIndex,Fr=ft.shouldCellUpdate,gr=ft.index,Wr=ft.rowType,Qr=ft.colSpan,ni=ft.rowSpan,Ai=ft.fixLeft,Jr=ft.fixRight,hi=ft.firstFixLeft,ii=ft.lastFixLeft,$r=ft.firstFixRight,ri=ft.lastFixRight,Or=ft.appendNode,ei=ft.additionalProps,gi=ei===void 0?{}:ei,ti=ft.isSticky,fi="".concat(cn,"-cell"),Ei=Re(xe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Li=Ei.supportSticky,_a=Ei.allColumnsFixedLeft,Oa=Ei.rowHoverable,Ma=Ct(qt,On,$n,ln,Mn,Fr),da=(0,Ke.Z)(Ma,2),qi=da[0],$i=da[1],na={},Ca=typeof Ai=="number"&&Li,ha=typeof Jr=="number"&&Li;Ca&&(na.position="sticky",na.left=Ai),ha&&(na.position="sticky",na.right=Jr);var ma=(Yt=(Rt=(Kt=$i==null?void 0:$i.colSpan)!==null&&Kt!==void 0?Kt:gi.colSpan)!==null&&Rt!==void 0?Rt:Qr)!==null&&Yt!==void 0?Yt:1,ya=(nn=(dn=(Rn=$i==null?void 0:$i.rowSpan)!==null&&Rn!==void 0?Rn:gi.rowSpan)!==null&&dn!==void 0?dn:ni)!==null&&nn!==void 0?nn:1,oi=on(gr,ya),mi=(0,Ke.Z)(oi,2),bi=mi[0],Fi=mi[1],Hi=(0,jn.zX)(function(ui){var wi;qt&&Fi(gr,gr+ya-1),gi==null||(wi=gi.onMouseEnter)===null||wi===void 0||wi.call(gi,ui)}),Xi=(0,jn.zX)(function(ui){var wi;qt&&Fi(-1,-1),gi==null||(wi=gi.onMouseLeave)===null||wi===void 0||wi.call(gi,ui)});if(ma===0||ya===0)return null;var Mi=(it=gi.title)!==null&&it!==void 0?it:Dt({rowType:Wr,ellipsis:hn,children:qi}),wa=Bt()(fi,er,(wn={},(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)(wn,"".concat(fi,"-fix-left"),Ca&&Li),"".concat(fi,"-fix-left-first"),hi&&Li),"".concat(fi,"-fix-left-last"),ii&&Li),"".concat(fi,"-fix-left-all"),ii&&_a&&Li),"".concat(fi,"-fix-right"),ha&&Li),"".concat(fi,"-fix-right-first"),$r&&Li),"".concat(fi,"-fix-right-last"),ri&&Li),"".concat(fi,"-ellipsis"),hn),"".concat(fi,"-with-append"),Or),"".concat(fi,"-fix-sticky"),(Ca||ha)&&ti&&Li),(0,dt.Z)(wn,"".concat(fi,"-row-hover"),!$i&&bi)),gi.className,$i==null?void 0:$i.className),Ba={};Nt&&(Ba.textAlign=Nt);var Qi=(0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)({},$i==null?void 0:$i.style),na),Ba),gi.style),vr=qi;return(0,He.Z)(vr)==="object"&&!Array.isArray(vr)&&!ve.isValidElement(vr)&&(vr=null),hn&&(ii||$r)&&(vr=ve.createElement("span",{className:"".concat(fi,"-content")},vr)),ve.createElement(Ht,(0,ge.Z)({},$i,gi,{className:wa,style:Qi,title:Mi,scope:tn,onMouseEnter:Oa?Hi:void 0,onMouseLeave:Oa?Xi:void 0,colSpan:ma!==1?ma:null,rowSpan:ya!==1?ya:null}),Or,vr)}var pt=ve.memo(vt);function bt(ft,Yt,Rt,Kt,nn){var dn=Rt[ft]||{},Rn=Rt[Yt]||{},it,wn;dn.fixed==="left"?it=Kt.left[nn==="rtl"?Yt:ft]:Rn.fixed==="right"&&(wn=Kt.right[nn==="rtl"?ft:Yt]);var Ht=!1,ln=!1,hn=!1,tn=!1,cn=Rt[Yt+1],er=Rt[ft-1],Nt=cn&&!cn.fixed||er&&!er.fixed||Rt.every(function(Fr){return Fr.fixed==="left"});if(nn==="rtl"){if(it!==void 0){var qt=er&&er.fixed==="left";tn=!qt&&Nt}else if(wn!==void 0){var Mn=cn&&cn.fixed==="right";hn=!Mn&&Nt}}else if(it!==void 0){var On=cn&&cn.fixed==="left";Ht=!On&&Nt}else if(wn!==void 0){var $n=er&&er.fixed==="right";ln=!$n&&Nt}return{fixLeft:it,fixRight:wn,lastFixLeft:Ht,firstFixRight:ln,lastFixRight:hn,firstFixLeft:tn,isSticky:Kt.isSticky}}var Zt=ve.createContext({}),yt=Zt;function zt(ft){var Yt=ft.className,Rt=ft.index,Kt=ft.children,nn=ft.colSpan,dn=nn===void 0?1:nn,Rn=ft.rowSpan,it=ft.align,wn=Re(xe,["prefixCls","direction"]),Ht=wn.prefixCls,ln=wn.direction,hn=ve.useContext(yt),tn=hn.scrollColumnIndex,cn=hn.stickyOffsets,er=hn.flattenColumns,Nt=Rt+dn-1,qt=Nt+1===tn?dn+1:dn,Mn=bt(Rt,Rt+qt-1,er,cn,ln);return ve.createElement(pt,(0,ge.Z)({className:Yt,index:Rt,component:"td",prefixCls:Ht,record:null,dataIndex:null,align:it,colSpan:qt,rowSpan:Rn,render:function(){return Kt}},Mn))}var Se=ce(75931),se=["children"];function fe(ft){var Yt=ft.children,Rt=(0,Se.Z)(ft,se);return ve.createElement("tr",Rt,Yt)}function Ue(ft){var Yt=ft.children;return Yt}Ue.Row=fe,Ue.Cell=zt;var Be=Ue;function gt(ft){var Yt=ft.children,Rt=ft.stickyOffsets,Kt=ft.flattenColumns,nn=Re(xe,"prefixCls"),dn=Kt.length-1,Rn=Kt[dn],it=ve.useMemo(function(){return{stickyOffsets:Rt,flattenColumns:Kt,scrollColumnIndex:Rn!=null&&Rn.scrollbar?dn:null}},[Rn,Kt,dn,Rt]);return ve.createElement(yt.Provider,{value:it},ve.createElement("tfoot",{className:"".concat(nn,"-summary")},Yt))}var Mt=Ge(gt),sn=Be,he=ce(29301),oe=ce(24514),re=ce(75152),de=ce(26112);function we(ft,Yt,Rt,Kt,nn,dn,Rn){ft.push({record:Yt,indent:Rt,index:Rn});var it=dn(Yt),wn=nn==null?void 0:nn.has(it);if(Yt&&Array.isArray(Yt[Kt])&&wn)for(var Ht=0;Ht1?hi-1:0),$r=1;$r=1)),style:(0,et.Z)((0,et.Z)({},Rt),Mn==null?void 0:Mn.style)}),er.map(function(Ai,Jr){var hi=Ai.render,ii=Ai.dataIndex,$r=Ai.className,ri=Vt(tn,Ai,Jr,wn,nn),Or=ri.key,ei=ri.fixedInfo,gi=ri.appendCellNode,ti=ri.additionalCellProps;return ve.createElement(pt,(0,ge.Z)({className:$r,ellipsis:Ai.ellipsis,align:Ai.align,scope:Ai.rowScope,component:Ai.rowScope?hn:ln,prefixCls:cn,key:Or,record:Kt,index:nn,renderIndex:dn,dataIndex:ii,render:hi,shouldCellUpdate:Ai.shouldCellUpdate},ei,{appendNode:gi,additionalProps:ti}))})),Qr;if($n&&(Fr.current||On)){var ni=qt(Kt,nn,wn+1,On);Qr=ve.createElement(Ut,{expanded:On,className:Bt()("".concat(cn,"-expanded-row"),"".concat(cn,"-expanded-row-level-").concat(wn+1),gr),prefixCls:cn,component:Ht,cellComponent:ln,colSpan:er.length,isEmpty:!1},ni)}return ve.createElement(ve.Fragment,null,Wr,Qr)}var In=Ge(un);function or(ft){var Yt=ft.columnKey,Rt=ft.onColumnResize,Kt=ve.useRef();return(0,Ye.Z)(function(){Kt.current&&Rt(Yt,Kt.current.offsetWidth)},[]),ve.createElement(he.Z,{data:Yt},ve.createElement("td",{ref:Kt,style:{padding:0,border:0,height:0}},ve.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var vn=ce(29194);function fr(ft){var Yt=ft.prefixCls,Rt=ft.columnsKey,Kt=ft.onColumnResize,nn=ve.useRef(null);return ve.createElement("tr",{"aria-hidden":"true",className:"".concat(Yt,"-measure-row"),style:{height:0,fontSize:0},ref:nn},ve.createElement(he.Z.Collection,{onBatchResize:function(Rn){(0,vn.Z)(nn.current)&&Rn.forEach(function(it){var wn=it.data,Ht=it.size;Kt(wn,Ht.offsetWidth)})}},Rt.map(function(dn){return ve.createElement(or,{key:dn,columnKey:dn,onColumnResize:Kt})})))}function ur(ft){var Yt=ft.data,Rt=ft.measureColumnWidth,Kt=Re(xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),nn=Kt.prefixCls,dn=Kt.getComponent,Rn=Kt.onColumnResize,it=Kt.flattenColumns,wn=Kt.getRowKey,Ht=Kt.expandedKeys,ln=Kt.childrenColumnName,hn=Kt.emptyNode,tn=le(Yt,ln,Ht,wn),cn=ve.useRef({renderWithProps:!1}),er=dn(["body","wrapper"],"tbody"),Nt=dn(["body","row"],"tr"),qt=dn(["body","cell"],"td"),Mn=dn(["body","cell"],"th"),On;Yt.length?On=tn.map(function(Fr,gr){var Wr=Fr.record,Qr=Fr.indent,ni=Fr.index,Ai=wn(Wr,gr);return ve.createElement(In,{key:Ai,rowKey:Ai,record:Wr,index:gr,renderIndex:ni,rowComponent:Nt,cellComponent:qt,scopeCellComponent:Mn,indent:Qr})}):On=ve.createElement(Ut,{expanded:!0,className:"".concat(nn,"-placeholder"),prefixCls:nn,component:Nt,cellComponent:qt,colSpan:it.length,isEmpty:!0},hn);var $n=Fe(it);return ve.createElement(gn.Provider,{value:cn.current},ve.createElement(er,{className:"".concat(nn,"-tbody")},Rt&&ve.createElement(fr,{prefixCls:nn,columnsKey:$n,onColumnResize:Rn}),On))}var yr=Ge(ur),Xn=ce(54451),Mr=["columnType"];function Kr(ft){for(var Yt=ft.colWidths,Rt=ft.columns,Kt=ft.columCount,nn=Re(xe,["tableLayout"]),dn=nn.tableLayout,Rn=[],it=Kt||Rt.length,wn=!1,Ht=it-1;Ht>=0;Ht-=1){var ln=Yt[Ht],hn=Rt&&Rt[Ht],tn=void 0,cn=void 0;if(hn&&(tn=hn[Xn.v],dn==="auto"&&(cn=hn.minWidth)),ln||cn||tn||wn){var er=tn||{},Nt=er.columnType,qt=(0,Se.Z)(er,Mr);Rn.unshift(ve.createElement("col",(0,ge.Z)({key:Ht,style:{width:ln,minWidth:cn}},qt))),wn=!0}}return ve.createElement("colgroup",null,Rn)}var Er=Kr,lr=ce(94480),Dr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Kn(ft,Yt){return(0,ve.useMemo)(function(){for(var Rt=[],Kt=0;Kt1?"colgroup":"col":null,ellipsis:qt.ellipsis,align:qt.align,component:Rn,prefixCls:ln,key:cn[Nt]},Mn,{additionalProps:On,rowType:"header"}))}))},zn=mn;function en(ft){var Yt=[];function Rt(Rn,it){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Yt[wn]=Yt[wn]||[];var Ht=it,ln=Rn.filter(Boolean).map(function(hn){var tn={key:hn.key,className:hn.className||"",children:hn.title,column:hn,colStart:Ht},cn=1,er=hn.children;return er&&er.length>0&&(cn=Rt(er,Ht,wn+1).reduce(function(Nt,qt){return Nt+qt},0),tn.hasSubColumns=!0),"colSpan"in hn&&(cn=hn.colSpan),"rowSpan"in hn&&(tn.rowSpan=hn.rowSpan),tn.colSpan=cn,tn.colEnd=tn.colStart+cn-1,Yt[wn].push(tn),Ht+=cn,cn});return ln}Rt(ft,0);for(var Kt=Yt.length,nn=function(it){Yt[it].forEach(function(wn){!("rowSpan"in wn)&&!wn.hasSubColumns&&(wn.rowSpan=Kt-it)})},dn=0;dn=gi-it?On(function(ti){return(0,et.Z)((0,et.Z)({},ti),{},{isHiddenScrollBar:!0})}):On(function(ti){return(0,et.Z)((0,et.Z)({},ti),{},{isHiddenScrollBar:!1})})}})},$r=function(Or){On(function(ei){return(0,et.Z)((0,et.Z)({},ei),{},{scrollLeft:Or/hn*tn||0})})};return ve.useImperativeHandle(Rt,function(){return{setScrollLeft:$r,checkScrollBarVisible:ii}}),ve.useEffect(function(){var ri=(0,Tt.Z)(document.body,"mouseup",Ai,!1),Or=(0,Tt.Z)(document.body,"mousemove",hi,!1);return ii(),function(){ri.remove(),Or.remove()}},[cn,Wr]),ve.useEffect(function(){if(dn.current){for(var ri=[],Or=(0,Tn.bn)(dn.current);Or;)ri.push(Or),Or=Or.parentElement;return ri.forEach(function(ei){return ei.addEventListener("scroll",ii,!1)}),window.addEventListener("resize",ii,!1),window.addEventListener("scroll",ii,!1),wn.addEventListener("scroll",ii,!1),function(){ri.forEach(function(ei){return ei.removeEventListener("scroll",ii)}),window.removeEventListener("resize",ii),window.removeEventListener("scroll",ii),wn.removeEventListener("scroll",ii)}}},[wn]),ve.useEffect(function(){Mn.isHiddenScrollBar||On(function(ri){var Or=dn.current;return Or?(0,et.Z)((0,et.Z)({},ri),{},{scrollLeft:Or.scrollLeft/Or.scrollWidth*Or.clientWidth}):ri})},[Mn.isHiddenScrollBar]),hn<=tn||!cn||Mn.isHiddenScrollBar?null:ve.createElement("div",{style:{height:(0,re.Z)(),width:tn,bottom:it},className:"".concat(ln,"-sticky-scroll")},ve.createElement("div",{onMouseDown:Jr,ref:er,className:Bt()("".concat(ln,"-sticky-scroll-bar"),(0,dt.Z)({},"".concat(ln,"-sticky-scroll-bar-active"),Wr)),style:{width:"".concat(cn,"px"),transform:"translate3d(".concat(Mn.scrollLeft,"px, 0, 0)")}}))},ir=ve.forwardRef(_n);function ar(ft){return null}var Ar=ar;function dr(ft){return null}var xr=dr,Nn="rc-table",xt=[],Ft={};function pn(){return"No Data"}function Ln(ft,Yt){var Rt=(0,et.Z)({rowKey:"key",prefixCls:Nn,emptyText:pn},ft),Kt=Rt.prefixCls,nn=Rt.className,dn=Rt.rowClassName,Rn=Rt.style,it=Rt.data,wn=Rt.rowKey,Ht=Rt.scroll,ln=Rt.tableLayout,hn=Rt.direction,tn=Rt.title,cn=Rt.footer,er=Rt.summary,Nt=Rt.caption,qt=Rt.id,Mn=Rt.showHeader,On=Rt.components,$n=Rt.emptyText,Fr=Rt.onRow,gr=Rt.onHeaderRow,Wr=Rt.onScroll,Qr=Rt.internalHooks,ni=Rt.transformColumns,Ai=Rt.internalRefs,Jr=Rt.tailor,hi=Rt.getContainerWidth,ii=Rt.sticky,$r=Rt.rowHoverable,ri=$r===void 0?!0:$r,Or=it||xt,ei=!!Or.length,gi=Qr===te.R,ti=ve.useCallback(function(zi,Wi){return(0,mt.Z)(On,zi)||Wi},[On]),fi=ve.useMemo(function(){return typeof wn=="function"?wn:function(zi){var Wi=zi&&zi[wn];return Wi}},[wn]),Ei=ti(["body"]),Li=Ur(),_a=(0,Ke.Z)(Li,3),Oa=_a[0],Ma=_a[1],da=_a[2],qi=cr(Rt,Or,fi),$i=(0,Ke.Z)(qi,6),na=$i[0],Ca=$i[1],ha=$i[2],ma=$i[3],ya=$i[4],oi=$i[5],mi=Ht==null?void 0:Ht.x,bi=ve.useState(0),Fi=(0,Ke.Z)(bi,2),Hi=Fi[0],Xi=Fi[1],Mi=(0,sr.Z)((0,et.Z)((0,et.Z)((0,et.Z)({},Rt),na),{},{expandable:!!na.expandedRowRender,columnTitle:na.columnTitle,expandedKeys:ha,getRowKey:fi,onTriggerExpand:oi,expandIcon:ma,expandIconColumnIndex:na.expandIconColumnIndex,direction:hn,scrollWidth:gi&&Jr&&typeof mi=="number"?mi:null,clientWidth:Hi}),gi?ni:null),wa=(0,Ke.Z)(Mi,4),Ba=wa[0],Qi=wa[1],vr=wa[2],ui=wa[3],wi=vr!=null?vr:mi,ka=ve.useMemo(function(){return{columns:Ba,flattenColumns:Qi}},[Ba,Qi]),ji=ve.useRef(),Ua=ve.useRef(),Ti=ve.useRef(),_A=ve.useRef();ve.useImperativeHandle(Yt,function(){return{nativeElement:ji.current,scrollTo:function(Wi){var Wa;if(Ti.current instanceof HTMLElement){var Ga=Wi.index,nA=Wi.top,fo=Wi.key;if(Fn(nA)){var JA;(JA=Ti.current)===null||JA===void 0||JA.scrollTo({top:nA})}else{var ho,HA=fo!=null?fo:fi(Or[Ga]);(ho=Ti.current.querySelector('[data-row-key="'.concat(HA,'"]')))===null||ho===void 0||ho.scrollIntoView()}}else(Wa=Ti.current)!==null&&Wa!==void 0&&Wa.scrollTo&&Ti.current.scrollTo(Wi)}}});var fA=ve.useRef(),Za=ve.useState(!1),Vi=(0,Ke.Z)(Za,2),Oi=Vi[0],wA=Vi[1],BA=ve.useState(!1),iA=(0,Ke.Z)(BA,2),za=iA[0],KA=iA[1],kA=ve.useState(new Map),Na=(0,Ke.Z)(kA,2),aA=Na[0],ga=Na[1],ua=Fe(Qi),uA=ua.map(function(zi){return aA.get(zi)}),UA=ve.useMemo(function(){return uA},[uA.join("_")]),DA=kr(UA,Qi,hn),qa=Ht&&Ot(Ht.y),fa=Ht&&Ot(wi)||!!na.fixed,Ni=fa&&Qi.some(function(zi){var Wi=zi.fixed;return Wi}),Di=ve.useRef(),pa=yn(ii,Kt),ra=pa.isSticky,Pa=pa.offsetHeader,Ha=pa.offsetSummary,IA=pa.offsetScroll,CA=pa.stickyClassName,QA=pa.container,ia=ve.useMemo(function(){return er==null?void 0:er(Or)},[er,Or]),$a=(qa||ra)&&ve.isValidElement(ia)&&ia.type===Be&&ia.props.fixed,gA,LA,VA;qa&&(LA={overflowY:ei?"scroll":"auto",maxHeight:Ht.y}),fa&&(gA={overflowX:"auto"},qa||(LA={overflowY:"hidden"}),VA={width:wi===!0?"auto":wi,minWidth:"100%"});var jo=ve.useCallback(function(zi,Wi){ga(function(Wa){if(Wa.get(zi)!==Wi){var Ga=new Map(Wa);return Ga.set(zi,Wi),Ga}return Wa})},[]),Do=Ir(null),ZA=(0,Ke.Z)(Do,2),jA=ZA[0],eA=ZA[1];function tA(zi,Wi){Wi&&(typeof Wi=="function"?Wi(zi):Wi.scrollLeft!==zi&&(Wi.scrollLeft=zi,Wi.scrollLeft!==zi&&setTimeout(function(){Wi.scrollLeft=zi},0)))}var cA=(0,Me.Z)(function(zi){var Wi=zi.currentTarget,Wa=zi.scrollLeft,Ga=hn==="rtl",nA=typeof Wa=="number"?Wa:Wi.scrollLeft,fo=Wi||Ft;if(!eA()||eA()===fo){var JA;jA(fo),tA(nA,Ua.current),tA(nA,Ti.current),tA(nA,fA.current),tA(nA,(JA=Di.current)===null||JA===void 0?void 0:JA.setScrollLeft)}var ho=Wi||Ua.current;if(ho){var HA=gi&&Jr&&typeof wi=="number"?wi:ho.scrollWidth,qA=ho.clientWidth;if(HA===qA){wA(!1),KA(!1);return}Ga?(wA(-nA0)):(wA(nA>0),KA(nA1?qt-ri:0,ei=(0,et.Z)((0,et.Z)((0,et.Z)({},ni),Ht),{},{flex:"0 0 ".concat(ri,"px"),width:"".concat(ri,"px"),marginRight:Or,pointerEvents:"auto"}),gi=ve.useMemo(function(){return hn?ii<=1:Jr===0||ii===0||ii>1},[ii,Jr,hn]);gi?ei.visibility="hidden":hn&&(ei.height=tn==null?void 0:tn(ii));var ti=gi?function(){return null}:cn,fi={};return(ii===0||Jr===0)&&(fi.rowSpan=1,fi.colSpan=1),ve.createElement(pt,(0,ge.Z)({className:Bt()(Nt,ln),ellipsis:Rt.ellipsis,align:Rt.align,scope:Rt.rowScope,component:Rn,prefixCls:Yt.prefixCls,key:Fr,record:wn,index:dn,renderIndex:it,dataIndex:er,render:ti,shouldCellUpdate:Rt.shouldCellUpdate},gr,{appendNode:Wr,additionalProps:(0,et.Z)((0,et.Z)({},Qr),{},{style:ei},fi)}))}var ai=li,Ci=["data","index","className","rowKey","style","extra","getHeight"],ze=ve.forwardRef(function(ft,Yt){var Rt=ft.data,Kt=ft.index,nn=ft.className,dn=ft.rowKey,Rn=ft.style,it=ft.extra,wn=ft.getHeight,Ht=(0,Se.Z)(ft,Ci),ln=Rt.record,hn=Rt.indent,tn=Rt.index,cn=Re(xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),er=cn.scrollX,Nt=cn.flattenColumns,qt=cn.prefixCls,Mn=cn.fixColumn,On=cn.componentWidth,$n=Re(_r,["getComponent"]),Fr=$n.getComponent,gr=Ee(ln,dn,Kt,hn),Wr=Fr(["body","row"],"div"),Qr=Fr(["body","cell"],"div"),ni=gr.rowSupportExpand,Ai=gr.expanded,Jr=gr.rowProps,hi=gr.expandedRowRender,ii=gr.expandedRowClassName,$r;if(ni&&Ai){var ri=hi(ln,Kt,hn+1,Ai),Or=Bn(ii,ln,Kt,hn),ei={};Mn&&(ei={style:(0,dt.Z)({},"--virtual-width","".concat(On,"px"))});var gi="".concat(qt,"-expanded-row-cell");$r=ve.createElement(Wr,{className:Bt()("".concat(qt,"-expanded-row"),"".concat(qt,"-expanded-row-level-").concat(hn+1),Or)},ve.createElement(pt,{component:Qr,prefixCls:qt,className:Bt()(gi,(0,dt.Z)({},"".concat(gi,"-fixed"),Mn)),additionalProps:ei},ri))}var ti=(0,et.Z)((0,et.Z)({},Rn),{},{width:er});it&&(ti.position="absolute",ti.pointerEvents="none");var fi=ve.createElement(Wr,(0,ge.Z)({},Jr,Ht,{"data-row-key":dn,ref:ni?null:Yt,className:Bt()(nn,"".concat(qt,"-row"),Jr==null?void 0:Jr.className,(0,dt.Z)({},"".concat(qt,"-row-extra"),it)),style:(0,et.Z)((0,et.Z)({},ti),Jr==null?void 0:Jr.style)}),Nt.map(function(Ei,Li){return ve.createElement(ai,{key:Li,component:Qr,rowInfo:gr,column:Ei,colIndex:Li,indent:hn,index:Kt,renderIndex:tn,record:ln,inverse:it,getHeight:wn})}));return ni?ve.createElement("div",{ref:Yt},fi,$r):fi}),Ie=Ge(ze),st=Ie,Et=ve.forwardRef(function(ft,Yt){var Rt=ft.data,Kt=ft.onScroll,nn=Re(xe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),dn=nn.flattenColumns,Rn=nn.onColumnResize,it=nn.getRowKey,wn=nn.expandedKeys,Ht=nn.prefixCls,ln=nn.childrenColumnName,hn=nn.scrollX,tn=nn.direction,cn=Re(_r),er=cn.sticky,Nt=cn.scrollY,qt=cn.listItemHeight,Mn=cn.getComponent,On=cn.onScroll,$n=ve.useRef(),Fr=le(Rt,ln,wn,it),gr=ve.useMemo(function(){var $r=0;return dn.map(function(ri){var Or=ri.width,ei=ri.key;return $r+=Or,[ei,Or,$r]})},[dn]),Wr=ve.useMemo(function(){return gr.map(function($r){return $r[2]})},[gr]);ve.useEffect(function(){gr.forEach(function($r){var ri=(0,Ke.Z)($r,2),Or=ri[0],ei=ri[1];Rn(Or,ei)})},[gr]),ve.useImperativeHandle(Yt,function(){var $r,ri={scrollTo:function(ei){var gi;(gi=$n.current)===null||gi===void 0||gi.scrollTo(ei)},nativeElement:($r=$n.current)===null||$r===void 0?void 0:$r.nativeElement};return Object.defineProperty(ri,"scrollLeft",{get:function(){var ei;return((ei=$n.current)===null||ei===void 0?void 0:ei.getScrollInfo().x)||0},set:function(ei){var gi;(gi=$n.current)===null||gi===void 0||gi.scrollTo({left:ei})}}),ri});var Qr=function(ri,Or){var ei,gi=(ei=Fr[Or])===null||ei===void 0?void 0:ei.record,ti=ri.onCell;if(ti){var fi,Ei=ti(gi,Or);return(fi=Ei==null?void 0:Ei.rowSpan)!==null&&fi!==void 0?fi:1}return 1},ni=function(ri){var Or=ri.start,ei=ri.end,gi=ri.getSize,ti=ri.offsetY;if(ei<0)return null;for(var fi=dn.filter(function(ma){return Qr(ma,Or)===0}),Ei=Or,Li=function(ya){if(fi=fi.filter(function(oi){return Qr(oi,ya)===0}),!fi.length)return Ei=ya,1},_a=Or;_a>=0&&!Li(_a);_a-=1);for(var Oa=dn.filter(function(ma){return Qr(ma,ei)!==1}),Ma=ei,da=function(ya){if(Oa=Oa.filter(function(oi){return Qr(oi,ya)!==1}),!Oa.length)return Ma=Math.max(ya-1,ei),1},qi=ei;qi1})&&$i.push(ya)},Ca=Ei;Ca<=Ma;Ca+=1)na(Ca);var ha=$i.map(function(ma){var ya=Fr[ma],oi=it(ya.record,ma),mi=function(Hi){var Xi=ma+Hi-1,Mi=it(Fr[Xi].record,Xi),wa=gi(oi,Mi);return wa.bottom-wa.top},bi=gi(oi);return ve.createElement(st,{key:ma,data:ya,rowKey:oi,index:ma,style:{top:-ti+bi.top},extra:!0,getHeight:mi})});return ha},Ai=ve.useMemo(function(){return{columnsOffset:Wr}},[Wr]),Jr="".concat(Ht,"-tbody"),hi=Mn(["body","wrapper"]),ii={};return er&&(ii.position="sticky",ii.bottom=0,(0,He.Z)(er)==="object"&&er.offsetScroll&&(ii.bottom=er.offsetScroll)),ve.createElement(Br.Provider,{value:Ai},ve.createElement(Yn.Z,{fullHeight:!1,ref:$n,prefixCls:"".concat(Jr,"-virtual"),styles:{horizontalScrollBar:ii},className:Jr,height:Nt,itemHeight:qt||24,data:Fr,itemKey:function(ri){return it(ri.record)},component:hi,scrollWidth:hn,direction:tn,onVirtualScroll:function(ri){var Or,ei=ri.x;Kt({currentTarget:(Or=$n.current)===null||Or===void 0?void 0:Or.nativeElement,scrollLeft:ei})},onScroll:On,extraRender:ni},function($r,ri,Or){var ei=it($r.record,ri);return ve.createElement(st,{data:$r,rowKey:ei,index:ri,style:Or.style})}))}),rn=Ge(Et),Wt=rn,Qn=function(Yt,Rt){var Kt=Rt.ref,nn=Rt.onScroll;return ve.createElement(Wt,{ref:Kt,data:Yt,onScroll:nn})};function Hn(ft,Yt){var Rt=ft.data,Kt=ft.columns,nn=ft.scroll,dn=ft.sticky,Rn=ft.prefixCls,it=Rn===void 0?Nn:Rn,wn=ft.className,Ht=ft.listItemHeight,ln=ft.components,hn=ft.onScroll,tn=nn||{},cn=tn.x,er=tn.y;typeof cn!="number"&&(cn=1),typeof er!="number"&&(er=500);var Nt=(0,jn.zX)(function(On,$n){return(0,mt.Z)(ln,On)||$n}),qt=(0,jn.zX)(hn),Mn=ve.useMemo(function(){return{sticky:dn,scrollY:er,listItemHeight:Ht,getComponent:Nt,onScroll:qt}},[dn,er,Ht,Nt,qt]);return ve.createElement(_r.Provider,{value:Mn},ve.createElement(rr,(0,ge.Z)({},ft,{className:Bt()(wn,"".concat(it,"-virtual")),scroll:(0,et.Z)((0,et.Z)({},nn),{},{x:cn}),components:(0,et.Z)((0,et.Z)({},ln),{},{body:Rt!=null&&Rt.length?Qn:void 0}),columns:Kt,internalHooks:te.R,tailor:!0,ref:Yt})))}var Wn=ve.forwardRef(Hn);function Vn(ft){return ut(Wn,ft)}var Zn=Vn(),Gn=null},54451:function(xn,wt,ce){"use strict";ce.d(wt,{g:function(){return ve},v:function(){return _e}});var te=ce(33885),Ke=ce(75931),Me=ce(48736),Ye=["expandable"],_e="RC_TABLE_INTERNAL_COL_DEFINE";function ve(Ve){var ke=Ve.expandable,Re=(0,Ke.Z)(Ve,Ye),ge;return"expandable"in Ve?ge=(0,te.Z)((0,te.Z)({},Re),ke):ge=Re,ge.showExpandColumn===!1&&(ge.expandIconColumnIndex=-1),ge}},22711:function(xn,wt,ce){"use strict";ce.r(wt),ce.d(wt,{ResizableTextArea:function(){return $e},default:function(){return Gt}});var te=ce(54476),Ke=ce(20068),Me=ce(33885),Ye=ce(94480),_e=ce(42978),ve=ce(75931),Ve=ce(92310),ke=ce.n(Ve),Re=ce(36901),ge=ce(66003),Xe=ce(30292),Ce=ce(18929),ct=ce(59301),tt=ce(76190),nt=ce(29301),Ze=ce(34280),Le=ce(16089),ut=` 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; `,Ge=["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"],Je={},Qe;function xe(Jt){var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An=Jt.getAttribute("id")||Jt.getAttribute("data-reactid")||Jt.getAttribute("name");if(gn&&Je[An])return Je[An];var We=window.getComputedStyle(Jt),Fe=We.getPropertyValue("box-sizing")||We.getPropertyValue("-moz-box-sizing")||We.getPropertyValue("-webkit-box-sizing"),Ot=parseFloat(We.getPropertyValue("padding-bottom"))+parseFloat(We.getPropertyValue("padding-top")),Fn=parseFloat(We.getPropertyValue("border-bottom-width"))+parseFloat(We.getPropertyValue("border-top-width")),fn=Ge.map(function($t){return"".concat($t,":").concat(We.getPropertyValue($t))}).join(";"),Ct={sizingStyle:fn,paddingSize:Ot,borderSize:Fn,boxSizing:Fe};return gn&&An&&(Je[An]=Ct),Ct}function Ne(Jt){var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,We=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe||(Qe=document.createElement("textarea"),Qe.setAttribute("tab-index","-1"),Qe.setAttribute("aria-hidden","true"),Qe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Qe)),Jt.getAttribute("wrap")?Qe.setAttribute("wrap",Jt.getAttribute("wrap")):Qe.removeAttribute("wrap");var Fe=xe(Jt,gn),Ot=Fe.paddingSize,Fn=Fe.borderSize,fn=Fe.boxSizing,Ct=Fe.sizingStyle;Qe.setAttribute("style","".concat(Ct,";").concat(ut)),Qe.value=Jt.value||Jt.placeholder||"";var $t=void 0,on=void 0,jn,Dt=Qe.scrollHeight;if(fn==="border-box"?Dt+=Fn:fn==="content-box"&&(Dt-=Ot),An!==null||We!==null){Qe.value=" ";var vt=Qe.scrollHeight-Ot;An!==null&&($t=vt*An,fn==="border-box"&&($t=$t+Ot+Fn),Dt=Math.max($t,Dt)),We!==null&&(on=vt*We,fn==="border-box"&&(on=on+Ot+Fn),jn=Dt>on?"":"hidden",Dt=Math.min(on,Dt))}var pt={height:Dt,overflowY:jn,resize:"none"};return $t&&(pt.minHeight=$t),on&&(pt.maxHeight=on),pt}var Te=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],at=0,He=1,et=2,dt=ct.forwardRef(function(Jt,gn){var An=Jt,We=An.prefixCls,Fe=An.defaultValue,Ot=An.value,Fn=An.autoSize,fn=An.onResize,Ct=An.className,$t=An.style,on=An.disabled,jn=An.onChange,Dt=An.onInternalAutoSize,vt=(0,ve.Z)(An,Te),pt=(0,Ce.Z)(Fe,{value:Ot,postState:function(In){return In!=null?In:""}}),bt=(0,_e.Z)(pt,2),Zt=bt[0],yt=bt[1],zt=function(In){yt(In.target.value),jn==null||jn(In)},Se=ct.useRef();ct.useImperativeHandle(gn,function(){return{textArea:Se.current}});var se=ct.useMemo(function(){return Fn&&(0,tt.Z)(Fn)==="object"?[Fn.minRows,Fn.maxRows]:[]},[Fn]),fe=(0,_e.Z)(se,2),Ue=fe[0],Be=fe[1],gt=!!Fn,Mt=function(){try{if(document.activeElement===Se.current){var In=Se.current,or=In.selectionStart,vn=In.selectionEnd,fr=In.scrollTop;Se.current.setSelectionRange(or,vn),Se.current.scrollTop=fr}}catch(ur){}},sn=ct.useState(et),he=(0,_e.Z)(sn,2),oe=he[0],re=he[1],de=ct.useState(),we=(0,_e.Z)(de,2),le=we[0],Ee=we[1],St=function(){re(at)};(0,Ze.Z)(function(){gt&&St()},[Ot,Ue,Be,gt]),(0,Ze.Z)(function(){if(oe===at)re(He);else if(oe===He){var un=Ne(Se.current,!1,Ue,Be);re(et),Ee(un)}else Mt()},[oe]);var Ut=ct.useRef(),It=function(){Le.Z.cancel(Ut.current)},ht=function(In){oe===et&&(fn==null||fn(In),Fn&&(It(),Ut.current=(0,Le.Z)(function(){St()})))};ct.useEffect(function(){return It},[]);var Bn=gt?le:null,Vt=(0,Me.Z)((0,Me.Z)({},$t),Bn);return(oe===at||oe===He)&&(Vt.overflowY="hidden",Vt.overflowX="hidden"),ct.createElement(nt.Z,{onResize:ht,disabled:!(Fn||fn)},ct.createElement("textarea",(0,te.Z)({},vt,{ref:Se,style:Vt,className:ke()(We,Ct,(0,Ke.Z)({},"".concat(We,"-disabled"),on)),disabled:on,value:Zt,onChange:zt})))}),$e=dt,Bt=["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"],At=ct.forwardRef(function(Jt,gn){var An,We=Jt.defaultValue,Fe=Jt.value,Ot=Jt.onFocus,Fn=Jt.onBlur,fn=Jt.onChange,Ct=Jt.allowClear,$t=Jt.maxLength,on=Jt.onCompositionStart,jn=Jt.onCompositionEnd,Dt=Jt.suffix,vt=Jt.prefixCls,pt=vt===void 0?"rc-textarea":vt,bt=Jt.showCount,Zt=Jt.count,yt=Jt.className,zt=Jt.style,Se=Jt.disabled,se=Jt.hidden,fe=Jt.classNames,Ue=Jt.styles,Be=Jt.onResize,gt=Jt.onClear,Mt=Jt.onPressEnter,sn=Jt.readOnly,he=Jt.autoSize,oe=Jt.onKeyDown,re=(0,ve.Z)(Jt,Bt),de=(0,Ce.Z)(We,{value:Fe,defaultValue:We}),we=(0,_e.Z)(de,2),le=we[0],Ee=we[1],St=le==null?"":String(le),Ut=ct.useState(!1),It=(0,_e.Z)(Ut,2),ht=It[0],Bn=It[1],Vt=ct.useRef(!1),un=ct.useState(null),In=(0,_e.Z)(un,2),or=In[0],vn=In[1],fr=(0,ct.useRef)(null),ur=(0,ct.useRef)(null),yr=function(){var rt;return(rt=ur.current)===null||rt===void 0?void 0:rt.textArea},Xn=function(){yr().focus()};(0,ct.useImperativeHandle)(gn,function(){var yn;return{resizableTextArea:ur.current,focus:Xn,blur:function(){yr().blur()},nativeElement:((yn=fr.current)===null||yn===void 0?void 0:yn.nativeElement)||yr()}}),(0,ct.useEffect)(function(){Bn(function(yn){return!Se&&yn})},[Se]);var Mr=ct.useState(null),Kr=(0,_e.Z)(Mr,2),Er=Kr[0],lr=Kr[1];ct.useEffect(function(){if(Er){var yn;(yn=yr()).setSelectionRange.apply(yn,(0,Ye.Z)(Er))}},[Er]);var Dr=(0,ge.Z)(Zt,bt),Kn=(An=Dr.max)!==null&&An!==void 0?An:$t,tr=Number(Kn)>0,Jn=Dr.strategy(St),mn=!!Kn&&Jn>Kn,zn=function(rt,kr){var zr=kr;!Vt.current&&Dr.exceedFormatter&&Dr.max&&Dr.strategy(kr)>Dr.max&&(zr=Dr.exceedFormatter(kr,{max:Dr.max}),kr!==zr&&lr([yr().selectionStart||0,yr().selectionEnd||0])),Ee(zr),(0,Xe.rJ)(rt.currentTarget,rt,fn,zr)},en=function(rt){Vt.current=!0,on==null||on(rt)},Sn=function(rt){Vt.current=!1,zn(rt,rt.currentTarget.value),jn==null||jn(rt)},hr=function(rt){zn(rt,rt.target.value)},sr=function(rt){rt.key==="Enter"&&Mt&&Mt(rt),oe==null||oe(rt)},cr=function(rt){Bn(!0),Ot==null||Ot(rt)},br=function(rt){Bn(!1),Fn==null||Fn(rt)},Gr=function(rt){Ee(""),Xn(),(0,Xe.rJ)(yr(),rt,fn)},Ir=Dt,Ur;Dr.show&&(Dr.showFormatter?Ur=Dr.showFormatter({value:St,count:Jn,maxLength:Kn}):Ur="".concat(Jn).concat(tr?" / ".concat(Kn):""),Ir=ct.createElement(ct.Fragment,null,Ir,ct.createElement("span",{className:ke()("".concat(pt,"-data-count"),fe==null?void 0:fe.count),style:Ue==null?void 0:Ue.count},Ur)));var Lr=function(rt){var kr;Be==null||Be(rt),(kr=yr())!==null&&kr!==void 0&&kr.style.height&&vn(!0)},qn=!he&&!bt&&!Ct;return ct.createElement(Re.BaseInput,{ref:fr,value:St,allowClear:Ct,handleReset:Gr,suffix:Ir,prefixCls:pt,classNames:(0,Me.Z)((0,Me.Z)({},fe),{},{affixWrapper:ke()(fe==null?void 0:fe.affixWrapper,(0,Ke.Z)((0,Ke.Z)({},"".concat(pt,"-show-count"),bt),"".concat(pt,"-textarea-allow-clear"),Ct))}),disabled:Se,focused:ht,className:ke()(yt,mn&&"".concat(pt,"-out-of-range")),style:(0,Me.Z)((0,Me.Z)({},zt),or&&!qn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ur=="string"?Ur:void 0}},hidden:se,readOnly:sn,onClear:gt},ct.createElement($e,(0,te.Z)({},re,{autoSize:he,maxLength:$t,onKeyDown:sr,onChange:hr,onFocus:cr,onBlur:br,onCompositionStart:en,onCompositionEnd:Sn,className:ke()(fe==null?void 0:fe.textarea),style:(0,Me.Z)((0,Me.Z)({},Ue==null?void 0:Ue.textarea),{},{resize:zt==null?void 0:zt.resize}),disabled:Se,prefixCls:pt,onResize:Lr,ref:ur,readOnly:sn})))}),mt=At,Gt=mt},639:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Je}});var te=ce(54476),Ke=ce(20068),Me=ce(33885),Ye=ce(42978),_e=ce(75931),ve=ce(59301),Ve=ce(92310),ke=ce.n(Ve),Re=ce(26112),ge=ce(30699),Xe=function(xe){for(var Ne=xe.prefixCls,Te=xe.level,at=xe.isStart,He=xe.isEnd,et="".concat(Ne,"-indent-unit"),dt=[],$e=0;$e0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ue=se.length,Be=fe.length;if(Math.abs(Ue-Be)!==1)return{add:!1,key:null};function gt(Mt,sn){var he=new Map;Mt.forEach(function(re){he.set(re,!0)});var oe=sn.filter(function(re){return!he.has(re)});return oe.length===1?oe[0]:null}return Ue ").concat(fe);return fe}var jn=Ze.forwardRef(function(se,fe){var Ue=se.prefixCls,Be=se.data,gt=se.selectable,Mt=se.checkable,sn=se.expandedKeys,he=se.selectedKeys,oe=se.checkedKeys,re=se.loadedKeys,de=se.loadingKeys,we=se.halfCheckedKeys,le=se.keyEntities,Ee=se.disabled,St=se.dragging,Ut=se.dragOverNodeKey,It=se.dropPosition,ht=se.motion,Bn=se.height,Vt=se.itemHeight,un=se.virtual,In=se.scrollWidth,or=se.focusable,vn=se.activeItem,fr=se.focused,ur=se.tabIndex,yr=se.onKeyDown,Xn=se.onFocus,Mr=se.onBlur,Kr=se.onActiveChange,Er=se.onListChangeStart,lr=se.onListChangeEnd,Dr=(0,xe.Z)(se,gn),Kn=Ze.useRef(null),tr=Ze.useRef(null);Ze.useImperativeHandle(fe,function(){return{scrollTo:function(ar){Kn.current.scrollTo(ar)},getIndentWidth:function(){return tr.current.offsetWidth}}});var Jn=Ze.useState(sn),mn=(0,Qe.Z)(Jn,2),zn=mn[0],en=mn[1],Sn=Ze.useState(Be),hr=(0,Qe.Z)(Sn,2),sr=hr[0],cr=hr[1],br=Ze.useState(Be),Gr=(0,Qe.Z)(br,2),Ir=Gr[0],Ur=Gr[1],Lr=Ze.useState([]),qn=(0,Qe.Z)(Lr,2),yn=qn[0],rt=qn[1],kr=Ze.useState(null),zr=(0,Qe.Z)(kr,2),Lt=zr[0],Tt=zr[1],nr=Ze.useRef(Be);nr.current=Be;function Tn(){var ir=nr.current;cr(ir),Ur(ir),rt([]),Tt(null),lr()}(0,Ne.Z)(function(){en(sn);var ir=Gt(zn,sn);if(ir.key!==null)if(ir.add){var ar=sr.findIndex(function(Ft){var pn=Ft.key;return pn===ir.key}),Ar=Ct(Jt(sr,Be,ir.key),un,Bn,Vt),dr=sr.slice();dr.splice(ar+1,0,fn),Ur(dr),rt(Ar),Tt("show")}else{var xr=Be.findIndex(function(Ft){var pn=Ft.key;return pn===ir.key}),Nn=Ct(Jt(Be,sr,ir.key),un,Bn,Vt),xt=Be.slice();xt.splice(xr+1,0,fn),Ur(xt),rt(Nn),Tt("hide")}else sr!==Be&&(cr(Be),Ur(Be))},[sn,Be]),Ze.useEffect(function(){St||Tn()},[St]);var jt=ht?Ir:Be,_n={expandedKeys:sn,selectedKeys:he,loadedKeys:re,loadingKeys:de,checkedKeys:oe,halfCheckedKeys:we,dragOverNodeKey:Ut,dropPosition:It,keyEntities:le};return Ze.createElement(Ze.Fragment,null,fr&&vn&&Ze.createElement("span",{style:An,"aria-live":"assertive"},on(vn)),Ze.createElement("div",null,Ze.createElement("input",{style:An,disabled:or===!1||Ee,tabIndex:or!==!1?ur:null,onKeyDown:yr,onFocus:Xn,onBlur:Mr,value:"",onChange:We,"aria-label":"for screen reader"})),Ze.createElement("div",{className:"".concat(Ue,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ze.createElement("div",{className:"".concat(Ue,"-indent")},Ze.createElement("div",{ref:tr,className:"".concat(Ue,"-indent-unit")}))),Ze.createElement(Te.Z,(0,te.Z)({},Dr,{data:jt,itemKey:$t,height:Bn,fullHeight:!1,virtual:un,itemHeight:Vt,scrollWidth:In,prefixCls:"".concat(Ue,"-list"),ref:Kn,role:"tree",onVisibleChange:function(ar){ar.every(function(Ar){return $t(Ar)!==Fe})&&Tn()}}),function(ir){var ar=ir.pos,Ar=Object.assign({},(Je(ir.data),ir.data)),dr=ir.title,xr=ir.key,Nn=ir.isStart,xt=ir.isEnd,Ft=(0,$e.km)(xr,ar);delete Ar.key,delete Ar.children;var pn=(0,$e.H8)(Ft,_n);return Ze.createElement(mt,(0,te.Z)({},Ar,pn,{title:dr,active:!!vn&&xr===vn.key,pos:ar,data:ir.data,isStart:Nn,isEnd:xt,motion:ht,motionNodes:xr===Fe?yn:null,motionType:Lt,onMotionStart:Er,onMotionEnd:Tn,treeNodeRequiredProps:_n,onMouseMove:function(){Kr(null)}}))}))}),Dt=jn,vt=ce(82661),pt=ce(34643),bt=ce(65065),Zt=10,yt=function(se){(0,ke.Z)(Ue,se);var fe=(0,Re.Z)(Ue);function Ue(){var Be;(0,_e.Z)(this,Ue);for(var gt=arguments.length,Mt=new Array(gt),sn=0;sn2&&arguments[2]!==void 0?arguments[2]:!1,we=Be.state,le=we.dragChildrenKeys,Ee=we.dropPosition,St=we.dropTargetKey,Ut=we.dropTargetPos,It=we.dropAllowed;if(It){var ht=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),St!==null){var Bn=(0,Me.Z)((0,Me.Z)({},(0,$e.H8)(St,Be.getTreeNodeRequiredProps())),{},{active:((re=Be.getActiveItem())===null||re===void 0?void 0:re.key)===St,data:(0,bt.Z)(Be.state.keyEntities,St).node}),Vt=le.includes(St);(0,nt.ZP)(!Vt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var un=(0,vt.yx)(Ut),In={event:he,node:(0,$e.F)(Bn),dragNode:Be.dragNodeProps?(0,$e.F)(Be.dragNodeProps):null,dragNodesKeys:[Be.dragNodeProps.eventKey].concat(le),dropToGap:Ee!==0,dropPosition:Ee+Number(un[un.length-1])};de||ht==null||ht(In),Be.dragNodeProps=null}}}),(0,ge.Z)((0,Ve.Z)(Be),"cleanDragState",function(){var he=Be.state.draggingNodeKey;he!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null}),(0,ge.Z)((0,Ve.Z)(Be),"triggerExpandActionExpand",function(he,oe){var re=Be.state,de=re.expandedKeys,we=re.flattenNodes,le=oe.expanded,Ee=oe.key,St=oe.isLeaf;if(!(St||he.shiftKey||he.metaKey||he.ctrlKey)){var Ut=we.filter(function(ht){return ht.key===Ee})[0],It=(0,$e.F)((0,Me.Z)((0,Me.Z)({},(0,$e.H8)(Ee,Be.getTreeNodeRequiredProps())),{},{data:Ut.data}));Be.setExpandedKeys(le?(0,vt._5)(de,Ee):(0,vt.L0)(de,Ee)),Be.onNodeExpand(he,It)}}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeClick",function(he,oe){var re=Be.props,de=re.onClick,we=re.expandAction;we==="click"&&Be.triggerExpandActionExpand(he,oe),de==null||de(he,oe)}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeDoubleClick",function(he,oe){var re=Be.props,de=re.onDoubleClick,we=re.expandAction;we==="doubleClick"&&Be.triggerExpandActionExpand(he,oe),de==null||de(he,oe)}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeSelect",function(he,oe){var re=Be.state.selectedKeys,de=Be.state,we=de.keyEntities,le=de.fieldNames,Ee=Be.props,St=Ee.onSelect,Ut=Ee.multiple,It=oe.selected,ht=oe[le.key],Bn=!It;Bn?Ut?re=(0,vt.L0)(re,ht):re=[ht]:re=(0,vt._5)(re,ht);var Vt=re.map(function(un){var In=(0,bt.Z)(we,un);return In?In.node:null}).filter(Boolean);Be.setUncontrolledState({selectedKeys:re}),St==null||St(re,{event:"select",selected:Bn,node:oe,selectedNodes:Vt,nativeEvent:he.nativeEvent})}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeCheck",function(he,oe,re){var de=Be.state,we=de.keyEntities,le=de.checkedKeys,Ee=de.halfCheckedKeys,St=Be.props,Ut=St.checkStrictly,It=St.onCheck,ht=oe.key,Bn,Vt={event:"check",node:oe,checked:re,nativeEvent:he.nativeEvent};if(Ut){var un=re?(0,vt.L0)(le,ht):(0,vt._5)(le,ht),In=(0,vt._5)(Ee,ht);Bn={checked:un,halfChecked:In},Vt.checkedNodes=un.map(function(Xn){return(0,bt.Z)(we,Xn)}).filter(Boolean).map(function(Xn){return Xn.node}),Be.setUncontrolledState({checkedKeys:un})}else{var or=(0,pt.S)([].concat((0,Ye.Z)(le),[ht]),!0,we),vn=or.checkedKeys,fr=or.halfCheckedKeys;if(!re){var ur=new Set(vn);ur.delete(ht);var yr=(0,pt.S)(Array.from(ur),{checked:!1,halfCheckedKeys:fr},we);vn=yr.checkedKeys,fr=yr.halfCheckedKeys}Bn=vn,Vt.checkedNodes=[],Vt.checkedNodesPositions=[],Vt.halfCheckedKeys=fr,vn.forEach(function(Xn){var Mr=(0,bt.Z)(we,Xn);if(Mr){var Kr=Mr.node,Er=Mr.pos;Vt.checkedNodes.push(Kr),Vt.checkedNodesPositions.push({node:Kr,pos:Er})}}),Be.setUncontrolledState({checkedKeys:vn},!1,{halfCheckedKeys:fr})}It==null||It(Bn,Vt)}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeLoad",function(he){var oe,re=he.key,de=Be.state.keyEntities,we=(0,bt.Z)(de,re);if(!(we!=null&&(oe=we.children)!==null&&oe!==void 0&&oe.length)){var le=new Promise(function(Ee,St){Be.setState(function(Ut){var It=Ut.loadedKeys,ht=It===void 0?[]:It,Bn=Ut.loadingKeys,Vt=Bn===void 0?[]:Bn,un=Be.props,In=un.loadData,or=un.onLoad;if(!In||ht.includes(re)||Vt.includes(re))return null;var vn=In(he);return vn.then(function(){var fr=Be.state.loadedKeys,ur=(0,vt.L0)(fr,re);or==null||or(ur,{event:"load",node:he}),Be.setUncontrolledState({loadedKeys:ur}),Be.setState(function(yr){return{loadingKeys:(0,vt._5)(yr.loadingKeys,re)}}),Ee()}).catch(function(fr){if(Be.setState(function(yr){return{loadingKeys:(0,vt._5)(yr.loadingKeys,re)}}),Be.loadingRetryTimes[re]=(Be.loadingRetryTimes[re]||0)+1,Be.loadingRetryTimes[re]>=Zt){var ur=Be.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,vt.L0)(ur,re)}),Ee()}St(fr)}),{loadingKeys:(0,vt.L0)(Vt,re)}})});return le.catch(function(){}),le}}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeMouseEnter",function(he,oe){var re=Be.props.onMouseEnter;re==null||re({event:he,node:oe})}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeMouseLeave",function(he,oe){var re=Be.props.onMouseLeave;re==null||re({event:he,node:oe})}),(0,ge.Z)((0,Ve.Z)(Be),"onNodeContextMenu",function(he,oe){var re=Be.props.onRightClick;re&&(he.preventDefault(),re({event:he,node:oe}))}),(0,ge.Z)((0,Ve.Z)(Be),"onFocus",function(){var he=Be.props.onFocus;Be.setState({focused:!0});for(var oe=arguments.length,re=new Array(oe),de=0;de1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var de=!1,we=!0,le={};Object.keys(he).forEach(function(Ee){if(Be.props.hasOwnProperty(Ee)){we=!1;return}de=!0,le[Ee]=he[Ee]}),de&&(!oe||we)&&Be.setState((0,Me.Z)((0,Me.Z)({},le),re))}}),(0,ge.Z)((0,Ve.Z)(Be),"scrollTo",function(he){Be.listRef.current.scrollTo(he)}),Be}return(0,ve.Z)(Ue,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var gt=this.props,Mt=gt.activeKey,sn=gt.itemScrollOffset,he=sn===void 0?0:sn;Mt!==void 0&&Mt!==this.state.activeKey&&(this.setState({activeKey:Mt}),Mt!==null&&this.scrollTo({key:Mt,offset:he}))}},{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 gt=this.state,Mt=gt.focused,sn=gt.flattenNodes,he=gt.keyEntities,oe=gt.draggingNodeKey,re=gt.activeKey,de=gt.dropLevelOffset,we=gt.dropContainerKey,le=gt.dropTargetKey,Ee=gt.dropPosition,St=gt.dragOverNodeKey,Ut=gt.indent,It=this.props,ht=It.prefixCls,Bn=It.className,Vt=It.style,un=It.showLine,In=It.focusable,or=It.tabIndex,vn=or===void 0?0:or,fr=It.selectable,ur=It.showIcon,yr=It.icon,Xn=It.switcherIcon,Mr=It.draggable,Kr=It.checkable,Er=It.checkStrictly,lr=It.disabled,Dr=It.motion,Kn=It.loadData,tr=It.filterTreeNode,Jn=It.height,mn=It.itemHeight,zn=It.scrollWidth,en=It.virtual,Sn=It.titleRender,hr=It.dropIndicatorRender,sr=It.onContextMenu,cr=It.onScroll,br=It.direction,Gr=It.rootClassName,Ir=It.rootStyle,Ur=(0,tt.Z)(this.props,{aria:!0,data:!0}),Lr;Mr&&((0,Ke.Z)(Mr)==="object"?Lr=Mr:typeof Mr=="function"?Lr={nodeDraggable:Mr}:Lr={});var qn={prefixCls:ht,selectable:fr,showIcon:ur,icon:yr,switcherIcon:Xn,draggable:Lr,draggingNodeKey:oe,checkable:Kr,checkStrictly:Er,disabled:lr,keyEntities:he,dropLevelOffset:de,dropContainerKey:we,dropTargetKey:le,dropPosition:Ee,dragOverNodeKey:St,indent:Ut,direction:br,dropIndicatorRender:hr,loadData:Kn,filterTreeNode:tr,titleRender:Sn,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 Ze.createElement(Le.k.Provider,{value:qn},Ze.createElement("div",{className:Ce()(ht,Bn,Gr,(0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(ht,"-show-line"),un),"".concat(ht,"-focused"),Mt),"".concat(ht,"-active-focused"),re!==null)),style:Ir},Ze.createElement(Dt,(0,te.Z)({ref:this.listRef,prefixCls:ht,style:Vt,data:sn,disabled:lr,selectable:fr,checkable:!!Kr,motion:Dr,dragging:oe!==null,height:Jn,itemHeight:mn,virtual:en,focusable:In,focused:Mt,tabIndex:vn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:sr,onScroll:cr,scrollWidth:zn},this.getTreeNodeRequiredProps(),Ur))))}}],[{key:"getDerivedStateFromProps",value:function(gt,Mt){var sn=Mt.prevProps,he={prevProps:gt};function oe(vn){return!sn&>.hasOwnProperty(vn)||sn&&sn[vn]!==gt[vn]}var re,de=Mt.fieldNames;if(oe("fieldNames")&&(de=(0,$e.w$)(gt.fieldNames),he.fieldNames=de),oe("treeData")?re=gt.treeData:oe("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=(0,$e.zn)(gt.children)),re){he.treeData=re;var we=(0,$e.I8)(re,{fieldNames:de});he.keyEntities=(0,Me.Z)((0,ge.Z)({},Fe,Fn),we.keyEntities)}var le=he.keyEntities||Mt.keyEntities;if(oe("expandedKeys")||sn&&oe("autoExpandParent"))he.expandedKeys=gt.autoExpandParent||!sn&>.defaultExpandParent?(0,vt.r7)(gt.expandedKeys,le):gt.expandedKeys;else if(!sn&>.defaultExpandAll){var Ee=(0,Me.Z)({},le);delete Ee[Fe];var St=[];Object.keys(Ee).forEach(function(vn){var fr=Ee[vn];fr.children&&fr.children.length&&St.push(fr.key)}),he.expandedKeys=St}else!sn&>.defaultExpandedKeys&&(he.expandedKeys=gt.autoExpandParent||gt.defaultExpandParent?(0,vt.r7)(gt.defaultExpandedKeys,le):gt.defaultExpandedKeys);if(he.expandedKeys||delete he.expandedKeys,re||he.expandedKeys){var Ut=(0,$e.oH)(re||Mt.treeData,he.expandedKeys||Mt.expandedKeys,de);he.flattenNodes=Ut}if(gt.selectable&&(oe("selectedKeys")?he.selectedKeys=(0,vt.BT)(gt.selectedKeys,gt):!sn&>.defaultSelectedKeys&&(he.selectedKeys=(0,vt.BT)(gt.defaultSelectedKeys,gt))),gt.checkable){var It;if(oe("checkedKeys")?It=(0,vt.E6)(gt.checkedKeys)||{}:!sn&>.defaultCheckedKeys?It=(0,vt.E6)(gt.defaultCheckedKeys)||{}:re&&(It=(0,vt.E6)(gt.checkedKeys)||{checkedKeys:Mt.checkedKeys,halfCheckedKeys:Mt.halfCheckedKeys}),It){var ht=It,Bn=ht.checkedKeys,Vt=Bn===void 0?[]:Bn,un=ht.halfCheckedKeys,In=un===void 0?[]:un;if(!gt.checkStrictly){var or=(0,pt.S)(Vt,!0,le);Vt=or.checkedKeys,In=or.halfCheckedKeys}he.checkedKeys=Vt,he.halfCheckedKeys=In}}return oe("loadedKeys")&&(he.loadedKeys=gt.loadedKeys),he}}]),Ue}(Ze.Component);(0,ge.Z)(yt,"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:Ge,allowDrop:function(){return!0},expandAction:!1}),(0,ge.Z)(yt,"TreeNode",He.Z);var zt=yt,Se=zt},82661:function(xn,wt,ce){"use strict";ce.d(wt,{BT:function(){return Ze},E6:function(){return Ge},L0:function(){return ge},OM:function(){return nt},_5:function(){return Re},r7:function(){return Je},wA:function(){return Ce},yx:function(){return Xe}});var te=ce(94480),Ke=ce(76190),Me=ce(48736),Ye=ce(59301),_e=ce(639),ve=ce(65065),Ve=ce(34061),ke=null;function Re(Qe,xe){if(!Qe)return[];var Ne=Qe.slice(),Te=Ne.indexOf(xe);return Te>=0&&Ne.splice(Te,1),Ne}function ge(Qe,xe){var Ne=(Qe||[]).slice();return Ne.indexOf(xe)===-1&&Ne.push(xe),Ne}function Xe(Qe){return Qe.split("-")}function Ce(Qe,xe){var Ne=[],Te=(0,ve.Z)(xe,Qe);function at(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];He.forEach(function(et){var dt=et.key,$e=et.children;Ne.push(dt),at($e)})}return at(Te.children),Ne}function ct(Qe){if(Qe.parent){var xe=Xe(Qe.pos);return Number(xe[xe.length-1])===Qe.parent.children.length-1}return!1}function tt(Qe){var xe=Xe(Qe.pos);return Number(xe[xe.length-1])===0}function nt(Qe,xe,Ne,Te,at,He,et,dt,$e,Bt){var At,mt=Qe.clientX,Gt=Qe.clientY,Jt=Qe.target.getBoundingClientRect(),gn=Jt.top,An=Jt.height,We=(Bt==="rtl"?-1:1)*(((at==null?void 0:at.x)||0)-mt),Fe=(We-12)/Te,Ot=$e.filter(function(Se){var se;return(se=dt[Se])===null||se===void 0||(se=se.children)===null||se===void 0?void 0:se.length}),Fn=(0,ve.Z)(dt,Ne.eventKey);if(Gt-1.5?He({dragNode:Zt,dropNode:yt,dropPosition:1})?vt=1:zt=!1:He({dragNode:Zt,dropNode:yt,dropPosition:0})?vt=0:He({dragNode:Zt,dropNode:yt,dropPosition:1})?vt=1:zt=!1:He({dragNode:Zt,dropNode:yt,dropPosition:1})?vt=1:zt=!1,{dropPosition:vt,dropLevelOffset:pt,dropTargetKey:Fn.key,dropTargetPos:Fn.pos,dragOverNodeKey:Dt,dropContainerKey:vt===0?null:((At=Fn.parent)===null||At===void 0?void 0:At.key)||null,dropAllowed:zt}}function Ze(Qe,xe){if(Qe){var Ne=xe.multiple;return Ne?Qe.slice():Qe.length?[Qe[0]]:Qe}}var Le=function(xe){return xe};function ut(Qe,xe){if(!Qe)return[];var Ne=xe||{},Te=Ne.processProps,at=Te===void 0?Le:Te,He=Array.isArray(Qe)?Qe:[Qe];return He.map(function(et){var dt=et.children,$e=_objectWithoutProperties(et,ke),Bt=ut(dt,xe);return React.createElement(TreeNode,_extends({key:$e.key},at($e)),Bt)})}function Ge(Qe){if(!Qe)return null;var xe;if(Array.isArray(Qe))xe={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,Ke.Z)(Qe)==="object")xe={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,Me.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return xe}function Je(Qe,xe){var Ne=new Set;function Te(at){if(!Ne.has(at)){var He=(0,ve.Z)(xe,at);if(He){Ne.add(at);var et=He.parent,dt=He.node;dt.disabled||et&&Te(et.key)}}}return(Qe||[]).forEach(function(at){Te(at)}),(0,te.Z)(Ne)}},34643:function(xn,wt,ce){"use strict";ce.d(wt,{S:function(){return Ve}});var te=ce(48736),Ke=ce(65065);function Me(ke,Re){var ge=new Set;return ke.forEach(function(Xe){Re.has(Xe)||ge.add(Xe)}),ge}function Ye(ke){var Re=ke||{},ge=Re.disabled,Xe=Re.disableCheckbox,Ce=Re.checkable;return!!(ge||Xe)||Ce===!1}function _e(ke,Re,ge,Xe){for(var Ce=new Set(ke),ct=new Set,tt=0;tt<=ge;tt+=1){var nt=Re.get(tt)||new Set;nt.forEach(function(Ge){var Je=Ge.key,Qe=Ge.node,xe=Ge.children,Ne=xe===void 0?[]:xe;Ce.has(Je)&&!Xe(Qe)&&Ne.filter(function(Te){return!Xe(Te.node)}).forEach(function(Te){Ce.add(Te.key)})})}for(var Ze=new Set,Le=ge;Le>=0;Le-=1){var ut=Re.get(Le)||new Set;ut.forEach(function(Ge){var Je=Ge.parent,Qe=Ge.node;if(!(Xe(Qe)||!Ge.parent||Ze.has(Ge.parent.key))){if(Xe(Ge.parent.node)){Ze.add(Je.key);return}var xe=!0,Ne=!1;(Je.children||[]).filter(function(Te){return!Xe(Te.node)}).forEach(function(Te){var at=Te.key,He=Ce.has(at);xe&&!He&&(xe=!1),!Ne&&(He||ct.has(at))&&(Ne=!0)}),xe&&Ce.add(Je.key),Ne&&ct.add(Je.key),Ze.add(Je.key)}})}return{checkedKeys:Array.from(Ce),halfCheckedKeys:Array.from(Me(ct,Ce))}}function ve(ke,Re,ge,Xe,Ce){for(var ct=new Set(ke),tt=new Set(Re),nt=0;nt<=Xe;nt+=1){var Ze=ge.get(nt)||new Set;Ze.forEach(function(Je){var Qe=Je.key,xe=Je.node,Ne=Je.children,Te=Ne===void 0?[]:Ne;!ct.has(Qe)&&!tt.has(Qe)&&!Ce(xe)&&Te.filter(function(at){return!Ce(at.node)}).forEach(function(at){ct.delete(at.key)})})}tt=new Set;for(var Le=new Set,ut=Xe;ut>=0;ut-=1){var Ge=ge.get(ut)||new Set;Ge.forEach(function(Je){var Qe=Je.parent,xe=Je.node;if(!(Ce(xe)||!Je.parent||Le.has(Je.parent.key))){if(Ce(Je.parent.node)){Le.add(Qe.key);return}var Ne=!0,Te=!1;(Qe.children||[]).filter(function(at){return!Ce(at.node)}).forEach(function(at){var He=at.key,et=ct.has(He);Ne&&!et&&(Ne=!1),!Te&&(et||tt.has(He))&&(Te=!0)}),Ne||ct.delete(Qe.key),Te&&tt.add(Qe.key),Le.add(Qe.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(Me(tt,ct))}}function Ve(ke,Re,ge,Xe){var Ce=[],ct;Xe?ct=Xe:ct=Ye;var tt=new Set(ke.filter(function(ut){var Ge=!!(0,Ke.Z)(ge,ut);return Ge||Ce.push(ut),Ge})),nt=new Map,Ze=0;Object.keys(ge).forEach(function(ut){var Ge=ge[ut],Je=Ge.level,Qe=nt.get(Je);Qe||(Qe=new Set,nt.set(Je,Qe)),Qe.add(Ge),Ze=Math.max(Ze,Je)}),(0,te.ZP)(!Ce.length,"Tree missing follow keys: ".concat(Ce.slice(0,100).map(function(ut){return"'".concat(ut,"'")}).join(", ")));var Le;return Re===!0?Le=_e(tt,nt,Ze,ct):Le=ve(tt,Re.halfCheckedKeys,nt,Ze,ct),Le}},65065:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return te}});function te(Ke,Me){return Ke[Me]}},34061:function(xn,wt,ce){"use strict";ce.d(wt,{F:function(){return Je},H8:function(){return Ge},I8:function(){return ut},km:function(){return Ce},oH:function(){return Ze},w$:function(){return ct},zn:function(){return nt}});var te=ce(76190),Ke=ce(94480),Me=ce(33885),Ye=ce(75931),_e=ce(11592),ve=ce(2738),Ve=ce(48736),ke=ce(65065),Re=["children"];function ge(Qe,xe){return"".concat(Qe,"-").concat(xe)}function Xe(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function Ce(Qe,xe){return Qe!=null?Qe:xe}function ct(Qe){var xe=Qe||{},Ne=xe.title,Te=xe._title,at=xe.key,He=xe.children,et=Ne||"title";return{title:et,_title:Te||[et],key:at||"key",children:He||"children"}}function tt(Qe,xe){var Ne=new Map;function Te(at){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(at||[]).forEach(function(et){var dt=et[xe.key],$e=et[xe.children];warning(dt!=null,"Tree node must have a certain key: [".concat(He).concat(dt,"]"));var Bt=String(dt);warning(!Ne.has(Bt)||dt===null||dt===void 0,"Same 'key' exist in the Tree: ".concat(Bt)),Ne.set(Bt,!0),Te($e,"".concat(He).concat(Bt," > "))})}Te(Qe)}function nt(Qe){function xe(Ne){var Te=(0,_e.Z)(Ne);return Te.map(function(at){if(!Xe(at))return(0,Ve.ZP)(!at,"Tree/TreeNode can only accept TreeNode as children."),null;var He=at.key,et=at.props,dt=et.children,$e=(0,Ye.Z)(et,Re),Bt=(0,Me.Z)({key:He},$e),At=xe(dt);return At.length&&(Bt.children=At),Bt}).filter(function(at){return at})}return xe(Qe)}function Ze(Qe,xe,Ne){var Te=ct(Ne),at=Te._title,He=Te.key,et=Te.children,dt=new Set(xe===!0?[]:xe),$e=[];function Bt(At){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return At.map(function(Gt,Jt){for(var gn=ge(mt?mt.pos:"0",Jt),An=Ce(Gt[He],gn),We,Fe=0;Fe1&&arguments[1]!==void 0?arguments[1]:{},Ne=xe.initWrapper,Te=xe.processEntity,at=xe.onProcessFinished,He=xe.externalGetKey,et=xe.childrenPropName,dt=xe.fieldNames,$e=arguments.length>2?arguments[2]:void 0,Bt=He||$e,At={},mt={},Gt={posEntities:At,keyEntities:mt};return Ne&&(Gt=Ne(Gt)||Gt),Le(Qe,function(Jt){var gn=Jt.node,An=Jt.index,We=Jt.pos,Fe=Jt.key,Ot=Jt.parentPos,Fn=Jt.level,fn=Jt.nodes,Ct={node:gn,nodes:fn,index:An,key:Fe,pos:We,level:Fn},$t=Ce(Fe,We);At[We]=Ct,mt[$t]=Ct,Ct.parent=At[Ot],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),Te&&Te(Ct,Gt)},{externalGetKey:Bt,childrenPropName:et,fieldNames:dt}),at&&at(Gt),Gt}function Ge(Qe,xe){var Ne=xe.expandedKeys,Te=xe.selectedKeys,at=xe.loadedKeys,He=xe.loadingKeys,et=xe.checkedKeys,dt=xe.halfCheckedKeys,$e=xe.dragOverNodeKey,Bt=xe.dropPosition,At=xe.keyEntities,mt=(0,ke.Z)(At,Qe),Gt={eventKey:Qe,expanded:Ne.indexOf(Qe)!==-1,selected:Te.indexOf(Qe)!==-1,loaded:at.indexOf(Qe)!==-1,loading:He.indexOf(Qe)!==-1,checked:et.indexOf(Qe)!==-1,halfChecked:dt.indexOf(Qe)!==-1,pos:String(mt?mt.pos:""),dragOver:$e===Qe&&Bt===0,dragOverGapTop:$e===Qe&&Bt===-1,dragOverGapBottom:$e===Qe&&Bt===1};return Gt}function Je(Qe){var xe=Qe.data,Ne=Qe.expanded,Te=Qe.selected,at=Qe.checked,He=Qe.loaded,et=Qe.loading,dt=Qe.halfChecked,$e=Qe.dragOver,Bt=Qe.dragOverGapTop,At=Qe.dragOverGapBottom,mt=Qe.pos,Gt=Qe.active,Jt=Qe.eventKey,gn=(0,Me.Z)((0,Me.Z)({},xe),{},{expanded:Ne,selected:Te,checked:at,loaded:He,loading:et,halfChecked:dt,dragOver:$e,dragOverGapTop:Bt,dragOverGapBottom:At,pos:mt,active:Gt,key:Jt});return"props"in gn||Object.defineProperty(gn,"props",{get:function(){return(0,Ve.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Qe}}),gn}},8224:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Ke}});var te=ce(4676);function Ke(Me,Ye,_e,ve){var Ve=te.unstable_batchedUpdates?function(Re){te.unstable_batchedUpdates(_e,Re)}:_e;return Me!=null&&Me.addEventListener&&Me.addEventListener(Ye,Ve,ve),{remove:function(){Me!=null&&Me.removeEventListener&&Me.removeEventListener(Ye,Ve,ve)}}}},24514:function(xn,wt,ce){"use strict";ce.d(wt,{G:function(){return Ye}});var te=ce(47273),Ke=function(ve){if((0,te.Z)()&&window.document.documentElement){var Ve=Array.isArray(ve)?ve:[ve],ke=window.document.documentElement;return Ve.some(function(Re){return Re in ke.style})}return!1},Me=function(ve,Ve){if(!Ke(ve))return!1;var ke=document.createElement("div"),Re=ke.style[ve];return ke.style[ve]=Ve,ke.style[ve]!==Re};function Ye(_e,ve){return!Array.isArray(_e)&&ve!==void 0?Me(_e,ve):Ke(_e)}},48911:function(xn,wt,ce){"use strict";ce.d(wt,{Z:function(){return Zt}});var te=ce(54476),Ke=ce(76190),Me=ce(33885),Ye=ce(20068),_e=ce(42978),ve=ce(75931),Ve=ce(92310),ke=ce.n(Ve),Re=ce(29301),ge=ce(70425),Xe=ce(34280),Ce=ce(59301),ct=ce(4676),tt=Ce.forwardRef(function(yt,zt){var Se=yt.height,se=yt.offsetY,fe=yt.offsetX,Ue=yt.children,Be=yt.prefixCls,gt=yt.onInnerResize,Mt=yt.innerProps,sn=yt.rtl,he=yt.extra,oe={},re={display:"flex",flexDirection:"column"};return se!==void 0&&(oe={height:Se,position:"relative",overflow:"hidden"},re=(0,Me.Z)((0,Me.Z)({},re),{},(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({transform:"translateY(".concat(se,"px)")},sn?"marginRight":"marginLeft",-fe),"position","absolute"),"left",0),"right",0),"top",0))),Ce.createElement("div",{style:oe},Ce.createElement(Re.Z,{onResize:function(we){var le=we.offsetHeight;le&>&>()}},Ce.createElement("div",(0,te.Z)({style:re,className:ke()((0,Ye.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:zt},Mt),Ue,he)))});tt.displayName="Filler";var nt=tt;function Ze(yt){var zt=yt.children,Se=yt.setRef,se=Ce.useCallback(function(fe){Se(fe)},[]);return Ce.cloneElement(zt,{ref:se})}function Le(yt,zt,Se,se,fe,Ue,Be,gt){var Mt=gt.getKey;return yt.slice(zt,Se+1).map(function(sn,he){var oe=zt+he,re=Be(sn,oe,{style:{width:se},offsetX:fe}),de=Mt(sn);return Ce.createElement(Ze,{key:de,setRef:function(le){return Ue(sn,le)}},re)})}function ut(yt,zt,Se,se){var fe=Se-yt,Ue=zt-Se,Be=Math.min(fe,Ue)*2;if(se<=Be){var gt=Math.floor(se/2);return se%2?Se+gt+1:Se-gt}return fe>Ue?Se-(se-Ue):Se+(se-fe)}function Ge(yt,zt,Se){var se=yt.length,fe=zt.length,Ue,Be;if(se===0&&fe===0)return null;se2&&arguments[2]!==void 0?arguments[2]:!1,oe=Mt?sn<0&>.current.left||sn>0&>.current.right:sn<0&>.current.top||sn>0&>.current.bottom;return he&&oe?(clearTimeout(Ue.current),fe.current=!1):(!oe||fe.current)&&Be(),!fe.current&&oe}};function at(yt,zt,Se,se,fe,Ue,Be){var gt=(0,Ce.useRef)(0),Mt=(0,Ce.useRef)(null),sn=(0,Ce.useRef)(null),he=(0,Ce.useRef)(!1),oe=Te(zt,Se,se,fe);function re(Ut,It){if(Qe.Z.cancel(Mt.current),!oe(!1,It)){var ht=Ut;if(!ht._virtualHandled)ht._virtualHandled=!0;else return;gt.current+=It,sn.current=It,Ne||ht.preventDefault(),Mt.current=(0,Qe.Z)(function(){var Bn=he.current?10:1;Be(gt.current*Bn,!1),gt.current=0})}}function de(Ut,It){Be(It,!0),Ne||Ut.preventDefault()}var we=(0,Ce.useRef)(null),le=(0,Ce.useRef)(null);function Ee(Ut){if(yt){Qe.Z.cancel(le.current),le.current=(0,Qe.Z)(function(){we.current=null},2);var It=Ut.deltaX,ht=Ut.deltaY,Bn=Ut.shiftKey,Vt=It,un=ht;(we.current==="sx"||!we.current&&Bn&&ht&&!It)&&(Vt=ht,un=0,we.current="sx");var In=Math.abs(Vt),or=Math.abs(un);we.current===null&&(we.current=Ue&&In>or?"x":"y"),we.current==="y"?re(Ut,un):de(Ut,Vt)}}function St(Ut){yt&&(he.current=Ut.detail===sn.current)}return[Ee,St]}function He(yt,zt,Se,se){var fe=Ce.useMemo(function(){return[new Map,[]]},[yt,Se.id,se]),Ue=(0,_e.Z)(fe,2),Be=Ue[0],gt=Ue[1],Mt=function(he){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:he,re=Be.get(he),de=Be.get(oe);if(re===void 0||de===void 0)for(var we=yt.length,le=gt.length;le0&&arguments[0]!==void 0?arguments[0]:!1;he();var we=function(){var St=!1;gt.current.forEach(function(Ut,It){if(Ut&&Ut.offsetParent){var ht=Ut.offsetHeight,Bn=getComputedStyle(Ut),Vt=Bn.marginTop,un=Bn.marginBottom,In=At(Vt),or=At(un),vn=ht+In+or;Mt.current.get(It)!==vn&&(Mt.current.set(It,vn),St=!0)}}),St&&Be(function(Ut){return Ut+1})};if(de)we();else{sn.current+=1;var le=sn.current;Promise.resolve().then(function(){le===sn.current&&we()})}}function re(de,we){var le=yt(de),Ee=gt.current.get(le);we?(gt.current.set(le,we),oe()):gt.current.delete(le),!Ee!=!we&&(we?zt==null||zt(de):Se==null||Se(de))}return(0,Ce.useEffect)(function(){return he},[]),[re,oe,Mt.current,Ue]}var Gt=14/15;function Jt(yt,zt,Se){var se=(0,Ce.useRef)(!1),fe=(0,Ce.useRef)(0),Ue=(0,Ce.useRef)(0),Be=(0,Ce.useRef)(null),gt=(0,Ce.useRef)(null),Mt,sn=function(de){if(se.current){var we=Math.ceil(de.touches[0].pageX),le=Math.ceil(de.touches[0].pageY),Ee=fe.current-we,St=Ue.current-le,Ut=Math.abs(Ee)>Math.abs(St);Ut?fe.current=we:Ue.current=le;var It=Se(Ut,Ut?Ee:St,!1,de);It&&de.preventDefault(),clearInterval(gt.current),It&&(gt.current=setInterval(function(){Ut?Ee*=Gt:St*=Gt;var ht=Math.floor(Ut?Ee:St);(!Se(Ut,ht,!0)||Math.abs(ht)<=.1)&&clearInterval(gt.current)},16))}},he=function(){se.current=!1,Mt()},oe=function(de){Mt(),de.touches.length===1&&!se.current&&(se.current=!0,fe.current=Math.ceil(de.touches[0].pageX),Ue.current=Math.ceil(de.touches[0].pageY),Be.current=de.target,Be.current.addEventListener("touchmove",sn,{passive:!1}),Be.current.addEventListener("touchend",he,{passive:!0}))};Mt=function(){Be.current&&(Be.current.removeEventListener("touchmove",sn),Be.current.removeEventListener("touchend",he))},(0,Xe.Z)(function(){return yt&&zt.current.addEventListener("touchstart",oe,{passive:!0}),function(){var re;(re=zt.current)===null||re===void 0||re.removeEventListener("touchstart",oe),Mt(),clearInterval(gt.current)}},[yt])}function gn(yt){return Math.floor(Math.pow(yt,.5))}function An(yt,zt){var Se="touches"in yt?yt.touches[0]:yt;return Se[zt?"pageX":"pageY"]-window[zt?"scrollX":"scrollY"]}function We(yt,zt,Se){Ce.useEffect(function(){var se=zt.current;if(yt&&se){var fe=!1,Ue,Be,gt=function(){Qe.Z.cancel(Ue)},Mt=function re(){gt(),Ue=(0,Qe.Z)(function(){Se(Be),re()})},sn=function(){fe=!1,gt()},he=function(de){if(!(de.target.draggable||de.button!==0)){var we=de;we._virtualHandled||(we._virtualHandled=!0,fe=!0)}},oe=function(de){if(fe){var we=An(de,!1),le=se.getBoundingClientRect(),Ee=le.top,St=le.bottom;if(we<=Ee){var Ut=Ee-we;Be=-gn(Ut),Mt()}else if(we>=St){var It=we-St;Be=gn(It),Mt()}else gt()}};return se.addEventListener("mousedown",he),se.ownerDocument.addEventListener("mouseup",sn),se.ownerDocument.addEventListener("mousemove",oe),se.ownerDocument.addEventListener("dragend",sn),function(){se.removeEventListener("mousedown",he),se.ownerDocument.removeEventListener("mouseup",sn),se.ownerDocument.removeEventListener("mousemove",oe),se.ownerDocument.removeEventListener("dragend",sn),gt()}}},[yt])}var Fe=10;function Ot(yt,zt,Se,se,fe,Ue,Be,gt){var Mt=Ce.useRef(),sn=Ce.useState(null),he=(0,_e.Z)(sn,2),oe=he[0],re=he[1];return(0,Xe.Z)(function(){if(oe&&oe.times=0;Xn-=1){var Mr=fe(zt[Xn]),Kr=Se.get(Mr);if(Kr===void 0){Ut=!0;break}if(yr-=Kr,yr<=0)break}switch(Bn){case"top":ht=un-Ee;break;case"bottom":ht=In-St+Ee;break;default:{var Er=yt.current.scrollTop,lr=Er+St;unlr&&(It="bottom")}}ht!==null&&Be(ht),ht!==oe.lastTop&&(Ut=!0)}Ut&&re((0,Me.Z)((0,Me.Z)({},oe),{},{times:oe.times+1,targetAlign:It,lastTop:ht}))}},[oe,yt.current]),function(de){if(de==null){gt();return}if(Qe.Z.cancel(Mt.current),typeof de=="number")Be(de);else if(de&&(0,Ke.Z)(de)==="object"){var we,le=de.align;"index"in de?we=de.index:we=zt.findIndex(function(Ut){return fe(Ut)===de.key});var Ee=de.offset,St=Ee===void 0?0:Ee;re({times:0,index:we,offset:St,originAlign:le})}}}var Fn=Ce.forwardRef(function(yt,zt){var Se=yt.prefixCls,se=yt.rtl,fe=yt.scrollOffset,Ue=yt.scrollRange,Be=yt.onStartMove,gt=yt.onStopMove,Mt=yt.onScroll,sn=yt.horizontal,he=yt.spinSize,oe=yt.containerSize,re=yt.style,de=yt.thumbStyle,we=yt.showScrollBar,le=Ce.useState(!1),Ee=(0,_e.Z)(le,2),St=Ee[0],Ut=Ee[1],It=Ce.useState(null),ht=(0,_e.Z)(It,2),Bn=ht[0],Vt=ht[1],un=Ce.useState(null),In=(0,_e.Z)(un,2),or=In[0],vn=In[1],fr=!se,ur=Ce.useRef(),yr=Ce.useRef(),Xn=Ce.useState(we),Mr=(0,_e.Z)(Xn,2),Kr=Mr[0],Er=Mr[1],lr=Ce.useRef(),Dr=function(){we===!0||we===!1||(clearTimeout(lr.current),Er(!0),lr.current=setTimeout(function(){Er(!1)},3e3))},Kn=Ue-oe||0,tr=oe-he||0,Jn=Ce.useMemo(function(){if(fe===0||Kn===0)return 0;var Gr=fe/Kn;return Gr*tr},[fe,Kn,tr]),mn=function(Ir){Ir.stopPropagation(),Ir.preventDefault()},zn=Ce.useRef({top:Jn,dragging:St,pageY:Bn,startTop:or});zn.current={top:Jn,dragging:St,pageY:Bn,startTop:or};var en=function(Ir){Ut(!0),Vt(An(Ir,sn)),vn(zn.current.top),Be(),Ir.stopPropagation(),Ir.preventDefault()};Ce.useEffect(function(){var Gr=function(qn){qn.preventDefault()},Ir=ur.current,Ur=yr.current;return Ir.addEventListener("touchstart",Gr,{passive:!1}),Ur.addEventListener("touchstart",en,{passive:!1}),function(){Ir.removeEventListener("touchstart",Gr),Ur.removeEventListener("touchstart",en)}},[]);var Sn=Ce.useRef();Sn.current=Kn;var hr=Ce.useRef();hr.current=tr,Ce.useEffect(function(){if(St){var Gr,Ir=function(qn){var yn=zn.current,rt=yn.dragging,kr=yn.pageY,zr=yn.startTop;Qe.Z.cancel(Gr);var Lt=ur.current.getBoundingClientRect(),Tt=oe/(sn?Lt.width:Lt.height);if(rt){var nr=(An(qn,sn)-kr)*Tt,Tn=zr;!fr&&sn?Tn-=nr:Tn+=nr;var jt=Sn.current,_n=hr.current,ir=_n?Tn/_n:0,ar=Math.ceil(ir*jt);ar=Math.max(ar,0),ar=Math.min(ar,jt),Gr=(0,Qe.Z)(function(){Mt(ar,sn)})}},Ur=function(){Ut(!1),gt()};return window.addEventListener("mousemove",Ir,{passive:!0}),window.addEventListener("touchmove",Ir,{passive:!0}),window.addEventListener("mouseup",Ur,{passive:!0}),window.addEventListener("touchend",Ur,{passive:!0}),function(){window.removeEventListener("mousemove",Ir),window.removeEventListener("touchmove",Ir),window.removeEventListener("mouseup",Ur),window.removeEventListener("touchend",Ur),Qe.Z.cancel(Gr)}}},[St]),Ce.useEffect(function(){return Dr(),function(){clearTimeout(lr.current)}},[fe]),Ce.useImperativeHandle(zt,function(){return{delayHidden:Dr}});var sr="".concat(Se,"-scrollbar"),cr={position:"absolute",visibility:Kr?null:"hidden"},br={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return sn?(Object.assign(cr,{height:8,left:0,right:0,bottom:0}),Object.assign(br,(0,Ye.Z)({height:"100%",width:he},fr?"left":"right",Jn))):(Object.assign(cr,(0,Ye.Z)({width:8,top:0,bottom:0},fr?"right":"left",0)),Object.assign(br,{width:"100%",height:he,top:Jn})),Ce.createElement("div",{ref:ur,className:ke()(sr,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(sr,"-horizontal"),sn),"".concat(sr,"-vertical"),!sn),"".concat(sr,"-visible"),Kr)),style:(0,Me.Z)((0,Me.Z)({},cr),re),onMouseDown:mn,onMouseMove:Dr},Ce.createElement("div",{ref:yr,className:ke()("".concat(sr,"-thumb"),(0,Ye.Z)({},"".concat(sr,"-thumb-moving"),St)),style:(0,Me.Z)((0,Me.Z)({},br),de),onMouseDown:en}))}),fn=Fn,Ct=20;function $t(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Se=yt/zt*yt;return isNaN(Se)&&(Se=0),Se=Math.max(Se,Ct),Math.floor(Se)}var on=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],jn=[],Dt={overflowY:"auto",overflowAnchor:"none"};function vt(yt,zt){var Se=yt.prefixCls,se=Se===void 0?"rc-virtual-list":Se,fe=yt.className,Ue=yt.height,Be=yt.itemHeight,gt=yt.fullHeight,Mt=gt===void 0?!0:gt,sn=yt.style,he=yt.data,oe=yt.children,re=yt.itemKey,de=yt.virtual,we=yt.direction,le=yt.scrollWidth,Ee=yt.component,St=Ee===void 0?"div":Ee,Ut=yt.onScroll,It=yt.onVirtualScroll,ht=yt.onVisibleChange,Bn=yt.innerProps,Vt=yt.extraRender,un=yt.styles,In=yt.showScrollBar,or=In===void 0?"optional":In,vn=(0,ve.Z)(yt,on),fr=Ce.useCallback(function(Ht){return typeof re=="function"?re(Ht):Ht==null?void 0:Ht[re]},[re]),ur=mt(fr,null,null),yr=(0,_e.Z)(ur,4),Xn=yr[0],Mr=yr[1],Kr=yr[2],Er=yr[3],lr=!!(de!==!1&&Ue&&Be),Dr=Ce.useMemo(function(){return Object.values(Kr.maps).reduce(function(Ht,ln){return Ht+ln},0)},[Kr.id,Kr.maps]),Kn=lr&&he&&(Math.max(Be*he.length,Dr)>Ue||!!le),tr=we==="rtl",Jn=ke()(se,(0,Ye.Z)({},"".concat(se,"-rtl"),tr),fe),mn=he||jn,zn=(0,Ce.useRef)(),en=(0,Ce.useRef)(),Sn=(0,Ce.useRef)(),hr=(0,Ce.useState)(0),sr=(0,_e.Z)(hr,2),cr=sr[0],br=sr[1],Gr=(0,Ce.useState)(0),Ir=(0,_e.Z)(Gr,2),Ur=Ir[0],Lr=Ir[1],qn=(0,Ce.useState)(!1),yn=(0,_e.Z)(qn,2),rt=yn[0],kr=yn[1],zr=function(){kr(!0)},Lt=function(){kr(!1)},Tt={getKey:fr};function nr(Ht){br(function(ln){var hn;typeof Ht=="function"?hn=Ht(ln):hn=Ht;var tn=li(hn);return zn.current.scrollTop=tn,tn})}var Tn=(0,Ce.useRef)({start:0,end:mn.length}),jt=(0,Ce.useRef)(),_n=Je(mn,fr),ir=(0,_e.Z)(_n,1),ar=ir[0];jt.current=ar;var Ar=Ce.useMemo(function(){if(!lr)return{scrollHeight:void 0,start:0,end:mn.length-1,offset:void 0};if(!Kn){var Ht;return{scrollHeight:((Ht=en.current)===null||Ht===void 0?void 0:Ht.offsetHeight)||0,start:0,end:mn.length-1,offset:void 0}}for(var ln=0,hn,tn,cn,er=mn.length,Nt=0;Nt=cr&&hn===void 0&&(hn=Nt,tn=ln),$n>cr+Ue&&cn===void 0&&(cn=Nt),ln=$n}return hn===void 0&&(hn=0,tn=0,cn=Math.ceil(Ue/Be)),cn===void 0&&(cn=mn.length-1),cn=Math.min(cn+1,mn.length-1),{scrollHeight:ln,start:hn,end:cn,offset:tn}},[Kn,lr,cr,mn,Er,Ue]),dr=Ar.scrollHeight,xr=Ar.start,Nn=Ar.end,xt=Ar.offset;Tn.current.start=xr,Tn.current.end=Nn,Ce.useLayoutEffect(function(){var Ht=Kr.getRecord();if(Ht.size===1){var ln=Array.from(Ht.keys())[0],hn=Ht.get(ln),tn=mn[xr];if(tn&&hn===void 0){var cn=fr(tn);if(cn===ln){var er=Kr.get(ln),Nt=er-Be;nr(function(qt){return qt+Nt})}}}Kr.resetRecord()},[dr]);var Ft=Ce.useState({width:0,height:Ue}),pn=(0,_e.Z)(Ft,2),Ln=pn[0],wr=pn[1],Rr=function(ln){wr({width:ln.offsetWidth,height:ln.offsetHeight})},Nr=(0,Ce.useRef)(),rr=(0,Ce.useRef)(),Yn=Ce.useMemo(function(){return $t(Ln.width,le)},[Ln.width,le]),_r=Ce.useMemo(function(){return $t(Ln.height,dr)},[Ln.height,dr]),Br=dr-Ue,qr=(0,Ce.useRef)(Br);qr.current=Br;function li(Ht){var ln=Ht;return Number.isNaN(qr.current)||(ln=Math.min(ln,qr.current)),ln=Math.max(ln,0),ln}var ai=cr<=0,Ci=cr>=Br,ze=Ur<=0,Ie=Ur>=le,st=Te(ai,Ci,ze,Ie),Et=function(){return{x:tr?-Ur:Ur,y:cr}},rn=(0,Ce.useRef)(Et()),Wt=(0,ge.zX)(function(Ht){if(It){var ln=(0,Me.Z)((0,Me.Z)({},Et()),Ht);(rn.current.x!==ln.x||rn.current.y!==ln.y)&&(It(ln),rn.current=ln)}});function Qn(Ht,ln){var hn=Ht;ln?((0,ct.flushSync)(function(){Lr(hn)}),Wt()):nr(hn)}function Hn(Ht){var ln=Ht.currentTarget.scrollTop;ln!==cr&&nr(ln),Ut==null||Ut(Ht),Wt()}var Wn=function(ln){var hn=ln,tn=le?le-Ln.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,tn),hn},Vn=(0,ge.zX)(function(Ht,ln){ln?((0,ct.flushSync)(function(){Lr(function(hn){var tn=hn+(tr?-Ht:Ht);return Wn(tn)})}),Wt()):nr(function(hn){var tn=hn+Ht;return tn})}),Zn=at(lr,ai,Ci,ze,Ie,!!le,Vn),Gn=(0,_e.Z)(Zn,2),ft=Gn[0],Yt=Gn[1];Jt(lr,zn,function(Ht,ln,hn,tn){var cn=tn;return st(Ht,ln,hn)?!1:!cn||!cn._virtualHandled?(cn&&(cn._virtualHandled=!0),ft({preventDefault:function(){},deltaX:Ht?ln:0,deltaY:Ht?0:ln}),!0):!1}),We(Kn,zn,function(Ht){nr(function(ln){return ln+Ht})}),(0,Xe.Z)(function(){function Ht(hn){var tn=ai&&hn.detail<0,cn=Ci&&hn.detail>0;lr&&!tn&&!cn&&hn.preventDefault()}var ln=zn.current;return ln.addEventListener("wheel",ft,{passive:!1}),ln.addEventListener("DOMMouseScroll",Yt,{passive:!0}),ln.addEventListener("MozMousePixelScroll",Ht,{passive:!1}),function(){ln.removeEventListener("wheel",ft),ln.removeEventListener("DOMMouseScroll",Yt),ln.removeEventListener("MozMousePixelScroll",Ht)}},[lr,ai,Ci]),(0,Xe.Z)(function(){if(le){var Ht=Wn(Ur);Lr(Ht),Wt({x:Ht})}},[Ln.width,le]);var Rt=function(){var ln,hn;(ln=Nr.current)===null||ln===void 0||ln.delayHidden(),(hn=rr.current)===null||hn===void 0||hn.delayHidden()},Kt=Ot(zn,mn,Kr,Be,fr,function(){return Mr(!0)},nr,Rt);Ce.useImperativeHandle(zt,function(){return{nativeElement:Sn.current,getScrollInfo:Et,scrollTo:function(ln){function hn(tn){return tn&&(0,Ke.Z)(tn)==="object"&&("left"in tn||"top"in tn)}hn(ln)?(ln.left!==void 0&&Lr(Wn(ln.left)),Kt(ln.top)):Kt(ln)}}}),(0,Xe.Z)(function(){if(ht){var Ht=mn.slice(xr,Nn+1);ht(Ht,mn)}},[xr,Nn,mn]);var nn=He(mn,fr,Kr,Be),dn=Vt==null?void 0:Vt({start:xr,end:Nn,virtual:Kn,offsetX:Ur,offsetY:xt,rtl:tr,getSize:nn}),Rn=Le(mn,xr,Nn,le,Ur,Xn,oe,Tt),it=null;Ue&&(it=(0,Me.Z)((0,Ye.Z)({},Mt?"height":"maxHeight",Ue),Dt),lr&&(it.overflowY="hidden",le&&(it.overflowX="hidden"),rt&&(it.pointerEvents="none")));var wn={};return tr&&(wn.dir="rtl"),Ce.createElement("div",(0,te.Z)({ref:Sn,style:(0,Me.Z)((0,Me.Z)({},sn),{},{position:"relative"}),className:Jn},wn,vn),Ce.createElement(Re.Z,{onResize:Rr},Ce.createElement(St,{className:"".concat(se,"-holder"),style:it,ref:zn,onScroll:Hn,onMouseEnter:Rt},Ce.createElement(nt,{prefixCls:se,height:dr,offsetX:Ur,offsetY:xt,scrollWidth:le,onInnerResize:Mr,ref:en,innerProps:Bn,rtl:tr,extra:dn},Rn))),Kn&&dr>Ue&&Ce.createElement(fn,{ref:Nr,prefixCls:se,scrollOffset:cr,scrollRange:dr,rtl:tr,onScroll:Qn,onStartMove:zr,onStopMove:Lt,spinSize:_r,containerSize:Ln.height,style:un==null?void 0:un.verticalScrollBar,thumbStyle:un==null?void 0:un.verticalScrollBarThumb,showScrollBar:or}),Kn&&le>Ln.width&&Ce.createElement(fn,{ref:rr,prefixCls:se,scrollOffset:Ur,scrollRange:le,rtl:tr,onScroll:Qn,onStartMove:zr,onStopMove:Lt,spinSize:Yn,containerSize:Ln.width,horizontal:!0,style:un==null?void 0:un.horizontalScrollBar,thumbStyle:un==null?void 0:un.horizontalScrollBarThumb,showScrollBar:or}))}var pt=Ce.forwardRef(vt);pt.displayName="List";var bt=pt,Zt=bt},51353:function(xn,wt,ce){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),Object.defineProperty(wt,"DraggableCore",{enumerable:!0,get:function(){return ke.default}}),wt.default=void 0;var te=Xe(ce(59301)),Ke=ge(ce(12708)),Me=ge(ce(4676)),Ye=ce(14625),_e=ce(77026),ve=ce(22013),Ve=ce(80217),ke=ge(ce(68555)),Re=ge(ce(97510));function ge(Le){return Le&&Le.__esModule?Le:{default:Le}}function Xe(Le,ut){if(typeof WeakMap=="function")var Ge=new WeakMap,Je=new WeakMap;return(Xe=function(Qe,xe){if(!xe&&Qe&&Qe.__esModule)return Qe;var Ne,Te,at={__proto__:null,default:Qe};if(Qe===null||typeof Qe!="object"&&typeof Qe!="function")return at;if(Ne=xe?Je:Ge){if(Ne.has(Qe))return Ne.get(Qe);Ne.set(Qe,at)}for(const He in Qe)He!=="default"&&{}.hasOwnProperty.call(Qe,He)&&((Te=(Ne=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Qe,He))&&(Te.get||Te.set)?Ne(at,He,Te):at[He]=Qe[He]);return at})(Le,ut)}function Ce(){return Ce=Object.assign?Object.assign.bind():function(Le){for(var ut=1;ut{if((0,Re.default)("Draggable: onDragStart: %j",Je),this.props.onStart(Ge,(0,ve.createDraggableData)(this,Je))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),ct(this,"onDrag",(Ge,Je)=>{if(!this.state.dragging)return!1;(0,Re.default)("Draggable: onDrag: %j",Je);const Qe=(0,ve.createDraggableData)(this,Je),xe={x:Qe.x,y:Qe.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Te,y:at}=xe;xe.x+=this.state.slackX,xe.y+=this.state.slackY;const[He,et]=(0,ve.getBoundPosition)(this,xe.x,xe.y);xe.x=He,xe.y=et,xe.slackX=this.state.slackX+(Te-xe.x),xe.slackY=this.state.slackY+(at-xe.y),Qe.x=xe.x,Qe.y=xe.y,Qe.deltaX=xe.x-this.state.x,Qe.deltaY=xe.y-this.state.y}if(this.props.onDrag(Ge,Qe)===!1)return!1;this.setState(xe)}),ct(this,"onDragStop",(Ge,Je)=>{if(!this.state.dragging||this.props.onStop(Ge,(0,ve.createDraggableData)(this,Je))===!1)return!1;(0,Re.default)("Draggable: onDragStop: %j",Je);const xe={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Te,y:at}=this.props.position;xe.x=Te,xe.y=at}this.setState(xe)}),this.state={dragging:!1,dragged:!1,x:ut.position?ut.position.x:ut.defaultPosition.x,y:ut.position?ut.position.y:ut.defaultPosition.y,prevPropsPosition:Vo({},ut.position),slackX:0,slackY:0,isElementSVG:!1},ut.position&&!(ut.onDrag||ut.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var ut,Ge,Je;return(Je=(Ge=(ut=this.props)==null?void 0:ut.nodeRef)==null?void 0:Ge.current)!=null?Je:Me.default.findDOMNode(this)}render(){const An=this.props,{axis:ut,bounds:Ge,children:Je,defaultPosition:Qe,defaultClassName:xe,defaultClassNameDragging:Ne,defaultClassNameDragged:Te,position:at,positionOffset:He,scale:et}=An,dt=cc(An,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let $e={},Bt=null;const mt=!!!at||this.state.dragging,Gt=at||Qe,Jt={x:(0,ve.canDragX)(this)&&mt?this.state.x:Gt.x,y:(0,ve.canDragY)(this)&&mt?this.state.y:Gt.y};this.state.isElementSVG?Bt=(0,_e.createSVGTransform)(Jt,He):$e=(0,_e.createCSSTransform)(Jt,He);const gn=(0,Ye.clsx)(Je.props.className||"",xe,{[Ne]:this.state.dragging,[Te]:this.state.dragged});return te.createElement(ke.default,Ce({},dt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),te.cloneElement(te.Children.only(Je),{className:gn,style:Vo(Vo({},Je.props.style),$e),transform:Bt}))}}wt.default=Ze,ct(Ze,"displayName","Draggable"),ct(Ze,"propTypes",ec(Vo({},ke.default.propTypes),{axis:Ke.default.oneOf(["both","x","y","none"]),bounds:Ke.default.oneOfType([Ke.default.shape({left:Ke.default.number,right:Ke.default.number,top:Ke.default.number,bottom:Ke.default.number}),Ke.default.string,Ke.default.oneOf([!1])]),defaultClassName:Ke.default.string,defaultClassNameDragging:Ke.default.string,defaultClassNameDragged:Ke.default.string,defaultPosition:Ke.default.shape({x:Ke.default.number,y:Ke.default.number}),positionOffset:Ke.default.shape({x:Ke.default.oneOfType([Ke.default.number,Ke.default.string]),y:Ke.default.oneOfType([Ke.default.number,Ke.default.string])}),position:Ke.default.shape({x:Ke.default.number,y:Ke.default.number}),className:Ve.dontSetMe,style:Ve.dontSetMe,transform:Ve.dontSetMe})),ct(Ze,"defaultProps",ec(Vo({},ke.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(xn,wt,ce){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=void 0;var te=Re(ce(59301)),Ke=ke(ce(12708)),Me=ke(ce(4676)),Ye=ce(77026),_e=ce(22013),ve=ce(80217),Ve=ke(ce(97510));function ke(Ze){return Ze&&Ze.__esModule?Ze:{default:Ze}}function Re(Ze,Le){if(typeof WeakMap=="function")var ut=new WeakMap,Ge=new WeakMap;return(Re=function(Je,Qe){if(!Qe&&Je&&Je.__esModule)return Je;var xe,Ne,Te={__proto__:null,default:Je};if(Je===null||typeof Je!="object"&&typeof Je!="function")return Te;if(xe=Qe?Ge:ut){if(xe.has(Je))return xe.get(Je);xe.set(Je,Te)}for(const at in Je)at!=="default"&&{}.hasOwnProperty.call(Je,at)&&((Ne=(xe=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Je,at))&&(Ne.get||Ne.set)?xe(Te,at,Ne):Te[at]=Je[at]);return Te})(Ze,Le)}function ge(Ze,Le,ut){return(Le=Xe(Le))in Ze?Object.defineProperty(Ze,Le,{value:ut,enumerable:!0,configurable:!0,writable:!0}):Ze[Le]=ut,Ze}function Xe(Ze){var Le=Ce(Ze,"string");return typeof Le=="symbol"?Le:Le+""}function Ce(Ze,Le){if(typeof Ze!="object"||!Ze)return Ze;var ut=Ze[Symbol.toPrimitive];if(ut!==void 0){var Ge=ut.call(Ze,Le||"default");if(typeof Ge!="object")return Ge;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Le==="string"?String:Number)(Ze)}const ct={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let tt=ct.mouse;class nt extends te.Component{constructor(){super(...arguments),ge(this,"dragging",!1),ge(this,"lastX",NaN),ge(this,"lastY",NaN),ge(this,"touchIdentifier",null),ge(this,"mounted",!1),ge(this,"handleDragStart",Le=>{if(this.props.onMouseDown(Le),!this.props.allowAnyClick&&typeof Le.button=="number"&&Le.button!==0)return!1;const ut=this.findDOMNode();if(!ut||!ut.ownerDocument||!ut.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:Ge}=ut;if(this.props.disabled||!(Le.target instanceof Ge.defaultView.Node)||this.props.handle&&!(0,Ye.matchesSelectorAndParentsTo)(Le.target,this.props.handle,ut)||this.props.cancel&&(0,Ye.matchesSelectorAndParentsTo)(Le.target,this.props.cancel,ut))return;Le.type==="touchstart"&&!this.props.allowMobileScroll&&Le.preventDefault();const Je=(0,Ye.getTouchIdentifier)(Le);this.touchIdentifier=Je;const Qe=(0,_e.getControlPosition)(Le,Je,this);if(Qe==null)return;const{x:xe,y:Ne}=Qe,Te=(0,_e.createCoreData)(this,xe,Ne);(0,Ve.default)("DraggableCore: handleDragStart: %j",Te),(0,Ve.default)("calling",this.props.onStart),!(this.props.onStart(Le,Te)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ye.addUserSelectStyles)(Ge),this.dragging=!0,this.lastX=xe,this.lastY=Ne,(0,Ye.addEvent)(Ge,tt.move,this.handleDrag),(0,Ye.addEvent)(Ge,tt.stop,this.handleDragStop))}),ge(this,"handleDrag",Le=>{const ut=(0,_e.getControlPosition)(Le,this.touchIdentifier,this);if(ut==null)return;let{x:Ge,y:Je}=ut;if(Array.isArray(this.props.grid)){let Ne=Ge-this.lastX,Te=Je-this.lastY;if([Ne,Te]=(0,_e.snapToGrid)(this.props.grid,Ne,Te),!Ne&&!Te)return;Ge=this.lastX+Ne,Je=this.lastY+Te}const Qe=(0,_e.createCoreData)(this,Ge,Je);if((0,Ve.default)("DraggableCore: handleDrag: %j",Qe),this.props.onDrag(Le,Qe)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Ne){const Te=document.createEvent("MouseEvents");Te.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Te)}return}this.lastX=Ge,this.lastY=Je}),ge(this,"handleDragStop",Le=>{if(!this.dragging)return;const ut=(0,_e.getControlPosition)(Le,this.touchIdentifier,this);if(ut==null)return;let{x:Ge,y:Je}=ut;if(Array.isArray(this.props.grid)){let Te=Ge-this.lastX||0,at=Je-this.lastY||0;[Te,at]=(0,_e.snapToGrid)(this.props.grid,Te,at),Ge=this.lastX+Te,Je=this.lastY+at}const Qe=(0,_e.createCoreData)(this,Ge,Je);if(this.props.onStop(Le,Qe)===!1||this.mounted===!1)return!1;const Ne=this.findDOMNode();Ne&&this.props.enableUserSelectHack&&(0,Ye.scheduleRemoveUserSelectStyles)(Ne.ownerDocument),(0,Ve.default)("DraggableCore: handleDragStop: %j",Qe),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Ne&&((0,Ve.default)("DraggableCore: Removing handlers"),(0,Ye.removeEvent)(Ne.ownerDocument,tt.move,this.handleDrag),(0,Ye.removeEvent)(Ne.ownerDocument,tt.stop,this.handleDragStop))}),ge(this,"onMouseDown",Le=>(tt=ct.mouse,this.handleDragStart(Le))),ge(this,"onMouseUp",Le=>(tt=ct.mouse,this.handleDragStop(Le))),ge(this,"onTouchStart",Le=>(tt=ct.touch,this.handleDragStart(Le))),ge(this,"onTouchEnd",Le=>(tt=ct.touch,this.handleDragStop(Le)))}componentDidMount(){this.mounted=!0;const Le=this.findDOMNode();Le&&(0,Ye.addEvent)(Le,ct.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const Le=this.findDOMNode();if(Le){const{ownerDocument:ut}=Le;(0,Ye.removeEvent)(ut,ct.mouse.move,this.handleDrag),(0,Ye.removeEvent)(ut,ct.touch.move,this.handleDrag),(0,Ye.removeEvent)(ut,ct.mouse.stop,this.handleDragStop),(0,Ye.removeEvent)(ut,ct.touch.stop,this.handleDragStop),(0,Ye.removeEvent)(Le,ct.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ye.scheduleRemoveUserSelectStyles)(ut)}}findDOMNode(){var Le,ut,Ge;return(Le=this.props)!=null&&Le.nodeRef?(Ge=(ut=this.props)==null?void 0:ut.nodeRef)==null?void 0:Ge.current:Me.default.findDOMNode(this)}render(){return te.cloneElement(te.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}wt.default=nt,ge(nt,"displayName","DraggableCore"),ge(nt,"propTypes",{allowAnyClick:Ke.default.bool,allowMobileScroll:Ke.default.bool,children:Ke.default.node.isRequired,disabled:Ke.default.bool,enableUserSelectHack:Ke.default.bool,offsetParent:function(Ze,Le){if(Ze[Le]&&Ze[Le].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ke.default.arrayOf(Ke.default.number),handle:Ke.default.string,cancel:Ke.default.string,nodeRef:Ke.default.object,onStart:Ke.default.func,onDrag:Ke.default.func,onStop:Ke.default.func,onMouseDown:Ke.default.func,scale:Ke.default.number,className:ve.dontSetMe,style:ve.dontSetMe,transform:ve.dontSetMe}),ge(nt,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(xn,wt,ce){"use strict";const{default:te,DraggableCore:Ke}=ce(51353);xn.exports=te,xn.exports.default=te,xn.exports.DraggableCore=Ke},77026:function(xn,wt,ce){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.addClassName=xe,wt.addEvent=Ve,wt.addUserSelectStyles=Ge,wt.createCSSTransform=tt,wt.createSVGTransform=nt,wt.getTouch=Le,wt.getTouchIdentifier=ut,wt.getTranslation=Ze,wt.innerHeight=Xe,wt.innerWidth=Ce,wt.matchesSelector=_e,wt.matchesSelectorAndParentsTo=ve,wt.offsetXYFromParent=ct,wt.outerHeight=Re,wt.outerWidth=ge,wt.removeClassName=Ne,wt.removeEvent=ke,wt.scheduleRemoveUserSelectStyles=Je;var te=ce(80217),Ke=Me(ce(76172));function Me(Te,at){if(typeof WeakMap=="function")var He=new WeakMap,et=new WeakMap;return(Me=function(dt,$e){if(!$e&&dt&&dt.__esModule)return dt;var Bt,At,mt={__proto__:null,default:dt};if(dt===null||typeof dt!="object"&&typeof dt!="function")return mt;if(Bt=$e?et:He){if(Bt.has(dt))return Bt.get(dt);Bt.set(dt,mt)}for(const Gt in dt)Gt!=="default"&&{}.hasOwnProperty.call(dt,Gt)&&((At=(Bt=Object.defineProperty)&&Object.getOwnPropertyDescriptor(dt,Gt))&&(At.get||At.set)?Bt(mt,Gt,At):mt[Gt]=dt[Gt]);return mt})(Te,at)}let Ye="";function _e(Te,at){return Ye||(Ye=(0,te.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(He){return(0,te.isFunction)(Te[He])})),(0,te.isFunction)(Te[Ye])?Te[Ye](at):!1}function ve(Te,at,He){let et=Te;do{if(_e(et,at))return!0;if(et===He)return!1;et=et.parentNode}while(et);return!1}function Ve(Te,at,He,et){if(!Te)return;const dt=Vo({capture:!0},et);Te.addEventListener?Te.addEventListener(at,He,dt):Te.attachEvent?Te.attachEvent("on"+at,He):Te["on"+at]=He}function ke(Te,at,He,et){if(!Te)return;const dt=Vo({capture:!0},et);Te.removeEventListener?Te.removeEventListener(at,He,dt):Te.detachEvent?Te.detachEvent("on"+at,He):Te["on"+at]=null}function Re(Te){let at=Te.clientHeight;const He=Te.ownerDocument.defaultView.getComputedStyle(Te);return at+=(0,te.int)(He.borderTopWidth),at+=(0,te.int)(He.borderBottomWidth),at}function ge(Te){let at=Te.clientWidth;const He=Te.ownerDocument.defaultView.getComputedStyle(Te);return at+=(0,te.int)(He.borderLeftWidth),at+=(0,te.int)(He.borderRightWidth),at}function Xe(Te){let at=Te.clientHeight;const He=Te.ownerDocument.defaultView.getComputedStyle(Te);return at-=(0,te.int)(He.paddingTop),at-=(0,te.int)(He.paddingBottom),at}function Ce(Te){let at=Te.clientWidth;const He=Te.ownerDocument.defaultView.getComputedStyle(Te);return at-=(0,te.int)(He.paddingLeft),at-=(0,te.int)(He.paddingRight),at}function ct(Te,at,He){const dt=at===at.ownerDocument.body?{left:0,top:0}:at.getBoundingClientRect(),$e=(Te.clientX+at.scrollLeft-dt.left)/He,Bt=(Te.clientY+at.scrollTop-dt.top)/He;return{x:$e,y:Bt}}function tt(Te,at){const He=Ze(Te,at,"px");return{[(0,Ke.browserPrefixToKey)("transform",Ke.default)]:He}}function nt(Te,at){return Ze(Te,at,"")}function Ze(Te,at,He){let{x:et,y:dt}=Te,$e=`translate(${et}${He},${dt}${He})`;if(at){const Bt=`${typeof at.x=="string"?at.x:at.x+He}`,At=`${typeof at.y=="string"?at.y:at.y+He}`;$e=`translate(${Bt}, ${At})`+$e}return $e}function Le(Te,at){return Te.targetTouches&&(0,te.findInArray)(Te.targetTouches,He=>at===He.identifier)||Te.changedTouches&&(0,te.findInArray)(Te.changedTouches,He=>at===He.identifier)}function ut(Te){if(Te.targetTouches&&Te.targetTouches[0])return Te.targetTouches[0].identifier;if(Te.changedTouches&&Te.changedTouches[0])return Te.changedTouches[0].identifier}function Ge(Te){if(!Te)return;let at=Te.getElementById("react-draggable-style-el");at||(at=Te.createElement("style"),at.type="text/css",at.id="react-draggable-style-el",at.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,at.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,Te.getElementsByTagName("head")[0].appendChild(at)),Te.body&&xe(Te.body,"react-draggable-transparent-selection")}function Je(Te){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Qe(Te)}):Qe(Te)}function Qe(Te){if(Te)try{if(Te.body&&Ne(Te.body,"react-draggable-transparent-selection"),Te.selection)Te.selection.empty();else{const at=(Te.defaultView||window).getSelection();at&&at.type!=="Caret"&&at.removeAllRanges()}}catch(at){}}function xe(Te,at){Te.classList?Te.classList.add(at):Te.className.match(new RegExp(`(?:^|\\s)${at}(?!\\S)`))||(Te.className+=` ${at}`)}function Ne(Te,at){Te.classList?Te.classList.remove(at):Te.className=Te.className.replace(new RegExp(`(?:^|\\s)${at}(?!\\S)`,"g"),"")}},76172:function(xn,wt){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.browserPrefixToKey=Ke,wt.browserPrefixToStyle=Me,wt.default=void 0,wt.getPrefix=te;const ce=["Moz","Webkit","O","ms"];function te(){var ke,Re;let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Ve=(Re=(ke=window.document)==null?void 0:ke.documentElement)==null?void 0:Re.style;if(!Ve||ve in Ve)return"";for(let ge=0;ge: Unmounted during event!");return ct}},80217:function(xn,wt){"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.dontSetMe=Ye,wt.findInArray=ce,wt.int=Me,wt.isFunction=te,wt.isNum=Ke;function ce(_e,ve){for(let Ve=0,ke=_e.length;Ve1&&arguments[1]!==void 0?arguments[1]:60,Ye=null;return function(){for(var _e=this,ve=arguments.length,Ve=new Array(ve),ke=0;ketypeof Re=="object"&&Re!=null&&Re.nodeType===1,Ke=(Re,ge)=>(!ge||Re!=="hidden")&&Re!=="visible"&&Re!=="clip",Me=(Re,ge)=>{if(Re.clientHeight{const ct=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(Ce);return!!ct&&(ct.clientHeightttge||tt>Re&&nt=ge&&Ze>=Xe?tt-Re-Ce:nt>ge&&ZeXe?nt-ge+ct:0,_e=Re=>{const ge=Re.parentElement;return ge==null?Re.getRootNode().host||null:ge},ve=(Re,ge)=>{var Xe,Ce,ct,tt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:Ze,inline:Le,boundary:ut,skipOverflowHiddenElements:Ge}=ge,Je=typeof ut=="function"?ut:fn=>fn!==ut;if(!te(Re))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,xe=[];let Ne=Re;for(;te(Ne)&&Je(Ne);){if(Ne=_e(Ne),Ne===Qe){xe.push(Ne);break}Ne!=null&&Ne===document.body&&Me(Ne)&&!Me(document.documentElement)||Ne!=null&&Me(Ne,Ge)&&xe.push(Ne)}const Te=(Ce=(Xe=window.visualViewport)==null?void 0:Xe.width)!=null?Ce:innerWidth,at=(tt=(ct=window.visualViewport)==null?void 0:ct.height)!=null?tt:innerHeight,{scrollX:He,scrollY:et}=window,{height:dt,width:$e,top:Bt,right:At,bottom:mt,left:Gt}=Re.getBoundingClientRect(),{top:Jt,right:gn,bottom:An,left:We}=(fn=>{const Ct=window.getComputedStyle(fn);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(Re);let Fe=Ze==="start"||Ze==="nearest"?Bt-Jt:Ze==="end"?mt+An:Bt+dt/2-Jt+An,Ot=Le==="center"?Gt+$e/2-We+gn:Le==="end"?At+gn:Gt-We;const Fn=[];for(let fn=0;fn=0&&Gt>=0&&mt<=at&&At<=Te&&(Ct===Qe&&!Me(Ct)||Bt>=jn&&mt<=vt&&Gt>=pt&&At<=Dt))return Fn;const bt=getComputedStyle(Ct),Zt=parseInt(bt.borderLeftWidth,10),yt=parseInt(bt.borderTopWidth,10),zt=parseInt(bt.borderRightWidth,10),Se=parseInt(bt.borderBottomWidth,10);let se=0,fe=0;const Ue="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-Zt-zt:0,Be="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-yt-Se:0,gt="offsetWidth"in Ct?Ct.offsetWidth===0?0:on/Ct.offsetWidth:0,Mt="offsetHeight"in Ct?Ct.offsetHeight===0?0:$t/Ct.offsetHeight:0;if(Qe===Ct)se=Ze==="start"?Fe:Ze==="end"?Fe-at:Ze==="nearest"?Ye(et,et+at,at,yt,Se,et+Fe,et+Fe+dt,dt):Fe-at/2,fe=Le==="start"?Ot:Le==="center"?Ot-Te/2:Le==="end"?Ot-Te:Ye(He,He+Te,Te,Zt,zt,He+Ot,He+Ot+$e,$e),se=Math.max(0,se+et),fe=Math.max(0,fe+He);else{se=Ze==="start"?Fe-jn-yt:Ze==="end"?Fe-vt+Se+Be:Ze==="nearest"?Ye(jn,vt,$t,yt,Se+Be,Fe,Fe+dt,dt):Fe-(jn+$t/2)+Be/2,fe=Le==="start"?Ot-pt-Zt:Le==="center"?Ot-(pt+on/2)+Ue/2:Le==="end"?Ot-Dt+zt+Ue:Ye(pt,Dt,on,Zt,zt+Ue,Ot,Ot+$e,$e);const{scrollLeft:sn,scrollTop:he}=Ct;se=Mt===0?0:Math.max(0,Math.min(he+se/Mt,Ct.scrollHeight-$t/Mt+Be)),fe=gt===0?0:Math.max(0,Math.min(sn+fe/gt,Ct.scrollWidth-on/gt+Ue)),Fe+=he-se,Ot+=sn-fe}Fn.push({el:Ct,top:se,left:fe})}return Fn},Ve=Re=>Re===!1?{block:"end",inline:"nearest"}:(ge=>ge===Object(ge)&&Object.keys(ge).length!==0)(Re)?Re:{block:"start",inline:"nearest"};function ke(Re,ge){if(!Re.isConnected||!(ct=>{let tt=ct;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(Re))return;const Xe=(ct=>{const tt=window.getComputedStyle(ct);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(Re);if((ct=>typeof ct=="object"&&typeof ct.behavior=="function")(ge))return ge.behavior(ve(Re,ge));const Ce=typeof ge=="boolean"||ge==null?void 0:ge.behavior;for(const{el:ct,top:tt,left:nt}of ve(Re,Ve(ge))){const Ze=tt-Xe.top+Xe.bottom,Le=nt-Xe.left+Xe.right;ct.scroll({top:Ze,left:Le,behavior:Ce})}}}}]); }());