!(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,yt,ce)=>yt in xn?Hc(xn,yt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):xn[yt]=ce,Vo=(xn,yt)=>{for(var ce in yt||(yt={}))lc.call(yt,ce)&&$u(xn,ce,yt[ce]);if(zu)for(var ce of zu(yt))uc.call(yt,ce)&&$u(xn,ce,yt[ce]);return xn},ec=(xn,yt)=>Rc(xn,Oc(yt));var cc=(xn,yt)=>{var ce={};for(var te in xn)lc.call(xn,te)&&yt.indexOf(te)<0&&(ce[te]=xn[te]);if(xn!=null&&zu)for(var te of zu(xn))yt.indexOf(te)<0&&uc.call(xn,te)&&(ce[te]=xn[te]);return ce};var ba=(xn,yt,ce)=>$u(xn,typeof yt!="symbol"?yt+"":yt,ce);(self.webpackChunk=self.webpackChunk||[]).push([[342],{95869:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Ue}});var te=ce(54476),Ze=ce(59301),Te={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"},Xe=Te,ke=ce(7657),ge=function(ye,Je){return Ze.createElement(ke.Z,(0,te.Z)({},ye,{ref:Je,icon:Xe}))},Ve=Ze.forwardRef(ge),Ue=Ve},45559:function(){"use strict"},96408:function(xn,yt){"use strict";yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},93510: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={},yt="5.0",ce={},te=null,Ze=!1,Te=!1,Xe=null,ke=!1,ge=null,Ve=null,Ue=0;Ue4?parseFloat(Ct):5};xn.setHTML5Codebase=function(Ct,en){Ve=Ct,Ot(Ct,en)},xn.setJavaCodebase=xn.setJavaCodebaseVersion=xn.isCompiledInstalled=xn.setPreCompiledScriptPath=xn.setPreCompiledResourcePath=function(){},xn.setHTML5CodebaseVersion=function(Ct,en){var rn=parseFloat(Ct);if(rn!==NaN&&rn<5){console.log("The GeoGebra HTML5 codebase version "+rn+" is deprecated. Using version latest instead.");return}ge=Ct,Fe(Ct,en)},xn.getHTML5CodebaseVersion=function(){return nt},xn.getParameters=function(){return ce},xn.setFontsCSSURL=function(Ct){qe=Ct},xn.setGiacJSURL=function(Ct){},xn.setJNLPFile=function(Ct){ye=Ct},xn.setJNLPBaseDir=function(Ct){},xn.inject=function(){function Ct(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var en="auto",rn=ce.id,Yn,Dt=!1,mt=0;mt=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 gt=function(Ct,en,rn){var Yn=document.createElement("param");Yn.setAttribute("name",en),Yn.setAttribute("value",rn),Ct.appendChild(Yn)},Ye=function(Ct){return Ct&&Ct!=="false"},wt=function(Ct,en,rn){xe(nt)<=4.2&&(rn=!0);var Yn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==nt||ggbHTML5LoadedCodebaseIsWebSimple&&!We)&&(Yn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dt=document.createElement("div");Dt.classList.add("appletParameters","notranslate");var mt=en.width,ht=en.height;if(en.disableAutoScale=en.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():en.disableAutoScale,en.width!==void 0)if(xe(nt)<=4.4)Ye(en.showToolBar)&&(en.height-=7),Ye(en.showAlgebraInput)&&(en.height-=37),en.width<605&&Ye(en.showToolBar)&&(en.width=605,mt=605);else{var bt=100;(Ye(en.showToolBar)||Ye(en.showMenuBar))&&(en.hasOwnProperty("customToolBar")&&(en.customToolbar=en.customToolBar),bt=Ye(en.showMenuBar)?245:155),mt=5?(en.appletOnLoad=function(re){var de=Ct.querySelector(".ggb_preview");de&&de.parentNode.removeChild(de),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Bt(re)},_e||Pt.appendChild(se)):Dt.appendChild(se),Pt.appendChild(Dt),_e||Ct.appendChild(Pt),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),en.appletOnLoad=function(re){xn.resize(),Bt(re)}}function Ie(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){Ie(we.article,we.params)}),html5AppletsToProcess=null)},xe(nt)<5&&(re.className+=" geogebraweb")):Ie(re,de)}if(Yn){scriptLoadStarted=!0;for(var pt=0;pt0?(zt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Bt).append(Pt),window.dispatchEvent(new Event("resize"))):wt(zt,en,!1),window.GGBT_wsf_view.launchFullScreen(Bt)}else st=Yn,wt(Ct,en,!1);if(!window.GGBT_wsf_view)for(ht=0;htCt/4*3&&(zt=Ct/4*3),Bt=zt/5.8,bt.setAttribute("src",ut),bt.setAttribute("width",zt),bt.setAttribute("height",Bt);var Pt=(Ct-zt)/2,_e=(en-Bt)/2;bt.style.left=Pt+"px",bt.style.top=_e+"px",Dt.appendChild(bt)}}return Dt.appendChild(ht),Dt},An=function(Ct){return Ct=Ct.toLowerCase(),Ct==="html5"||Ct==="screenshot"?Ct:"html5"},ze=["web","webSimple","web3d","tablet","tablet3d","phone"],Fe=function(Ct,en){if(nt=Ct,en){Ot(nt,!0);return}var rn=!Ze;if(rn){var Yn=xe(nt);!isNaN(Yn)&&Yn<4.4&&(rn=!1)}var Dt,mt;window.location.protocol.substr(0,4)==="http"?Dt=window.location.protocol:Dt="http:";var ht=nt.indexOf("//");ht>0?mt=nt:ht===0?mt=Dt+nt:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var bt in ze)if(nt.slice(ze[bt].length*-1)===ze[bt]||nt.slice((ze[bt].length+1)*-1)===ze[bt]+"/"){Ot(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rn&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Ye(ce.showToolBar)&&!Ye(ce.showMenuBar)&&!Ye(ce.showAlgebraInput)&&!Ye(ce.enableRightClick)&&(!ce.appName||ce.appName=="classic")?mt+="webSimple/":mt+="web3d/",Ot(mt,!1)},Ot=function(Ct,en){if(Ct.requirejs){Je=Ct;return}Ct.slice(-1)!=="/"&&(Ct+="/"),Je=Ct,en===null&&(en=Ct.indexOf("http")===-1),Ce=en,it="web.nocache.js",We=!1;var rn=Je.split("/");rn.length>1&&(!en&&rn[rn.length-2]==="webSimple"?(it="webSimple.nocache.js",We=!0):ze.indexOf(rn[rn.length-2])>=0&&(it=rn[rn.length-2]+".nocache.js")),rn=Ct.split("/"),nt=rn[rn.length-3],nt.substr(0,4)==="test"?nt=nt.substr(4,1)+"."+nt.substr(5,1):(nt.substr(0,3)==="war"||nt.substr(0,4)==="beta")&&(nt="5.0");var Yn=parseFloat(nt);Yn!==NaN&&Yn<5&&Ct.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yn+" is deprecated. Using version latest instead."),Fe("5.0",en))},Fn=function(Ct,en){window.console&&window.console.log&&(!en||typeof en.showLogging=="undefined"||en.showLogging&&en.showLogging!=="false")&&console.log(Ct)};ce.material_id!==void 0?rt(dn):dn();function dn(){var Ct=yt;ge!==null?Ct=ge:parseFloat(Ct)<5&&(Ct="5.0"),Fe(Ct,!1),Ve!==null&&Ot(Ve,Ce),ke=!0}return xn},GGBAppletUtils=function(){"use strict";function xn(){return window.GGBT_wsf_edit!==void 0}function yt(ke,ge){ge!=1?(ke.style.transformOrigin="0% 0% 0px",ke.style.webkitTransformOrigin="0% 0% 0px",ke.style.transform="scale("+ge+","+ge+")",ke.style.webkitTransform="scale("+ge+","+ge+")",ke.style.maxWidth="initial",ke.querySelector(".ggb_preview")!==null&&(ke.querySelector(".ggb_preview").style.maxWidth="initial"),ke.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ke.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ke.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ke.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ke.style.transform="none",ke.style.webkitTransform="none")}function ce(ke,ge,Ve,Ue,Se,ye){var Je=null;if(ye!=null&&ye!="")for(var Ce=ke.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+ye+" ")>-1){Je=Ce;break}else Ce=Ce.parentNode;var st=0,nt=0,it=0,We=0,Le=0,ut=0,Ge=0;if(Je)st=Je.offsetWidth,nt=Math.max(Ue?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(st=Math.min(window.innerWidth,document.documentElement.clientWidth),nt=Math.min(window.innerHeight,document.documentElement.clientHeight),it=st):(st=window.innerWidth,nt=window.innerHeight,it=window.innerWidth),ke){var qe=ke.getBoundingClientRect();qe.left>0&&qe.left<=st&&(Se===void 0||!Se)&&(document.dir==="rtl"?(Le=st-qe.width-qe.left,ut=it<=480?10:30):(ut=qe.left,Le=it<=480?10:30),We=ut+Le)}if(ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=ke.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We=40,Ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We=0,Ge=40)}}return ke&&((Ve===void 0||!Ve)&&ge>0&&ge+We1&&(ye=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(ke.hasOwnProperty("disableAutoScale")&&ke.disableAutoScale))Se=te(ke,ge,ye,Ve,ke.scaleContainerClass);else return Ue;return ye&&(!ke.hasOwnProperty("scale")||Ue===1)?Se:Math.min(Ue,Se)}function Te(ke){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Ve=Math.min(window.innerHeight,document.documentElement.clientHeight),Ue=ke.getBoundingClientRect(),Se=(ge-Ue.width)/2,ye=(Ve-Ue.height)/2;ye<0&&(ye=0),ke.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Se<40?ke.style.left="40px":ke.style.left=Se+"px",ke.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?ke.style.top="40px":ke.style.top=ye+"px",ke.style.left=Se+"px")}function Xe(ke,ge){var Ve=ke.querySelector(".appletParameters");if(Ve){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==Ve.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ke)}if(Ve.parentElement&&/fullscreen/.test(Ve.parentElement.className))return;var Ue=Ze(ge,ke);xn()&&Ve.setAttribute("data-param-scale",Ue);for(var Se=null,ye=0;ye=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 yt=c[xn];return yt==null?null:yt},r=d,webModule.__errFn=e}function B(){function xn(ke){var ge=ke.lastIndexOf(rb);ge==-1&&(ge=ke.length);var Ve=ke.indexOf(sb);Ve==-1&&(Ve=ke.length);var Ue=ke.lastIndexOf(tb,Math.min(Ve,ge));return Ue>=O?ke.substring(O,Ue+P):W}function yt(ke){if(!ke.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=ke+vb,ke=xn(ge.src)}return ke}function ce(){var ke=__gwt_getMetaProperty(wb);return ke!=null?ke:W}function te(){for(var ke=o.getElementsByTagName(_),ge=O;geO?ke[ke.length-P].href:W}function Te(){var ke=o.location;return ke.href==ke.protocol+zb+ke.host+ke.pathname+ke.search+ke.hash}var Xe=ce();return Xe==W&&(Xe=te()),Xe==W&&(Xe=Ze()),Xe==W&&Te()&&(Xe=xn(o.location.href)),Xe=yt(Xe),Xe}function C(xn){return xn.match(/^\//)||xn.match(/^[a-zA-Z]+:\/\//)?xn:webModule.__moduleBase+xn}function D(){var xn=[],yt=O,ce=[],te=[];function Ze(ke){var ge=te[ke](),Ve=ce[ke];if(ge in Ve)return ge;var Ue=[];for(var Se in Ve)Ue[Ve[Se]]=Se;throw r&&r(ke,Ue,ge),null}if(__gwt_isKnownPropertyValue=function(ke,ge){return ge in ce[ke]},webModule.__getPropMap=function(){var ke={};for(var ge in ce)ce.hasOwnProperty(ge)&&(ke[ge]=Ze(ge));return ke},webModule.__computePropValue=Ze,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Te;try{Te=Cb;var Xe=Te.indexOf(Db);Xe!=-1&&(yt=parseInt(Te.substring(Xe+P),$),Te=Te.substring(O,Xe))}catch(ke){}return webModule.__softPermutationId=yt,C(Te+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})()},28735:function(xn,yt,ce){"use strict";ce.d(yt,{Ax:function(){return Xe},Ds:function(){return ke},KI:function(){return Ve},SI:function(){return Te},f1:function(){return Ze}});var te=ce(74128);function Ze(Ue){let Se=!0;if(Ue.length>0){for(let ye=0;yeNe in xe?Je(xe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Me}):xe[Ne]=Me,We=(xe,Ne)=>{for(var Me in Ne||(Ne={}))st.call(Ne,Me)&&it(xe,Me,Ne[Me]);if(Ce)for(var Me of Ce(Ne))nt.call(Ne,Me)&&it(xe,Me,Ne[Me]);return xe};const Le=(xe={})=>{var Ne,Me,rt,He;let tt=(Ne=xe==null?void 0:xe.emotion)==null?void 0:Ne.map(at=>We({value:at==null?void 0:at.rate},at)),gt=(Me=xe==null?void 0:xe.focus)==null?void 0:Me.map(at=>We({value:at==null?void 0:at.rate},at)),Ye=(rt=xe==null?void 0:xe.action)==null?void 0:rt.map(at=>We({value:at==null?void 0:at.rate},at)),wt=(He=xe==null?void 0:xe.intention)==null?void 0:He.map(at=>We({value:at==null?void 0:at.rate},at));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:tt||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:gt||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:Ye||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:wt||[]}]},ut=({className:xe,dataSource:Ne=[],col:Me=4,right:rt,bottom:He=23,precision:tt=0,wrapWidth:gt=1200})=>{const Ye=(at="",vt,Vt="--")=>at?(at==null?void 0:at.length)>vt?(at==null?void 0:at.slice(0,vt-1))+"...":at:Vt,wt=Math.floor((gt-(Me-1)*rt)/Me);return te.createElement("div",{className:Xe()(Ze.list,xe)},!!(Ne!=null&&Ne.length)&&(Ne==null?void 0:Ne.map((at,vt)=>{const{cover_pic:Vt,created_at:Jt,emotion:pn,action:An,intention:ze,focus:Fe}=at;return te.createElement("div",{key:vt,className:Ze.wrap,style:{width:wt,marginRight:(1+vt)%Me===0?0:rt+tt,marginBottom:He}},te.createElement("div",{className:Ze.img},te.createElement("img",{src:`${ye.Z.API_SERVER}${Vt}`}),te.createElement("div",{className:Ze.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:Ze.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(ge.Z,{title:pn},te.createElement("span",{className:"c-grey-333"},Ye(pn,4))))),te.createElement("li",null,te.createElement("i",{className:"iconfont icon-hangwei"}),te.createElement("span",null,"\u884C\u4E3A\uFF1A",te.createElement(ge.Z,{title:An},te.createElement("span",{className:"c-grey-333"},Ye(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(ge.Z,{title:ze},te.createElement("span",{className:"c-grey-333"},Ye(ze,4))))),te.createElement("li",null,te.createElement("i",{className:"iconfont icon-zhuangtai"}),te.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",te.createElement(ge.Z,{title:Fe},te.createElement("span",{className:"c-grey-333"},Ye(Fe,3))))))))})))},Ge=({className:xe,style:Ne,title:Me,hideBar:rt=!1,children:He,customText:tt="",noDataText:gt="",emptyData:Ye=[],loading:wt,actionAnalysis:at})=>{var vt,Vt;const Jt=((vt=Ye==null?void 0:Ye[0])==null?void 0:vt.every(An=>{var ze;return!((ze=An==null?void 0:An.data)!=null&&ze.length)}))&&!((Vt=Ye==null?void 0:Ye[1])!=null&&Vt.length)||!at,pn=at?gt:tt;return te.createElement(Ve.Z,{loading:wt,active:!0},Jt&&te.createElement("div",{className:Xe()(Ze.noData,xe),style:Ne},!!Me&&te.createElement("div",{className:Ze.title},!rt&&te.createElement("b",null),te.createElement("span",null,Me)),te.createElement("div",{className:Ze.itemWrap},te.createElement(Se.Z,{customText:pn}))),!Jt&&He)};var Qe=({className:xe,style:Ne,data:Me=[],title:rt,hideBar:He=!1,loading:tt=!1})=>te.createElement("div",{className:Xe()(Ze.analysis,xe),style:Ne},!!rt&&te.createElement("div",{className:Ze.title},!He&&te.createElement("b",null),te.createElement("span",null,rt)),te.createElement(Ue.Z,{spinning:tt},te.createElement("div",{className:Ze.itemWrap},Me==null?void 0:Me.map((gt,Ye)=>te.createElement("div",{className:Ze.item,key:Ye},te.createElement(ke.Z,{option:{tooltip:{trigger:"item",formatter:"{a}
{b}: {c}%"},title:{left:"center",bottom:15,text:gt==null?void 0:gt.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(wt){for(let at in gt==null?void 0:gt.data)if(wt==(gt==null?void 0:gt.data[at].name))return wt+" "+(gt==null?void 0:gt.data[at].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:gt==null?void 0:gt.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:gt==null?void 0:gt.data}]},style:{height:145}}))))))},48530:function(xn,yt,ce){"use strict";var te=ce(86204),Ze=ce.n(te),Te=Object.defineProperty,Xe=(Ue,Se,ye)=>Se in Ue?Te(Ue,Se,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Ue[Se]=ye,ke=(Ue,Se,ye)=>Xe(Ue,typeof Se!="symbol"?Se+"":Se,ye),ge=(Ue,Se,ye)=>new Promise((Je,Ce)=>{var st=We=>{try{it(ye.next(We))}catch(Le){Ce(Le)}},nt=We=>{try{it(ye.throw(We))}catch(Le){Ce(Le)}},it=We=>We.done?Je(We.value):Promise.resolve(We.value).then(st,nt);it((ye=ye.apply(Ue,Se)).next())});class Ve extends te.EventEmitter{constructor(Se,ye){super(),ke(this,"url"),ke(this,"body"),ke(this,"fullContent",""),ke(this,"controller",null),ke(this,"buffer",""),this.url=Se,this.body=ye}startStream(){return ge(this,null,function*(){this.controller=new AbortController;const{signal:Se}=this.controller;try{const ye=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Se});if(!ye.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${ye.status}`);const Je=ye.headers.get("content-type");if(!Je)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Je.includes("application/json")){const nt=yield ye.json();this.emit("error",nt);return}if(!Je.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Ce=ye.body.getReader(),st=new TextDecoder("utf-8");for(;;){const{done:nt,value:it}=yield Ce.read();if(nt)break;const We=st.decode(it,{stream:!0});this.buffer+=We;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 qe=JSON.parse(Ge);qe.data&&this.handleData(qe.data)}catch(qe){this.buffer=ut+` `+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",qe)}}}this.emit("done",this.fullContent)}catch(ye){ye.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",ye.message)}})}handleData(Se){Se.content&&(this.fullContent+=Se.content,this.emit("data",{chunk:Se,full:this.fullContent}))}cancelRequest(){var Se;(Se=this.controller)==null||Se.abort()}}yt.Z=Ve},27183:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return it}});var te=ce(59301),Ze={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"},Te=ce(92310),Xe=ce.n(Te),ke=ce(52918),ge=ce(53464),Ve=ce(65862),Ue=ce(74128),Se=ce(38147),ye=ce(41867),Je=ce(65582),Ce=ce(6767),st=(We,Le,ut)=>new Promise((Ge,qe)=>{var Qe=Me=>{try{Ne(ut.next(Me))}catch(rt){qe(rt)}},xe=Me=>{try{Ne(ut.throw(Me))}catch(rt){qe(rt)}},Ne=Me=>Me.done?Ge(Me.value):Promise.resolve(Me.value).then(Qe,xe);Ne((ut=ut.apply(We,Le)).next())});const nt=({className:We,style:Le,dataSource:ut=[],authority:Ge=!1,callback:qe,showDimensions:Qe=!0,classroomList:xe})=>{var Ne;const[Me,rt]=(0,te.useState)({content:"",type:""}),[He,tt]=(0,te.useState)({}),[gt,Ye]=(0,te.useState)(!1),[wt,at]=(0,te.useState)({title:"",visible:!1,src:"",snapshotData:{}}),vt=(0,te.useRef)(),Vt=ze=>st(void 0,null,function*(){if(tt(ze),ze.file_type==="txt"){const Fe=yield(0,Se.ZP)(ze.url,{method:"get",headers:{"Content-Type":"application/xml"}});vt.current=Fe}rt({type:ze.file_type,content:Ue.Z.API_SERVER+ze.url})}),Jt=ze=>{var Fe;at({visible:!0,src:Ue.Z.API_SERVER+ze.url,id:ze.id,title:ze.title,snapshotData:(Fe=ze==null?void 0:ze.subitem)==null?void 0:Fe.settings})},pn=ze=>st(void 0,null,function*(){var Fe;rt({type:ze.file_type,content:Ue.Z.API_SERVER+((Fe=ze==null?void 0:ze.subitem)==null?void 0:Fe.url)})}),An=()=>{qe(),at({visible:!1})};return ut!=null&&ut.length?te.createElement(te.Fragment,null,te.createElement("div",{className:Xe()(Ze.list,We),style:Le},ut.map((ze,Fe)=>{var Ot,Fn,dn;return te.createElement("div",{key:Fe,className:Ze.row},te.createElement("div",{className:Ze.title,onClick:()=>Vt(ze)},te.createElement("i",{className:"iconfont icon-fujian1"}),te.createElement("span",{title:ze.title},ze.title)),te.createElement("div",{className:Ze.size},ze.filesize),te.createElement("div",{className:Ze.download,onClick:()=>{var Ct,en;if((0,ye.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)("",`${Ue.Z.API_SERVER}${(en=ze.url)==null?void 0:en.replace("disposition=inline","")}`)}},te.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(ze==null?void 0:ze.file_type)&&te.createElement("div",{className:Ze.preview,onClick:()=>Vt(ze)},te.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(ze==null?void 0:ze.file_type)&&Qe&&(Ge?te.createElement("div",{className:Ze.annotation,onClick:()=>Jt(ze)},te.createElement("i",{className:"iconfont icon-pizhu"}),(Ot=ze.subitem)!=null&&Ot.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Fn=ze.subitem)==null?void 0:Fn.id)&&te.createElement("div",{className:Ze.annotation,onClick:()=>pn(ze)},te.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(ze==null?void 0:ze.file_type)&&((dn=ze.subitem)==null?void 0:dn.id)&&te.createElement("div",{className:Ze.download,style:{marginLeft:20},onClick:()=>{var Ct,en;(0,Ve.Nd)("",`${Ue.Z.API_SERVER}${(en=(Ct=ze==null?void 0:ze.subitem)==null?void 0:Ct.url)==null?void 0:en.replace("disposition=inline","")}`)}},te.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(ze==null?void 0:ze.file_type)&&(0,ye.eB)()&&["xlsx","docx","pptx"].includes(ze==null?void 0:ze.file_sub)&&Qe&&te.createElement("div",{className:Ze.annotation,onClick:()=>{Ye(!0),Vt(ze)}},te.createElement("i",{className:"iconfont icon-pizhu"}),ze.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),ze.is_edit&&(0,ye.dE)()&&Qe&&te.createElement("div",{className:Ze.annotation,onClick:()=>{Vt(ze)}},te.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),te.createElement(ke.Z,{close:!0,data:Me==null?void 0:Me.content,type:Me==null?void 0:Me.type,hasMask:!0,disabledDownload:(0,ye.Rm)()&&!((Ne=xe.AssistantObject.normal)!=null&&Ne.can_download),editOffice:gt?"edit":"view",monacoEditor:{value:vt.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:Ge&&Qe&&Me.type==="image"?()=>Jt(He):null,onClose:()=>{qe(),Ye(!1),rt({content:"",type:""})}}),te.createElement(ge.Z,{onOk:An,onClose:()=>at({visible:!1}),data:wt,showFullTools:!0})):null};var it=(0,Je.connect)(({classroomList:We})=>({classroomList:We}))(nt)},53464:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return sn}});var te=ce(59301),Ze={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Te=ce(92310),Xe=ce.n(Te),ke=ce(29787);var ge=function(he,oe){return(ge=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}ge(he,oe),he.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}function Ue(he,oe,re,de){return new(re||(re=Promise))(function(we,le){function Ee(It){try{Ut(de.next(It))}catch(ft){le(ft)}}function St(It){try{Ut(de.throw(It))}catch(ft){le(ft)}}function Ut(It){var ft;It.done?we(It.value):(ft=It.value,ft instanceof re?ft:new re(function(Bn){Bn(ft)})).then(Ee,St)}Ut((de=de.apply(he,oe||[])).next())})}function Se(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(ft){if(re)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(re=1,de&&(we=2&ft[0]?de.return:ft[0]?de.throw||((we=de.return)&&we.call(de),0):de.next)&&!(we=we.call(de,ft[1])).done)return we;switch(de=0,we&&(ft=[2&ft[0],we.value]),ft[0]){case 0:case 1:we=ft;break;case 4:return Ee.label++,{value:ft[1],done:!1};case 5:Ee.label++,de=ft[1],ft=[0];continue;case 7:ft=Ee.ops.pop(),Ee.trys.pop();continue;default:if(we=Ee.trys,!((we=we.length>0&&we[we.length-1])||ft[0]!==6&&ft[0]!==2)){Ee=0;continue}if(ft[0]===3&&(!we||ft[1]>we[0]&&ft[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 We("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new We("."+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}(),qe=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}(qe),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}(),Me=function(){function he(){this.GRIP_SIZE=10,this.visual=Je.createGroup(),this.visual.appendChild(Je.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Je.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}(),rt=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(Je.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=Je.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=Je.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=Je.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=Je.createGroup();var re=Je.createTransform();re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(re),this.container.appendChild(this.controlBox),this.controlRect=Je.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=Je.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 Me;return re.visual.transform.baseVal.appendItem(Je.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:rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:rt.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(rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(rt.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),tt=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=Je.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),Je.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&&Je.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&Je.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&Je.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&Je.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),gt=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}(qe),Ye=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}(qe),wt=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 gt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("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}(tt),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"},vt=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=Je.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 Me;return re.visual.transform.baseVal.appendItem(Je.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),Vt=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 gt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("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=Je.createGroup(),this.selectorLine=Je.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Je.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()),Je.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Je.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Je.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}(vt),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}(qe),pn=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=Je.createGroup(),this.bgRectangle=Je.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Je.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Je.createTransform()),this.textElement.transform.baseVal.appendItem(Je.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(Je.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&&(Je.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Je.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&&Je.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&&Je.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 gt("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=Je.createGroup(),this.drawingImage=Je.createImage(),this.visual.appendChild(this.drawingImage);var re=Je.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),Je.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Je.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),ft>Ee&&(Ee=ft));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(){Je.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Je.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),ze=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 ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.innerHTML=` `,ft.style.marginLeft="5px",It.appendChild(ft)}var Bn=document.createElement("div");Bn.style.display="flex",Bn.style.alignItems="center",Bn.style.minHeight="20px",Bn.style.flexGrow="2";var jt=document.createElement("hr");if(jt.style.minWidth="20px",jt.style.border="0px",jt.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),jt.style.flexGrow="2",Bn.appendChild(jt),It.appendChild(Bn),Ut==="both"||Ut==="end"){var cn=document.createElement("div");cn.style.display="flex",cn.style.alignItems="center",cn.style.minHeight="20px",cn.innerHTML=` `,cn.style.marginRight="5px",It.appendChild(cn)}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}(qe),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 ze("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=Je.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Je.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Je.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Je.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",Je.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Je.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}(Vt),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}(tt),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}(qe),dn=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&&Je.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='',en='',rn=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,en),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Jt("Font",we.defaultFontFamilies,we.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Me,le.tipGrip.visual.transform.baseVal.appendItem(Je.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(){Je.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Je.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&&(Je.setAttributes(this.bgRectangle,[["fill",re]]),Je.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}(Vt),mt=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}(Yn),ht=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 gt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("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=Je.createGroup(),this.selectorCurve=Je.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Je.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()),Je.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Je.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Je.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},oe.prototype.setupControlBox=function(){he.prototype.setupControlBox.call(this),this.curveControlLine1=Je.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Je.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}(vt),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",ye(we.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Qe("Fill color",ye(we.defaultColorSet,["transparent"]),le.fillColor,en),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new gt("Line width",we.defaultStrokeWidths,we.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ye("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=Je.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Je.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Je.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=Je.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),Je.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')"]]),Je.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&&Je.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&&Je.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),Je.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&&Je.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},oe.prototype.setFillColor=function(re){this.fillColor=re,this.captionBg&&Je.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},oe.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.frame&&Je.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},oe.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.frame&&Je.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),Bt=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}(),Pt=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}(Bt),_e=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}(Bt),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 ht,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 it(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[wt,An,Fe,pn,mt,Yn,dn,rn,Dt,Ot,Vt,bt,zt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[wt,An,Fe,pn,Yn,dn,rn]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"BASIC_MARKER_TYPES",{get:function(){return[wt,An,Fe,pn,dn]},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&&nt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=nt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(re){return re(new Bt(oe))})},he.prototype.render=function(){return Ue(this,void 0,void 0,function(){var oe;return Se(this,function(re){switch(re.label){case 0:return this.setCurrentMarker(),(oe=new st).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 Bt(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 Bt(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 _e(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 _e(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 _e(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 _e(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 Bt(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 Bt(oe))}))},he.instanceCounter=0,he}(),Ie=ce(38147),Be=ce(65862),pt=(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),ft=(0,te.useRef)(null),Bn=(0,te.useRef)(null),[jt,cn]=(0,te.useState)(!1),[In,sr]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(ft.current||(ft.current=document.createElement("style"),document.head.appendChild(ft.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),ft.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&vn()):(document.body.removeAttribute("data-custom"),ft.current&&(document.head.removeChild(ft.current),ft.current=null)),()=>{document.body.removeAttribute("data-custom"),ft.current&&(document.head.removeChild(ft.current),ft.current=null)}),[he==null?void 0:he.visible]);const vn=()=>pt(void 0,null,function*(){cn(!0),sr("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Jn=yield(0,Be.ZJ)(he==null?void 0:he.src);Ut.current.src="",Ut.current.src=Jn,Ut.current.onload=function(){yr()},cn(!1),sr("")}),dr=Jn=>pt(void 0,null,function*(){cn(!0),sr("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tr=yield(0,Ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:Jn.dataUrl}});Tr!=null&&Tr.id&&!St?(yield(0,Ie.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tr==null?void 0:Tr.id,settings:JSON.stringify(Jn.state)}})).status===0&&le():Tr!=null&&Tr.id&&le(Tr),cn(!1),sr("")}),cr=()=>{const Jn=document.querySelector('a[href="https://markerjs.com/"]');Jn&&Jn.parentNode&&(Jn.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(Pr=>{const Er=document.querySelector(Pr.name);Er&&Er.setAttribute("title",Pr.title)})},yr=()=>{It.current=new fe(Ut.current),It.current.targetRoot=Bn.current,It.current.addEventListener("render",dr),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),cr()},300)};return te.createElement(te.Fragment,null,(he==null?void 0:he.visible)&&te.createElement(ke.Z,{spinning:jt,tip:In,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:Bn,className:Xe()(Ze.imageDimensions,oe,re?Ze.fullWidth:""),style:de},te.createElement("img",{className:Ze.img,ref:Ut}))))}},99298:function(xn,yt,ce){"use strict";var te=ce(59301),Ze=ce(77019),Te=ce(5269),Xe=ce(20554),ke=ce(7939),ge=ce(95097),Ve=ce(96408),Ue=ce(48136),Se=ce(59301);const ye=(0,te.forwardRef)(({callback:Je,showSaveButton:Ce,value:st=""},nt)=>{const it=(0,te.useRef)(),We=[{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=>{it.current.setValue(it.current.getValue()+" "+Qe.value+" ")},Ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Se.createElement(Ze.Z,{className:Ve.Z.lists,gutter:[10,10]},We.map((Qe,xe)=>Se.createElement(Te.Z,{flex:"110px",className:Ve.Z.item},Se.createElement("div",null,Se.createElement(ge.Z,{value:`$$${Qe.value}$$`}),Qe.name),Se.createElement("div",{className:Ve.Z.children},Qe.children.map((Ne,Me)=>Se.createElement("div",{key:Me},Se.createElement("h1",null,Ne.name),Se.createElement(Ze.Z,{gutter:[10,10]},Ne.data.map((rt,He)=>Se.createElement(Te.Z,{key:He,onClick:()=>ut(rt),className:Ve.Z.diamond},Se.createElement(ge.Z,{value:"`$$"+rt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Se.createElement(Ze.Z,{className:Ve.Z.lists,gutter:[10,10]},Le.map((Qe,xe)=>Se.createElement(Te.Z,{flex:"110px",className:Ve.Z.item},Se.createElement("div",null,Se.createElement(ge.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),Se.createElement("div",{className:Ve.Z.children},Qe.children.map((Ne,Me)=>Se.createElement("div",{key:Me},Ne.name&&Se.createElement("h1",null,Ne.name),Se.createElement(Ze.Z,{gutter:[10,10]},Ne.data.map((rt,He)=>Se.createElement(Te.Z,{key:He,onClick:()=>ut(rt),className:Ve.Z.diamond},Se.createElement(ge.Z,{value:"`$$"+rt.value+"$$`"}))))))))))}],qe=()=>{var Qe=document.createElement("div");Qe.innerHTML=it.current.getValue();var xe=Qe.innerText;return Je&&Je(xe),xe};return(0,te.useImperativeHandle)(nt,()=>({getData:qe})),Se.createElement("div",{className:Ve.Z.mathWrap},Se.createElement(Xe.default,{defaultActiveKey:"1",items:Ge}),Se.createElement("math-field",{locale:"zh_cn",className:Ve.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:it,style:{width:800,marginTop:30,fontSize:18}},st||""),Ce&&Se.createElement("div",{className:Ve.Z.button},Se.createElement(ke.ZP,{size:"large",onClick:qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});yt.Z=ye},2524:function(xn,yt,ce){"use strict";var te=ce(59301),Ze=ce(93314),Te=ce(7939),Xe=Object.defineProperty,ke=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,ye=(nt,it,We)=>it in nt?Xe(nt,it,{enumerable:!0,configurable:!0,writable:!0,value:We}):nt[it]=We,Je=(nt,it)=>{for(var We in it||(it={}))Ue.call(it,We)&&ye(nt,We,it[We]);if(Ve)for(var We of Ve(it))Se.call(it,We)&&ye(nt,We,it[We]);return nt},Ce=(nt,it)=>ke(nt,ge(it));const st=({img:nt,buttonProps:it={},styles:We={},customText:Le,ButtonText:ut,ButtonClick:Ge,Buttonclass:qe,ButtonTwo:Qe,imgStyles:xe,loading:Ne=!1,className:Me=""})=>te.createElement("section",{className:`tc animated fadeIn ${Me}`,style:Je({color:"#999",margin:"100px auto",visibility:Ne?"hidden":"visible"},We)},te.createElement("img",{src:nt||Ze,style:Ce(Je({},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(Te.ZP,Je({className:qe,onClick:Ge},it),ut),Qe&&Qe);yt.Z=st},52918:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return qe}});var te=ce(59301),Ze={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Te=ce(7939),Xe=ce(70557),ke=ce(50258),ge=ce(25399),Ve=ce(65862),Ue=ce(87513),Se=ce(2524),ye=ce(74128),Je=ce(7310),Ce=ce(59301),st=Object.defineProperty,nt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Le=(Qe,xe,Ne)=>xe in Qe?st(Qe,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Qe[xe]=Ne,ut=(Qe,xe)=>{for(var Ne in xe||(xe={}))it.call(xe,Ne)&&Le(Qe,Ne,xe[Ne]);if(nt)for(var Ne of nt(xe))We.call(xe,Ne)&&Le(Qe,Ne,xe[Ne]);return Qe},Ge=(Qe,xe,Ne)=>new Promise((Me,rt)=>{var He=Ye=>{try{gt(Ne.next(Ye))}catch(wt){rt(wt)}},tt=Ye=>{try{gt(Ne.throw(Ye))}catch(wt){rt(wt)}},gt=Ye=>Ye.done?Me(Ye.value):Promise.resolve(Ye.value).then(He,tt);gt((Ne=Ne.apply(Qe,xe)).next())}),qe=({editOffice:Qe="view",data:xe,issaver:Ne,onSaver:Me,theme:rt,type:He,filename:tt,monacoEditor:gt,className:Ye,style:wt,close:at,onClose:vt,hasMask:Vt,disabledDownload:Jt,onImgDimensions:pn,showNodata:An,recordInfo:ze})=>{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,dn]=(0,te.useState)(""),[Ct,en]=(0,te.useState)(),rn=window.ENV==="build"?"/react/build":"",Yn=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,mt=10*(1024*1024),ht=(0,te.useRef)();xe!=null&&xe.startsWith("/api")&&He!=="txt"&&(xe=ye.Z.API_SERVER+xe);const bt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();tt&>&&(gt.filename=tt),(0,te.useEffect)(()=>{var se,fe;const Ie=(fe=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:fe.split(";");Ie==null||Ie.map(Be=>{let pt=Be.split("=");pt[0]==="_educoder_session"&&dn(pt[1])})},[]),(0,te.useEffect)(()=>{He==="office"&&(xe.indexOf("bigfilescdn.")>-1||xe.indexOf("bigfiles1")>-1?en({url:xe,fileType:bt(xe),model:xe.indexOf("model=edit")?"edit":"view"}):Bt())},[He,xe]);function zt(se){return Ge(this,null,function*(){se.data.type==="pdfdata"&&(Me(se.data.data),window.removeEventListener("message",zt,!1)),console.log("mess---:",se.data)})}const Bt=()=>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 Ie=yield(0,Ue.gJ)({attachment_id:fe});Ie.url=Yn+Ie.url,en(Ie)}),Pt=()=>{if(xe.startsWith("http")||xe.startsWith("blob:")){_e();return}(0,Ve.Sv)(tt||"educoder",xe,tt)},_e=()=>{ze&&(0,Je.fc)({id:ze==null?void 0:ze.id,watch_type:1,course_id:ze==null?void 0:ze.course_id}),(0,Ve.Nd)(tt||"educoder",decodeURIComponent(xe))};return Ce.createElement("div",{style:ut({},wt||{}),className:`${Vt&&Ze.bgBlack} ${He?Ze.wrp:"hide"}`},at&&Ce.createElement("div",{className:Ze.close,ref:ht},!!pn&&Ce.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ht.current},Ce.createElement("span",{onClick:()=>{vt(),pn()}},Ce.createElement("i",{className:"icon-yulanpizhu"}))),!Jt&&Ce.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ht.current},Ce.createElement("span",{onClick:_e},Ce.createElement("i",{className:"icon-quxiaozhiding"}))),Ne&&Ce.createElement(ge.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ht.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(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ht.current},Ce.createElement("span",{className:"",onClick:()=>{vt()}},Ce.createElement("i",{className:"icon-guanbi1"})))),Ce.createElement("div",{className:`${Ze[Ye]} ${Ye} ${Ze.monaco} ${He==="txt"?"show":"hide"}`},He==="txt"&&Ce.createElement(Ce.Fragment,null,Ce.createElement(ke.ZP,ut({},gt)))),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:`${rn}/office.html?key=${Ct.key}&url=${btoa(Ct.url)}&callbackUrl=${Yn+(Ct.callbackUrl||"")}&fileType=${Ct.fileType}&title=${Ct.title||""}&model=${Qe}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!Jt}`}),He==="html"&&Ce.createElement("iframe",{src:xe+"&disposition=inline"}),He==="pdf"&&Ce.createElement("iframe",{id:"pdfiframe",src:`${rn}/js/pdf/index.html?filename=${tt||"educoder.pdf"}&url=${encodeURIComponent(xe)}&disabledDownload=${!!Jt}&model=${Qe}`}),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(Se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ce.createElement(Te.ZP,{icon:Ce.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Pt,disabled:Jt},"\u4E0B\u8F7D")}):Ce.createElement(Te.ZP,{type:"primary",size:"middle",onClick:Pt,disabled:Jt},Ce.createElement(Xe.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"})))}},95097:function(xn,yt,ce){"use strict";ce.d(yt,{z:function(){return gt},Z:function(){return Ye}});var te=ce(59301),Ze=ce(48850),Te=ce(49142),Xe=ce(64018),ke=ce(80360),ge=ce(74128),Ve=ce(65862),Ue=ce(15342),Se=ce(44104),ye=ce(7939),Je=ce(1012),Ce=ce(52918),st=ce(59301),it=({html:wt})=>{const at=(0,te.useRef)(null),vt=(0,te.useRef)(null),Vt=`.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"});vt.current=document.createElement("div"),vt.current.className="markdown-body",vt.current.innerHTML=wt,Jt.appendChild(vt.current);const pn=document.createElement("style");return pn.textContent=Vt,Jt.appendChild(pn),()=>{Jt.innerHTML=""}},[]),(0,te.useEffect)(()=>{vt.current&&(vt.current.innerHTML=wt)},[wt]),st.createElement("div",{ref:at})};function We(wt){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"],vt=new RegExp(`\\b(${at.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return wt.replace(vt,"").trim()}var Le={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ut=Object.defineProperty,Ge=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,xe=(wt,at,vt)=>at in wt?ut(wt,at,{enumerable:!0,configurable:!0,writable:!0,value:vt}):wt[at]=vt,Ne=(wt,at)=>{for(var vt in at||(at={}))qe.call(at,vt)&&xe(wt,vt,at[vt]);if(Ge)for(var vt of Ge(at))Qe.call(at,vt)&&xe(wt,vt,at[vt]);return wt};const Me="@\u2581\u2581@",rt="@\u2581@",He=/]*>/g;function tt(wt){let at=document.createElement("div");return at.innerHTML=wt,at.childNodes.length===0?"":at.childNodes[0].nodeValue}const gt=(wt,at)=>{wt=wt||"";const vt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Vt=/\"(?: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,pn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return at?wt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(vt,(An,ze,Fe,Ot,Fn,dn,Ct)=>{const en=ze||Ot||dn,rn=Fe||Fn||Ct||"?";return ge.Z.API_SERVER+"/api/attachments/"+en+rn+"&t="+(0,Ve.Jn)(en,Date.now())+(An.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(wt=wt.replace(pn,(An,ze,Fe,Ot,Fn,dn,Ct)=>{const en=ze||Ot||dn,rn=Fe||Fn||Ct||"?";return ge.Z.API_SERVER+"/attachments/download/"+en+rn+"&t="+(0,Ve.Jn)(en,Date.now())+(An.indexOf(")")>-1?")":"&")}).replace(vt,(An,ze,Fe,Ot,Fn,dn,Ct)=>{const en=ze||Ot||dn,rn=Fe||Fn||Ct||"?";return ge.Z.API_SERVER+"/api/attachments/"+en+rn+"&t="+(0,Ve.Jn)(en,Date.now())+(An.indexOf(")")>-1?")":"&")}).replace(Vt,(An,ze,Fe,Ot,Fn)=>{const dn=ze||Ot,Ct=Fe||Fn||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+dn+Ct+dn+Ct+"&t="+(0,Ve.Jn)(dn,Date.now())}).replace(Jt,(An,ze,Fe,Ot,Fn)=>{const dn=ze||Ot,Ct=Fe||Fn||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+dn+Ct+dn+Ct+"&t="+(0,Ve.Jn)(dn,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,` `),wt)};var Ye=({value:wt="",edit:at=!1,className:vt,showTextOnly:Vt,showLines:Jt,style:pn={},stylesPrev:An={},highlightKeywords:ze,showProgramFill:Fe,isProgramFill:Ot,disabledFill:Fn=!1,programFillValue:dn,openEditor:Ct=()=>{},onFillChange:en=Dt=>{},onFillBlur:rn=()=>{},onFillFocus:Yn=()=>{}})=>{let Dt=We(String(wt||""));const mt=(0,te.useRef)(),ht=(0,te.useRef)(),[bt,zt]=(0,te.useState)(""),[Bt,Pt]=(0,te.useState)("office"),[_e,se]=(0,te.useState)([]),fe=(0,te.useRef)("a"+(0,Je.Z)()),Ie={},Be=ft=>//i.test(ft||""),pt=(ft,Bn,jt)=>{const cn=document.createElement(ft===rt?"input":"textarea");cn.style.width="100%",cn.style.height=ft===rt?"40px":"151px",cn.rows=5,cn.spellcheck=!1,cn.name="edu-program-fill",cn.placeholder="\u8BF7\u8F93\u5165",cn.dataset.id=Bn;const In=Object.keys(Ie).length;return Ie[In]=cn,`${cn.outerHTML}`};function Mt(ft){return ft=ft.replace(/!\[.*?\]\(.*?\)/g,""),ft=ft.replace(/\[.*?\]\(.*?\)/g,""),ft=ft.replace(new RegExp("","gs"),""),ft=ft.replace(//g,""),ft=ft.replace(//g,""),ft=ft.replace(new RegExp(".*?<\\/video>","gs"),""),ft=ft.replace(new RegExp(".*?<\\/audio>","gs"),""),ft=ft.replace(new RegExp(".*?<\\/style>","gs"),""),ft=ft.replace(new RegExp(".*?<\\/script>","gs"),""),ft}const sn=ft=>!Vt&&Be(Dt)?ft:ft.replace(/([\s\S]+?)<\/style>/gim,function(Bn,jt){let cn=jt.replace(/(\n|\r)/g,"").split("}"),In=[];return cn.map(sr=>{sr!=""&&In.push(`.${fe.current} ${sr}`)}),``}),he=(0,te.useMemo)(()=>{try{const cn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,In=/\"\/api\/attachments\/|\"\/attachments\/download\//g,sr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,vn=/\(\/attachments\/download\//g;Dt=Dt.replace(vn,"("+ge.Z.API_SERVER+"/attachments/download/").replace(cn,"("+ge.Z.API_SERVER+"/api/attachments/").replace(In,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(sr,'"'+ge.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),mt.current.style.display="none"}catch(cn){}if(Fe){let cn=-1;return Dt=Dt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(In,sr,vn){var dr;return++cn,pt(In,cn,(dr=dn==null?void 0:dn[cn])==null?void 0:dr.value.replaceAll("<","<").replaceAll(">",">"))}),`
${sn(Dt||"")}
`}let ft=sn(Dt);ft=(0,Te.ZP)(ft);const Bn=(0,Te.ez)();Dt.match(/\[TOC\]/)&&(ft=ft.replace("

[TOC]

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

${ii||

`):xt.replaceSelection(`${ii||`):((vr=Vr==null?void 0:Vr.type)==null?void 0:vr.indexOf("video"))>-1?xt.replaceSelection(``):((zr=Vr==null?void 0:Vr.type)==null?void 0:zr.indexOf("pdf"))>-1?xt.replaceSelection(`${Vr.name}`):ur.includes(gi)?xt.replaceSelection(`${Vr.name}`):xt.replaceSelection(`[${Vr.name}](${Ir})`),xt.focus();case jt:const{row:Ei,col:Ti,align:Da}=Nt;let Na=` `;for(let ca=0;ca{switch(Xn){case Ee:return te.createElement(Fn,{callback:Zt,onCancel:fn});case Bn:return te.createElement(dn.Z,{callback:Zt,onCancel:fn});case St:return te.createElement(Ct.Z,{callback:Zt,onCancel:fn});case Ut:return te.createElement(se,{editImgId:Vn.current,callback:Zt,onCancel:fn});case jt:return te.createElement(sn,{callback:Zt,onCancel:fn});case"maths-latex":return te.createElement(we,{showSaveButton:!0,callback:Zt});case"inline-latex":return te.createElement(le.Z,{showSaveButton:!0,callback:Zt});default:return null}},[Xn]);function fn(){_r("")}(0,te.useEffect)(()=>{if(Rn.current){let Nt=function(vr){er=!0,br=vr.pageY},qt=function(){er=!1},Nn=function(vr){if(er){let zr=vr.pageY-br;zr<0&&(zr=0),zr>300&&(zr=300);let Ir=lr+zr+"px";ai(Ir)}},On=Rn.current,er=!1,br=0;return On.addEventListener("mousedown",Nt),document.addEventListener("mousemove",Nn),document.addEventListener("mouseup",qt),()=>{On.removeEventListener("mousedown",Nt),document.removeEventListener("mousemove",Nn),document.removeEventListener("mouseup",qt)}}},[xt,Rn]),(0,te.useEffect)(()=>{ai(lr)},[lr]);const dt=Qr(pr),Ln=Qr(ui),wn={width:dt,height:Ln},Ht=(0,te.useMemo)(()=>{if(Br){let Nt=new Date(Br),qt=Nt.getHours(),Nn=Nt.getMinutes(),On=Nt.getSeconds();return qt=qt<10?"0"+qt:qt,Nn=Nn<10?"0"+Nn:Nn,On=On<10?"0"+On:On,`${qt}:${Nn}:${On}`}return 0},[Br]),ln=Nt=>{const qt=[];if(kr){let Nn=-1;Nt=Nt.replace(/(@▁▁@|@▁@)/g,function(On,er,br){qt.push({multiLine:On!==Pr})})}return qt};function hn(){window.sessionStorage.removeItem(qr),Ke(!1),$r(0)}function tn(){Ke(!1),$r(0),xt.setValue(window.sessionStorage.getItem(qr))}(0,te.useEffect)(()=>{mn[Xn]&&Xn!==It&&Xn!==Ut&&setTimeout(()=>{const Nt=document.getElementsByClassName("markdown-popup-form")[0],qt=window.innerWidth/2-Nt.offsetWidth/2,Nn=window.innerHeight/2-Nt.offsetHeight/2;At(qt),on(Nn)},0)},[Xn]);const un=Nt=>{Nt.preventDefault();const qt=Nt.clientX-Oe,Nn=Nt.clientY-Et;document.body.onmousemove=On=>{let er=On.clientX-qt,br=On.clientY-Nn;const vr=document.getElementsByClassName("markdown-popup-form")[0],zr=window.innerWidth-vr.offsetWidth,Ir=window.innerHeight-vr.offsetHeight;er=Math.max(0,Math.min(er,zr)),br=Math.max(0,Math.min(br,Ir)),nr(On.clientX,On.clientY,qt,Nn)&&(At(er),on(br))},document.body.onmouseup=function(){document.body.onmousemove=null}},nr=(Nt,qt,Nn,On)=>{const er=document.body.clientHeight,br=document.body.clientWidth;return Nt<20&&Nn>Nt||Nt>br-20&&Nnqt||qt>er-20&&On{var qt;Vn.current=Nt,(qt=Zn.current)==null||qt.setHeight("100vh"),setTimeout(()=>{_r("add-flowchart")},150)}})):null))),$n?te.createElement("a",{ref:Rn,className:"editor-resize"}):null,Xn===It&&te.createElement(mt,{callback:Zt,onCancel:fn}),Xn===Ut&&te.createElement(se,{ref:Zn,editImgId:Vn.current,callback:Zt,onCancel:fn}),te.createElement(He.Z,null,mn[Xn]&&Xn!==It&&Xn!==Ut?te.createElement(en.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Oe,top:Et},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:un},mn[Xn]),open:!0,onCancel:fn,footer:null,destroyOnClose:!0,width:Xn===Ut?"1200px":null,height:Xn===Ut?"80vh":null,className:"markdown-popup-form"},nn):null))}},45053:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Ne},I:function(){return rt}});var te=ce(28284),Ze=ce(6767),Te=ce(37568),Xe=ce(44104),ke=ce(71051),ge=ce(47889),Ve=ce(7939),Ue=ce(28735),Se=ce(59301),ye=ce(59301),Je=Object.defineProperty,Ce=Object.defineProperties,st=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Le=(He,tt,gt)=>tt in He?Je(He,tt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):He[tt]=gt,ut=(He,tt)=>{for(var gt in tt||(tt={}))it.call(tt,gt)&&Le(He,gt,tt[gt]);if(nt)for(var gt of nt(tt))We.call(tt,gt)&&Le(He,gt,tt[gt]);return He},Ge=(He,tt)=>Ce(He,st(tt));const{useForm:qe}=te.default,Qe={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}};var Ne=({callback:He,onCancel:tt})=>{const[gt]=qe();let Ye=(0,Se.useRef)();function wt(Vt){Ye.current.width=gt.getFieldValue("width"),Ye.current.align=gt.getFieldValue("align"),He(Vt,Ye.current)}function at(Vt,Jt){if(Vt.status===-1){Ze.ZP.error(Vt.message);return}gt.setFieldsValue({src:`/api/attachments/${Vt.id}`,type:Jt.type})}function vt(Vt){let Jt=Vt.target.files[0];Ye.current=Jt,rt(Jt,at)}return ye.createElement(te.default,Ge(ut({form:gt},xe),{className:"upload-image-panel",onFinish:wt,style:{width:470,overflow:"hidden"}}),ye.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ye.createElement(Te.default,{style:Qe})),ye.createElement(Me,{onFileChange:vt}))),ye.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(Te.default,{style:{width:264}})),ye.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(Xe.Z,null,ye.createElement(te.default.Item,{name:"width",style:{margin:0}},ye.createElement(ke.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ye.createElement("aside",null,ye.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ye.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Ve.ZP,{type:"default",onClick:tt},"\u53D6\u6D88"))))};function Me({onFileChange:He}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:He}))}function rt(He,tt){if(!He)throw new String("\u6CA1\u6709\u6587\u4EF6");let gt=new FormData;gt.append("editormd-image-file",He),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(wt){tt(JSON.parse(wt.target.responseText),He)},!1),Ye.addEventListener("error",function(wt){console.error(wt)},!1),Ye.open("POST",`${Ue.KI}/api/attachments.json`),Ye.send(gt)}},57261:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Te}});var te=ce(59301),Ze=ce(4676);class Te extends te.Component{constructor(ke){super(ke);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:ke}=this.props;return(0,Ze.createPortal)(ke,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(xn,yt,ce){"use strict";ce.d(yt,{SV:function(){return mt},ZP:function(){return Dt}});var te=ce(59301),Ze=ce(76374);const Te={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"]},Xe={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"]},ke={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(` `)}]},ge={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},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 Ue=ce(53184),Se=ce.n(Ue),ye=(ht,bt,zt)=>new Promise((Bt,Pt)=>{var _e=Ie=>{try{fe(zt.next(Ie))}catch(Be){Pt(Be)}},se=Ie=>{try{fe(zt.throw(Ie))}catch(Be){Pt(Be)}},fe=Ie=>Ie.done?Bt(Ie.value):Promise.resolve(Ie.value).then(_e,se);fe((zt=zt.apply(ht,bt)).next())});const Je={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=(ht,bt,zt,Bt)=>{const Pt=bt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:zt.lineNumber,endColumn:zt.column});return Array.from(new Set(Pt.match(/\b\w{2,}\b/g)||[])).map(se=>({label:se,kind:ht.languages.CompletionItemKind.Text,insertText:se,range:Bt}))},st=(ht,bt,zt,Bt)=>{ht.languages.registerCompletionItemProvider(bt,{provideCompletionItems(Pt,_e){const se=Pt.getWordUntilPosition(_e),fe={startLineNumber:_e.lineNumber,endLineNumber:_e.lineNumber,startColumn:se.startColumn,endColumn:se.endColumn},Ie=Pt.getLineContent(_e.lineNumber).substring(se.startColumn-2,se.endColumn);return{suggestions:[...Ce(ht,Pt,_e,fe),...zt.map(pt=>({label:pt,kind:ht.languages.CompletionItemKind.Keyword,documentation:pt,insertText:pt,insertTextRules:ht.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fe})),...Bt.map(pt=>({label:pt.label,kind:ht.languages.CompletionItemKind.Snippet,documentation:pt.content,insertText:Ie.startsWith("#")?pt.content.replace(/#/,""):pt.content,insertTextRules:ht.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fe}))]}}})};var nt=ht=>{Je.languages.forEach(bt=>{ht.languages.registerDocumentFormattingEditProvider(bt,{provideDocumentFormattingEdits(zt){return ye(this,null,function*(){const Bt=Se()(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:Bt}]})}})}),st(ht,"java",Xe.keywords,Xe.quickKey),st(ht,"cpp",ke.keywords,ke.quickKey),st(ht,"c",Te.keywords,[]),st(ht,"python",ge.keywords,ge.quickKey),st(ht,"scala",Ve.keywords,Ve.quickKey)};const it="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var We=Object.defineProperty,Le=(ht,bt,zt)=>bt in ht?We(ht,bt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ht[bt]=zt,ut=(ht,bt,zt)=>Le(ht,typeof bt!="symbol"?bt+"":bt,zt);const Ge=class fc{constructor(bt,zt,Bt){this.placeholder=bt,this.editor=zt,this.monaco=Bt,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),Me=ce(25399),rt=ce(89392),He=ce(77254),tt=ce(56102),gt=Object.defineProperty,Ye=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Jt=(ht,bt,zt)=>bt in ht?gt(ht,bt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ht[bt]=zt,pn=(ht,bt)=>{for(var zt in bt||(bt={}))vt.call(bt,zt)&&Jt(ht,zt,bt[zt]);if(at)for(var zt of at(bt))Vt.call(bt,zt)&&Jt(ht,zt,bt[zt]);return ht},An=(ht,bt)=>Ye(ht,wt(bt)),ze=(ht,bt)=>{var zt={};for(var Bt in ht)vt.call(ht,Bt)&&bt.indexOf(Bt)<0&&(zt[Bt]=ht[Bt]);if(ht!=null&&at)for(var Bt of at(ht))bt.indexOf(Bt)<0&&Vt.call(ht,Bt)&&(zt[Bt]=ht[Bt]);return zt},Fe=(ht,bt,zt)=>new Promise((Bt,Pt)=>{var _e=Ie=>{try{fe(zt.next(Ie))}catch(Be){Pt(Be)}},se=Ie=>{try{fe(zt.throw(Ie))}catch(Be){Pt(Be)}},fe=Ie=>Ie.done?Bt(Ie.value):Promise.resolve(Ie.value).then(_e,se);fe((zt=zt.apply(ht,bt)).next())});function Ot(ht){return/^\d+$/.test(ht)?`${ht}px`:ht}function Fn(){}let dn=!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 en(ht=[]){let bt=ht;if(Array.isArray(ht)){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(ht){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ht)}});var Dt=ht=>{var bt=ht,{width:zt="100%",height:Bt="100%",value:Pt,language:_e="javascript",style:se={},options:fe={},overrideServices:Ie={},theme:Be="vs-dark",onEditBlur:pt,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:ft,openBreakPoint:Bn=!1,placeholder:jt="",showMiniMap:cn=!0}=bt,In=ze(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 sr=(0,te.useRef)(),vn=(0,te.useRef)({}),dr=(0,te.useRef)(),cr=(0,te.useRef)(),yr=(0,te.useRef)([]),Jn=(0,te.useRef)(!1),Tr=(0,te.useRef)(),Pr=(0,te.useRef)(),Er=(0,te.useRef)(!1),[ur,Qr]=(0,te.useState)(!1);function Kn(){let $n;return sr.current&&($n=new Ze.Z(yn=>{for(let $e of yn)($e.target.offsetHeight>0||$e.target.offsetWidth>0)&&vn.current.instance.layout()}),$n.observe(sr.current)),$n}function rr(){Ne.ZP.warning({content:decodeURIComponent(it),key:"monaco-editor-tip"})}const qn=()=>{let $n=vn.current.instance;if(Pt!=null&&$n&&ur){const yn=$n.getModel();yn&&Pt!==yn.getValue()&&(dn=!0,yn.setValue(Pt),$n.layout(),dn=!1)}};(0,te.useEffect)(()=>{const $n=He.Z.subscribe("formatDocument",yn=>{var $e;let kr=vn.current.instance;($e=kr==null?void 0:kr.getAction)==null||$e.call(kr,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{re(yn)},$n},[]),(0,te.useEffect)(()=>{var $n;let yn=vn.current.instance;cr.current&&clearTimeout(cr.current),cr.current=setTimeout(()=>{qn()},500),Pt&&(Pt!=null&&Pt.length)&&(($n=yn==null?void 0:yn.updateOptions)==null||$n.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Pt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Pt,ur,vn.current]),(0,te.useEffect)(()=>{if(Ut&&vn.current&&vn.current.instance){let yn=vn.current.instance;yn.changeViewZones(function($e){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,$e.addZone({afterLineNumber:Ut||11,heightInLines:3,domNode:kr})});var $n={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($n),yn.revealPositionInCenter({lineNumber:20,column:1})}},[Ut,vn.current,ur]);const mn=($n="",yn)=>{if(!$n||$n.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 $n;const yn=($n=vn.current)==null?void 0:$n.instance;if(yn&&ur&&oe){const $e=yn.onDidBlurEditorWidget(()=>{Er.current=!1}),kr=yn.onDidFocusEditorText(()=>{Er.current=!0});return()=>{$e.dispose(),kr.dispose()}}},[vn.current,ur,oe]),(0,te.useEffect)(()=>{var $n;if(($n=vn.current)!=null&&$n.instance&&ur&&Bn){let yn=vn.current.instance,$e=yn.getModel();if(!$e)return;(()=>{var hr;let xr=[],Hn=[];const xt=$e.getAllDecorations();for(let gn of xt)gn.options.className==="highlighted-line"&&(xr.push((hr=gn==null?void 0:gn.range)==null?void 0:hr.startLineNumber),Hn.push(gn==null?void 0:gn.id));if(ft===xr[0])return;$e.deltaDecorations(Hn,[]);const Ft=$e.getLineCount();ft&&ft<=Ft&&(yn.deltaDecorations([],[{range:new rn.Range(ft,1,ft,$e.getLineMaxColumn(ft)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(ft))})();const Zr=(hr=!1)=>{var xr;let Hn=[],xt=[];const Ft=$e.getAllDecorations();for(let gn of Ft)gn.options.linesDecorationsClassName==="breakpoints-select"&&(Hn.push((xr=gn==null?void 0:gn.range)==null?void 0:xr.startLineNumber),xt.push(gn==null?void 0:gn.id));if(hr)return{lines:Hn,ids:xt};le(Hn)},Lt=hr=>Fe(void 0,null,function*(){let xr={range:new rn.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield $e.deltaDecorations([],[xr]),Zr()}),Tt=hr=>Fe(void 0,null,function*(){let xr=[];const Hn=yn.getLineDecorations(hr);for(let xt of Hn)xt.options.linesDecorationsClassName==="breakpoints-select"&&xr.push(xt.id);yield $e.deltaDecorations(xr,[]),Zr()}),tr=hr=>{let xr=yn.getLineDecorations(hr);for(let Hn of xr)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,rt.isEqual)(Ee,Zr(!0).lines)){$e.deltaDecorations(Zr(!0).ids,[]);const hr=Ee.map(xr=>({range:new rn.Range(xr,1,xr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));$e.deltaDecorations([],hr)}const Tn=yn.onDidChangeModelContent(hr=>{let xr=yn.getPosition();if(xr){let Hn=xr.lineNumber;clearTimeout(Pr.current),Pr.current=setTimeout(()=>{mn($e.getLineContent(Hn),Hn)?Tt(Hn):tr(Hn)?(Tt(Hn),Lt(Hn)):Zr()},100)}}),Gt=yn.onMouseDown(hr=>{var xr,Hn,xt;if(hr.target.detail&&((xt=(Hn=(xr=hr.target)==null?void 0:xr.element)==null?void 0:Hn.className)!=null&&xt.includes("line-numbers"))){let Ft=hr.target.position.lineNumber;if(mn($e.getLineContent(Ft),Ft))return;tr(Ft)?Tt(Ft):Lt(Ft)}}),_n=hr=>{let xr={range:new rn.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yr.current=yn.deltaDecorations(yr.current,[xr])},ar=()=>{yr.current=yn.deltaDecorations(yr.current,[])},Ar=yn.onMouseMove(hr=>{var xr,Hn,xt;if(ar(),hr.target.detail&&((xt=(Hn=(xr=hr.target)==null?void 0:xr.element)==null?void 0:Hn.className)!=null&&xt.includes("line-numbers"))){let Ft=hr.target.position.lineNumber;if(mn($e.getLineContent(Ft),Ft))return;_n(Ft)}}),or=yn.onMouseLeave(()=>{ar()});return()=>{Tn.dispose(),Gt.dispose(),Ar.dispose(),or.dispose()}}},[vn.current,ur,Ee,ft,Bn,_e]),(0,te.useEffect)(()=>{var $n;($n=vn.current)!=null&&$n.instance&&Bn&&vn.current.instance.setPosition({lineNumber:0,column:0})},[ft]);function zn(){let $n=vn.current.instance;if($n){const yn=$n.getSelection(),$e=vn.current.pastePos||{},kr=new rn.Range($e.startLineNumber||yn.endLineNumber,$e.startColumn||yn.endColumn,$e.endLineNumber||yn.endLineNumber,$e.endColumn||yn.endColumn);setTimeout(()=>{$n.executeEdits("",[{range:kr,text:""}])},300)}}function $t($n){(window.navigator.platform.match("Mac")?$n.metaKey:$n.ctrlKey)&&$n.keyCode==83&&($n.preventDefault(),sn())}const Sn=()=>{if(he&&vn.current.instance){const $n=vn.current.instance.getContentHeight();Ur($n{if(!Er.current)return;const{keyCode:yn,ctrlKey:$e,metaKey:kr,target:Zr,type:Lt}=$n;return(Lt==="paste"||(yn===67||yn===86)&&(kr||$e))&&Zr.nodeName==="TEXTAREA"&&(rr(),$n.preventDefault()),!1};function fr($n,yn){var $e=window.URL||window.webkitURL||window,kr=new Blob([yn]),Zr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Zr.href=$e.createObjectURL(kr),Zr.download=$n,pr(Zr)}(0,te.useEffect)(()=>{Sn()},[Sn]),(0,te.useEffect)(()=>{sr.current&&!ur&&Promise.all([ce.e(8909),ce.e(2460)]).then(ce.bind(ce,71448)).then($n=>{try{rn=$n,vn.current.instance=rn.editor.create(sr.current,{value:Pt,language:en(_e),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:cn||!1}},Ie);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,Gt)=>{var _n,ar;let Ar=Tn._first;do Gt.includes((ar=(_n=Ar.element)==null?void 0:_n.command)==null?void 0:ar.id)&&Tn._remove(Ar);while(Ar=Ar.next)};if(de(yn,rn),setTimeout(()=>{Sn(),vn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{fr(St||"educoder.txt",yn.getValue())}})},500),vn.current.subscription=yn.onDidChangeModelContent(Tn=>{Jn.current?clearTimeout(Tr.current):(Sn(),re(yn.getValue(),Tn)),Tr.current=setTimeout(()=>{Jn.current=!1},500)}),window.Monaco||nt(rn,en(_e)),oe&&(Tt(Zr,Lt),sr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",lr),window.removeEventListener("paste",lr),window.addEventListener("keydown",lr),window.addEventListener("paste",lr)),window.Monaco=rn,pt&&yn.onDidBlurEditorWidget(()=>{pt(yn.getValue())}),we&&yn.onDidFocusEditorText(()=>{oe&&Yn(),we(yn.getValue())}),oe){Yn();try{yn.onDidPaste(Tn=>{const Gt=yn.getSelection(),_n=vn.current.pastePos||{},ar=new rn.Range(_n.startLineNumber||Gt.endLineNumber,_n.startColumn||Gt.endColumn,_n.endLineNumber||Gt.endLineNumber,_n.endColumn||Gt.endColumn);yn.executeEdits("",[{range:Tn.range,text:""}])})}catch(Tn){}}let tr=Kn();return jt&&typeof jt=="string"&&new Qe(jt,yn,rn),Qr(!0),()=>{const Tn=vn.current.instance;Tn.dispose();const Gt=Tn.getModel();Gt&&Gt.dispose(),vn.current.subscription&&vn.current.subscription.dispose(),tr.unobserve(sr.current)}}catch(yn){}})},[]),(0,te.useEffect)(()=>{if(vn.current.instance&&ur)return document.addEventListener("keydown",$t,!1),()=>{document.removeEventListener("keydown",$t)}},[sn,ur]),(0,te.useEffect)(()=>{let $n=vn.current.instance;if($n&&ur){let yn=en(_e);rn.editor.setModelLanguage($n.getModel(),yn)}},[_e,ur]),(0,te.useEffect)(()=>{vn.current.instance&&ur&&rn.editor.setTheme(Be)},[Be,ur]),(0,te.useEffect)(()=>{let $n=vn.current.instance;dr.current=fe,$n&&ur&&($n.updateOptions(pn({},fe)),setTimeout(()=>{$n.getModel().updateOptions(pn({},fe))},200))},[JSON.stringify(fe),ur]),(0,te.useEffect)(()=>{let $n=vn.current.instance;$n&&ur&&$n.layout()},[zt,Bt,ur]);const[Fr,Wr]=(0,te.useState)(Ot(zt)),[Dr,Ur]=(0,te.useState)(Ot(Bt)),qr=An(pn({},se),{width:Fr,height:Dr,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:sr,style:qr,onFocus:()=>{oe&&Yn()}},Mt&&te.createElement(tt.CopyToClipboard,{text:Pt,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(Me.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 mt({width:ht="100%",height:bt="100%",original:zt,modified:Bt,language:Pt,options:_e={}}){const se=(0,te.useRef)(),[fe,Ie]=(0,te.useState)(null);function Be(he){let oe;return se.current&&(oe=new Ze.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=>{rn=he;const oe=rn.editor.createDiffEditor(se.current,An(pn({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},_e),{wordWrap:!0}));Ie(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:rn.editor.createModel(zt,Pt),modified:rn.editor.createModel(Bt,Pt)})},[zt,Bt,Pt,fe]);const pt=Ot(ht),Mt=Ot(bt),sn={width:pt,height:Mt};return te.createElement("div",{className:"my-diff-editor",ref:se,style:sn})}},61584:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Je}});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",hiddenbq:"hiddenbq___TqlUF"},Ze=ce(29787),Te=ce(25399),Xe=ce(60242),ke=ce(92310),ge=ce.n(ke),Ve=ce(65862),Ue=ce(2524),Se=ce(59301),Je=({className:Ce,dataSource:st=[],col:nt=4,right:it,bottom:We=23,precision:Le=0,wrapWidth:ut=1200,trackEventItems:Ge,loading:qe,onRemove:Qe=()=>{},isCurrent:xe=!0,showProgress:Ne=!1,showAlias:Me=!1,category:rt,hiddenClick:He})=>{const tt=Math.floor((ut-(nt-1)*it)/nt),gt=[{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 Se.createElement(Ze.Z,{spinning:qe},Se.createElement("div",{className:ge()(te.list,Ce)},!!(st!=null&&st.length)&&(st==null?void 0:st.map((Ye,wt)=>{var at,vt,Vt,Jt,pn,An,ze,Fe,Ot,Fn,dn,Ct,en;const{name:rn,id:Yn,identifier:Dt,featured:mt,school_name:ht,image_url:bt,excellent:zt,is_plan:Bt}=Ye;return Se.createElement("div",{key:Yn,className:xe&&Ne?te.wrapisCurrent:te.wrap,style:{width:tt,marginRight:(1+wt)%nt===0?0:it+Le,marginBottom:We}},Se.createElement("a",{className:te.li,onClick:Pt=>{Pt.preventDefault(),Pt.stopPropagation(),Ge&&(0,Ve.L9)([Ge]),(0,Ve.xg)(`/paths/${Dt}`)}},Se.createElement("div",{className:te.img},Se.createElement("img",{className:te.cover,src:`${bt}`}),(at=Ye==null?void 0:Ye.subject_tags)==null?void 0:at.map((Pt,_e)=>{var se,fe;if(_e===0){const Be=(se=gt.find(pt=>pt.name==Pt))==null?void 0:se.swimg;return Se.createElement("img",{className:te.sign,src:Be,style:{left:"-4px"}})}const Ie=(fe=gt.find(Be=>Be.name==Pt))==null?void 0:fe.ptimg;return Se.createElement("img",{className:te.sign,src:Ie,style:{left:`${48+52*(_e-1)+2*_e}px`}})}),Se.createElement("div",{className:te.tagsDom},Se.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ye==null?void 0:Ye.excellent)&&Se.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((vt=Ye==null?void 0:Ye.custom_tags)==null?void 0:vt.length)>0&&Se.createElement(Te.Z,{title:(pn=(Jt=Ye==null?void 0:Ye.custom_tags)==null?void 0:Jt[((Vt=Ye==null?void 0:Ye.custom_tags)==null?void 0:Vt.length)-1])==null?void 0:pn.tag_name},Se.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Se.createElement("span",{className:"multi-llipsis1e text-10px"},(Fe=(ze=Ye==null?void 0:Ye.custom_tags)==null?void 0:ze[((An=Ye==null?void 0:Ye.custom_tags)==null?void 0:An.length)-1])==null?void 0:Fe.tag_name))))),rt=="hide"&&(Ye==null?void 0:Ye.studying)&&xe&&Se.createElement("div",{className:`${te.movebq} user-path-items`,onClick:Pt=>{Pt.stopPropagation(),Qe(Ye)}},Se.createElement("i",{className:"iconfont icon-yichu1 font12"}),Se.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(rt)&&xe&&Se.createElement("div",{className:`${te.hiddenbq} user-path-items`,onClick:Pt=>{Pt.stopPropagation(),He(Ye)}},Se.createElement("i",{className:`iconfont ${rt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Se.createElement("span",null,rt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Se.createElement("div",{className:te.name},Se.createElement(Te.Z,{title:Me&&(Ye!=null&&Ye.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${rn}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ye==null?void 0:Ye.excellent_alias_name}`)):rn},Se.createElement("span",{className:te.e},Me&&(Ye==null?void 0:Ye.excellent_alias_name)||rn))),xe&&Ne&&((Ot=Ye==null?void 0:Ye.progress)==null?void 0:Ot.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(Xe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Fn=Ye==null?void 0:Ye.progress)==null?void 0:Fn.my_score)/((dn=Ye==null?void 0:Ye.progress)==null?void 0:dn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ct=Ye==null?void 0:Ye.progress)==null?void 0:Ct.my_score,"/",(en=Ye==null?void 0:Ye.progress)==null?void 0:en.all_score),(!xe||!Ne)&&Se.createElement(Te.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ht}`},Se.createElement("div",{className:te.unit},Se.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ht)),(!xe||!Ne)&&Se.createElement("div",{className:te.tags},Se.createElement("div",null,Se.createElement(Te.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,Ye.stages_count))),Se.createElement(Te.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,Ye.members_count)))))))})),!st.length&&Se.createElement(Ue.Z,null)))}},82636:function(xn,yt,ce){"use strict";ce.d(yt,{jL:function(){return ke},w9:function(){return Ot},QD:function(){return Ut},cQ:function(){return Jt.Z},op:function(){return re},O5:function(){return qn},_b:function(){return In},t7:function(){return ut},Gi:function(){return Yn},YG:function(){return en},qp:function(){return Je},vr:function(){return Bn},qE:function(){return le},Je:function(){return Qe},wb:function(){return Vt},cq:function(){return Bt},tp:function(){return nt}});var te=ce(59301),Ze={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"},Te="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==",ke=({dataSource:mn=[],img:zn,imgWidth:$t=346,title:Sn,sunTitle:pr,bannerExtraContent:lr})=>te.createElement("div",{className:Ze.banner},te.createElement("div",{className:Ze.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Sn),te.createElement("span",null,pr)),mn.length>0&&te.createElement("div",{className:Ze.btns},mn.map((fr,Fr)=>te.createElement("div",{key:Fr,onClick:fr.click},fr.name,fr.sign?te.createElement("img",{src:Te,width:39}):null))),lr),zn&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:zn,width:$t}))),ge={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ve=ce(92310),Ue=ce.n(Ve),Se=ce(89392),Je=({dataSource:mn=[],value:zn,onChange:$t,onTitleChange:Sn,className:pr,title:lr,titleWidth:fr=41,style:Fr={},fontColor:Wr="#6A7283",showCount:Dr})=>{const[Ur,qr]=(0,te.useState)(1),[$n,yn]=(0,te.useState)(!1),$e=(0,te.useRef)(null),kr=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Zr;mn.length!==0&&(((Zr=$e==null?void 0:$e.current)==null?void 0:Zr.clientHeight)>97?qr(1):qr(0)),mn.length===0&&qr(0),yn(!1)},[mn]),te.createElement("div",{className:Ue()(ge.row,pr,"fadeIn","animated"),style:Fr},te.createElement("div",{onClick:(0,Se.throttle)(()=>Sn==null?void 0:Sn(),2e3),style:{width:fr,marginTop:$n?12:4},className:`${ge.title} ${Sn?"current":""}`},lr),te.createElement("div",{className:$n?`${ge.tagsWrap} ${ge.tagsBorderWrap}`:ge.tagsWrap},te.createElement("div",{className:ge.bar,ref:kr,style:Ur>0?{height:Ur===1?97:"auto",overflow:Ur===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:ge.tag,ref:$e},mn==null?void 0:mn.map(Zr=>te.createElement("span",{onClick:()=>$t(Zr.id),key:Zr.id,style:{color:Wr},className:zn===Zr.id?ge.active:""},te.createElement("span",{title:Zr.name,className:ge.name},Zr.name),!!Dr&&te.createElement("span",{className:ge.num},Zr.count))))),!!Ur&&te.createElement(te.Fragment,null,Ur===1?te.createElement("div",{onClick:()=>{var Zr;qr(2),((Zr=$e==null?void 0:$e.current)==null?void 0:Zr.clientHeight)>245?yn(!0):yn(!1)},className:ge.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,qr(1),yn(!1)},className:ge.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"},nt=({dataSource:mn=[],value:zn,onChange:$t,className:Sn,style:pr={}})=>te.createElement("div",{style:pr,className:Ue()(Ce.tabs,Sn)},mn.map(lr=>te.createElement("span",{onClick:()=>$t(lr.id),className:zn===lr.id?Ce.active:"",key:lr.id},lr.name))),it={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"},We=ce(37568),ut=({dataSource:mn=[],value:zn="",onChange:$t,onInputChange:Sn=()=>{},className:pr,style:lr={},placeholder:fr,allowClear:Fr=!1})=>{var Wr;const[Dr,Ur]=(0,te.useState)(""),[qr,$n]=(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{$n(decodeURIComponent(Zr||""))}catch(Lt){$n(decodeURIComponent(Zr||""))}},[zn]);const yn=()=>{$t(encodeURIComponent(qr),Dr||null)},$e=kr=>{kr!==Dr&&(Ur(kr),$t(encodeURIComponent(qr),kr))};return te.createElement("div",{className:Ue()(it.input,pr),style:lr},!!mn.length&&te.createElement("div",{className:it.dropdown},te.createElement("div",{className:it.text},(Wr=mn.find(kr=>kr.id===Dr))==null?void 0:Wr.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:it.b1}),te.createElement("b",{className:it.b2})),te.createElement("div",{className:it.menu},mn.map((kr,Zr)=>te.createElement("div",{key:Zr,onClick:()=>$e(kr.id)},kr.name)))),te.createElement(We.default,{onPressEnter:yn,value:qr,onChange:kr=>{$n(kr.target.value),Sn(encodeURIComponent(kr.target.value),Dr||null)},placeholder:fr,variant:"borderless",allowClear:Fr,onClear:()=>$t("",Dr||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:$t,total:Sn,pageSize:pr,style:lr={}})=>{const fr=mn<2,Fr=mn>=Math.ceil(Sn/pr);return Sn<=pr?te.createElement(te.Fragment,null):te.createElement("div",{className:Ue()(Ge.quickPager,$t),style:lr},te.createElement("div",{onClick:()=>{fr||zn(mn-1,"prev")},className:fr?Ge.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{Fr||zn(mn+1,"next")},className:Fr?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),Me=ce(25399),rt=ce(58018),He=ce(74128),tt=ce(65862),gt=ce(96908),Ye=ce(57177),wt=ce(81378),at=ce(2524),Vt=({className:mn,dataSource:zn=[],col:$t=4,right:Sn,bottom:pr=23,precision:lr=0,wrapWidth:fr=1200,trackEventItems:Fr,loading:Wr})=>{const Dr=Math.floor((fr-($t-1)*Sn)/$t);return te.createElement(Ne.Z,{spinning:Wr},te.createElement("div",{className:Ue()(xe.list,mn)},!!zn.length&&zn.map((Ur,qr)=>{const{name:$n,id:yn,identifier:$e,power:kr,cover_image_id:Zr,pic:Lt}=Ur;return te.createElement("div",{className:xe.wrap,key:yn,style:{width:Dr,marginRight:(1+qr)%$t===0?0:Sn+lr,marginBottom:pr}},te.createElement("a",{target:"_blank",href:`/shixuns/${$e}/challenges`,className:xe.li,onClick:Tt=>{Tt.preventDefault(),Fr&&(0,tt.L9)([Fr]),kr&&(0,tt.xg)(`/shixuns/${$e}/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:gt}),Ur.is_jupyter_lab&&te.createElement("img",{className:xe.sign,src:Ye}),Ur.is_unity_3d&&te.createElement("img",{className:xe.sign,src:wt})),te.createElement("div",{className:xe.name},te.createElement(Me.Z,{title:$n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:xe.e},$n||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:xe.tags},te.createElement(Me.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(Me.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(Me.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(rt.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(61584),pn={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",hidden:"hidden___NniIi",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",ze=ce(59301),Ot=({className:mn,dataSource:zn=[],col:$t=4,right:Sn,bottom:pr=23,precision:lr=0,wrapWidth:fr=1200,trackEventItems:Fr,loading:Wr,category:Dr,hiddenClick:Ur,handleVery:qr=()=>!0,isCurrent:$n})=>{const yn=Math.floor((fr-($t-1)*Sn)/$t);return ze.createElement(Ne.Z,{spinning:Wr},ze.createElement("div",{className:Ue()(pn.list,mn)},!!zn.length&&zn.map(($e,kr)=>{const{subject_identifier:Zr,id:Lt,identifier:Tt,power:tr}=$e,Tn=$e.is_public!=0&&$e.is_public;return ze.createElement("div",{className:pn.wrap,key:Lt,style:{width:yn,marginRight:(1+kr)%$t===0?0:Sn+lr,marginBottom:pr}},ze.createElement("a",{className:pn.li,onClick:Gt=>{Gt.preventDefault(),qr($e==null?void 0:$e.first_category_url)&&(Fr&&(0,tt.L9)([Fr]),(0,tt.xg)($e.first_category_url))}},ze.createElement("div",{className:pn.top},ze.createElement(Me.Z,{title:$e.name},ze.createElement("div",{className:pn.name},$e.name)),ze.createElement("img",{className:pn.img,src:He.Z.IMG_SERVER+"/images/"+$e.avatar_url}),ze.createElement("div",{className:pn.text,title:$e.creator},$e.creator),Zr&&ze.createElement("div",{className:pn.btns},ze.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ze.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Tn&&ze.createElement("div",{className:pn.sign},"\u516C\u5F00"),$n&&ze.createElement("div",{className:pn.hidden,onClick:Gt=>{Gt.stopPropagation(),Ur($e)}},ze.createElement("i",{className:`iconfont ${Dr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Dr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ze.createElement("div",{className:pn.bottom},$e.visits>0&&ze.createElement(Me.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-liulanyan"}),ze.createElement("span",null,$e.visits))),$e.course_members_count>0&&ze.createElement(Me.Z,{title:"\u6210\u5458",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-chengyuan"}),$e.course_members_count)),$e.tasks_count>0&&ze.createElement(Me.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-zuoye"}),$e.tasks_count)),$e.is_end?ze.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ze.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!$e.is_accessible&&ze.createElement("div",{className:pn.lockWrap},ze.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ze.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!zn.length&&ze.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"},dn=ce(65582),en=({dataSource:mn=[],value:zn,onChange:$t,className:Sn,style:pr={},tabBarExtraContent:lr})=>te.createElement("div",{className:Ue()(Fn.tabs,Sn),style:pr},te.createElement("div",{className:Fn.tabsWrap},mn.map((fr,Fr)=>!(fr!=null&&fr.hide)&&te.createElement("aside",{className:Fn.tab,onClick:()=>{$t(fr.id),fr.link&&dn.history.push(fr.link)},key:Fr},te.createElement("div",{className:zn===fr.id?Fn.active:""},fr.name),(fr==null?void 0:fr.resetCount)==null&&(fr==null?void 0:fr.total)!==void 0&&te.createElement("span",null,"\uFF08",fr==null?void 0:fr.total,"\uFF09"),(fr==null?void 0:fr.resetCount)!==void 0&&(fr==null?void 0:fr.total)!==void 0&&te.createElement(Me.Z,{title:(fr==null?void 0:fr.tip)!=null?fr==null?void 0:fr.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},fr==null?void 0:fr.resetCount),"/",te.createElement("span",null,fr==null?void 0:fr.total),"\uFF09"))))),te.createElement("div",{className:Fn.tabBar},lr)),Yn=({className:mn,style:zn={},children:$t})=>te.createElement("div",{className:Ue()(mn),style:zn},$t),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"},mt=ce(75727),ht=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 Bt=({sortValue:mn,dropValue:zn,className:$t,onSort:Sn,onDrop:pr,dataSource:lr=bt})=>{var fr;return te.createElement("div",{className:Ue()(Dt.orderWrap,$t)},te.createElement(mt.Z,{dropdownRender:()=>te.createElement(ht.default,null,lr.map((Fr,Wr)=>te.createElement(ht.default.Item,{key:Wr,onClick:()=>pr(Fr.id)},Fr.name)))},te.createElement("span",{className:Dt.orderTextWrap},(fr=lr.find(Fr=>zn===Fr.id))==null?void 0:fr.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")}))))},Pt={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"},_e=ce(7939),se=Object.defineProperty,fe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,pt=(mn,zn,$t)=>zn in mn?se(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):mn[zn]=$t,Mt=(mn,zn)=>{for(var $t in zn||(zn={}))Ie.call(zn,$t)&&pt(mn,$t,zn[$t]);if(fe)for(var $t of fe(zn))Be.call(zn,$t)&&pt(mn,$t,zn[$t]);return mn},sn=(mn,zn)=>{var $t={};for(var Sn in mn)Ie.call(mn,Sn)&&zn.indexOf(Sn)<0&&($t[Sn]=mn[Sn]);if(mn!=null&&fe)for(var Sn of fe(mn))zn.indexOf(Sn)<0&&Be.call(mn,Sn)&&($t[Sn]=mn[Sn]);return $t},he=(mn,zn,$t)=>new Promise((Sn,pr)=>{var lr=Wr=>{try{Fr($t.next(Wr))}catch(Dr){pr(Dr)}},fr=Wr=>{try{Fr($t.throw(Wr))}catch(Dr){pr(Dr)}},Fr=Wr=>Wr.done?Sn(Wr.value):Promise.resolve(Wr.value).then(lr,fr);Fr(($t=$t.apply(mn,zn)).next())}),re=mn=>{var zn=mn,{className:$t,style:Sn,children:pr,loading:lr=!1,openLoading:fr,onClick:Fr=()=>{},size:Wr="middle",shape:Dr="round"}=zn,Ur=sn(zn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[qr,$n]=(0,te.useState)(!1);return te.createElement(_e.ZP,Mt({onClick:(0,Se.throttle)(yn=>he(void 0,null,function*(){fr&&$n(!0);try{yield Fr(yn)}catch($e){console.log("error",$e)}fr&&$n(!1)}),2e3,{leading:!0,trailing:!1}),className:Ue()(Pt.btn,Pt[`${Wr}-${Dr}`],$t),style:Sn,size:Wr,shape:Dr,loading:qr||lr},Ur),pr)},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:$t=null,onClick:Sn,title:pr})=>te.createElement("div",{className:Ue()(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:pr},pr),te.createElement("div",{className:de.node},$t)),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:$t,cancelShow:Sn=!0,cancelTitle:pr,cancelClick:lr,className:fr,style:Fr,confirmLoading:Wr=!1})=>te.createElement("div",{className:Ue()(Ee.btns,fr),style:Fr},mn&&te.createElement(_e.ZP,{loading:Wr,onClick:$t,type:"primary",className:Ee.confirm},zn),Sn&&te.createElement(_e.ZP,{onClick:lr,className:Ee.cancel},pr)),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:$t,children:Sn,RightContent:pr})=>te.createElement("div",{className:Ue()(It.fixedBottom,mn),style:zn},te.createElement("div",{className:It.wrap},te.createElement("div",{className:It.left},$t),te.createElement("div",{className:It.center},Sn),te.createElement("div",{className:It.right},pr))),jt={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:$t=[]})=>te.createElement("div",{className:Ue()(jt.crumbs,mn),style:zn},$t.map((Sn,pr)=>pr<$t.length-1?te.createElement(te.Fragment,{key:pr},Sn.path||Sn.onClick?te.createElement("span",{className:jt.hover,onClick:Sn!=null&&Sn.onClick?Sn.onClick:()=>dn.history.push(Sn.path)},Sn.name):te.createElement("span",null,Sn.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:pr,style:{color:"#5F6368"}},Sn.name))),sr=ce(11938),vn=Object.defineProperty,dr=Object.defineProperties,cr=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Pr=(mn,zn,$t)=>zn in mn?vn(mn,zn,{enumerable:!0,configurable:!0,writable:!0,value:$t}):mn[zn]=$t,Er=(mn,zn)=>{for(var $t in zn||(zn={}))Jn.call(zn,$t)&&Pr(mn,$t,zn[$t]);if(yr)for(var $t of yr(zn))Tr.call(zn,$t)&&Pr(mn,$t,zn[$t]);return mn},ur=(mn,zn)=>dr(mn,cr(zn)),Qr=(mn,zn)=>{var $t={};for(var Sn in mn)Jn.call(mn,Sn)&&zn.indexOf(Sn)<0&&($t[Sn]=mn[Sn]);if(mn!=null&&yr)for(var Sn of yr(mn))zn.indexOf(Sn)<0&&Tr.call(mn,Sn)&&($t[Sn]=mn[Sn]);return $t};const{Countdown:Kn}=sr.default;var qn=mn=>{var zn=mn,{onChange:$t}=zn,Sn=Qr(zn,["onChange"]);const[pr,lr]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof pr=="number"&&pr>=0&&$t(pr)},[pr]);const fr=Fr=>{const Wr=Math.floor(Fr/1e3);lr(Wr)};return te.createElement(Kn,ur(Er({},Sn),{onChange:fr}))}},31103:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Ze}});var te=ce(59301);function Ze(Te,Xe){const ke=(0,te.useRef)();(0,te.useEffect)(()=>{ke.current=Te}),(0,te.useEffect)(()=>{function ge(){ke.current()}if(Xe!==null){let Ve=setInterval(ge,Xe);return()=>clearInterval(Ve)}},[Xe])}},71313:function(xn,yt,ce){"use strict";ce.r(yt),ce.d(yt,{default:function(){return Hn}});var te=ce(59301),Ze=ce(56656),Te=ce.n(Ze),Xe=ce(86129),ke=ce.n(Xe),ge=ce(38147),Ve=ce(65582),Ue=ce(62957),Se=ce(6767),ye=ce(458),Je=ce(91882),Ce=ce(77019),st=ce(5269),nt=ce(7939),it=ce(25399),We=ce(37285),Le=ce(37568),ut=ce(54172),Ge=ce(82326),qe=ce(13747),Qe=ce(27812),xe=ce(95869),Ne=ce(87169),Me=ce(26227),rt=ce(74128),He=ce(41867),tt=ce(65862),gt=ce(42441),Ye={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",fa:"fa____jywp"},wt={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const at=({shixunHomeworks:xt,data:Ft,globalSetting:gn,loading:Mn,dispatch:wr})=>{var Hr;const{shixunWorkReport:Mr}=xt;let ir=((Hr=Ft==null?void 0:Ft.efficiency_list)==null?void 0:Hr.length)-parseInt(Ft==null?void 0:Ft.myself_eff[0]);const Xn=()=>({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===Mr.username?"\u59D3\u540D\uFF1A"+Mr.username+"
\u5B66\u53F7\uFF1A "+Mr.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:Mr.username,xAxis:ir,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 $r=Br.value;if(Br.name===Mr.username)return"\u59D3\u540D\uFF1A"+Mr.username+"
\u5B66\u53F7\uFF1A "+Mr.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:wt,data:Ft==null?void 0:Ft.consume_list,symbolSize:function(Br){return Math.round(Br[2])},markPoint:{data:[{name:Mr.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(st.Z,{flex:"800px"},te.createElement(gt.Z,{style:{width:750,height:580},option:Xn()})),te.createElement(st.Z,{flex:"1"},te.createElement("aside",{className:Ye.rightInfo},te.createElement("ul",null,te.createElement("li",null,te.createElement("span",null,"\u59D3\u540D")," ",te.createElement("span",{className:"ml30"},Mr.username)),te.createElement("li",null,te.createElement("span",null,"\u5B66\u53F7")," ",te.createElement("span",{className:"ml30"},Mr.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(st.Z,{flex:"800px"},te.createElement(gt.Z,{style:{width:750,height:580},option:_r()})),te.createElement(st.Z,{flex:"1"},te.createElement("aside",{className:Ye.rightInfo},te.createElement("ul",null,te.createElement("li",null,te.createElement("span",null,"\u59D3\u540D")," ",te.createElement("span",{className:"ml30"},Mr.username)),te.createElement("li",null,te.createElement("span",null,"\u5B66\u53F7")," ",te.createElement("span",{className:"ml30"},Mr.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 vt=(0,Ve.connect)(({shixunHomeworks:xt,loading:Ft,globalSetting:gn})=>({shixunHomeworks:xt,globalSetting:gn,loading:Ft.effects}))(at),Vt=ce(50258),Jt=ce(71051),pn=({defaultValue:xt,onBlur:Ft,max:gn,className:Mn="game-score"})=>{const[wr,Hr]=(0,te.useState)(xt);(0,te.useEffect)(()=>{Hr(xt)},[xt]);function Mr(Xn){Hr(Xn)}function ir(){wr!==xt&&Ft(wr>gn?gn:wr)}return te.createElement(Jt.Z,{max:gn,min:0,className:Mn,value:wr,onChange:Mr,onBlur:ir})},An=ce(25374),ze={md:"md___TEmcT"},Fe=ce(59301),Ot=Object.defineProperty,Fn=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Yn=(xt,Ft,gn)=>Ft in xt?Ot(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:gn}):xt[Ft]=gn,Dt=(xt,Ft)=>{for(var gn in Ft||(Ft={}))en.call(Ft,gn)&&Yn(xt,gn,Ft[gn]);if(Ct)for(var gn of Ct(Ft))rn.call(Ft,gn)&&Yn(xt,gn,Ft[gn]);return xt},mt=(xt,Ft)=>Fn(xt,dn(Ft));const ht=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 Bt(xt,Ft){switch(Ft.type){case 0:return mt(Dt({},xt),{selectedPath:Ft.payload});case 1:return mt(Dt({},xt),{passedContent:Ft.payload});default:throw new Error}}var Pt=({path:xt,game_id:Ft,onPathChange:gn,autoHeight:Mn,diff_code_count:wr,data:Hr,game_codes_cn:Mr})=>{var ir,Xn,_r,Br;const $r=xt.split("\uFF1B").filter(Et=>!!Et),[ui,ai]=(0,te.useReducer)(Bt,{selectedPath:$r[0],passedContent:{language:"python",content:""}}),{selectedPath:Ci,passedContent:Ke}=ui;function Oe(Et){ai({type:0,payload:Et})}const At={\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,Mr,Fe.createElement(it.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:Oe}," ",$r.map(Et=>Fe.createElement(ht,{key:Et,value:Et},Et))," "))," "),(Ci==null?void 0:Ci.split(".")[1])==="md"&&Fe.createElement(An.Z,{height:300,autoHeight:Mn,defaultValue:((Xn=(ir=Hr==null?void 0:Hr.filter(Et=>Et.path===Ci))==null?void 0:ir[0])==null?void 0:Xn.content)||"",className:ze.md}),(Ci==null?void 0:Ci.split(".")[1])!=="md"&&Fe.createElement(Vt.ZP,{height:300,language:Ke.language,value:((Br=(_r=Hr==null?void 0:Hr.filter(Et=>Et.path===Ci))==null?void 0:_r[0])==null?void 0:Br.content)||"",autoHeight:Mn,theme:"default",isCopy:!0,options:bt}))},_e=ce(33270),se=ce(96249),fe=ce.n(se),Ie=Object.defineProperty,Be=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,sn=(xt,Ft,gn)=>Ft in xt?Ie(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:gn}):xt[Ft]=gn,he=(xt,Ft)=>{for(var gn in Ft||(Ft={}))pt.call(Ft,gn)&&sn(xt,gn,Ft[gn]);if(Be)for(var gn of Be(Ft))Mt.call(Ft,gn)&&sn(xt,gn,Ft[gn]);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(48530),we=ce(95097),le=Object.defineProperty,Ee=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Bn=(xt,Ft,gn)=>Ft in xt?le(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:gn}):xt[Ft]=gn,jt=(xt,Ft)=>{for(var gn in Ft||(Ft={}))It.call(Ft,gn)&&Bn(xt,gn,Ft[gn]);if(Ut)for(var gn of Ut(Ft))ft.call(Ft,gn)&&Bn(xt,gn,Ft[gn]);return xt},cn=(xt,Ft)=>Ee(xt,St(Ft)),In=(xt,Ft,gn)=>new Promise((Mn,wr)=>{var Hr=Xn=>{try{ir(gn.next(Xn))}catch(_r){wr(_r)}},Mr=Xn=>{try{ir(gn.throw(Xn))}catch(_r){wr(_r)}},ir=Xn=>Xn.done?Mn(Xn.value):Promise.resolve(Xn.value).then(Hr,Mr);ir((gn=gn.apply(xt,Ft)).next())});const sr=({shixunHomeworks:xt,autoHeight:Ft,classroomList:gn,dispatch:Mn})=>{var wr,Hr,Mr,ir,Xn,_r,Br,$r;const{shixunWorkReport:ui}=xt,{stage_list:ai,work_id:Ci,ai_code_evaluation_promote:Ke}=ui,[Oe,At]=(0,te.useState)(!1),[Et,on]=(0,te.useState)(!0),[Wt,Qn]=(0,te.useState)({left:0,top:0,bottom:0,right:0}),Rn=(0,te.useRef)(null),[Wn,Vn]=(0,te.useState)(!1),[Zn,Gn]=(0,te.useState)(""),ct=(0,te.useRef)(null),Yt=(Nt,qt)=>{var Nn;const{clientWidth:On,clientHeight:er}=window.document.documentElement,br=(Nn=Rn.current)==null?void 0:Nn.getBoundingClientRect();br&&Qn({left:-br.left+qt.x,right:On-(br.right-qt.x),top:-br.top+qt.y,bottom:er-(br.bottom-qt.y)})},Rt=(0,Ve.useParams)(),Zt=(0,He.GJ)(),nn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,te.useEffect)(()=>{console.log(Rt)},[]);const fn=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(Nt,qt,Nn)=>te.createElement("div",null,Nt,qt.is_work_end_evaluate&&te.createElement(tt.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=>Te()(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 Nn,On;const er=yield(0,_e.Lk)(qt.game_identifier,{path:(On=(Nn=qt.path)==null?void 0:Nn.replace(/\;/g,";"))==null?void 0:On.split(";")[0],query_index:qt.query_index,homework_common_id:Rt.categoryId});(er==null?void 0:er.status)===0&&(Vn(er),At(!0))})},qt.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],dt=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(Nt,qt)=>{var Nn;return te.createElement("span",null,te.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:rt.Z.IMG_SERVER+"/images/"+((Nn=qt==null?void 0:qt.user)==null?void 0:Nn.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?Te()(Nt).format("YYYY-MM-DD HH:mm"):"--")}];function Ln(Nt,qt){return In(this,null,function*(){const{challenge_id:Nn}=ai[Nt],On=yield Mn({type:"shixunHomeworks/changeScore",payload:{categoryId:Rt.homeworkId,type:"report",score:qt,challenge_id:Nn}});yield Mn({type:"shixunHomeworks/getShixunWorkReport",payload:jt({},Rt)}),On.status===0&&Se.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function wn(Nt,qt){return(0,ge.U2)(`student_works/${Ci}/rep_passed_content.json`,{path:qt,game_id:Nt})}const[Ht,ln]=(0,te.useState)((wr=ui==null?void 0:ui.shixun_detail)==null?void 0:wr.map(Nt=>cn(jt({},Nt),{commentEdit:!1}))),hn=Nt=>Nt.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/_{2,}/g,"`$&`"),[tn,un]=(0,te.useState)(!1),nr=(Nt,qt)=>In(void 0,null,function*(){var Nn,On;un(!0),ct.current=new de.Z(rt.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:Ke,shixun_id:ui==null?void 0:ui.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=(Nn=Nt==null?void 0:Nt.game_codes)==null?void 0:Nn[0])==null?void 0:On.content,homework_common_id:Rt.categoryId}),yield new Promise((er,br)=>{ct.current.on("data",vr=>{const zr=[...Ht];zr[qt].comment=hn(vr==null?void 0:vr.full),ln(zr)}),ct.current.on("done",()=>In(void 0,null,function*(){var vr;un(!1);const zr=[...Ht],Ir=yield(0,ge.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:zr[qt].comment}});if((Ir==null?void 0:Ir.status)==0){Se.ZP.success("\u8BC4\u4EF7\u6210\u529F");const ii=[...Ht];ii[qt].comment_updated_at=(vr=Ir==null?void 0:Ir.data)==null?void 0:vr.comment_updated_at,ln(ii)}})),ct.current.startStream()})});return te.createElement(te.Fragment,null,Ht==null?void 0:Ht.map(function(Nt,qt){var Nn,On;return te.createElement("div",{key:qt},te.createElement("aside",{className:"pl30 pr30",key:qt},te.createElement("div",{className:`${Ye.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))),Zt?te.createElement("span",null,"\u8C03\u5206\uFF1A",te.createElement(pn,{className:"game-score",max:ai[qt].game_score_full,defaultValue:ai[qt].game_score,onBlur:er=>{var br;if((0,He.Rm)()&&!((br=gn.AssistantObject.practice)!=null&&br.can_appraise)){Se.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}Ln(qt,er)}})):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:Ye.shixunWrp},te.createElement(Pt,{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"},(Nn=Nt.outputs)!=null&&Nn.length?te.createElement(ut.default,{columns:fn,pagination:{hideOnSinglePage:!0},dataSource:Nt.outputs.map(er=>jt(jt({},Nt),er))}):"\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?Te()(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?Se.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):Ue.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*(){nr(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?Se.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):nr(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 er=[...Ht];er[qt].commentEdit=!0,ln(er),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:Ye.pj_close,onClick:()=>{const er=[...Ht];er[qt].commentEdit=!1,ln(er)}},"\u53D6\u6D88"),te.createElement("div",{className:Ye.pj_save,onClick:()=>In(this,null,function*(){var er;const br=yield(0,ge.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((br==null?void 0:br.status)==0){Se.ZP.success("\u8BC4\u4EF7\u6210\u529F");const vr=[...Ht];vr[qt].commentEdit=!1,vr[qt].comment=Zn,vr[qt].comment_updated_at=(er=br==null?void 0:br.data)==null?void 0:er.comment_updated_at,ln(vr)}})},"\u4FDD\u5B58"))),!(Nt!=null&&Nt.commentEdit)&&te.createElement("div",{className:Ye.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:er=>Gn(er.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:dt,pagination:{hideOnSinglePage:!0},dataSource:Nt.adjust_review_score_list,showHeader:!1})))))}),te.createElement(Ue.default,{open:Oe,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{Vn({}),At(!1)},onCancel:()=>{Vn({}),At(!1)},title:te.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{Et&&on(!1)},onMouseOut:()=>{on(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:Nt=>te.createElement(fe(),{disabled:Et,bounds:Wt,nodeRef:Rn,onStart:(qt,Nn)=>Yt(qt,Nn)},te.createElement("div",{ref:Rn},Nt))},te.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},te.createElement("div",{style:{display:"flex",alignItems:"center"}},((Hr=Wn==null?void 0:Wn.data)==null?void 0:Hr.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:((Mr=Wn==null?void 0:Wn.data)==null?void 0:Mr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(ir=Wn==null?void 0:Wn.data)==null?void 0:ir.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"}},Te()((Xn=Wn==null?void 0:Wn.data)==null?void 0:Xn.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"}},(($r=Wn==null?void 0:Wn.data)==null?void 0:$r.test_set_passed_rate)*100,"%")))),te.createElement(Vt.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:gn,classroomList:Mn})=>({shixunHomeworks:xt,globalSetting:gn,loading:Ft.effects,classroomList:Mn}))(sr),dr=ce(28284),cr={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(27185),Jn=ce(59301),Tr=Object.defineProperty,Pr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,Qr=(xt,Ft,gn)=>Ft in xt?Tr(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:gn}):xt[Ft]=gn,Kn=(xt,Ft)=>{for(var gn in Ft||(Ft={}))Er.call(Ft,gn)&&Qr(xt,gn,Ft[gn]);if(Pr)for(var gn of Pr(Ft))ur.call(Ft,gn)&&Qr(xt,gn,Ft[gn]);return xt},rr=(xt,Ft,gn)=>new Promise((Mn,wr)=>{var Hr=Xn=>{try{ir(gn.next(Xn))}catch(_r){wr(_r)}},Mr=Xn=>{try{ir(gn.throw(Xn))}catch(_r){wr(_r)}},ir=Xn=>Xn.done?Mn(Xn.value):Promise.resolve(Xn.value).then(Hr,Mr);ir((gn=gn.apply(xt,Ft)).next())});const qn=({shixunHomeworks:xt,dispatch:Ft,classroomList:gn})=>{const{shixunWorkReport:Mn}=xt,wr=(0,Ve.useParams)(),[Hr,Mr]=(0,te.useState)(!1),[ir]=dr.default.useForm(),[Xn,_r]=Ue.default.useModal(),[Br,$r]=(0,te.useState)(!1),[ui,ai]=(0,te.useState)(!1);(0,te.useEffect)(()=>{var Oe,At,Et,on;xt.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&ir.setFieldsValue({comment:(At=(Oe=xt.actionTabs.selectArrs)==null?void 0:Oe.data)==null?void 0:At.work_comment,hidden_comment:(on=(Et=xt.actionTabs.selectArrs)==null?void 0:Et.data)==null?void 0:on.work_comment_hidden})},[xt.actionTabs.key]);const Ci=()=>rr(void 0,null,function*(){const Oe=ir.getFieldsValue();(yield(0,ge.ZP)(`/api/student_works/${wr.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Oe.hidden_comment,comment:Oe.comment}})).status===0&&(Se.ZP.success("\u8BC4\u9605\u6210\u529F"),ir.resetFields(),Ft({type:"shixunHomeworks/setActionTabs",payload:{}}),Ft({type:"shixunHomeworks/getShixunWorkReport",payload:Kn({},wr)}))}),Ke=[{title:"\u5173\u5361",dataIndex:"name",render:(Oe,At,Et)=>Et+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Oe,At,Et)=>Jn.createElement("div",null,Oe,At.complete_status===4&&Jn.createElement(tt.vA,{status:At.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:Oe=>Oe?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Oe,At)=>Jn.createElement("div",null,Jn.createElement("span",{style:{color:parseFloat(At.game_score_full)!==parseFloat(Oe)?"#E30000":"#53C41B"}},Oe),"/",At.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Oe,At)=>(0,He.GJ)()?Jn.createElement(pn,{max:At.game_score_full,defaultValue:parseFloat(Oe),onBlur:Et=>rr(void 0,null,function*(){var on,Wt;if((0,He.Rm)()&&!((on=gn.AssistantObject.practice)!=null&&on.can_appraise)){Se.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:At.challenge_id}});(Wt=xt==null?void 0:xt.actionTabs)==null||Wt.fn(),yield Ft({type:"shixunHomeworks/getShixunWorkReport",payload:Kn({},wr)}),Qn.status===0&&Se.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Oe}];return Jn.createElement(Jn.Fragment,null,_r,Jn.createElement(Ue.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:()=>rr(void 0,null,function*(){var Oe;if((0,He.Rm)()&&!((Oe=gn.AssistantObject.practice)!=null&&Oe.can_appraise)){Se.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 At=ir.getFieldsValue();JSON.stringify(At)==="{}"||At.hidden_comment===""&&At.comment===""?Mr(!0):Ci()}),onCancel:()=>{Ft({type:"shixunHomeworks/setActionTabs",payload:{}})}},Jn.createElement(Ce.Z,{justify:"space-between",className:cr.info},Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u59D3\u540D"),Jn.createElement("span",{className:cr.blackContent},Mn==null?void 0:Mn.username)),Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u5B66\u53F7"),Jn.createElement("span",{className:cr.blackContent},(Mn==null?void 0:Mn.student_id)||"--")),Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u73ED\u7EA7"),Jn.createElement("span",{className:cr.blackContent},(Mn==null?void 0:Mn.group_name)||"--")),Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u5173\u5361\u5F97\u5206"),Jn.createElement("span",{className:cr.orangeContent},(Mn==null?void 0:Mn.challenge_score)||"--")),Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u6548\u7387\u5206"),Jn.createElement("span",{className:cr.orangeContent},(Mn==null?void 0:Mn.eff_score)||"--")),Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u8865\u4EA4\u6263\u5206"),Jn.createElement("span",{className:cr.orangeContent},(Mn==null?void 0:Mn.late_penalty)||"--")),Jn.createElement(st.Z,null,Jn.createElement("span",{className:`${cr.label} ${cr.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Jn.createElement("span",{className:cr.orangeContent},(Mn==null?void 0:Mn.work_score)||"--"))),Jn.createElement(dr.default,{form:ir,onChange:()=>{Hr&&Mr(!1)}},Jn.createElement(Ce.Z,{wrap:!1,align:"middle",justify:"space-between"},Jn.createElement(st.Z,null,Jn.createElement("div",{className:`${cr.inputLabel} ${cr.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Jn.createElement(st.Z,null,Jn.createElement(yr.Z,{isShowComponent:(0,He.G5)(),ModalProps:{open:Br,onCancel:()=>{$r(!1)}},onDataSelect:(Oe,At)=>rr(void 0,[Oe,At],function*(Et,{node:on}){const Wt=()=>{ir.setFieldsValue({comment:on==null?void 0:on.value}),$r(!1)};if(ir.getFieldValue("comment")){Xn.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()})},Jn.createElement(nt.ZP,{style:{padding:0,height:"auto"},icon:Jn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Oe=>{$r(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Jn.createElement(dr.default.Item,{name:"comment"},Jn.createElement(Le.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Jn.createElement(Ce.Z,{wrap:!1,align:"middle",justify:"space-between"},Jn.createElement(st.Z,null,Jn.createElement("div",{className:`${cr.inputLabel} ${cr.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Jn.createElement(st.Z,null,Jn.createElement(yr.Z,{isShowComponent:(0,He.G5)(),ModalProps:{open:ui,onCancel:()=>{ai(!1)}},onDataSelect:(Oe,At)=>rr(void 0,[Oe,At],function*(Et,{node:on}){const Wt=()=>{ir.setFieldsValue({hidden_comment:on==null?void 0:on.value}),ai(!1)};if(ir.getFieldValue("hidden_comment")){Xn.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()})},Jn.createElement(nt.ZP,{style:{padding:0,height:"auto"},icon:Jn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Oe=>{ai(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Jn.createElement(dr.default.Item,{name:"hidden_comment"},Jn.createElement(Le.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),Hr&&Jn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Jn.createElement("div",{className:cr.tableTitle},"\u5173\u5361\u6210\u7EE9"),Jn.createElement(ut.default,{className:cr.scoreTable,dataSource:Mn.stage_list,rowKey:"challenge_id",pagination:!1,columns:Ke,scroll:{x:"max-content"}})))};var mn=(0,Ve.connect)(({shixunHomeworks:xt,classroomList:Ft})=>({shixunHomeworks:xt,classroomList:Ft}))(qn),zn=ce(52217),$t=ce(88761),Sn=ce(44164),pr=ce.n(Sn),lr={wrap:"wrap___LZOi9",line:"line___oju0L"},fr=ce(65078),Wr=({detailData:xt})=>{var Ft;return te.createElement("div",{className:lr.wrap},te.createElement(fr.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,fr.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(fr.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,fr.Uf)(xt)}),!!((Ft=xt==null?void 0:xt.photos)!=null&&Ft.length)&&te.createElement(te.Fragment,null,te.createElement("div",{className:lr.line}),te.createElement(fr._s,{dataSource:xt==null?void 0:xt.photos,right:21,col:4,wrapWidth:1140}))))},Dr=ce(84454),Ur=ce(27183),qr=ce(2524),$n=ce(30214),yn=ce(77254),$e=ce(59301),kr=Object.defineProperty,Zr=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Gt=(xt,Ft,gn)=>Ft in xt?kr(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:gn}):xt[Ft]=gn,_n=(xt,Ft)=>{for(var gn in Ft||(Ft={}))tr.call(Ft,gn)&&Gt(xt,gn,Ft[gn]);if(Tt)for(var gn of Tt(Ft))Tn.call(Ft,gn)&&Gt(xt,gn,Ft[gn]);return xt},ar=(xt,Ft)=>Zr(xt,Lt(Ft)),Ar=(xt,Ft)=>{var gn={};for(var Mn in xt)tr.call(xt,Mn)&&Ft.indexOf(Mn)<0&&(gn[Mn]=xt[Mn]);if(xt!=null&&Tt)for(var Mn of Tt(xt))Ft.indexOf(Mn)<0&&Tn.call(xt,Mn)&&(gn[Mn]=xt[Mn]);return gn},or=(xt,Ft,gn)=>new Promise((Mn,wr)=>{var Hr=Xn=>{try{ir(gn.next(Xn))}catch(_r){wr(_r)}},Mr=Xn=>{try{ir(gn.throw(Xn))}catch(_r){wr(_r)}},ir=Xn=>Xn.done?Mn(Xn.value):Promise.resolve(Xn.value).then(Hr,Mr);ir((gn=gn.apply(xt,Ft)).next())});function hr(xt){const Ft=(wr,Hr)=>{if(wr.localName===Hr)return wr;for(let Mr=0,ir=wr;ir=ir.parentNode;Mr++){if(ir.localName===Hr)return ir;if(ir==document.documentElement)return!1}},gn=xt.target,Mn=Ft(gn,"a");if(console.log([Mn],Mn==null?void 0:Mn.href,44),!(Mn!=null&&Mn.href)&&gn.tagName.toUpperCase()==="IMG"){let wr=gn.src||gn.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:gn,classroomList:Mn,globalSetting:wr,loading:Hr,user:Mr,dispatch:ir}=Ft,Xn=Ar(Ft,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),_r,Br,$r,ui,ai,Ci;const[Ke,Oe]=(0,te.useState)(_n({},(0,Ve.useParams)())),At=(0,Ve.useParams)(),[Et,on]=(0,te.useState)({page:1,page_size:10}),Wt=(0,Ve.useLocation)(),[]=(0,te.useState)([]),[Qn,Rn]=(0,te.useState)(),Wn=(0,te.useRef)(),Vn=(0,te.useRef)(),[Zn,Gn]=(0,te.useState)(!1),[ct,Yt]=(0,te.useState)(!0),[Rt,Zt]=(0,te.useState)(!1),[nn,fn]=(0,te.useState)(!1),{shixunWorkReport:dt}=gn,[Ln,wn]=(0,te.useState)(),[Ht,ln]=(0,te.useState)([]),[hn,tn]=(0,te.useState)(),[un,nr]=(0,te.useState)("all"),Nt=(0,He.GJ)(),[qt,Nn]=(0,te.useState)(new(ke())),[On,er]=(0,te.useState)(0),[br,vr]=(0,te.useState)(!1),[zr,Ir]=(0,te.useState)(!1),[ii,oi]=(0,te.useState)(!1),[Xr,di]=(0,te.useState)(""),[Ai,ni]=(0,te.useState)(!1),[ri,Rr]=(0,te.useState)(!0),[ei,pi]=(0,te.useState)(0),Vr=(0,te.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),gi=(0,te.useRef)(),[Ei,Ti]=(0,te.useState)(!1),[Da,Na]=(0,te.useState)(!1),ca=(0,te.useRef)(null),La=()=>or(void 0,null,function*(){(Mr.userInfo.is_teacher||Mr.userInfo.admin)&&(ni(!0),Rr(!1))});(0,te.useEffect)(()=>{var jn;(0,He.Rm)()&&Mn.AssistantObject.practice&&!((jn=Mn.AssistantObject.practice)!=null&&jn.can_view)&&Ve.history.replace("/403")},[(_r=Mn.AssistantObject.practice)==null?void 0:_r.can_view]),(0,te.useEffect)(()=>{La(),console.log("\u6253\u5370\u7684------",dt),gi.current=dt==null?void 0:dt.next_student_work_id,di(dt.repeat_minus_score)},[dt,Mr]),(0,te.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",dt.work_score),pi(dt.work_score)},[dt.work_score,Xr]),(0,te.useEffect)(()=>(ir({type:"globalSetting/footerToggle",payload:!1}),()=>{ir({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,te.useEffect)(()=>{if(ca.current)return ca.current.addEventListener("mousedown",hr),()=>{var jn;(jn=ca.current)==null||jn.removeEventListener("mousedown",hr)}},[ca.current]),(0,te.useEffect)(()=>{setTimeout(()=>{ca.current&&ca.current.clientHeight>=500&&Na(!0)},500)},[(Br=dt==null?void 0:dt.student_work_test_result_info)==null?void 0:Br.content,ca.current]),(0,te.useEffect)(()=>{var jn;if(dt){let ti=[];(jn=dt==null?void 0:dt.target_test_sets)==null||jn.map((bi,qi)=>{var Fa;(Fa=bi==null?void 0:bi.targets)==null||Fa.map((Oi,Ja)=>{var Mi;Oi.name=bi==null?void 0:bi.name,Oi.total_target_score=bi==null?void 0:bi.total_target_score,Oi.actual_target_score=bi==null?void 0:bi.actual_target_score,Oi.rowSpan=Ja===0?(Mi=bi==null?void 0:bi.targets)==null?void 0:Mi.length:0,Oi.order=qi+1,ti.push(Oi)})}),wn(ti),(0,He.Rm)()&&ir({type:"classroomList/getAssistantPermissions",payload:{course_id:Ke.coursesId}})}},[dt]),(0,te.useEffect)(()=>{gn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(dt==null?void 0:dt.students_count)>0&&!ct&&setTimeout(()=>{si("all")},800)},[dt==null?void 0:dt.homework_common_id,ct]),(0,te.useEffect)(()=>{Oe(_n({},At))},[Wt.pathname]);const ji=()=>{document.body.scrollIntoView()},ea=jn=>{Et.page=jn,on(_n({},Et)),Yi(Et,un)},Yi=(jn,ti)=>or(void 0,null,function*(){Zt(!0);const bi=yield(0,ge.ZP)(`/api/student_works/${Ke==null?void 0:Ke.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:ar(_n({},jn),{challenge_id:ti=="all"?null:ti})});(bi==null?void 0:bi.status)===0&&(ln(bi==null?void 0:bi.list),tn(bi==null?void 0:bi.count)),Zt(!1)});function Ha(){return or(this,null,function*(){Vr.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const ua=()=>{document.querySelectorAll("canvas").forEach(jn=>{(!jn.clientWidth||!jn.clientHeight)&&jn.remove()})},xa=()=>{Wn.current.offsetHeight>62e3?fn(!1):fn(!0)},fa=jn=>or(void 0,null,function*(){const ti=yield(0,$t.t1)({homeworkId:jn||Ke.homeworkId});Rn(ti==null?void 0:ti.data)}),si=jn=>or(void 0,null,function*(){var ti,bi,qi,Fa;Ti(!0);let Oi=0,Ja;Ja=Ue.default.info({width:460,title:$e.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",$e.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:$e.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",$e.createElement("span",{className:"c-blue"},Oi+1),"/",jn!=="all"?1:dt==null?void 0:dt.students_count,$e.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:Ye.modal,onOk:()=>{}});const Mi={margin:[0,0],filename:`${dt!=null&&dt.student_id&&(dt==null?void 0:dt.student_id)!="--"?dt==null?void 0:dt.student_id:""}${dt.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},GA=qt.folder(dt==null?void 0:dt.shixun_name);function fA(Sa){return or(this,null,function*(){yield fa(Sa||gi.current);const vi=yield ir({type:"shixunHomeworks/getShixunWorkReport",payload:_n({homeworkId:Sa||gi.current},Vr.current||{})});gi.current=vi==null?void 0:vi.next_student_work_id,ji(),Oi++,setTimeout(()=>or(this,null,function*(){var aA,dA,$a,qa;ua();const BA=GA.folder(`${vi==null?void 0:vi.group_name}`).folder(`${vi!=null&&vi.student_id&&(vi==null?void 0:vi.student_id)!="--"?vi.student_id+"+":""}${vi==null?void 0:vi.username}`),CA=document.querySelector("#export-all").children;let Ka=pr()();for(let Ea=0;Eaor(this,null,function*(){Ea0&&(($a=(dA=vi==null?void 0:vi.shixun_detail)==null?void 0:dA.filter(Ea=>{var va;return((va=Ea==null?void 0:Ea.game_codes)==null?void 0:va.length)>0}))==null?void 0:$a.length)>0){const Ea=BA.folder("\u4EE3\u7801\u6587\u4EF6");(qa=vi==null?void 0:vi.shixun_detail)==null||qa.map((va,Ra)=>{var sA,kA;if(((sA=va==null?void 0:va.game_codes)==null?void 0:sA.length)>0){const MA=Ea.folder(`\u7B2C${Ra+1}\u5173-${va.subject}-${va.id}`);(kA=va==null?void 0:va.game_codes)==null||kA.map(Za=>{MA.file(`${Za.filename}.txt`,Za==null?void 0:Za.content)})}})}Ja.update({content:$e.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",$e.createElement("span",{className:"c-blue"},Oi),"/",vi==null?void 0:vi.students_count,$e.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Oi==(vi==null?void 0:vi.students_count)?(Ja.destroy(),wi()):fA()}),2200)})}if(jn!=="all"||(dt==null?void 0:dt.students_count)<2){ua(),ji();const Sa=Vn.current.children;let vi=pr()();const dA=GA.folder(`${dt==null?void 0:dt.group_name}`).folder(`${dt!=null&&dt.student_id&&(dt==null?void 0:dt.student_id)!="--"?(dt==null?void 0:dt.student_id)+"+":""}${dt==null?void 0:dt.username}`);for(let $a=0;$aor(void 0,null,function*(){$a0&&((qi=(bi=dt==null?void 0:dt.shixun_detail)==null?void 0:bi.filter($a=>{var qa;return((qa=$a==null?void 0:$a.game_codes)==null?void 0:qa.length)>0}))==null?void 0:qi.length)>0){const $a=dA.folder("\u4EE3\u7801\u6587\u4EF6");(Fa=dt==null?void 0:dt.shixun_detail)==null||Fa.map((qa,PA)=>{var BA,CA;if(((BA=qa==null?void 0:qa.game_codes)==null?void 0:BA.length)>0){const Ka=$a.folder(`\u7B2C${PA+1}\u5173-${qa.subject}-${qa.id}`);(CA=qa==null?void 0:qa.game_codes)==null||CA.map(Ea=>{Ka.file(`${Ea.filename}.txt`,Ea==null?void 0:Ea.content)})}})}Ja.destroy(),wi();return}else fA(dt==null?void 0:dt.first_student_work_id)}),wi=()=>{qt.generateAsync({type:"blob"}).then(function(jn){console.log(dt,"shixunWorkReport");const ti=document.createElement("a");ti.href=window.URL.createObjectURL(jn),ti.download=(dt==null?void 0:dt.shixun_name)+".zip",document.body.appendChild(ti);const bi=document.createEvent("MouseEvents");bi.initEvent("click",!1,!1),ti.dispatchEvent(bi),document.body.removeChild(ti),Nn(new(ke()))}),fn(!1)};(0,te.useEffect)(()=>{Fi()},[Ke.homeworkId]);const Fi=()=>or(void 0,null,function*(){Yt(!0),yield ir({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ke),Vr.current||{})}),fa(),(0,He.GJ)()&&Ha(),Yt(!1)}),Si=[{title:"\u5173\u5361",dataIndex:"name",render:(jn,ti,bi)=>bi+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(jn,ti,bi)=>$e.createElement("div",null,jn,ti.complete_status===4&&$e.createElement(tt.vA,{status:ti.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(jn,ti,bi)=>jn||"- -"},{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:jn=>jn?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(jn,ti)=>$e.createElement("div",null,$e.createElement("span",{style:{color:parseFloat(ti.myself_experience)!==parseFloat(jn)?"red":"green"}},ti.myself_experience),"/",jn)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(jn,ti)=>$e.createElement("div",null,$e.createElement("span",{style:{color:parseFloat(ti.game_score_full)!==parseFloat(jn)?"red":"green"}},jn),"/",ti.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(jn,ti)=>Nt?$e.createElement(pn,{max:ti.game_score_full,defaultValue:parseFloat(jn),onBlur:bi=>or(void 0,null,function*(){var qi;if((0,He.Rm)()&&!((qi=Mn.AssistantObject.practice)!=null&&qi.can_appraise)){Se.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 Fa=yield ir({type:"shixunHomeworks/changeScore",payload:{categoryId:Ke.homeworkId,type:"report",score:bi,challenge_id:ti.challenge_id}});Yi({page:1,page_size:10},"all"),yield ir({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ke),Vr.current||{})}),Fa.status===0&&Se.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):jn}];let Hi=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(jn,ti,bi)=>({children:jn,props:{rowSpan:ti.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(jn,ti,bi)=>({children:jn,props:{rowSpan:ti.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:(jn,ti,bi)=>$e.createElement("div",null,$e.createElement("span",{style:{color:parseFloat(ti.actual_test_score)!==parseFloat(jn)?"red":"green"}},ti.actual_test_score),"/",jn)},{title:"\u6307\u6807\u603B\u5206",render:(jn,ti,bi)=>({children:$e.createElement("div",null,$e.createElement("span",{style:{color:parseFloat(ti.actual_target_score)!==parseFloat(jn)?"red":"green"}},ti.actual_target_score),"/",jn),props:{rowSpan:ti.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Xi=[{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:jn=>$e.createElement("span",null,jn?Te()(jn).format("YYYY-MM-DD HH:mm"):"--")}],Li=jn=>{ir({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{jn==="next"?Ve.history.push(`/classrooms/${Ke.coursesId}/shixun_homework/${Ke.categoryId}/${dt==null?void 0:dt.next_student_work_id}/comment`):Ve.history.push(`/classrooms/${Ke.coursesId}/shixun_homework/${Ke.categoryId}/${dt==null?void 0:dt.pre_student_work_id}/comment`)},200)},ga=jn=>{di(""),jn.target.value&&(console.log("\u8FDB\u6765",dt),jn.target.value=jn.target.value>dt.repeat_setting_score?dt.repeat_setting_score:jn.target.value,di(jn.target.value))},pa=()=>or(void 0,null,function*(){const jn=yield(0,ge.ZP)(`/api/student_works/${dt==null?void 0:dt.work_id}/update_repeat_score`,{method:"put",body:{score:Xr}});yield ir({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ke),Vr.current||{})}),jn.status===0&&Se.ZP.info("\u64CD\u4F5C\u6210\u529F")});return $e.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},$e.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},$e.createElement(ye.Z,{loading:Hr["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},$e.createElement("div",{className:"edu-container"},dt.course_id&&$e.createElement("section",{className:"animated fadeIn"},$e.createElement("aside",{className:""},dt.category&&$e.createElement(Je.Z,{separator:">"},$e.createElement(Je.Z.Item,null,$e.createElement(Ve.Link,{to:`/classrooms/${dt.course_id}/shixun_homework`},dt.course_name)),$e.createElement(Je.Z.Item,null,$e.createElement(Ve.Link,{to:`/classrooms/${dt.course_id}/shixun_homework/${dt.category.main?"":dt.category.category_id}`},dt.category.category_name)),$e.createElement(Je.Z.Item,null,$e.createElement(Ve.Link,{to:`/classrooms/${dt.course_id}/shixun_homework/${dt.homework_common_id}/detail${(0,He.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),$e.createElement(Je.Z.Item,null,dt.username))),$e.createElement("aside",{className:[Ye.title1,"mt20"].join(" ")},$e.createElement(Ce.Z,{align:"middle"},$e.createElement(st.Z,{flex:1},$e.createElement(Ve.Link,{to:`/classrooms/${dt.course_id}/shixun_homework/${dt.homework_common_id}/detail`},$e.createElement(Qe.Z,{className:"font16 c-black"})),$e.createElement("strong",{className:"font20 ml5"},dt==null?void 0:dt.homework_name),$e.createElement(tt.VV,{temporary:!0,status:dt.homework_status})),$e.createElement(st.Z,{className:Ye.title1_right},dt.view_tpi&&$e.createElement(nt.ZP,{onClick:()=>{var jn,ti;(0,tt.xg)(`/tasks/${dt==null?void 0:dt.course_id}/${dt==null?void 0:dt.homework_common_id}/${(ti=(jn=dt==null?void 0:dt.shixun_detail)==null?void 0:jn[0])==null?void 0:ti.game_identifier}`)}},$e.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,He.GJ)()&&dt.homework_end===!1&&!!dt.myshixun_id&&$e.createElement(nt.ZP,{className:"ml10",onClick:()=>or(void 0,null,function*(){yield ir({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:dt.myshixun_identifier},homework_common_id:At.categoryId}})})},$e.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),$e.createElement(nt.ZP,{className:"ml10",onClick:()=>{var jn;if(!(!(dt!=null&&dt.is_old_data_for_time)&&(0,tt.Ye)(ir))){if((0,He.Rm)()&&!((jn=Mn.AssistantObject.practice)!=null&&jn.can_download)){Se.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}si("")}},loading:Zn},$e.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,He.GJ)()&&(dt==null?void 0:dt.students_count)>1&&$e.createElement(nt.ZP,{className:"ml10",onClick:()=>{var jn;if(!(!(dt!=null&&dt.is_old_data_for_time)&&(0,tt.Ye)(ir))){if((0,He.Rm)()&&!((jn=Mn.AssistantObject.practice)!=null&&jn.can_download)){Se.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}Ue.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:$e.createElement(it.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:$e.createElement(it.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:()=>{si("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Dr.jj)({categoryId:Ke.categoryId,coursesId:Ke.coursesId},"shixun_report")}}})}}},$e.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),$e.createElement("aside",{className:"mt30 relative"})),$e.createElement("aside",{className:"edu-container bg-white",ref:Wn},$e.createElement("div",{id:"export-all",ref:Vn},$e.createElement("div",{id:"export-all-1"},$e.createElement("div",{className:Ye.title},$e.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),$e.createElement("div",null,(0,He.GJ)()&&$e.createElement(nt.ZP,{className:"mr20",type:"primary",onClick:()=>{ir({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:dt.user_id,data:_n({},dt)},fn:()=>Yi({page:1,page_size:10},"all")}})}},$e.createElement(xe.Z,null),dt.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),$e.createElement(We.Z,{style:{marginTop:0}}),$e.createElement(Ce.Z,{className:"pl30 pr30"},$e.createElement(st.Z,null,$e.createElement("img",{className:Ye.userPic,src:`${rt.Z.IMG_SERVER}/images/${dt.image_url}`,alt:dt.username})),$e.createElement(st.Z,null,$e.createElement("span",{className:"font16 ml40"},dt.username),$e.createElement(tt.vA,{status:dt.compelete_status}),$e.createElement("ul",{className:Ye.userInfo},$e.createElement("li",null,"\u5B66\u53F7\uFF1A",dt.student_id||"--"),$e.createElement("li",null,"\u5206\u73ED\uFF1A",dt.group_name||"--"),$e.createElement("br",null),$e.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",$e.createElement("span",{className:"c-red"},dt.complete_count),"/",$e.createElement("span",{className:"c-red"},dt.challenges_count)),$e.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",$e.createElement("span",{className:"c-red"},dt.current_complete_count||"-"),"/",$e.createElement("span",{className:"c-red"},dt.challenges_count)),$e.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",dt&&dt.efficiency===null?"--":dt&&dt.efficiency),$e.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",dt&&dt.max_efficiency===null?"--":dt&&dt.max_efficiency))),$e.createElement("ul",{className:[Ye.listItem,"mt10"].join(" ")},$e.createElement("li",null,$e.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),$e.createElement("div",{className:"c-light-black mt20"},dt&&dt.passed_time===null||dt&&dt.passed_time==="--"?"--":Te()(dt&&dt.passed_time).format("YYYY-MM-DD HH:mm"))),$e.createElement("li",null,$e.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",$e.createElement("i",{onClick:jn=>{jn.stopPropagation(),jn.preventDefault(),vr(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),$e.createElement("div",{className:"c-light-black mt20"},dt==null?void 0:dt.human_training_time_rules)),$e.createElement("li",null,$e.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",$e.createElement("i",{onClick:jn=>{jn.stopPropagation(),jn.preventDefault(),Ir(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),$e.createElement("div",{className:"c-light-black mt20"},dt.time_consuming)),$e.createElement("li",null,$e.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),$e.createElement("div",{className:"mt20"},dt.evaluate_count)),(dt==null?void 0:dt.eff_score_full)&&$e.createElement($e.Fragment,null,$e.createElement("li",null,$e.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),$e.createElement("div",{className:"mt20"},$e.createElement("span",{className:"c-orange"},dt.challenge_score),"/",$e.createElement("span",{className:"c-light-black"},dt.challenge_score_full))),$e.createElement("li",null,$e.createElement("strong",null,"\u6548\u7387\u5206"),$e.createElement("div",{className:"mt20"},$e.createElement("span",{className:"c-orange"},dt.eff_score),"/",$e.createElement("span",{className:"c-light-black"},dt.eff_score_full)))),(dt==null?void 0:dt.have_repeat)&&(dt==null?void 0:dt.repeat_minus_score)!==0&&$e.createElement("li",{style:{position:"relative"}},$e.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},$e.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),$e.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},dt!=null&&dt.review_rate?$e.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(dt!=null&&dt.review_id&&Ai)localStorage.setItem("studentDetial",window.location.pathname),Ve.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${Ke.categoryId}/review_detail/${dt==null?void 0:dt.review_id}`});else return}},dt.review_rate.toFixed(1),"%"):$e.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),Ai?$e.createElement("div",{className:"mt20"},$e.createElement(Le.default,{style:{width:"45px",height:"22px"},value:Xr,onChange:jn=>{ga(jn)},onBlur:pa,disabled:ri})," / ",dt==null?void 0:dt.repeat_setting_score):$e.createElement("div",{className:"mt20"},dt==null?void 0:dt.repeat_minus_score," / ",dt==null?void 0:dt.repeat_setting_score)),console.log("sssssssssssssssssssssss",dt==null?void 0:dt.have_repeat,dt==null?void 0:dt.repeat_minus_score),(dt==null?void 0:dt.have_repeat)&&(dt==null?void 0:dt.repeat_minus_score)===0&&$e.createElement("li",null,$e.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),$e.createElement("div",{className:"mt20"}," - -")),!(dt!=null&&dt.have_repeat)&&$e.createElement("li",null,$e.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),$e.createElement("div",{className:"mt20"}," - -")),$e.createElement("li",null,$e.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),$e.createElement("div",{className:"mt20"},$e.createElement("span",null,dt.late_penalty||"- -"))),$e.createElement("li",null,$e.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),$e.createElement("div",{className:"mt20"},$e.createElement("span",{className:"c-orange"},ei),"/",$e.createElement("span",{className:"c-light-black"},dt.all_work_score))),$e.createElement("li",null,$e.createElement("strong",null,"\u603B\u8BC4"),$e.createElement("div",{className:"mt20"},$e.createElement("span",{className:"c-orange"},dt.overall_appraisal))))),$e.createElement(We.Z,{style:{margin:0}}),(dt.work_comment_hidden||dt.work_comment)&&$e.createElement("div",null,$e.createElement(Ce.Z,{align:"middle"},$e.createElement(st.Z,{flex:1},$e.createElement("h1",{className:Ye.title},"\u70B9\u8BC4\u5185\u5BB9")),$e.createElement(st.Z,{className:"pr30"},(0,He.GJ)()&&$e.createElement(nt.ZP,{onClick:()=>or(void 0,null,function*(){Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:$e.createElement(Ne.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return or(this,null,function*(){(yield(0,$t.gZ)({comment_id:dt.comment_id,homeworkId:Ke.homeworkId})).status===0&&(Se.ZP.success("\u5220\u9664\u6210\u529F"),ir({type:"shixunHomeworks/getShixunWorkReport",payload:_n(_n({},Ke),Vr.current||{})}))})}})})},$e.createElement(Me.Z,null),"\u5220\u9664"))),$e.createElement(We.Z,{style:{margin:0}}),dt.work_comment&&$e.createElement("aside",{className:"pl30 pr30 mt20"},$e.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),$e.createElement("br",null),$e.createElement(we.Z,{value:dt.work_comment})),dt.work_comment_hidden&&$e.createElement("aside",{className:"pl30 pr30 mt20"},$e.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),$e.createElement("br",null),$e.createElement(we.Z,{value:dt.work_comment_hidden}))),(dt==null?void 0:dt.action_analysis)&&$e.createElement(Wr,{detailData:dt}),$e.createElement("div",{className:Ye.score},$e.createElement("h1",{className:Ye.title},"\u9636\u6BB5\u6210\u7EE9"),(dt==null?void 0:dt.adjust_review_score_count)>0&&(0,He.GJ)()&&$e.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{oi(!0),Yi({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",dt==null?void 0:dt.adjust_review_score_count,"\u6B21\uFF09")),$e.createElement("aside",{className:"pl30 pr30"},$e.createElement(ut.default,{dataSource:dt.stage_list,rowKey:jn=>jn==null?void 0:jn.challenge_id,pagination:!1,columns:Si})),(($r=dt==null?void 0:dt.target_test_sets)==null?void 0:$r.length)>0&&$e.createElement("div",null,$e.createElement("h1",{className:Ye.title},"\u6307\u6807\u6210\u7EE9"),$e.createElement("aside",{className:"pl30 pr30"},$e.createElement(ut.default,{dataSource:Ln,rowKey:jn=>jn==null?void 0:jn.challenge_id,pagination:!1,bordered:!0,columns:Hi}))),(dt==null?void 0:dt.work_description)&&$e.createElement($e.Fragment,null,$e.createElement("h1",{className:Ye.title},"\u4E2A\u4EBA\u603B\u7ED3"),$e.createElement("aside",{className:"pl30 pr30"},$e.createElement(we.Z,{value:dt==null?void 0:dt.work_description}))),$e.createElement("h1",{className:Ye.title},"\u56FE\u5F62\u7EDF\u8BA1"),$e.createElement(vt,{data:Qn}),(dt==null?void 0:dt.is_open_submit_test_result)&&$e.createElement($e.Fragment,null,$e.createElement($n.Z,null),$e.createElement("h1",{className:Ye.title},"\u5B9E\u9A8C\u7ED3\u679C"),((ui=dt==null?void 0:dt.student_work_test_result_infos)==null?void 0:ui.length)>0?(ai=dt==null?void 0:dt.student_work_test_result_infos)==null?void 0:ai.map(jn=>{var ti,bi;return $e.createElement("div",{style:{marginTop:10},className:"px-30px"},((ti=jn==null?void 0:jn.challenge)==null?void 0:ti.subject)&&$e.createElement("div",{style:{marginBottom:5}},$e.createElement("span",{className:Ye.fa},$e.createElement("span",{className:"fa fa-code"})),$e.createElement("strong",{className:"c-black"}," ",$e.createElement("a",{className:"c-black",target:"_blank"},(bi=jn==null?void 0:jn.challenge)==null?void 0:bi.subject))),$e.createElement("div",{className:"py-20px px-36px",style:{background:"#F6F7F9"}},$e.createElement("div",{ref:ca,style:{maxHeight:!Ei&&"500px",overflow:"hidden"}},$e.createElement(we.Z,{value:jn==null?void 0:jn.content})),Da&&$e.createElement("div",{className:"w-full current",onClick:()=>{Ti(!Ei)}},$e.createElement(We.Z,{variant:"dashed",style:{borderColor:"#3061D0",marginBottom:"0px"},dashed:!0},$e.createElement("span",{style:{color:"#3061D0"}},Ei?"\u6536\u8D77":"\u5C55\u5F00")))),$e.createElement(Ur.Z,{className:"px-36px",showDimensions:!1,dataSource:jn==null?void 0:jn.test_result_files,callback:()=>{}}))}):$e.createElement(qr.Z,{customText:"\u5B66\u751F\u672A\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"})),$e.createElement("h1",{className:Ye.title},"\u5B9E\u8BAD\u8BE6\u60C5")),$e.createElement(vn,{autoHeight:nn}))),(0,He.GJ)()&&$e.createElement("aside",{className:`${Ye.footerBar} ${Zn?Ye.footerBarStatic:""}`},$e.createElement("aside",{className:"edu-container"},$e.createElement(Ce.Z,{align:"middle"},$e.createElement(st.Z,{flex:"1"},$e.createElement(Ve.Link,{className:Ye.exitComment,to:`/classrooms/${Ke.coursesId}/shixun_homework/${Ke.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),$e.createElement(st.Z,{flex:"1",className:"tr"},$e.createElement(nt.ZP,{type:"default",disabled:!(dt!=null&&dt.pre_student_work_id),onClick:()=>Li()},"\u4E0A\u4E00\u4E2A"),$e.createElement(nt.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(dt!=null&&dt.next_student_work_id),onClick:()=>Li("next")},"\u4E0B\u4E00\u4E2A"),(0,He.GJ)()&&$e.createElement(nt.ZP,{type:"primary",onClick:()=>or(void 0,null,function*(){ir({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:dt.user_id,data:_n({},dt)},fn:()=>Yi({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),$e.createElement(mn,null),$e.createElement(zn.Z,null),$e.createElement(Ue.default,{open:br,width:860,centered:!0,onCancel:()=>{vr(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},$e.createElement("div",{style:{color:"#333333",fontWeight:400}},$e.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),$e.createElement("br",null),$e.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"),$e.createElement("br",null),$e.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"),$e.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 "),$e.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")),$e.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},$e.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),$e.createElement("br",null),$e.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 "),$e.createElement("br",null),$e.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"),$e.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 "),$e.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"),$e.createElement("br",null),$e.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")),$e.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},$e.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),$e.createElement("br",null),$e.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")),$e.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},$e.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),$e.createElement("br",null),$e.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"))),$e.createElement(Ue.default,{open:zr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Ir(!1)},width:600},$e.createElement("div",{style:{fontWeight:400,color:"#333333"}},$e.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",$e.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"),$e.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",$e.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"),$e.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",$e.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"))),$e.createElement(Ue.default,{open:ii,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{nr("all"),oi(!1)},destroyOnClose:!0,width:900},$e.createElement("div",{style:{fontWeight:400,color:"#333333"}},$e.createElement("div",null,$e.createElement("span",null,"\u5173\u5361\uFF1A"),$e.createElement(Ge.default,{style:{width:300},value:un,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:jn=>or(void 0,null,function*(){nr(jn),Yi({page:1,page_size:10},jn)})},$e.createElement(Ge.default.Option,{value:"all"}," \u5168\u90E8 "),(Ci=dt==null?void 0:dt.stage_list)==null?void 0:Ci.map((jn,ti)=>$e.createElement(Ge.default.Option,{key:ti,value:jn==null?void 0:jn.challenge_id},"\u7B2C",(0,tt.EM)(ti+1),"\u5173")))),$e.createElement("div",{className:"mt20"},$e.createElement(ut.default,{dataSource:Ht,rowKey:jn=>jn==null?void 0:jn.id,pagination:!1,columns:Xi,loading:Rt})),$e.createElement("div",{className:Ye.footer},$e.createElement("div",null,$e.createElement("span",{style:{color:"#656F87"}},"\u5171",$e.createElement("span",{className:"c-light-primary"},hn),"\u6761\u6570\u636E")),$e.createElement(qe.Z,{defaultCurrent:1,defaultPageSize:10,current:(Et==null?void 0:Et.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:hn,onChange:ea})))))};var Hn=(0,Ve.connect)(({shixunHomeworks:xt,classroomList:Ft,loading:gn,globalSetting:Mn,user:wr})=>({shixunHomeworks:xt,classroomList:Ft,globalSetting:Mn,loading:gn.effects,user:wr}))(xr)},52217:function(xn,yt,ce){"use strict";var te=ce(62957),Ze=ce(6767),Te=ce(38147),Xe=ce(65582),ke=ce(41867),ge=ce(59301),Ve=(Se,ye,Je)=>new Promise((Ce,st)=>{var nt=Le=>{try{We(Je.next(Le))}catch(ut){st(ut)}},it=Le=>{try{We(Je.throw(Le))}catch(ut){st(ut)}},We=Le=>Le.done?Ce(Le.value):Promise.resolve(Le.value).then(nt,it);We((Je=Je.apply(Se,ye)).next())});const Ue=({shixunHomeworks:Se,classroomList:ye,dispatch:Je})=>{const Ce=(0,Xe.useParams)();return ge.createElement(te.default,{centered:!0,title:"\u63D0\u793A",open:Se.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ve(void 0,null,function*(){var st,nt,it,We;if((0,ke.Rm)()&&!((st=ye.AssistantObject.practice)!=null&&st.can_redo)){Ze.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,Te.ZP)(`/api/myshixuns/${Se.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Ce.coursesId,homework_common_id:Se.actionTabs.homework_common_id}});if(Le.shixun_identifier){Ze.ZP.success("\u64CD\u4F5C\u6210\u529F"),Je({type:"shixunHomeworks/setActionTabs",payload:{}});const ut=(it=(nt=Le==null?void 0:Le.new_works)==null?void 0:nt.find(Ge=>`${Ge.homework_common_id}`===Ce.categoryId))==null?void 0:it.id;if((0,ke.Rm)()&&!((We=ye.AssistantObject.practice)!=null&&We.can_view))return;Xe.history.replace(`/classrooms/${Ce.coursesId}/shixun_homework/${Ce.categoryId}/${ut}/comment`)}}),onCancel:()=>{Je({type:"shixunHomeworks/setActionTabs",payload:{}})}},ge.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),ge.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};yt.Z=(0,Xe.connect)(({shixunHomeworks:Se,classroomList:ye})=>({shixunHomeworks:Se,classroomList:ye}))(Ue)},84454:function(xn,yt,ce){"use strict";ce.d(yt,{AD:function(){return vt},BA:function(){return _e},D9:function(){return Ot},Hp:function(){return Ne},IM:function(){return dn},Iy:function(){return rt},KM:function(){return Pt},KU:function(){return Yn},MJ:function(){return Me},Ne:function(){return Fn},ON:function(){return mt},Uj:function(){return zt},VY:function(){return rn},YO:function(){return bt},YX:function(){return ht},Zn:function(){return it},_g:function(){return qe},_k:function(){return ze},c6:function(){return wt},cr:function(){return We},eV:function(){return at},fi:function(){return Le},gh:function(){return gt},hS:function(){return Ct},iA:function(){return ut},j6:function(){return Qe},je:function(){return pn},jj:function(){return xe},kS:function(){return Dt},lS:function(){return An},o6:function(){return Ye},pO:function(){return Bt},rQ:function(){return Vt},sA:function(){return tt},xm:function(){return Fe},xo:function(){return en},y8:function(){return Jt},yd:function(){return Ge}});var te=ce(33270),Ze=ce(65582),Te=ce(65862),Xe=ce(6767),ke=ce(74128),ge=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,ye=(se,fe,Ie)=>fe in se?ge(se,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):se[fe]=Ie,Je=(se,fe)=>{for(var Ie in fe||(fe={}))Ue.call(fe,Ie)&&ye(se,Ie,fe[Ie]);if(Ve)for(var Ie of Ve(fe))Se.call(fe,Ie)&&ye(se,Ie,fe[Ie]);return se},Ce=(se,fe,Ie)=>new Promise((Be,pt)=>{var Mt=oe=>{try{he(Ie.next(oe))}catch(re){pt(re)}},sn=oe=>{try{he(Ie.throw(oe))}catch(re){pt(re)}},he=oe=>oe.done?Be(oe.value):Promise.resolve(oe.value).then(Mt,sn);he((Ie=Ie.apply(se,fe)).next())});const st=()=>{(0,Ze.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},nt=()=>{(0,Ze.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},it=se=>Ce(void 0,null,function*(){st(),(yield(0,te.YR)(Je({},se))).status===0&&(yield(0,Te.QH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/courses/${se.coursesId}/export_couser_info.json`,query:se}))),nt()}),We=se=>Ce(void 0,null,function*(){const fe=yield(0,te.yS)(Je({},se));if(fe.status===0)Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_member_act_score`);else{if(fe.status===-2)return fe;fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_member_act_score`))}}),Le=se=>Ce(void 0,null,function*(){const fe=yield(0,te.W0)(Je({},se));if(fe.status===0)Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_score`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_score`))}}),ut=se=>Ce(void 0,null,function*(){const fe=yield(0,te.Nl)(Je({},se));if(fe.status===0)Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`))}}),Ge=se=>Ce(void 0,null,function*(){const fe=yield(0,te.IU)(Je({},se));if(fe.status===0)Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/export_star_user`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/export_star_user`))}}),qe=se=>Ce(void 0,null,function*(){const fe=yield(0,te.td)(Je({},se));if(fe.status===0)Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_exercise_and_other`);else{if(fe.status===-2)return fe;if(fe.status===-3)(0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.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)(Je({},se));if(fe.status===0)Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_homework`);else{if(fe.status===-4)return fe;fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/course_total_homework`))}}),xe=(se,fe)=>Ce(void 0,null,function*(){const Ie=yield(0,te.o_)(Je({},se));Ie.status===0?(Xe.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"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ie.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),Ne=(se,fe)=>Ce(void 0,null,function*(){const Ie=yield(0,te.ZL)(Je({},se));Ie.status===0?(Xe.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"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ie.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),Me=(se,fe)=>Ce(void 0,null,function*(){const Ie=yield(0,te.vV)(Je({},se));Ie.status===0?(Xe.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"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ie.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),rt=(se,fe)=>Ce(void 0,null,function*(){const Ie=yield(0,te.aP)(Je({},se));Ie.status===0?(Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`)):Ie.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/${fe}`))}),He=se=>Ce(void 0,null,function*(){st(),(yield exportCourseWorkListAppendix(Je({},se))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${se.categoryId}/works_list.zip`,query:se}))),nt()}),tt=se=>Ce(void 0,null,function*(){st(),yield(0,Te.FH)("",ke.Z.API_SERVER+`/api/polls/${se.categoryId}/commit_result.xlsx`),nt()}),gt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/courses/${se.coursesId}/attendances/export_xlsx_data.xlsx`,query:se}))}),Ye=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/courses/${se.coursesId}/video_study_statics.xlsx`,query:se}))}),wt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/courses/${se.coursesId}/export_video_study.xlsx`,query:se}))}),at=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/courses/${se.coursesId}/export_course_students_info.xlsx`,query:se}))}),vt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/school_manages/students.xlsx",query:se}))}),Vt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/item_banks/export.xlsx",query:se}))}),Jt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:se}))}),pn=se=>Ce(void 0,null,function*(){const fe=yield(0,te.Uy)(Je({},se));fe.status===0?(Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_users`)):fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_users`))}),An=se=>Ce(void 0,null,function*(){const fe=yield(0,te.tg)(Je({},se));fe.status===0?(Xe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_report`)):fe.status===-3&&((0,Ze.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ze.history.push(`/classrooms/${se.coursesId}/exportlist/exercise_score,export_exercise_report`))}),ze=se=>Ce(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/export_records/${se.id}.xlsx`,query:se}))}),Fe=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:se}))}),Ot=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.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,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/ec_years/${se==null?void 0:se.ec_year_id}/ec_training_objectives.xlsx`,query:se}))}),dn=se=>Ce(void 0,null,function*(){yield(0,Te.FH)(se==null?void 0:se.name,(0,Te.NY)({url:ke.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:se}))}),Ct=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/ec_years/${se==null?void 0:se.ec_year_id}/ec_courses.xlsx`,query:se}))}),en=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/ec_years/${se==null?void 0:se.ec_year_id}/ec_graduation_requirements.xlsx`,query:se}))}),rn=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:se}))}),Yn=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/exercises/${se.categoryId}/rank_list.xlsx`,query:se}))}),Dt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:se}))}),mt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/examination_banks/${se.id}.json`,query:se}))}),ht=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/exercises/${se.categoryId}.json`,query:se}))}),bt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.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,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+"/api/paths/get_task_pass.json",query:se}))}),Bt=(se,fe)=>Ce(void 0,null,function*(){yield(0,Te.FH)(fe||"",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/exercises/${se==null?void 0:se.exercise_id}/consult_exercise.json`,query:se}))}),Pt=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/competitions/${se==null?void 0:se.identifier}/competition_commit_records/member_works.xlsx`,query:se}))}),_e=se=>Ce(void 0,null,function*(){yield(0,Te.FH)("",(0,Te.NY)({url:ke.Z.API_SERVER+`/api/courses/${se==null?void 0:se.coursesId}/group_homeworks/import_group_template.xlsx`,query:se}))})},61527:function(xn,yt,ce){"use strict";ce.d(yt,{U:function(){return Se}});var te=ce(59301),Ze=Object.defineProperty,Te=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,ge=(ye,Je,Ce)=>Je in ye?Ze(ye,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):ye[Je]=Ce,Ve=(ye,Je)=>{for(var Ce in Je||(Je={}))Xe.call(Je,Ce)&&ge(ye,Ce,Je[Ce]);if(Te)for(var Ce of Te(Je))ke.call(Je,Ce)&&ge(ye,Ce,Je[Ce]);return ye},Ue=(ye,Je,Ce)=>new Promise((st,nt)=>{var it=ut=>{try{Le(Ce.next(ut))}catch(Ge){nt(Ge)}},We=ut=>{try{Le(Ce.throw(ut))}catch(Ge){nt(Ge)}},Le=ut=>ut.done?st(ut.value):Promise.resolve(ut.value).then(it,We);Le((Ce=Ce.apply(ye,Je)).next())});function Se(ye,Je){const[Ce,st]=(0,te.useState)(Je),[nt,it]=(0,te.useState)(!1),[We,Le]=(0,te.useState)();return[Ce,nt,(Ge,qe=!1)=>Ue(this,null,function*(){const Qe=qe?Je:Ve(Ve({},Ce),Ge);it(!0),st(Qe);const xe=yield ye(Qe);return it(!1),Le(xe),xe}),We,Le]}},49142:function(xn,yt,ce){"use strict";ce.d(yt,{AL:function(){return Qe},Iy:function(){return Je},Qv:function(){return nt},ez:function(){return qe},jb:function(){return Ce}});var te=ce(32834),Ze=ce.n(te),Te=ce(11690),Xe=ce.n(Te);let ke=1;function ge(He,tt){const gt=He.match(/^(\s+)(?:```)/);if(gt===null)return tt;const Ye=gt[1];return tt.split(` `).map(wt=>{const at=wt.match(/^\s+/);if(at===null)return wt;const[vt]=at;return vt.length>=Ye.length?wt.slice(Ye.length):wt}).join(` `)}let Ve=[],Ue=["
    "];const Se=new(Ze()).Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Ve.length=0,Ue=["
      "]}const Ce={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function st(He,tt,gt,Ye){if(tt>=He.length||He[tt].level<=gt)return tt;var wt=He[tt];Ye.push("
    • "+wt.text+""),tt++;var at=[];return tt=st(He,tt,wt.level,at),at.length>0&&(Ye.push("
        "),at.forEach(function(vt){Ye.push(vt)}),Ye.push("
      ")),Ye.push("
    • "),tt=st(He,tt,gt,Ye),tt}function nt(){return st(Ve,0,0,Ue),Ue.push("
    "),Ue.join("")}const it={heading(He){const tt=ye.exec(He);if(ke+=1,tt)return{type:"heading",raw:tt[0],depth:tt[1].length,text:tt[2]}},fences(He){const tt=this.rules.block.fences.exec(He);if(tt){const gt=tt[0];let Ye=ge(gt,tt[3]||"");const wt=tt[2]?tt[2].trim():tt[2];if(["latex","katex","math"].indexOf(wt)>=0){const at=ut(),vt=Ye;Ye=at,Ge[at]={type:"block",expression:vt}}return{type:"code",raw:gt,lang:wt,text:Ye}}}},We=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Le=0;const ut=()=>`__special_katext_id_${Le++}__`;let Ge={};function qe(){return Ge}function Qe(){Le=0,Ge={}}function xe(He){return He=He.replace(We,(tt,gt)=>{const Ye=ut();return Ge[Ye]={type:"inline",expression:gt},Ye}),He}const Ne=Se.listitem;Se.listitem=function(He){return Ne(xe(He))};const Me=Se.paragraph;Se.paragraph=function(He){return Me(xe(He))};const rt=Se.tablecell;Se.tablecell=function(He,tt){return rt(xe(He),tt)},Se.code=function(He,tt,gt){const Ye=(tt||"").match(/\S*/)[0];return Ye?["latex","katex","math"].indexOf(Ye)>=0?`

    ${He}

    `:`
    ${gt?He:(0,Te.escape)(He,!0)}
    `:'
    '+(gt?He:(0,Te.escape)(He,!0))+"
    "},Se.heading=function(He,tt,gt){let Ye=this.options.headerPrefix+gt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ve.push({anchor:Ye,level:tt,text:He}),"'+He+""},Ze().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ze().use({tokenizer:it,renderer:Se}),yt.ZP=Ze()},86251:function(xn,yt){"use strict";yt.byteLength=Ve,yt.toByteArray=Se,yt.fromByteArray=Ce;for(var ce=[],te=[],Ze=typeof Uint8Array!="undefined"?Uint8Array:Array,Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=0,ke=Te.length;Xe0)throw new Error("Invalid string. Length must be a multiple of 4");var it=st.indexOf("=");it===-1&&(it=nt);var We=it===nt?0:4-it%4;return[it,We]}function Ve(st){var nt=ge(st),it=nt[0],We=nt[1];return(it+We)*3/4-We}function Ue(st,nt,it){return(nt+it)*3/4-it}function Se(st){var nt,it=ge(st),We=it[0],Le=it[1],ut=new Ze(Ue(st,We,Le)),Ge=0,qe=Le>0?We-4:We,Qe;for(Qe=0;Qe>16&255,ut[Ge++]=nt>>8&255,ut[Ge++]=nt&255;return Le===2&&(nt=te[st.charCodeAt(Qe)]<<2|te[st.charCodeAt(Qe+1)]>>4,ut[Ge++]=nt&255),Le===1&&(nt=te[st.charCodeAt(Qe)]<<10|te[st.charCodeAt(Qe+1)]<<4|te[st.charCodeAt(Qe+2)]>>2,ut[Ge++]=nt>>8&255,ut[Ge++]=nt&255),ut}function ye(st){return ce[st>>18&63]+ce[st>>12&63]+ce[st>>6&63]+ce[st&63]}function Je(st,nt,it){for(var We,Le=[],ut=nt;utqe?qe:Ge+ut));return We===1?(nt=st[it-1],Le.push(ce[nt>>2]+ce[nt<<4&63]+"==")):We===2&&(nt=(st[it-2]<<8)+st[it-1],Le.push(ce[nt>>10]+ce[nt>>4&63]+ce[nt<<2&63]+"=")),Le.join("")}},19208:function(xn,yt,ce){"use strict";var te;var Ze=ce(86251),Te=ce(67467),Xe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;yt.lW=Ue,te=Ge,yt.h2=50;var ke=2147483647;te=ke,Ue.TYPED_ARRAY_SUPPORT=ge(),!Ue.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 ge(){try{var _e=new Uint8Array(1),se={foo:function(){return 42}};return Object.setPrototypeOf(se,Uint8Array.prototype),Object.setPrototypeOf(_e,se),_e.foo()===42}catch(fe){return!1}}Object.defineProperty(Ue.prototype,"parent",{enumerable:!0,get:function(){if(Ue.isBuffer(this))return this.buffer}}),Object.defineProperty(Ue.prototype,"offset",{enumerable:!0,get:function(){if(Ue.isBuffer(this))return this.byteOffset}});function Ve(_e){if(_e>ke)throw new RangeError('The value "'+_e+'" is invalid for option "size"');var se=new Uint8Array(_e);return Object.setPrototypeOf(se,Ue.prototype),se}function Ue(_e,se,fe){if(typeof _e=="number"){if(typeof se=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ce(_e)}return Se(_e,se,fe)}Ue.poolSize=8192;function Se(_e,se,fe){if(typeof _e=="string")return st(_e,se);if(ArrayBuffer.isView(_e))return it(_e);if(_e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e);if(zt(_e,ArrayBuffer)||_e&&zt(_e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zt(_e,SharedArrayBuffer)||_e&&zt(_e.buffer,SharedArrayBuffer)))return We(_e,se,fe);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ie=_e.valueOf&&_e.valueOf();if(Ie!=null&&Ie!==_e)return Ue.from(Ie,se,fe);var Be=Le(_e);if(Be)return Be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return Ue.from(_e[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 _e)}Ue.from=function(_e,se,fe){return Se(_e,se,fe)},Object.setPrototypeOf(Ue.prototype,Uint8Array.prototype),Object.setPrototypeOf(Ue,Uint8Array);function ye(_e){if(typeof _e!="number")throw new TypeError('"size" argument must be of type number');if(_e<0)throw new RangeError('The value "'+_e+'" is invalid for option "size"')}function Je(_e,se,fe){return ye(_e),_e<=0?Ve(_e):se!==void 0?typeof fe=="string"?Ve(_e).fill(se,fe):Ve(_e).fill(se):Ve(_e)}Ue.alloc=function(_e,se,fe){return Je(_e,se,fe)};function Ce(_e){return ye(_e),Ve(_e<0?0:ut(_e)|0)}Ue.allocUnsafe=function(_e){return Ce(_e)},Ue.allocUnsafeSlow=function(_e){return Ce(_e)};function st(_e,se){if((typeof se!="string"||se==="")&&(se="utf8"),!Ue.isEncoding(se))throw new TypeError("Unknown encoding: "+se);var fe=qe(_e,se)|0,Ie=Ve(fe),Be=Ie.write(_e,se);return Be!==fe&&(Ie=Ie.slice(0,Be)),Ie}function nt(_e){for(var se=_e.length<0?0:ut(_e.length)|0,fe=Ve(se),Ie=0;Ie=ke)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ke.toString(16)+" bytes");return _e|0}function Ge(_e){return+_e!=_e&&(_e=0),Ue.alloc(+_e)}Ue.isBuffer=function(se){return se!=null&&se._isBuffer===!0&&se!==Ue.prototype},Ue.compare=function(se,fe){if(zt(se,Uint8Array)&&(se=Ue.from(se,se.offset,se.byteLength)),zt(fe,Uint8Array)&&(fe=Ue.from(fe,fe.offset,fe.byteLength)),!Ue.isBuffer(se)||!Ue.isBuffer(fe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(se===fe)return 0;for(var Ie=se.length,Be=fe.length,pt=0,Mt=Math.min(Ie,Be);ptBe.length?Ue.from(Mt).copy(Be,pt):Uint8Array.prototype.set.call(Be,Mt,pt);else if(Ue.isBuffer(Mt))Mt.copy(Be,pt);else throw new TypeError('"list" argument must be an Array of Buffers');pt+=Mt.length}return Be};function qe(_e,se){if(Ue.isBuffer(_e))return _e.length;if(ArrayBuffer.isView(_e)||zt(_e,ArrayBuffer))return _e.byteLength;if(typeof _e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _e);var fe=_e.length,Ie=arguments.length>2&&arguments[2]===!0;if(!Ie&&fe===0)return 0;for(var Be=!1;;)switch(se){case"ascii":case"latin1":case"binary":return fe;case"utf8":case"utf-8":return Yn(_e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe*2;case"hex":return fe>>>1;case"base64":return ht(_e).length;default:if(Be)return Ie?-1:Yn(_e).length;se=(""+se).toLowerCase(),Be=!0}}Ue.byteLength=qe;function Qe(_e,se,fe){var Ie=!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(_e||(_e="utf8");;)switch(_e){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 pn(this,se,fe);case"base64":return wt(this,se,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ze(this,se,fe);default:if(Ie)throw new TypeError("Unknown encoding: "+_e);_e=(_e+"").toLowerCase(),Ie=!0}}Ue.prototype._isBuffer=!0;function xe(_e,se,fe){var Ie=_e[se];_e[se]=_e[fe],_e[fe]=Ie}Ue.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+=" ... "),""},Xe&&(Ue.prototype[Xe]=Ue.prototype.inspect),Ue.prototype.compare=function(se,fe,Ie,Be,pt){if(zt(se,Uint8Array)&&(se=Ue.from(se,se.offset,se.byteLength)),!Ue.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),Ie===void 0&&(Ie=se?se.length:0),Be===void 0&&(Be=0),pt===void 0&&(pt=this.length),fe<0||Ie>se.length||Be<0||pt>this.length)throw new RangeError("out of range index");if(Be>=pt&&fe>=Ie)return 0;if(Be>=pt)return-1;if(fe>=Ie)return 1;if(fe>>>=0,Ie>>>=0,Be>>>=0,pt>>>=0,this===se)return 0;for(var Mt=pt-Be,sn=Ie-fe,he=Math.min(Mt,sn),oe=this.slice(Be,pt),re=se.slice(fe,Ie),de=0;de2147483647?fe=2147483647:fe<-2147483648&&(fe=-2147483648),fe=+fe,Bt(fe)&&(fe=Be?0:_e.length-1),fe<0&&(fe=_e.length+fe),fe>=_e.length){if(Be)return-1;fe=_e.length-1}else if(fe<0)if(Be)fe=0;else return-1;if(typeof se=="string"&&(se=Ue.from(se,Ie)),Ue.isBuffer(se))return se.length===0?-1:Me(_e,se,fe,Ie,Be);if(typeof se=="number")return se=se&255,typeof Uint8Array.prototype.indexOf=="function"?Be?Uint8Array.prototype.indexOf.call(_e,se,fe):Uint8Array.prototype.lastIndexOf.call(_e,se,fe):Me(_e,[se],fe,Ie,Be);throw new TypeError("val must be string, number or Buffer")}function Me(_e,se,fe,Ie,Be){var pt=1,Mt=_e.length,sn=se.length;if(Ie!==void 0&&(Ie=String(Ie).toLowerCase(),Ie==="ucs2"||Ie==="ucs-2"||Ie==="utf16le"||Ie==="utf-16le")){if(_e.length<2||se.length<2)return-1;pt=2,Mt/=2,sn/=2,fe/=2}function he(le,Ee){return pt===1?le[Ee]:le.readUInt16BE(Ee*pt)}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&&(Ie=Be)):Ie=Be;var pt=se.length;Ie>pt/2&&(Ie=pt/2);for(var Mt=0;Mt>>0,isFinite(Ie)?(Ie=Ie>>>0,Be===void 0&&(Be="utf8")):(Be=Ie,Ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pt=this.length-fe;if((Ie===void 0||Ie>pt)&&(Ie=pt),se.length>0&&(Ie<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 rt(this,se,fe,Ie);case"utf8":case"utf-8":return He(this,se,fe,Ie);case"ascii":case"latin1":case"binary":return tt(this,se,fe,Ie);case"base64":return gt(this,se,fe,Ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,se,fe,Ie);default:if(Mt)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),Mt=!0}},Ue.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wt(_e,se,fe){return se===0&&fe===_e.length?Ze.fromByteArray(_e):Ze.fromByteArray(_e.slice(se,fe))}function at(_e,se,fe){fe=Math.min(_e.length,fe);for(var Ie=[],Be=se;Be239?4:pt>223?3:pt>191?2:1;if(Be+sn<=fe){var he,oe,re,de;switch(sn){case 1:pt<128&&(Mt=pt);break;case 2:he=_e[Be+1],(he&192)===128&&(de=(pt&31)<<6|he&63,de>127&&(Mt=de));break;case 3:he=_e[Be+1],oe=_e[Be+2],(he&192)===128&&(oe&192)===128&&(de=(pt&15)<<12|(he&63)<<6|oe&63,de>2047&&(de<55296||de>57343)&&(Mt=de));break;case 4:he=_e[Be+1],oe=_e[Be+2],re=_e[Be+3],(he&192)===128&&(oe&192)===128&&(re&192)===128&&(de=(pt&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,Ie.push(Mt>>>10&1023|55296),Mt=56320|Mt&1023),Ie.push(Mt),Be+=sn}return Vt(Ie)}var vt=4096;function Vt(_e){var se=_e.length;if(se<=vt)return String.fromCharCode.apply(String,_e);for(var fe="",Ie=0;IeIe)&&(fe=Ie);for(var Be="",pt=se;ptIe&&(se=Ie),fe<0?(fe+=Ie,fe<0&&(fe=0)):fe>Ie&&(fe=Ie),fefe)throw new RangeError("Trying to access beyond buffer length")}Ue.prototype.readUintLE=Ue.prototype.readUIntLE=function(se,fe,Ie){se=se>>>0,fe=fe>>>0,Ie||Fe(se,fe,this.length);for(var Be=this[se],pt=1,Mt=0;++Mt>>0,fe=fe>>>0,Ie||Fe(se,fe,this.length);for(var Be=this[se+--fe],pt=1;fe>0&&(pt*=256);)Be+=this[se+--fe]*pt;return Be},Ue.prototype.readUint8=Ue.prototype.readUInt8=function(se,fe){return se=se>>>0,fe||Fe(se,1,this.length),this[se]},Ue.prototype.readUint16LE=Ue.prototype.readUInt16LE=function(se,fe){return se=se>>>0,fe||Fe(se,2,this.length),this[se]|this[se+1]<<8},Ue.prototype.readUint16BE=Ue.prototype.readUInt16BE=function(se,fe){return se=se>>>0,fe||Fe(se,2,this.length),this[se]<<8|this[se+1]},Ue.prototype.readUint32LE=Ue.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},Ue.prototype.readUint32BE=Ue.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])},Ue.prototype.readIntLE=function(se,fe,Ie){se=se>>>0,fe=fe>>>0,Ie||Fe(se,fe,this.length);for(var Be=this[se],pt=1,Mt=0;++Mt=pt&&(Be-=Math.pow(2,8*fe)),Be},Ue.prototype.readIntBE=function(se,fe,Ie){se=se>>>0,fe=fe>>>0,Ie||Fe(se,fe,this.length);for(var Be=fe,pt=1,Mt=this[se+--Be];Be>0&&(pt*=256);)Mt+=this[se+--Be]*pt;return pt*=128,Mt>=pt&&(Mt-=Math.pow(2,8*fe)),Mt},Ue.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]},Ue.prototype.readInt16LE=function(se,fe){se=se>>>0,fe||Fe(se,2,this.length);var Ie=this[se]|this[se+1]<<8;return Ie&32768?Ie|4294901760:Ie},Ue.prototype.readInt16BE=function(se,fe){se=se>>>0,fe||Fe(se,2,this.length);var Ie=this[se+1]|this[se]<<8;return Ie&32768?Ie|4294901760:Ie},Ue.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},Ue.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]},Ue.prototype.readFloatLE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),Te.read(this,se,!0,23,4)},Ue.prototype.readFloatBE=function(se,fe){return se=se>>>0,fe||Fe(se,4,this.length),Te.read(this,se,!1,23,4)},Ue.prototype.readDoubleLE=function(se,fe){return se=se>>>0,fe||Fe(se,8,this.length),Te.read(this,se,!0,52,8)},Ue.prototype.readDoubleBE=function(se,fe){return se=se>>>0,fe||Fe(se,8,this.length),Te.read(this,se,!1,52,8)};function Ot(_e,se,fe,Ie,Be,pt){if(!Ue.isBuffer(_e))throw new TypeError('"buffer" argument must be a Buffer instance');if(se>Be||se_e.length)throw new RangeError("Index out of range")}Ue.prototype.writeUintLE=Ue.prototype.writeUIntLE=function(se,fe,Ie,Be){if(se=+se,fe=fe>>>0,Ie=Ie>>>0,!Be){var pt=Math.pow(2,8*Ie)-1;Ot(this,se,fe,Ie,pt,0)}var Mt=1,sn=0;for(this[fe]=se&255;++sn>>0,Ie=Ie>>>0,!Be){var pt=Math.pow(2,8*Ie)-1;Ot(this,se,fe,Ie,pt,0)}var Mt=Ie-1,sn=1;for(this[fe+Mt]=se&255;--Mt>=0&&(sn*=256);)this[fe+Mt]=se/sn&255;return fe+Ie},Ue.prototype.writeUint8=Ue.prototype.writeUInt8=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||Ot(this,se,fe,1,255,0),this[fe]=se&255,fe+1},Ue.prototype.writeUint16LE=Ue.prototype.writeUInt16LE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||Ot(this,se,fe,2,65535,0),this[fe]=se&255,this[fe+1]=se>>>8,fe+2},Ue.prototype.writeUint16BE=Ue.prototype.writeUInt16BE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||Ot(this,se,fe,2,65535,0),this[fe]=se>>>8,this[fe+1]=se&255,fe+2},Ue.prototype.writeUint32LE=Ue.prototype.writeUInt32LE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||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},Ue.prototype.writeUint32BE=Ue.prototype.writeUInt32BE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||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},Ue.prototype.writeIntLE=function(se,fe,Ie,Be){if(se=+se,fe=fe>>>0,!Be){var pt=Math.pow(2,8*Ie-1);Ot(this,se,fe,Ie,pt-1,-pt)}var Mt=0,sn=1,he=0;for(this[fe]=se&255;++Mt>0)-he&255;return fe+Ie},Ue.prototype.writeIntBE=function(se,fe,Ie,Be){if(se=+se,fe=fe>>>0,!Be){var pt=Math.pow(2,8*Ie-1);Ot(this,se,fe,Ie,pt-1,-pt)}var Mt=Ie-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+Ie},Ue.prototype.writeInt8=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||Ot(this,se,fe,1,127,-128),se<0&&(se=255+se+1),this[fe]=se&255,fe+1},Ue.prototype.writeInt16LE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||Ot(this,se,fe,2,32767,-32768),this[fe]=se&255,this[fe+1]=se>>>8,fe+2},Ue.prototype.writeInt16BE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||Ot(this,se,fe,2,32767,-32768),this[fe]=se>>>8,this[fe+1]=se&255,fe+2},Ue.prototype.writeInt32LE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||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},Ue.prototype.writeInt32BE=function(se,fe,Ie){return se=+se,fe=fe>>>0,Ie||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(_e,se,fe,Ie,Be,pt){if(fe+Ie>_e.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("Index out of range")}function dn(_e,se,fe,Ie,Be){return se=+se,fe=fe>>>0,Be||Fn(_e,se,fe,4,34028234663852886e22,-34028234663852886e22),Te.write(_e,se,fe,Ie,23,4),fe+4}Ue.prototype.writeFloatLE=function(se,fe,Ie){return dn(this,se,fe,!0,Ie)},Ue.prototype.writeFloatBE=function(se,fe,Ie){return dn(this,se,fe,!1,Ie)};function Ct(_e,se,fe,Ie,Be){return se=+se,fe=fe>>>0,Be||Fn(_e,se,fe,8,17976931348623157e292,-17976931348623157e292),Te.write(_e,se,fe,Ie,52,8),fe+8}Ue.prototype.writeDoubleLE=function(se,fe,Ie){return Ct(this,se,fe,!0,Ie)},Ue.prototype.writeDoubleBE=function(se,fe,Ie){return Ct(this,se,fe,!1,Ie)},Ue.prototype.copy=function(se,fe,Ie,Be){if(!Ue.isBuffer(se))throw new TypeError("argument should be a Buffer");if(Ie||(Ie=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,Ie=Ie===void 0?this.length:Ie>>>0,se||(se=0);var Mt;if(typeof se=="number")for(Mt=fe;Mt55295&&fe<57344){if(!Be){if(fe>56319){(se-=3)>-1&&pt.push(239,191,189);continue}else if(Mt+1===Ie){(se-=3)>-1&&pt.push(239,191,189);continue}Be=fe;continue}if(fe<56320){(se-=3)>-1&&pt.push(239,191,189),Be=fe;continue}fe=(Be-55296<<10|fe-56320)+65536}else Be&&(se-=3)>-1&&pt.push(239,191,189);if(Be=null,fe<128){if((se-=1)<0)break;pt.push(fe)}else if(fe<2048){if((se-=2)<0)break;pt.push(fe>>6|192,fe&63|128)}else if(fe<65536){if((se-=3)<0)break;pt.push(fe>>12|224,fe>>6&63|128,fe&63|128)}else if(fe<1114112){if((se-=4)<0)break;pt.push(fe>>18|240,fe>>12&63|128,fe>>6&63|128,fe&63|128)}else throw new Error("Invalid code point")}return pt}function Dt(_e){for(var se=[],fe=0;fe<_e.length;++fe)se.push(_e.charCodeAt(fe)&255);return se}function mt(_e,se){for(var fe,Ie,Be,pt=[],Mt=0;Mt<_e.length&&!((se-=2)<0);++Mt)fe=_e.charCodeAt(Mt),Ie=fe>>8,Be=fe%256,pt.push(Be),pt.push(Ie);return pt}function ht(_e){return Ze.toByteArray(rn(_e))}function bt(_e,se,fe,Ie){for(var Be=0;Be=se.length||Be>=_e.length);++Be)se[Be+fe]=_e[Be];return Be}function zt(_e,se){return _e instanceof se||_e!=null&&_e.constructor!=null&&_e.constructor.name!=null&&_e.constructor.name===se.name}function Bt(_e){return _e!==_e}var Pt=function(){for(var _e="0123456789abcdef",se=new Array(256),fe=0;fe<16;++fe)for(var Ie=fe*16,Be=0;Be<16;++Be)se[Ie+Be]=_e[fe]+_e[Be];return se}()},14625:function(xn){function yt(te){var Ze,Te,Xe="";if(typeof te=="string"||typeof te=="number")Xe+=te;else if(typeof te=="object")if(Array.isArray(te)){var ke=te.length;for(Ze=0;Ze`,triples:"",explode:"[]{}"},Te=te.Pos;te.defineOption("autoCloseBrackets",!1,function(it,We,Le){Le&&Le!=te.Init&&(it.removeKeyMap(ke),it.state.closeBrackets=null),We&&(ge(Xe(We,"pairs")),it.state.closeBrackets=We,it.addKeyMap(ke))});function Xe(it,We){return We=="pairs"&&typeof it=="string"?it:typeof it=="object"&&it[We]!=null?it[We]:Ze[We]}var ke={Backspace:Se,Enter:ye};function ge(it){for(var We=0;We=0;Ge--){var Qe=ut[Ge].head;it.replaceRange("",Te(Qe.line,Qe.ch-1),Te(Qe.line,Qe.ch+1),"+delete")}}function ye(it){var We=Ue(it),Le=We&&Xe(We,"explode");if(!Le||it.getOption("disableInput"))return te.Pass;for(var ut=it.listSelections(),Ge=0;Ge0;return{anchor:new Te(it.anchor.line,it.anchor.ch+(We?-1:1)),head:new Te(it.head.line,it.head.ch+(We?1:-1))}}function Ce(it,We){var Le=Ue(it);if(!Le||it.getOption("disableInput"))return te.Pass;var ut=Xe(Le,"pairs"),Ge=ut.indexOf(We);if(Ge==-1)return te.Pass;for(var qe=Xe(Le,"closeBefore"),Qe=Xe(Le,"triples"),xe=ut.charAt(Ge+1)==We,Ne=it.listSelections(),Me=Ge%2==0,rt,He=0;He=0&&it.getRange(gt,Te(gt.line,gt.ch+3))==We+We+We?Ye="skipThree":Ye="skip";else if(xe&>.ch>1&&Qe.indexOf(We)>=0&&it.getRange(Te(gt.line,gt.ch-2),gt)==We+We){if(gt.ch>2&&/\bstring/.test(it.getTokenTypeAt(Te(gt.line,gt.ch-2))))return te.Pass;Ye="addFour"}else if(xe){var at=gt.ch==0?" ":it.getRange(Te(gt.line,gt.ch-1),gt);if(!te.isWordChar(wt)&&at!=We&&!te.isWordChar(at))Ye="both";else return te.Pass}else if(Me&&(wt.length===0||/\s/.test(wt)||qe.indexOf(wt)>-1))Ye="both";else return te.Pass;if(!rt)rt=Ye;else if(rt!=Ye)return te.Pass}var vt=Ge%2?ut.charAt(Ge-1):We,Vt=Ge%2?We:ut.charAt(Ge+1);it.operation(function(){if(rt=="skip")it.execCommand("goCharRight");else if(rt=="skipThree")for(var Jt=0;Jt<3;Jt++)it.execCommand("goCharRight");else if(rt=="surround"){for(var pn=it.getSelections(),Jt=0;Jt'"]=function(st){return Xe(st)}),Se.addKeyMap(Ce)}});var Ze=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Te=["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 Xe(Se){if(Se.getOption("disableInput"))return te.Pass;for(var ye=Se.listSelections(),Je=[],Ce=Se.getOption("autoCloseTags"),st=0;stnt.ch&&(Ge=Ge.slice(0,Ge.length-it.end+nt.ch));var Ne=Ge.toLowerCase();if(!Ge||it.type=="string"&&(it.end!=nt.ch||!/[\"\']/.test(it.string.charAt(it.string.length-1))||it.string.length==1)||it.type=="tag"&&ut.close||it.string.indexOf("/")==nt.ch-it.start-1||Qe&&Ve(Qe,Ne)>-1||Ue(Se,We.mode.xmlCurrentContext&&We.mode.xmlCurrentContext(Le)||[],Ge,nt,!0))return te.Pass;var Me=typeof Ce=="object"&&Ce.emptyTags;if(Me&&Ve(Me,Ge)>-1){Je[st]={text:"/>",newPos:te.Pos(nt.line,nt.ch+2)};continue}var rt=xe&&Ve(xe,Ne)>-1;Je[st]={indent:rt,text:">"+(rt?` `:"")+"",newPos:rt?te.Pos(nt.line+1,0):te.Pos(nt.line,nt.ch+1)}}for(var He=typeof Ce=="object"&&Ce.dontIndentOnAutoClose,st=ye.length-1;st>=0;st--){var tt=Je[st];Se.replaceRange(tt.text,ye[st].head,ye[st].anchor,"+insert");var gt=Se.listSelections().slice(0);gt[st]={head:tt.newPos,anchor:tt.newPos},Se.setSelections(gt),!He&&tt.indent&&(Se.indentLine(tt.newPos.line,null,!0),Se.indentLine(tt.newPos.line+1,null,!0))}}function ke(Se,ye){for(var Je=Se.listSelections(),Ce=[],st=ye?"/":""&&(Qe+=">"),Ce[We]=Qe}if(Se.replaceSelections(Ce),Je=Se.listSelections(),!it)for(var We=0;We=0&&ye[Le]==Je;Le--)++We;Ce=it.to;for(var Le=1;Le=Le.max))return Le.ch=0,Le.text=Le.cm.getLine(++Le.line),!0}function ye(Le){if(!(Le.line<=Le.min))return Le.text=Le.cm.getLine(--Le.line),Le.ch=Le.text.length,!0}function Je(Le){for(;;){var ut=Le.text.indexOf(">",Le.ch);if(ut==-1){if(Se(Le))continue;return}if(!Ue(Le,ut+1)){Le.ch=ut+1;continue}var Ge=Le.text.lastIndexOf("/",ut),qe=Ge>-1&&!/\S/.test(Le.text.slice(Ge+1,ut));return Le.ch=ut+1,qe?"selfClose":"regular"}}function Ce(Le){for(;;){var ut=Le.ch?Le.text.lastIndexOf("<",Le.ch-1):-1;if(ut==-1){if(ye(Le))continue;return}if(!Ue(Le,ut+1)){Le.ch=ut;continue}ge.lastIndex=ut,Le.ch=ut;var Ge=ge.exec(Le.text);if(Ge&&Ge.index==ut)return Ge}}function st(Le){for(;;){ge.lastIndex=Le.ch;var ut=ge.exec(Le.text);if(!ut){if(Se(Le))continue;return}if(!Ue(Le,ut.index+1)){Le.ch=ut.index+1;continue}return Le.ch=ut.index+ut[0].length,ut}}function nt(Le){for(;;){var ut=Le.ch?Le.text.lastIndexOf(">",Le.ch-1):-1;if(ut==-1){if(ye(Le))continue;return}if(!Ue(Le,ut+1)){Le.ch=ut;continue}var Ge=Le.text.lastIndexOf("/",ut),qe=Ge>-1&&!/\S/.test(Le.text.slice(Ge+1,ut));return Le.ch=ut+1,qe?"selfClose":"regular"}}function it(Le,ut){for(var Ge=[];;){var qe=st(Le),Qe,xe=Le.line,Ne=Le.ch-(qe?qe[0].length:0);if(!qe||!(Qe=Je(Le)))return;if(Qe!="selfClose")if(qe[1]){for(var Me=Ge.length-1;Me>=0;--Me)if(Ge[Me]==qe[2]){Ge.length=Me;break}if(Me<0&&(!ut||ut==qe[2]))return{tag:qe[2],from:Ze(xe,Ne),to:Ze(Le.line,Le.ch)}}else Ge.push(qe[2])}}function We(Le,ut){for(var Ge=[];;){var qe=nt(Le);if(!qe)return;if(qe=="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 Me=Ge.length-1;Me>=0;--Me)if(Ge[Me]==Ne[2]){Ge.length=Me;break}if(Me<0&&(!ut||ut==Ne[2]))return{tag:Ne[2],from:Ze(Le.line,Le.ch),to:Ze(Qe,xe)}}}}te.registerHelper("fold","xml",function(Le,ut){for(var Ge=new Ve(Le,ut.line,0);;){var qe=st(Ge);if(!qe||Ge.line!=ut.line)return;var Qe=Je(Ge);if(!Qe)return;if(!qe[1]&&Qe!="selfClose"){var xe=Ze(Ge.line,Ge.ch),Ne=it(Ge,qe[2]);return Ne&&Te(Ne.from,xe)>0?{from:xe,to:Ne.from}:null}}}),te.findMatchingTag=function(Le,ut,Ge){var qe=new Ve(Le,ut.line,ut.ch,Ge);if(!(qe.text.indexOf(">")==-1&&qe.text.indexOf("<")==-1)){var Qe=Je(qe),xe=Qe&&Ze(qe.line,qe.ch),Ne=Qe&&Ce(qe);if(!(!Qe||!Ne||Te(qe,ut)>0)){var Me={from:Ze(qe.line,qe.ch),to:xe,tag:Ne[2]};return Qe=="selfClose"?{open:Me,close:null,at:"open"}:Ne[1]?{open:We(qe,Ne[2]),close:Me,at:"close"}:(qe=new Ve(Le,xe.line,xe.ch,Ge),{open:Me,close:it(qe,Ne[2]),at:"open"})}}},te.findEnclosingTag=function(Le,ut,Ge,qe){for(var Qe=new Ve(Le,ut.line,ut.ch,Ge);;){var xe=We(Qe,qe);if(!xe)break;var Ne=new Ve(Le,ut.line,ut.ch,Ge),Me=it(Ne,xe.tag);if(Me)return{open:xe,close:Me}}},te.scanForClosingTag=function(Le,ut,Ge,qe){var Qe=new Ve(Le,ut.line,ut.ch,qe?{from:0,to:qe}:null);return it(Qe,Ge)}})},89780:function(xn){(function(yt,ce){xn.exports=ce()})(this,function(){"use strict";var yt=navigator.userAgent,ce=navigator.platform,te=/gecko\/\d/i.test(yt),Ze=/MSIE \d/.test(yt),Te=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(yt),Xe=/Edge\/(\d+)/.exec(yt),ke=Ze||Te||Xe,ge=ke&&(Ze?document.documentMode||6:+(Xe||Te)[1]),Ve=!Xe&&/WebKit\//.test(yt),Ue=Ve&&/Qt\/\d+\.\d+/.test(yt),Se=!Xe&&/Chrome\//.test(yt),ye=/Opera\//.test(yt),Je=/Apple Computer/.test(navigator.vendor),Ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(yt),st=/PhantomJS/.test(yt),nt=!Xe&&/AppleWebKit/.test(yt)&&/Mobile\/\w+/.test(yt),it=/Android/.test(yt),We=nt||it||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(yt),Le=nt||/Mac/.test(ce),ut=/\bCrOS\b/.test(yt),Ge=/win/i.test(ce),qe=ye&&yt.match(/Version\/(\d*\.\d*)/);qe&&(qe=Number(qe[1])),qe&&qe>=15&&(ye=!1,Ve=!0);var Qe=Le&&(Ue||ye&&(qe==null||qe<12.11)),xe=te||ke&&ge>=9;function Ne(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Me=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 rt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function He(a,y){return rt(a).appendChild(y)}function tt(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=pn(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 mt(a){for(;Dt.length<=a;)Dt.push(ht(Dt)+" ");return Dt[a]}function ht(a){return a[a.length-1]}function bt(a,y){for(var E=[],x=0;x"\x80"&&(a.toUpperCase()!=a.toLowerCase()||_e.test(a))}function fe(a,y){return y?y.source.indexOf("\\w")>-1&&se(a)?!0:y.test(a):se(a)}function Ie(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 pt(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,Kt){this.level=je,this.from=Qt,this.to=Kt}return function(je,Qt){var Kt=Qt=="ltr"?"L":"R";if(je.length==0||Qt=="ltr"&&!x.test(je))return!1;for(var Un=je.length,bn=[],gr=0;gr-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 cn(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 sr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function vn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function dr(a){In(a),sr(a)}function cr(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 Jn=function(){if(ke&&ge<9)return!1;var a=tt("div");return"draggable"in a||"dragDrop"in a}(),Tr;function Pr(a){if(Tr==null){var y=tt("span","\u200B");He(a,tt("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Tr=y.offsetWidth<=1&&y.offsetHeight>2&&!(ke&&ge<8))}var E=Tr?tt("span","\u200B"):tt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var Er;function ur(a){if(Er!=null)return Er;var y=He(a,document.createTextNode("A\u062EA")),E=Ye(y,0,1).getBoundingClientRect(),x=Ye(y,1,2).getBoundingClientRect();return rt(a),!E||E.left==E.right?!1:Er=x.right-E.right<3}var Qr=` 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},rr=function(){var a=tt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),qn=null;function mn(a){if(qn!=null)return qn;var y=He(a,tt("span","x")),E=y.getBoundingClientRect(),x=Ye(y,0,1).getBoundingClientRect();return qn=Math.abs(E.left-x.left)>1}var zn={},$t={};function Sn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),zn[a]=y}function pr(a,y){$t[a]=y}function lr(a){if(typeof a=="string"&&$t.hasOwnProperty(a))a=$t[a];else if(a&&typeof a.name=="string"&&$t.hasOwnProperty(a.name)){var y=$t[a.name];typeof y=="string"&&(y={name:y}),a=Pt(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return lr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return lr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function fr(a,y){y=lr(y);var E=zn[y.name];if(!E)return fr(a,"text/plain");var x=E(a,y);if(Fr.hasOwnProperty(y.name)){var b=Fr[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 Fr={};function Wr(a,y){var E=Fr.hasOwnProperty(a)?Fr[a]:Fr[a]={};An(y,E)}function Dr(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 qr(a,y,E){return a.startState?a.startState(y,E):!0}var $n=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};$n.prototype.eol=function(){return this.pos>=this.string.length},$n.prototype.sol=function(){return this.pos==this.lineStart},$n.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$n.prototype.next=function(){if(this.posy},$n.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},$n.prototype.skipToEnd=function(){this.pos=this.string.length},$n.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},$n.prototype.backUp=function(a){this.pos-=a},$n.prototype.column=function(){return this.lastColumnPos0?null:(ue&&y!==!1&&(this.pos+=ue[0].length),ue)}},$n.prototype.current=function(){return this.string.slice(this.start,this.pos)},$n.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},$n.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},$n.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?Gt(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?Gt(a.line,y):E<0?Gt(a.line,0):a}function Ft(a,y){for(var E=[],x=0;xthis.maxLookAhead&&(this.maxLookAhead=a),y},Mn.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}},Mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Mn.fromSaved=function(a,y,E){return y instanceof gn?new Mn(a,Dr(a.mode,y.state),E,y.lookAhead):new Mn(a,Dr(a.mode,y),E)},Mn.prototype.save=function(a){var y=a!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gn(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],Kt=1,Un=0;E.state=!0,ai(a,y.text,Qt.mode,E,function(bn,gr){for(var Sr=Kt;Unbn&&b.splice(Kt,1,bn,b[Kt+1],Or),Kt+=2,Un=Math.min(bn,Or)}if(gr)if(Qt.opaque)b.splice(Sr,Kt-Sr,bn,"overlay "+gr),Kt=Sr+2;else for(;Sra.options.maxHighlightLength&&Dr(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 Mr(a,y,E){var x=a.doc,b=a.display;if(!x.mode.startState)return new Mn(x,!0,y);var ue=Ci(a,y,E),pe=ue>x.first&&yn(x,ue-1).stateAfter,be=pe?Mn.fromSaved(x,pe,ue):new Mn(x,qr(x.mode),ue);return x.iter(ue,y,function(De){ir(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 $r(a,y,E,x){var b=a.doc,ue=b.mode,pe;y=Hn(b,y);var be=yn(b,y.line),De=Mr(a,y.line,E),je=new $n(be.text,a.options.tabSize,De),Qt;for(x&&(Qt=[]);(x||je.posa.options.maxHighlightLength?(be=!1,pe&&ir(a,y,x,Qt.pos),Qt.pos=y.length,Kt=null):Kt=ui(_r(E,Qt,x.state,Un),ue),Un){var bn=Un[0].name;bn&&(Kt="m-"+(Kt?bn+" "+Kt:bn))}if(!be||je!=Kt){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 gn?je.lookAhead:0)<=ue.modeFrontier))return be;var Qt=ze(De.text,null,a.options.tabSize);(b==null||x>Qt)&&(b=be-1,x=Qt)}return b}function Ke(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierE;x--){var b=yn(a,x).stateAfter;if(b&&(!(b instanceof gn)||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 mi=0;mi0)){var Qt=[De,1],Kt=_n(je.from,be.from),Un=_n(je.to,be.to);(Kt<0||!pe.inclusiveLeft&&!Kt)&&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||dt(x,ue.marker)<0)&&(x=ue.marker)}return x}function hn(a,y,E,x,b){var ue=yn(a,y),pe=At&&ue.markedSpans;if(pe)for(var be=0;be=0&&Kt<=0||Qt<=0&&Kt>=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 un(a){for(var y;y=Ht(a);)a=y.find(1,!0).line;return a}function nr(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(!Nn(a,E))return y;for(;x=Ht(E);)E=x.find(1,!0).line;return Lt(E)+1}function Nn(a,y){var E=At&&y.markedSpans;if(E){for(var x=void 0,b=0;by.maxLineLength&&(y.maxLineLength=b,y.maxLine=x)})}var zr=function(a,y,E){this.text=a,Zt(this,y),this.height=E?E(this):1};zr.prototype.lineNo=function(){return Lt(this)},cn(zr);function Ir(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),Zt(a,E);var b=x?x(a):1;b!=a.height&&Zr(a,b)}function ii(a){a.parent=null,Rt(a)}var oi={},Xr={};function di(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Xr:oi;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function Ai(a,y){var E=gt("span",null,null,Ve?"padding-right: .1px":null),x={pre:gt("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,ur(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);Vr(ue,x,Hr(a,ue,be)),ue.styleClasses&&(ue.styleClasses.bgClass&&(x.bgClass=Vt(ue.styleClasses.bgClass,x.bgClass||"")),ue.styleClasses.textClass&&(x.textClass=Vt(ue.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Pr(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=Vt(x.pre.className,x.textClass||"")),x}function ni(a){var y=tt("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?Rr(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),ke&&ge<9&&(je=!0),a.pos+=y.length;else{Qt=document.createDocumentFragment();for(var Kt=0;;){De.lastIndex=Kt;var Un=De.exec(y),bn=Un?Un.index-Kt:y.length-Kt;if(bn){var gr=document.createTextNode(be.slice(Kt,Kt+bn));ke&&ge<9?Qt.appendChild(tt("span",[gr])):Qt.appendChild(gr),a.map.push(a.pos,a.pos+bn,gr),a.col+=bn,a.pos+=bn}if(!Un)break;Kt+=bn+1;var Sr=void 0;if(Un[0]==" "){var Or=a.cm.options.tabSize,jr=Or-a.col%Or;Sr=Qt.appendChild(tt("span",mt(jr),"cm-tab")),Sr.setAttribute("role","presentation"),Sr.setAttribute("cm-text"," "),a.col+=jr}else Un[0]=="\r"||Un[0]==` `?(Sr=Qt.appendChild(tt("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]),ke&&ge<9?Qt.appendChild(tt("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 li=E||"";x&&(li+=x),b&&(li+=b);var Yr=tt("span",[Qt],li,ue);if(pe)for(var mi in pe)pe.hasOwnProperty(mi)&&mi!="style"&&mi!="class"&&Yr.setAttribute(mi,pe[mi]);return a.content.appendChild(Yr)}a.content.appendChild(Qt)}}function Rr(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",b=0;bje&&Kt.from<=je));Un++);if(Kt.to>=Qt)return a(E,x,b,ue,pe,be,De);a(E,x.slice(0,Kt.to-je),b,ue,null,be,De),ue=null,x=x.slice(Kt.to-je),je=Kt.to}}}function pi(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 Vr(a,y,E){var x=a.markedSpans,b=a.text,ue=0;if(!x){for(var pe=1;peDe||$i.collapsed&&ki.to==De&&ki.from==De)){if(ki.to!=null&&ki.to!=De&&bn>ki.to&&(bn=ki.to,Sr=""),$i.className&&(gr+=" "+$i.className),$i.css&&(Un=(Un?Un+";":"")+$i.css),$i.startStyle&&ki.from==De&&(Or+=" "+$i.startStyle),$i.endStyle&&ki.to==bn&&(mi||(mi=[])).push($i.endStyle,ki.to),$i.title&&((li||(li={})).title=$i.title),$i.attributes)for(var Ma in $i.attributes)(li||(li={}))[Ma]=$i.attributes[Ma];$i.collapsed&&(!jr||dt(jr.marker,$i)<0)&&(jr=ki)}else ki.from>De&&bn>ki.from&&(bn=ki.from)}if(mi)for(var pA=0;pA=be)break;for(var WA=Math.min(be,bn);;){if(Qt){var SA=De+Qt.length;if(!jr){var uA=SA>WA?Qt.slice(0,WA-De):Qt;y.addToken(y,uA,Kt?Kt+gr:gr,Or,De+uA.length==bn?Sr:"",Un,li)}if(SA>=WA){Qt=Qt.slice(WA-De),De=WA;break}De=SA,Or=""}Qt=b.slice(ue,ue=E[je++]),Kt=di(E[je++],y.cm.options)}}}function gi(a,y,E){this.line=y,this.rest=nr(y),this.size=this.rest?Lt(ht(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Nn(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 Mi(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 GA(a,y){y=tn(y);var E=Lt(y),x=a.display.externalMeasured=new gi(a.doc,y,E);x.lineN=E;var b=x.built=Ai(a,x);return x.text=b.pre,He(a.display.lineMeasure,b.pre),x}function fA(a,y,E,x){return aA(a,vi(a,y),E,x)}function Sa(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 PA(a,y,E,x){var b=$a(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&&pt(y.line.text.charAt(b.coverStart+pe));)--pe;for(;b.coverStart+be0&&(De=x="right");var Kt;a.options.lineWrapping&&(Kt=ue.getClientRects()).length>1?je=Kt[x=="right"?Kt.length-1:0]:je=ue.getBoundingClientRect()}if(ke&&ge<9&&!pe&&(!je||!je.left&&!je.right)){var Un=ue.parentNode.getClientRects()[0];Un?je={left:Un.left,right:Un.left+vA(a.display),top:Un.top,bottom:Un.bottom}:je=dA}for(var bn=je.top-y.rect.top,gr=je.bottom-y.rect.top,Sr=(bn+gr)/2,Or=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(gr,Sr,Or){var jr=be[Sr],li=jr.level==1;return pe(Or?gr-1:gr,li!=Or)}var Kt=re(be,De,je),Un=oe,bn=Qt(De,Kt,je=="before");return Un!=null&&(bn.other=Qt(De,Un,je!="before")),bn}function Ni(a,y){var E=0;y=Hn(a.doc,y),a.options.lineWrapping||(E=vA(a.display)*y.ch);var x=yn(a.doc,y.line),b=er(x)+jn(a.display);return{left:E,right:E,top:b,bottom:b+x.height}}function Ii(a,y,E,x,b){var ue=Gt(a,y,E);return ue.xRel=b,x&&(ue.outside=x),ue}function da(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Ii(x.first,0,null,-1,-1);var b=Tt(x,E),ue=x.first+x.size-1;if(b>ue)return Ii(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=UA(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 na(a,y,E,x){x-=sA(y);var b=y.text.length,ue=sn(function(pe){return aA(a,E,pe-1).bottom<=x},b,0);return b=sn(function(pe){return aA(a,E,pe).top>x},ue,b),{begin:ue,end:b}}function Oa(a,y,E,x){E||(E=vi(a,y));var b=kA(a,y,aA(a,E,x),"line").top;return na(a,y,E,b)}function Ta(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function UA(a,y,E,x,b){b-=er(y);var ue=vi(a,y),pe=sA(y),be=0,De=y.text.length,je=!0,Qt=we(y,a.doc.direction);if(Qt){var Kt=(a.options.lineWrapping?DA:xA)(a,y,E,ue,Qt,x,b);je=Kt.level!=1,be=je?Kt.from:Kt.to-1,De=je?Kt.to:Kt.from-1}var Un=null,bn=null,gr=sn(function(Qi){var ki=aA(a,ue,Qi);return ki.top+=pe,ki.bottom+=pe,Ta(ki,x,b,!1)?(ki.top<=b&&ki.left<=x&&(Un=Qi,bn=ki),!0):!1},be,De),Sr,Or,jr=!1;if(bn){var li=x-bn.left=mi.bottom?1:0}return gr=Mt(y.text,gr,1),Ii(E,gr,Or,jr,x-Sr)}function xA(a,y,E,x,b,ue,pe){var be=sn(function(Kt){var Un=b[Kt],bn=Un.level!=1;return Ta(ma(a,Gt(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=ma(a,Gt(E,je?De.from:De.to,je?"after":"before"),"line",y,x);Ta(Qt,ue,pe,!0)&&Qt.top>pe&&(De=b[be-1])}return De}function DA(a,y,E,x,b,ue,pe){var be=na(a,y,x,pe),De=be.begin,je=be.end;/\s/.test(y.text.charAt(je-1))&&je--;for(var Qt=null,Kt=null,Un=0;Un=je||bn.to<=De)){var gr=bn.level!=1,Sr=aA(a,x,gr?Math.min(je,bn.to)-1:Math.max(De,bn.from)).right,Or=SrOr)&&(Qt=bn,Kt=Or)}}return Qt||(Qt=b[b.length-1]),Qt.fromje&&(Qt={from:Qt.from,to:je,level:Qt.level}),Qt}var ra;function eA(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(ra==null){ra=tt("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)ra.appendChild(document.createTextNode("x")),ra.appendChild(tt("br"));ra.appendChild(document.createTextNode("x"))}He(a.measure,ra);var E=ra.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),rt(a.measure),E||1}function vA(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=tt("span","xxxxxxxxxx"),E=tt("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 IA(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=eA(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/vA(a.display)-3);return function(b){if(Nn(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=ze(je,je.length,a.options.tabSize)-je.length;De=Gt(De.line,Math.max(0,Math.round((ue-bi(a.display).left)/vA(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)At&&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(!At||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,vt(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,Me(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 Kt=0;Kta.display.sizerWidth){var Un=Math.ceil(be/vA(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,er(yn(y,De))-a.wrapper.clientHeight),pe=De)}return{from:ue,to:Math.max(pe,ue+1)}}function _a(a,y){if(!ft(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&&!st){var ue=tt("div","\u200B",null,`position: absolute; top: `+(y.top-E.viewOffset-jn(a.display))+`px; height: `+(y.bottom-y.top+qi(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?Gt(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?Gt(y.line,y.ch+1,"before"):y);for(var ue=0;ue<5;ue++){var pe=!1,be=ma(a,y),De=!E||E==y?be:ma(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,Kt=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-Kt)>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=eA(a.display);y.top<0&&(y.top=0);var b=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,ue=Oi(a),pe={};y.bottom-y.top>ue&&(y.bottom=y.top+ue);var be=a.doc.height+ti(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 Kt=a.options.fixedGutter?0:E.gutters.offsetWidth,Un=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Kt,bn=Fa(a)-E.gutters.offsetWidth,gr=y.right-y.left>bn;return gr&&(y.right=y.left+bn),y.left<10?pe.scrollLeft=0:y.leftbn+Un-3&&(pe.scrollLeft=y.right+(gr?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+ti(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+qi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var Wi=function(a,y,E){this.cm=E;var x=this.vert=tt("div",[tt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),b=this.horiz=tt("div",[tt("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,ke&&ge<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 za=function(){};za.prototype.update=function(){return{bottom:0,right:0}},za.prototype.setScrollLeft=function(){},za.prototype.setScrollTop=function(){},za.prototype.clear=function(){};function Wa(a,y){y||(y=zi(a));var E=a.display.barWidth,x=a.display.barHeight;rA(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),rA(a,zi(a)),E=a.display.barWidth,x=a.display.barHeight}function rA(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:za};function JA(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Me(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&&vt(a.display.wrapper,a.display.scrollbars.addClass)}var ho=0;function NA(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},Da(a.curOp)}function qA(a){var y=a.curOp;y&&ca(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+qi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-Fa(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=Mr(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?Dr(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 Kt=!pe||pe.length!=ue.styles.length||je!=Qt&&(!je||!Qt||je.bgClass!=Qt.bgClass||je.textClass!=Qt.textClass),Un=0;!Kt&&UnE)return To(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),b.length&&LA(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=IA(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)),At&&(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=er(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),rt(E.cursorDiv),rt(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==Fa(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+ti(a.display)-Oi(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),Wa(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),Wa(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(gr){var Sr=gr.nextSibling;return Ve&&Le&&a.display.currentWheelTarget==gr?gr.style.display="none":gr.parentNode.removeChild(gr),Sr}for(var De=x.view,je=x.viewFrom,Qt=0;Qt-1&&(bn=!1),Yi(a,Kt,je,E)),bn&&(rt(Kt.lineNumber),Kt.lineNumber.appendChild(document.createTextNode(Tn(a.options,je)))),pe=Kt.node.nextSibling}je+=Kt.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+qi(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 Kt=0;Kt=0&&_n(a,x.to())<=0)return E}return-1};var ha=function(a,y){this.anchor=a,this.head=y};ha.prototype.from=function(){return hr(this.anchor,this.head)},ha.prototype.to=function(){return or(this.anchor,this.head)},ha.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function EA(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=hr(be.from(),pe.from()),Qt=or(be.to(),pe.to()),Kt=be.empty()?pe.from()==pe.head:be.from()==be.head;ue<=E&&--E,y.splice(--ue,2,new ha(Kt?Qt:je,Kt?je:Qt))}}return new RA(y,E)}function xo(a,y){return new RA([new ha(a,y||a)],0)}function Eo(a){return a.text?Gt(a.from.line+a.text.length-1,ht(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),Gt(E,x)}function tl(a,y){for(var E=[],x=0;x1&&a.remove(be.line+1,gr-1),a.insert(be.line+1,jr)}ji(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(),ht(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=ht(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=ht(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,ht(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=ht(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&&(ht(be)[Kt]=je[Kt],delete je[Kt])}}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 ha(b,y)}else return new ha(E||y,y)}function ms(a,y,E,x,b){b==null&&(b=a.cm&&(a.cm.display.shift||a.extend)),hA(a,new RA([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 Kt=De.find(x<0?1:-1),Un=void 0;if((x<0?Qt:je)&&(Kt=cl(a,Kt,-x,Kt&&Kt.line==y.line?ue:null)),Kt&&Kt.line==y.line&&(Un=_n(Kt,E))&&(x<0?Un<0:Un>0))return Mo(a,Kt,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,Gt(a.first,0))}function cl(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?Hn(a,Gt(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 gr=Un(bn);if(gr)return gr.v}}}}function hl(a,y){if(y!=0&&(a.first+=y,a.sel=new RA(bt(a.sel.ranges,function(b){return new ha(Gt(b.anchor.line+y,b.anchor.ch),Gt(b.head.line+y,b.head.ch))}),a.sel.primIndex),a.cm)){tA(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:Gt(ue,yn(a,ue).text.length),text:[y.text[0]],origin:y.origin}),y.removed=$e(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,Gt(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 gr=br(bn);gr>b.maxLineLength&&(b.maxLine=bn,b.maxLineLength=gr,b.maxLineChanged=!0,be=!1)}),be&&(a.curOp.updateMaxLine=!0)),Ke(x,ue.line),To(a,400);var je=y.text.length-(pe.line-ue.line)-1;y.full?tA(a):ue.line==pe.line&&y.text.length==1&&!Ts(a.doc,y)?nA(a,ue.line,"text"):tA(a,ue.line,pe.line+1,je);var Qt=jt(a,"changes"),Kt=jt(a,"change");if(Kt||Qt){var Un={from:ue,to:pe,text:y.text,removed:y.removed,origin:y.origin};Kt&&ji(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&&tA(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&&ji(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=gt("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");on()}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(Kt){De&&ue.collapsed&&!De.options.lineWrapping&&tn(Kt)==De.display.maxLine&&(je=!0),ue.collapsed&&be!=y.line&&Zr(Kt,0),Wn(Kt,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(Kt){Nn(a,Kt)&&Zr(Kt,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)tA(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++)nA(De,Qt,"text");ue.atomic&&Fo(De.doc),ji(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:lA(function(){Os(this,"undo")}),redo:lA(function(){Os(this,"redo")}),undoSelection:lA(function(){Os(this,"undo",!0)}),redoSelection:lA(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=Hn(this,a),y=Hn(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}),Hn(this,Gt(E,y))},indexFromPos:function(a){a=Hn(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 Kt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Kt=y.listSelections()),Rs(y.doc,xo(E,E)),Kt)for(var Un=0;Un=0;be--)Ho(a.doc,"",x[be].from,x[be].to,"+delete");wo(a)})}function Ia(a,y,E){var x=Mt(a.text,y+E,E);return x<0||x>a.text.length?null:x}function Ui(a,y,E){var x=Ia(a,y.ch,E);return x==null?null:new Gt(y.line,x,E<0?"after":"before")}function wa(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?ht(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 Kt=aA(y,Qt,je).top;je=sn(function(Un){return aA(y,Qt,Un).top==Kt},b<0==(pe.level==1)?pe.from:pe.to-1,je),De=="before"&&(je=Ia(E,je,1))}else je=b<0?pe.to:pe.from;return new Gt(x,je,De)}}return new Gt(x,b<0?E.text.length:0,b<0?"before":"after")}function Aa(a,y,E,x){var b=we(y,a.doc.direction);if(!b)return Ui(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=Kt?"before":"after";return new Gt(E.line,Un,bn)}}var gr=function(jr,li,Yr){for(var mi=function(Ma,pA){return pA?new Gt(E.line,be(Ma,1),"before"):new Gt(E.line,Ma,"after")};jr>=0&&jr0==(Qi.level!=1),$i=ki?Yr.begin:be(Yr.end,-1);if(Qi.from<=$i&&$i0?Qt.end:be(Qt.begin,-1);return Or!=null&&!(x>0&&Or==y.text.length)&&(Sr=gr(x>0?0:b.length-1,x,je(Or)),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 Gt(b.line,b.ch+1),a.replaceRange(ue.charAt(b.ch-1)+ue.charAt(b.ch-2),Gt(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 Gt(b.line,1),a.replaceRange(ue.charAt(0)+a.doc.lineSeparator()+pe.charAt(pe.length-1),Gt(b.line-1,pe.length-1),b,"+transpose"))}}E.push(new ha(b,b))}a.setSelections(E)})},newlineAndIndent:function(a){return LA(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(!(ft(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,pa(E,a)){Ve||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!du(y,a)){var x=KA(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):cr(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,ia(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)!=dn}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){ke?setTimeout(pn(Xo,a),0):a.curOp.focus=at();var b=_u(a,E,x),ue=a.doc.sel,pe;a.options.dragDrop&&Jn&&!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&&!Je||ke&&ge==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 ha(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new ha(Gt(y.line,0),Hn(a.doc,Gt(y.line+1,0)));var x=E(a,y);return new ha(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 ha(E,E)):(pe=ue.sel.primary(),be=ue.sel.primIndex),x.unit=="rectangle")x.addNew||(pe=new ha(E,E)),E=KA(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,hA(ue,EA(a,je.concat([pe]),be),{scroll:!1,origin:"*mouse"})):je.length>1&&je[be].empty()&&x.unit=="char"&&!x.extend?(hA(ue,EA(a,je.slice(0,be).concat(je.slice(be+1)),0),{scroll:!1,origin:"*mouse"}),De=ue.sel):sl(ue,be,pe,en):(be=0,hA(ue,new RA([pe],0),en),De=ue.sel);var Kt=E;function Un(Yr){if(_n(Kt,Yr)!=0)if(Kt=Yr,x.unit=="rectangle"){for(var mi=[],Qi=a.options.tabSize,ki=ze(yn(ue,E.line).text,E.ch,Qi),$i=ze(yn(ue,Yr.line).text,Yr.ch,Qi),Ma=Math.min(ki,$i),pA=Math.max(ki,$i),iA=Math.min(E.line,Yr.line),WA=Math.min(a.lastLine(),Math.max(E.line,Yr.line));iA<=WA;iA++){var SA=yn(ue,iA).text,uA=Yn(SA,Ma,Qi);Ma==pA?mi.push(new ha(Gt(iA,uA),Gt(iA,uA))):SA.length>uA&&mi.push(new ha(Gt(iA,uA),Gt(iA,Yn(SA,pA,Qi))))}mi.length||mi.push(new ha(E,E)),hA(ue,EA(a,De.ranges.slice(0,be).concat(mi),be),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Yr)}else{var _A=pe,yA=wl(a,Yr,x.unit),Gr=_A.anchor,Va;_n(yA.anchor,Gr)>0?(Va=yA.head,Gr=hr(_A.from(),yA.anchor)):(Va=yA.anchor,Gr=or(_A.to(),yA.head));var ja=De.ranges.slice(0);ja[be]=Du(a,new ha(Hn(ue,Gr),Va)),hA(ue,EA(a,ja,be),en)}}var bn=b.wrapper.getBoundingClientRect(),gr=0;function Sr(Yr){var mi=++gr,Qi=KA(a,Yr,!0,x.unit=="rectangle");if(Qi)if(_n(Qi,Kt)!=0){a.curOp.focus=at(),Un(Qi);var ki=to(b,ue);(Qi.line>=ki.to||Qi.linebn.bottom?20:0;$i&&setTimeout(AA(a,function(){gr==mi&&(b.scroller.scrollTop+=$i,Sr(Yr))}),50)}}function Or(Yr){a.state.selectingText=!1,gr=1/0,Yr&&(In(Yr),b.input.focus()),Ut(b.wrapper.ownerDocument,"mousemove",jr),Ut(b.wrapper.ownerDocument,"mouseup",li),ue.history.lastSelOrigin=null}var jr=AA(a,function(Yr){Yr.buttons===0||!yr(Yr)?Or(Yr):Sr(Yr)}),li=AA(a,Or);a.state.selectingText=li,Ee(b.wrapper.ownerDocument,"mousemove",jr),Ee(b.wrapper.ownerDocument,"mouseup",li)}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),Kt=Qt-pe||(x.ch-E.ch)*(be.level==1?-1:1);Qt==De-1||Qt==De?je=Kt<0:je=Kt>0}var Un=ue[De+(je?-1:0)],bn=je==(Un.level==1),gr=bn?Un.from:Un.to,Sr=bn?"after":"before";return E.ch==gr&&E.sticky==Sr?y:new ha(new Gt(E.line,gr,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||!jt(a,E))return vn(y);ue-=be.top-pe.viewOffset;for(var De=0;De=b){var Qt=Tt(a.doc,ue),Kt=a.display.gutterSpecs[De];return It(a,E,a,Qt,Kt.className,y),vn(y)}}}function du(a,y){return Iu(a,y,"gutterClick",!0)}function hu(a,y){pa(a.display,y)||Gs(a,y)||ft(a,y,"contextmenu")||xe||a.display.input.onContextMenu(y)}function Gs(a,y){return jt(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-"),Ea(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),Ea(x),tA(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(Gt(pe,Qt))}pe++});for(var be=ue.length-1;be>=0;be--)Ho(x.doc,b,ue[be],Gt(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",ni,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",We?"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=Nr(b),be=ue!=Zo&&Nr(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 Wa(x)},!0),E("scrollbarStyle","native",function(x){JA(x),Wa(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?(vt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Me(a.display.wrapper,"CodeMirror-wrap"),vr(a)),Do(a),tA(a),Ea(a),setTimeout(function(){return Wa(a)},100)}function Pa(a,y){var E=this;if(!(this instanceof Pa))return new Pa(a,y);this.options=y=y?An(y):{},An(Qu,y,!1);var x=y.value;typeof x=="string"?x=new FA(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var b=new Pa.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&&!We&&ue.input.focus(),ke&&ge<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Tu(this),En(),NA(this),this.curOp.forceUpdate=!0,oA(this,x),y.autofocus&&!We||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(!ft(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&&!pa(y,De)&&je.left!=null&&!je.moved&&new Date-je.start<300){var Qt=a.coordsChar(y.activeTouch,"page"),Kt;!je.prev||pe(je,je.prev)?Kt=new ha(Qt,Qt):!je.prev.prev||pe(je,je.prev.prev)?Kt=a.findWordAt(Qt):Kt=new ha(Gt(Qt.line,0),Hn(a.doc,Gt(Qt.line+1,0))),a.setSelection(Kt.anchor,Kt.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){ft(a,De)||dr(De)},over:function(De){ft(a,De)||(Ae(a,De),dr(De))},start:function(De){return me(a,De)},drop:AA(a,z),leave:function(De){ft(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=[];Pa.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=Mr(a,y).state:E="prev");var pe=a.options.tabSize,be=yn(b,y),De=ze(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==dn||Qt>150)){if(!x)return;E="prev"}E=="prev"?y>b.first?Qt=ze(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 Kt="",Un=0;if(a.options.indentWithTabs)for(var bn=Math.floor(Qt/pe);bn;--bn)Un+=pe,Kt+=" ";if(Unpe,De=Qr(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],gr=bn.from(),Sr=bn.to();bn.empty()&&(E&&E>0?gr=Gt(gr.line,gr.ch-E):a.state.overwrite&&!be?Sr=Gt(Sr.line,Math.min(yn(ue,Sr.line).text.length,Sr.ch+ht(De).length)):be&&ao&&ao.lineWise&&ao.text.join(` `)==De.join(` `)&&(gr=Sr=Gt(gr.line,0)));var Or={from:gr,to:Sr,text:je?je[Un%je.length]:De,origin:b||(be?"paste":a.state.cutIncoming>pe?"cut":"+input")};No(a.doc,Or),ji(a,"inputRead",a,Or)}y&&!be&&xl(a,y),wo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Kt),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&&LA(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&&ji(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 Kt=Qt;Kt0&&sl(this.doc,pe,new ha(De,Un[pe].to()),Ct)}}}),getTokenAt:function(x,b){return $r(this,x,b)},getLineTokens:function(x,b){return $r(this,Gt(x),b,!0)},getTokenTypeAt:function(x){x=Hn(this.doc,x);var b=Hr(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 kA(this,be,{top:0,left:0},b||"page",ue||pe).top+(pe?this.doc.height-er(be):0)},defaultTextHeight:function(){return eA(this.display)},defaultCharWidth:function(){return vA(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=ma(this,Hn(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 Kt=Math.max(De.wrapper.clientHeight,this.doc.height),Un=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(pe=="above"||x.bottom+b.offsetHeight>Kt)&&x.top>b.offsetHeight?je=x.top-b.offsetHeight:x.bottom+b.offsetHeight<=Kt&&(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:mA(Wl),triggerOnKeyPress:mA(bu),triggerOnKeyUp:Eu,triggerOnMouseDown:mA(Gl),execCommand:function(x){if(Zi.hasOwnProperty(x))return Zi[x].call(null,this)},triggerElectric:mA(function(x){xl(this,x)}),findPosH:function(x,b,ue,pe){var be=1;b<0&&(be=-1,b=-b);for(var De=Hn(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:mA(function(x){var b=this.doc;return b.cm=null,this.state.selectingText&&this.state.selectingText(),oA(this,x),Ea(this),this.display.input.reset(),no(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,ji(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}},cn(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 li=y.line+De;return li=a.first+a.size?!1:(y=new Gt(li,y.ch,y.sticky),be=yn(a,li))}function Qt(li){var Yr;if(x=="codepoint"){var mi=be.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(mi)?Yr=null:Yr=new Gt(y.line,Math.max(0,Math.min(be.text.length,y.ch+E*(mi>=55296&&mi<56320?2:1))),-E)}else b?Yr=Aa(a.cm,be,y,E):Yr=Ui(be,y,E);if(Yr==null)if(!li&&je())y=wa(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 Kt=null,Un=x=="group",bn=a.cm&&a.cm.getHelper(y,"wordChars"),gr=!0;!(E<0&&!Qt(!gr));gr=!1){var Sr=be.text.charAt(y.ch)||` `,Or=fe(Sr,bn)?"w":Un&&Sr==` `?"n":!Un||/\s/.test(Sr)?null:"p";if(Un&&!gr&&!Or&&(Or="s"),Kt&&Kt!=Or){E<0&&(E=1,Qt(),y.sticky="after");break}if(Or&&(Kt=Or),E>0&&!Qt(!gr))break}var jr=ws(a,y,ue,pe,!0);return ar(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*eA(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=da(a,ue,pe),!!je.outside;){if(E<0?pe<=0:pe>=b.height){je.hitSide=!0;break}pe+=E*5}return je}var ka=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};ka.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)||ft(x,be)||Cl(be,x)||ge<=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)||ft(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(),Kt=Qt.firstChild;x.display.lineSpace.insertBefore(Qt,x.display.lineSpace.firstChild),Kt.value=ao.text.join(` `);var Un=document.activeElement;Jt(Kt),setTimeout(function(){x.display.lineSpace.removeChild(Qt),Un.focus(),Un==b&&E.showPrimarySelection()},50)}}Ee(b,"copy",pe),Ee(b,"cut",pe)},ka.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},ka.prototype.prepareSelection=function(){var a=us(this.cm,!1);return a.focus=document.activeElement==this.div,a},ka.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},ka.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ka.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=Gt(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 Kt=a.doc.splitLines(Fs(a,be,Qt,pe,je)),Un=$e(a.doc,Gt(pe,0),Gt(je,yn(a.doc,je).text.length));Kt.length>1&&Un.length>1;)if(ht(Kt)==ht(Un))Kt.pop(),Un.pop(),je--;else if(Kt[0]==Un[0])Kt.shift(),Un.shift(),pe++;else break;for(var bn=0,gr=0,Sr=Kt[0],Or=Un[0],jr=Math.min(Sr.length,Or.length);bnx.ch&&li.charCodeAt(li.length-gr-1)==Yr.charCodeAt(Yr.length-gr-1);)bn--,gr++;Kt[Kt.length-1]=li.slice(0,li.length-gr).replace(/^\u200b+/,""),Kt[0]=Kt[0].slice(bn).replace(/\u200b+$/,"");var Qi=Gt(pe,bn),ki=Gt(je,Un.length?ht(Un).length-gr:0);if(Kt.length>1||Kt[0]||_n(Qi,ki))return Ho(a.doc,Kt,Qi,ki,"+input"),!0},ka.prototype.ensurePolled=function(){this.forceCompositionEnd()},ka.prototype.reset=function(){this.forceCompositionEnd()},ka.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ka.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))},ka.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&LA(this.cm,function(){return tA(a.cm)})},ka.prototype.setUneditable=function(a){a.contentEditable="false"},ka.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))},ka.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},ka.prototype.onContextMenu=function(){},ka.prototype.resetPosition=function(){},ka.prototype.needsContentAttribute=!0;function bs(a,y){var E=Sa(a,y.line);if(!E||E.hidden)return null;var x=yn(a.doc,y.line),b=Mi(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=$a(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 Ga(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(gr){return gr.id==bn}}function Qt(){pe&&(ue+=be,De&&(ue+=be),pe=De=!1)}function Kt(bn){bn&&(Qt(),ue+=bn)}function Un(bn){if(bn.nodeType==1){var gr=bn.getAttribute("cm-text");if(gr){Kt(gr);return}var Sr=bn.getAttribute("cm-marker"),Or;if(Sr){var jr=a.findMarks(Gt(x,0),Gt(b+1,0),je(+Sr));jr.length&&(Or=jr[0].find(0))&&Kt($e(a.doc,Or.from,Or.to).join(be));return}if(bn.getAttribute("contenteditable")=="false")return;var li=/^(pre|div|p|li|table|br)$/i.test(bn.nodeName);if(!/^br$/i.test(bn.nodeName)&&bn.textContent.length==0)return;li&&Qt();for(var Yr=0;Yr=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),Ee(b,"paste",function(pe){ft(x,pe)||Cl(pe,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ue(pe){if(!ft(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(!(pa(a,pe)||ft(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){pa(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)})},Qa.prototype.createField=function(a){this.wrapper=Mu(),this.textarea=this.wrapper.firstChild},Qa.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=us(a);if(a.options.moveInputWithCursor){var b=ma(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},Qa.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")},Qa.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),ke&&ge>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",ke&&ge>=9&&(this.hasSelection=null))}},Qa.prototype.getField=function(){return this.textarea},Qa.prototype.supportsTouch=function(){return!1},Qa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||at()!=this.textarea))try{this.textarea.focus()}catch(a){}},Qa.prototype.blur=function(){this.textarea.blur()},Qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qa.prototype.receivedFocus=function(){this.slowPoll()},Qa.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Qa.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)},Qa.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(ke&&ge>=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},Qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qa.prototype.onKeyPress=function(){ke&&ge>=9&&(this.hasSelection=null),this.fastPoll()},Qa.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,b=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ue=KA(E,a),pe=x.scroller.scrollTop;if(!ue||ye)return;var be=E.options.resetSelectionOnContextMenu;be&&E.doc.sel.contains(ue)==-1&&AA(E,hA)(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: `+(ke?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Kt;Ve&&(Kt=window.scrollY),x.input.focus(),Ve&&window.scrollTo(null,Kt),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(),Or="\u200B"+(Sr?b.value:"");b.value="\u21DA",b.value=Or,y.prevInput=Sr?"":"\u200B",b.selectionStart=1,b.selectionEnd=Or.length,x.selForContextMenu=E.doc.sel}}function bn(){if(y.contextMenuPending==bn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=je,b.style.cssText=De,ke&&ge<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=pe),b.selectionStart!=null)){(!ke||ke&&ge<9)&&Un();var Sr=0,Or=function(){x.selForContextMenu==E.doc.sel&&b.selectionStart==0&&b.selectionEnd>0&&y.prevInput=="\u200B"?AA(E,fl)(E):Sr++<10?x.detectingSelectAll=setTimeout(Or,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Or,200)}}if(ke&&ge>=9&&Un(),xe){dr(a);var gr=function(){Ut(window,"mouseup",gr),setTimeout(bn,20)};Ee(window,"mouseup",gr)}else setTimeout(bn,50)},Qa.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Qa.prototype.setUneditable=function(){},Qa.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=Pa(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=FA,a.splitLines=Qr,a.countColumn=ze,a.findColumn=Yn,a.isWordChar=se,a.Pass=dn,a.signal=It,a.Line=zr,a.changeEnd=Eo,a.scrollbarModel=fo,a.Pos=Gt,a.cmpPos=_n,a.modes=zn,a.mimeModes=$t,a.resolveMode=lr,a.getMode=fr,a.modeExtensions=Fr,a.extendMode=Wr,a.copyState=Dr,a.startState=qr,a.innerMode=Ur,a.commands=Zi,a.keyMap=Cr,a.keyName=Ri,a.isModifierKey=Ki,a.lookupKey=Pi,a.normalizeKeyMap=ya,a.StringStream=$n,a.SharedTextMarker=as,a.TextMarker=go,a.LineWidget=Oo,a.e_preventDefault=In,a.e_stopPropagation=sr,a.e_stop=dr,a.addClass=vt,a.contains=wt,a.rmClass=Me,a.keyNames=Xt}Yu(Pa),Nu(Pa);var Ou="iter insert remove copy getEditor constructor".split(" ");for(var bl in FA.prototype)FA.prototype.hasOwnProperty(bl)&&Ot(Ou,bl)<0&&(Pa.prototype[bl]=function(a){return function(){return a.apply(this.doc,arguments)}}(FA.prototype[bl]));return cn(FA),Pa.inputStyles={textarea:Qa,contenteditable:ka},Pa.defineMode=function(a){!Pa.defaults.mode&&a!="null"&&(Pa.defaults.mode=a),Sn.apply(this,arguments)},Pa.defineMIME=pr,Pa.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Pa.defineMIME("text/plain","null"),Pa.defineExtension=function(a,y){Pa.prototype[a]=y},Pa.defineDocExtension=function(a,y){FA.prototype[a]=y},Pa.fromTextArea=El,Wo(Pa),Pa.version="5.58.2",Pa})},25419:function(xn,yt,ce){(function(te){te(ce(89780),ce(15525),ce(98101))})(function(te){"use strict";te.defineMode("markdown",function(Ze,Te){var Xe=te.getMode(Ze,"text/html"),ke=Xe.name=="null";function ge(ze){if(te.findModeByName){var Fe=te.findModeByName(ze);Fe&&(ze=Fe.mime||Fe.mimes[0])}var Ot=te.getMode(Ze,ze);return Ot.name=="null"?null:Ot}Te.highlightFormatting===void 0&&(Te.highlightFormatting=!1),Te.maxBlockquoteDepth===void 0&&(Te.maxBlockquoteDepth=0),Te.taskLists===void 0&&(Te.taskLists=!1),Te.strikethrough===void 0&&(Te.strikethrough=!1),Te.emoji===void 0&&(Te.emoji=!1),Te.fencedCodeBlockHighlighting===void 0&&(Te.fencedCodeBlockHighlighting=!0),Te.fencedCodeBlockDefaultMode===void 0&&(Te.fencedCodeBlockDefaultMode="text/plain"),Te.xml===void 0&&(Te.xml=!0),Te.tokenTypeOverrides===void 0&&(Te.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 Ue in Ve)Ve.hasOwnProperty(Ue)&&Te.tokenTypeOverrides[Ue]&&(Ve[Ue]=Te.tokenTypeOverrides[Ue]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,Ce=Te.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,st=/^ {0,3}(?:\={1,}|-{2,})\s*$/,nt=/^[^#!\[\]*_\\<>` "'(~:]+/,it=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,We=/^\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(ze,Fe,Ot){return Fe.f=Fe.inline=Ot,Ot(ze,Fe)}function qe(ze,Fe,Ot){return Fe.f=Fe.block=Ot,Ot(ze,Fe)}function Qe(ze){return!ze||!/\S/.test(ze.string)}function xe(ze){if(ze.linkTitle=!1,ze.linkHref=!1,ze.linkText=!1,ze.em=!1,ze.strong=!1,ze.strikethrough=!1,ze.quote=0,ze.indentedCode=!1,ze.f==Me){var Fe=ke;if(!Fe){var Ot=te.innerMode(Xe,ze.htmlState);Fe=Ot.mode.name=="xml"&&Ot.state.tagStart===null&&!Ot.state.context&&Ot.state.tokenize.isInText}Fe&&(ze.f=gt,ze.block=Ne,ze.htmlState=null)}return ze.trailingSpace=0,ze.trailingSpaceNewLine=!1,ze.prevLine=ze.thisLine,ze.thisLine={stream:null},null}function Ne(ze,Fe){var Ot=ze.column()===Fe.indentation,Fn=Qe(Fe.prevLine.stream),dn=Fe.indentedCode,Ct=Fe.prevLine.hr,en=Fe.list!==!1,rn=(Fe.listStack[Fe.listStack.length-1]||0)+3;Fe.indentedCode=!1;var Yn=Fe.indentation;if(Fe.indentationDiff===null&&(Fe.indentationDiff=Fe.indentation,en)){for(Fe.list=null;Yn=4&&(dn||Fe.prevLine.fencedCodeEnd||Fe.prevLine.header||Fn))return ze.skipToEnd(),Fe.indentedCode=!0,Ve.code;if(ze.eatSpace())return null;if(Ot&&Fe.indentation<=rn&&(ht=ze.match(Ce))&&ht[1].length<=6)return Fe.quote=0,Fe.header=ht[1].length,Fe.thisLine.header=!0,Te.highlightFormatting&&(Fe.formatting="header"),Fe.f=Fe.inline,He(Fe);if(Fe.indentation<=rn&&ze.eat(">"))return Fe.quote=Ot?1:Fe.quote+1,Te.highlightFormatting&&(Fe.formatting="quote"),ze.eatSpace(),He(Fe);if(!mt&&!Fe.setext&&Ot&&Fe.indentation<=rn&&(ht=ze.match(ye))){var bt=ht[1]?"ol":"ul";return Fe.indentation=Yn+ze.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,Te.taskLists&&ze.match(Je,!1)&&(Fe.taskList=!0),Fe.f=Fe.inline,Te.highlightFormatting&&(Fe.formatting=["list","list-"+bt]),He(Fe)}else{if(Ot&&Fe.indentation<=rn&&(ht=ze.match(it,!0)))return Fe.quote=0,Fe.fencedEndRE=new RegExp(ht[1]+"+ *$"),Fe.localMode=Te.fencedCodeBlockHighlighting&&ge(ht[2]||Te.fencedCodeBlockDefaultMode),Fe.localMode&&(Fe.localState=te.startState(Fe.localMode)),Fe.f=Fe.block=rt,Te.highlightFormatting&&(Fe.formatting="code-block"),Fe.code=-1,He(Fe);if(Fe.setext||(!Dt||!en)&&!Fe.quote&&Fe.list===!1&&!Fe.code&&!mt&&!We.test(ze.string)&&(ht=ze.lookAhead(1))&&(ht=ht.match(st)))return Fe.setext?(Fe.header=Fe.setext,Fe.setext=0,ze.skipToEnd(),Te.highlightFormatting&&(Fe.formatting="header")):(Fe.header=ht[0].charAt(0)=="="?1:2,Fe.setext=Fe.header),Fe.thisLine.header=!0,Fe.f=Fe.inline,He(Fe);if(mt)return ze.skipToEnd(),Fe.hr=!0,Fe.thisLine.hr=!0,Ve.hr;if(ze.peek()==="[")return Ge(ze,Fe,Vt)}return Ge(ze,Fe,Fe.inline)}function Me(ze,Fe){var Ot=Xe.token(ze,Fe.htmlState);if(!ke){var Fn=te.innerMode(Xe,Fe.htmlState);(Fn.mode.name=="xml"&&Fn.state.tagStart===null&&!Fn.state.context&&Fn.state.tokenize.isInText||Fe.md_inside&&ze.current().indexOf(">")>-1)&&(Fe.f=gt,Fe.block=Ne,Fe.htmlState=null)}return Ot}function rt(ze,Fe){var Ot=Fe.listStack[Fe.listStack.length-1]||0,Fn=Fe.indentation=ze.quote?Fe.push(Ve.formatting+"-"+ze.formatting[Ot]+"-"+ze.quote):Fe.push("error"))}if(ze.taskOpen)return Fe.push("meta"),Fe.length?Fe.join(" "):null;if(ze.taskClosed)return Fe.push("property"),Fe.length?Fe.join(" "):null;if(ze.linkHref?Fe.push(Ve.linkHref,"url"):(ze.strong&&Fe.push(Ve.strong),ze.em&&Fe.push(Ve.em),ze.strikethrough&&Fe.push(Ve.strikethrough),ze.emoji&&Fe.push(Ve.emoji),ze.linkText&&Fe.push(Ve.linkText),ze.code&&Fe.push(Ve.code),ze.image&&Fe.push(Ve.image),ze.imageAltText&&Fe.push(Ve.imageAltText,"link"),ze.imageMarker&&Fe.push(Ve.imageMarker)),ze.header&&Fe.push(Ve.header,Ve.header+"-"+ze.header),ze.quote&&(Fe.push(Ve.quote),!Te.maxBlockquoteDepth||Te.maxBlockquoteDepth>=ze.quote?Fe.push(Ve.quote+"-"+ze.quote):Fe.push(Ve.quote+"-"+Te.maxBlockquoteDepth)),ze.list!==!1){var Fn=(ze.listStack.length-1)%3;Fn?Fn===1?Fe.push(Ve.list2):Fe.push(Ve.list3):Fe.push(Ve.list1)}return ze.trailingSpaceNewLine?Fe.push("trailing-space-new-line"):ze.trailingSpace&&Fe.push("trailing-space-"+(ze.trailingSpace%2?"a":"b")),Fe.length?Fe.join(" "):null}function tt(ze,Fe){if(ze.match(nt,!0))return He(Fe)}function gt(ze,Fe){var Ot=Fe.text(ze,Fe);if(typeof Ot!="undefined")return Ot;if(Fe.list)return Fe.list=null,He(Fe);if(Fe.taskList){var Fn=ze.match(Je,!0)[1]===" ";return Fn?Fe.taskOpen=!0:Fe.taskClosed=!0,Te.highlightFormatting&&(Fe.formatting="task"),Fe.taskList=!1,He(Fe)}if(Fe.taskOpen=!1,Fe.taskClosed=!1,Fe.header&&ze.match(/^#+$/,!0))return Te.highlightFormatting&&(Fe.formatting="header"),He(Fe);var dn=ze.next();if(Fe.linkTitle){Fe.linkTitle=!1;var Ct=dn;dn==="("&&(Ct=")"),Ct=(Ct+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var en="^\\s*(?:[^"+Ct+"\\\\]+|\\\\\\\\|\\\\.)"+Ct;if(ze.match(new RegExp(en),!0))return Ve.linkHref}if(dn==="`"){var rn=Fe.formatting;Te.highlightFormatting&&(Fe.formatting="code"),ze.eatWhile("`");var Yn=ze.current().length;if(Fe.code==0&&(!Fe.quote||Yn==1))return Fe.code=Yn,He(Fe);if(Yn==Fe.code){var Dt=He(Fe);return Fe.code=0,Dt}else return Fe.formatting=rn,He(Fe)}else if(Fe.code)return He(Fe);if(dn==="\\"&&(ze.next(),Te.highlightFormatting)){var mt=He(Fe),ht=Ve.formatting+"-escape";return mt?mt+" "+ht:ht}if(dn==="!"&&ze.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Fe.imageMarker=!0,Fe.image=!0,Te.highlightFormatting&&(Fe.formatting="image"),He(Fe);if(dn==="["&&Fe.imageMarker&&ze.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Fe.imageMarker=!1,Fe.imageAltText=!0,Te.highlightFormatting&&(Fe.formatting="image"),He(Fe);if(dn==="]"&&Fe.imageAltText){Te.highlightFormatting&&(Fe.formatting="image");var mt=He(Fe);return Fe.imageAltText=!1,Fe.image=!1,Fe.inline=Fe.f=wt,mt}if(dn==="["&&!Fe.image)return Fe.linkText&&ze.match(/^.*?\]/)||(Fe.linkText=!0,Te.highlightFormatting&&(Fe.formatting="link")),He(Fe);if(dn==="]"&&Fe.linkText){Te.highlightFormatting&&(Fe.formatting="link");var mt=He(Fe);return Fe.linkText=!1,Fe.inline=Fe.f=ze.match(/\(.*?\)| ?\[.*?\]/,!1)?wt:gt,mt}if(dn==="<"&&ze.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=Ye,Te.highlightFormatting&&(Fe.formatting="link");var mt=He(Fe);return mt?mt+=" ":mt="",mt+Ve.linkInline}if(dn==="<"&&ze.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=Ye,Te.highlightFormatting&&(Fe.formatting="link");var mt=He(Fe);return mt?mt+=" ":mt="",mt+Ve.linkEmail}if(Te.xml&&dn==="<"&&ze.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bt=ze.string.indexOf(">",ze.pos);if(bt!=-1){var zt=ze.string.substring(ze.start,bt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(zt)&&(Fe.md_inside=!0)}return ze.backUp(1),Fe.htmlState=te.startState(Xe),qe(ze,Fe,Me)}if(Te.xml&&dn==="<"&&ze.match(/^\/\w*?>/))return Fe.md_inside=!1,"tag";if(dn==="*"||dn==="_"){for(var Bt=1,Pt=ze.pos==1?" ":ze.string.charAt(ze.pos-2);Bt<3&&ze.eat(dn);)Bt++;var _e=ze.peek()||" ",se=!/\s/.test(_e)&&(!Le.test(_e)||/\s/.test(Pt)||Le.test(Pt)),fe=!/\s/.test(Pt)&&(!Le.test(Pt)||/\s/.test(_e)||Le.test(_e)),Ie=null,Be=null;if(Bt%2&&(!Fe.em&&se&&(dn==="*"||!fe||Le.test(Pt))?Ie=!0:Fe.em==dn&&fe&&(dn==="*"||!se||Le.test(_e))&&(Ie=!1)),Bt>1&&(!Fe.strong&&se&&(dn==="*"||!fe||Le.test(Pt))?Be=!0:Fe.strong==dn&&fe&&(dn==="*"||!se||Le.test(_e))&&(Be=!1)),Be!=null||Ie!=null){Te.highlightFormatting&&(Fe.formatting=Ie==null?"strong":Be==null?"em":"strong em"),Ie===!0&&(Fe.em=dn),Be===!0&&(Fe.strong=dn);var Dt=He(Fe);return Ie===!1&&(Fe.em=!1),Be===!1&&(Fe.strong=!1),Dt}}else if(dn===" "&&(ze.eat("*")||ze.eat("_"))){if(ze.peek()===" ")return He(Fe);ze.backUp(1)}if(Te.strikethrough){if(dn==="~"&&ze.eatWhile(dn)){if(Fe.strikethrough){Te.highlightFormatting&&(Fe.formatting="strikethrough");var Dt=He(Fe);return Fe.strikethrough=!1,Dt}else if(ze.match(/^[^\s]/,!1))return Fe.strikethrough=!0,Te.highlightFormatting&&(Fe.formatting="strikethrough"),He(Fe)}else if(dn===" "&&ze.match(/^~~/,!0)){if(ze.peek()===" ")return He(Fe);ze.backUp(2)}}if(Te.emoji&&dn===":"&&ze.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Fe.emoji=!0,Te.highlightFormatting&&(Fe.formatting="emoji");var pt=He(Fe);return Fe.emoji=!1,pt}return dn===" "&&(ze.match(/^ +$/,!1)?Fe.trailingSpace++:Fe.trailingSpace&&(Fe.trailingSpaceNewLine=!0)),He(Fe)}function Ye(ze,Fe){var Ot=ze.next();if(Ot===">"){Fe.f=Fe.inline=gt,Te.highlightFormatting&&(Fe.formatting="link");var Fn=He(Fe);return Fn?Fn+=" ":Fn="",Fn+Ve.linkInline}return ze.match(/^[^>]+/,!0),Ve.linkInline}function wt(ze,Fe){if(ze.eatSpace())return null;var Ot=ze.next();return Ot==="("||Ot==="["?(Fe.f=Fe.inline=vt(Ot==="("?")":"]"),Te.highlightFormatting&&(Fe.formatting="link-string"),Fe.linkHref=!0,He(Fe)):"error"}var at={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function vt(ze){return function(Fe,Ot){var Fn=Fe.next();if(Fn===ze){Ot.f=Ot.inline=gt,Te.highlightFormatting&&(Ot.formatting="link-string");var dn=He(Ot);return Ot.linkHref=!1,dn}return Fe.match(at[ze]),Ot.linkHref=!0,He(Ot)}}function Vt(ze,Fe){return ze.match(/^([^\]\\]|\\.)*\]:/,!1)?(Fe.f=Jt,ze.next(),Te.highlightFormatting&&(Fe.formatting="link"),Fe.linkText=!0,He(Fe)):Ge(ze,Fe,gt)}function Jt(ze,Fe){if(ze.match(/^\]:/,!0)){Fe.f=Fe.inline=pn,Te.highlightFormatting&&(Fe.formatting="link");var Ot=He(Fe);return Fe.linkText=!1,Ot}return ze.match(/^([^\]\\]|\\.)+/,!0),Ve.linkText}function pn(ze,Fe){return ze.eatSpace()?null:(ze.match(/^[^\s]+/,!0),ze.peek()===void 0?Fe.linkTitle=!0:ze.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Fe.f=Fe.inline=gt,Ve.linkHref+" url")}var An={startState:function(){return{f:Ne,prevLine:{stream:null},thisLine:{stream:null},block:Ne,htmlState:null,indentation:0,inline:gt,text:tt,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(ze){return{f:ze.f,prevLine:ze.prevLine,thisLine:ze.thisLine,block:ze.block,htmlState:ze.htmlState&&te.copyState(Xe,ze.htmlState),indentation:ze.indentation,localMode:ze.localMode,localState:ze.localMode?te.copyState(ze.localMode,ze.localState):null,inline:ze.inline,text:ze.text,formatting:!1,linkText:ze.linkText,linkTitle:ze.linkTitle,linkHref:ze.linkHref,code:ze.code,em:ze.em,strong:ze.strong,strikethrough:ze.strikethrough,emoji:ze.emoji,header:ze.header,setext:ze.setext,hr:ze.hr,taskList:ze.taskList,list:ze.list,listStack:ze.listStack.slice(0),quote:ze.quote,indentedCode:ze.indentedCode,trailingSpace:ze.trailingSpace,trailingSpaceNewLine:ze.trailingSpaceNewLine,md_inside:ze.md_inside,fencedEndRE:ze.fencedEndRE}},token:function(ze,Fe){if(Fe.formatting=!1,ze!=Fe.thisLine.stream){if(Fe.header=0,Fe.hr=!1,ze.match(/^\s*$/,!0))return xe(Fe),null;if(Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:ze},Fe.taskList=!1,Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,!Fe.localState&&(Fe.f=Fe.block,Fe.f!=Me)){var Ot=ze.match(/^\s*/,!0)[0].replace(/\t/g,ut).length;if(Fe.indentation=Ot,Fe.indentationDiff=null,Ot>0)return null}}return Fe.f(ze,Fe)},innerMode:function(ze){return ze.block==Me?{state:ze.htmlState,mode:Xe}:ze.localState?{state:ze.localState,mode:ze.localMode}:{state:ze,mode:An}},indent:function(ze,Fe,Ot){return ze.block==Me&&Xe.indent?Xe.indent(ze.htmlState,Fe,Ot):ze.localState&&ze.localMode.indent?ze.localMode.indent(ze.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,yt,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 Ze=0;Ze-1&&Xe.substring(Ve+1,Xe.length);if(Ue)return te.findModeByExtension(Ue)},te.findModeByName=function(Xe){Xe=Xe.toLowerCase();for(var ke=0;ke0?nt.cmdState[nt.cmdState.length-1]:null}function ge(nt){var it=nt.cmdState.pop();it&&it.closeBracket()}function Ve(nt){for(var it=nt.cmdState,We=it.length-1;We>=0;We--){var Le=it[We];if(Le.name!="DEFAULT")return Le}return{styleIdentifier:function(){return null}}}function Ue(nt,it,We){return function(){this.name=nt,this.bracketNo=0,this.style=it,this.styles=We,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=Ue("importmodule","tag",["string","builtin"]),Se.documentclass=Ue("documentclass","tag",["","atom"]),Se.usepackage=Ue("usepackage","tag",["atom"]),Se.begin=Ue("begin","tag",["atom"]),Se.end=Ue("end","tag",["atom"]),Se.label=Ue("label","tag",["atom"]),Se.ref=Ue("ref","tag",["atom"]),Se.eqref=Ue("eqref","tag",["atom"]),Se.cite=Ue("cite","tag",["atom"]),Se.bibitem=Ue("bibitem","tag",["atom"]),Se.Bibitem=Ue("Bibitem","tag",["atom"]),Se.RBibitem=Ue("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ye(nt,it){nt.f=it}function Je(nt,it){var We;if(nt.match(/^\\[a-zA-Z@]+/)){var Le=nt.current().slice(1);return We=Se.hasOwnProperty(Le)?Se[Le]:Se.DEFAULT,We=new We,Xe(it,We),ye(it,st),We.style}if(nt.match(/^\\[$&%#{}_]/)||nt.match(/^\\[,;!\/\\]/))return"tag";if(nt.match("\\["))return ye(it,function(Ge,qe){return Ce(Ge,qe,"\\]")}),"keyword";if(nt.match("\\("))return ye(it,function(Ge,qe){return Ce(Ge,qe,"\\)")}),"keyword";if(nt.match("$$"))return ye(it,function(Ge,qe){return Ce(Ge,qe,"$$")}),"keyword";if(nt.match("$"))return ye(it,function(Ge,qe){return Ce(Ge,qe,"$")}),"keyword";var ut=nt.next();if(ut=="%")return nt.skipToEnd(),"comment";if(ut=="}"||ut=="]"){if(We=ke(it),We)We.closeBracket(ut),ye(it,st);else return"error";return"bracket"}else return ut=="{"||ut=="["?(We=Se.DEFAULT,We=new We,Xe(it,We),"bracket"):/\d/.test(ut)?(nt.eatWhile(/[\w.%]/),"atom"):(nt.eatWhile(/[\w\-_]/),We=Ve(it),We.name=="begin"&&(We.argument=nt.current()),We.styleIdentifier())}function Ce(nt,it,We){if(nt.eatSpace())return null;if(We&&nt.match(We))return ye(it,Je),"keyword";if(nt.match(/^\\[a-zA-Z@]+/))return"tag";if(nt.match(/^[a-zA-Z]+/))return"variable-2";if(nt.match(/^\\[$&%#{}_]/)||nt.match(/^\\[,;!\/]/)||nt.match(/^[\^_&]/))return"tag";if(nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Le=nt.next();return Le=="{"||Le=="}"||Le=="["||Le=="]"||Le=="("||Le==")"?"bracket":Le=="%"?(nt.skipToEnd(),"comment"):"error"}function st(nt,it){var We=nt.peek(),Le;return We=="{"||We=="["?(Le=ke(it),Le.openBracket(We),nt.eat(We),ye(it,Je),"bracket"):/[ \t\r]/.test(We)?(nt.eat(We),null):(ye(it,Je),ge(it),Je(nt,it))}return{startState:function(){var nt=Te.inMathMode?function(it,We){return Ce(it,We)}:Je;return{cmdState:[],f:nt}},copyState:function(nt){return{cmdState:nt.cmdState.slice(),f:nt.f}},token:function(nt,it){return it.f(nt,it)},blankLine:function(nt){nt.f=Je,nt.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(xn,yt,ce){(function(te){te(ce(89780))})(function(te){"use strict";var Ze={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},Te={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(Xe,ke){var ge=Xe.indentUnit,Ve={},Ue=ke.htmlMode?Ze:Te;for(var Se in Ue)Ve[Se]=Ue[Se];for(var Se in ke)Ve[Se]=ke[Se];var ye,Je;function Ce(Ye,wt){function at(Jt){return wt.tokenize=Jt,Jt(Ye,wt)}var vt=Ye.next();if(vt=="<")return Ye.eat("!")?Ye.eat("[")?Ye.match("CDATA[")?at(it("atom","]]>")):null:Ye.match("--")?at(it("comment","-->")):Ye.match("DOCTYPE",!0,!0)?(Ye.eatWhile(/[\w\._\-]/),at(We(1))):null:Ye.eat("?")?(Ye.eatWhile(/[\w\._\-]/),wt.tokenize=it("meta","?>"),"meta"):(ye=Ye.eat("/")?"closeTag":"openTag",wt.tokenize=st,"tag bracket");if(vt=="&"){var Vt;return Ye.eat("#")?Ye.eat("x")?Vt=Ye.eatWhile(/[a-fA-F\d]/)&&Ye.eat(";"):Vt=Ye.eatWhile(/[\d]/)&&Ye.eat(";"):Vt=Ye.eatWhile(/[\w\.\-:]/)&&Ye.eat(";"),Vt?"atom":"error"}else return Ye.eatWhile(/[^&<]/),null}Ce.isInText=!0;function st(Ye,wt){var at=Ye.next();if(at==">"||at=="/"&&Ye.eat(">"))return wt.tokenize=Ce,ye=at==">"?"endTag":"selfcloseTag","tag bracket";if(at=="=")return ye="equals",null;if(at=="<"){wt.tokenize=Ce,wt.state=qe,wt.tagName=wt.tagStart=null;var vt=wt.tokenize(Ye,wt);return vt?vt+" tag error":"tag error"}else return/[\'\"]/.test(at)?(wt.tokenize=nt(at),wt.stringStartCol=Ye.column(),wt.tokenize(Ye,wt)):(Ye.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function nt(Ye){var wt=function(at,vt){for(;!at.eol();)if(at.next()==Ye){vt.tokenize=st;break}return"string"};return wt.isInAttribute=!0,wt}function it(Ye,wt){return function(at,vt){for(;!at.eol();){if(at.match(wt)){vt.tokenize=Ce;break}at.next()}return Ye}}function We(Ye){return function(wt,at){for(var vt;(vt=wt.next())!=null;){if(vt=="<")return at.tokenize=We(Ye+1),at.tokenize(wt,at);if(vt==">")if(Ye==1){at.tokenize=Ce;break}else return at.tokenize=We(Ye-1),at.tokenize(wt,at)}return"meta"}}function Le(Ye,wt,at){this.prev=Ye.context,this.tagName=wt,this.indent=Ye.indented,this.startOfLine=at,(Ve.doNotIndent.hasOwnProperty(wt)||Ye.context&&Ye.context.noIndent)&&(this.noIndent=!0)}function ut(Ye){Ye.context&&(Ye.context=Ye.context.prev)}function Ge(Ye,wt){for(var at;;){if(!Ye.context||(at=Ye.context.tagName,!Ve.contextGrabbers.hasOwnProperty(at)||!Ve.contextGrabbers[at].hasOwnProperty(wt)))return;ut(Ye)}}function qe(Ye,wt,at){return Ye=="openTag"?(at.tagStart=wt.column(),Qe):Ye=="closeTag"?xe:qe}function Qe(Ye,wt,at){return Ye=="word"?(at.tagName=wt.current(),Je="tag",rt):Ve.allowMissingTagName&&Ye=="endTag"?(Je="tag bracket",rt(Ye,wt,at)):(Je="error",Qe)}function xe(Ye,wt,at){if(Ye=="word"){var vt=wt.current();return at.context&&at.context.tagName!=vt&&Ve.implicitlyClosed.hasOwnProperty(at.context.tagName)&&ut(at),at.context&&at.context.tagName==vt||Ve.matchClosing===!1?(Je="tag",Ne):(Je="tag error",Me)}else return Ve.allowMissingTagName&&Ye=="endTag"?(Je="tag bracket",Ne(Ye,wt,at)):(Je="error",Me)}function Ne(Ye,wt,at){return Ye!="endTag"?(Je="error",Ne):(ut(at),qe)}function Me(Ye,wt,at){return Je="error",Ne(Ye,wt,at)}function rt(Ye,wt,at){if(Ye=="word")return Je="attribute",He;if(Ye=="endTag"||Ye=="selfcloseTag"){var vt=at.tagName,Vt=at.tagStart;return at.tagName=at.tagStart=null,Ye=="selfcloseTag"||Ve.autoSelfClosers.hasOwnProperty(vt)?Ge(at,vt):(Ge(at,vt),at.context=new Le(at,vt,Vt==at.indented)),qe}return Je="error",rt}function He(Ye,wt,at){return Ye=="equals"?tt:(Ve.allowMissing||(Je="error"),rt(Ye,wt,at))}function tt(Ye,wt,at){return Ye=="string"?gt:Ye=="word"&&Ve.allowUnquoted?(Je="string",rt):(Je="error",rt(Ye,wt,at))}function gt(Ye,wt,at){return Ye=="string"?gt:rt(Ye,wt,at)}return{startState:function(Ye){var wt={tokenize:Ce,state:qe,indented:Ye||0,tagName:null,tagStart:null,context:null};return Ye!=null&&(wt.baseIndent=Ye),wt},token:function(Ye,wt){if(!wt.tagName&&Ye.sol()&&(wt.indented=Ye.indentation()),Ye.eatSpace())return null;ye=null;var at=wt.tokenize(Ye,wt);return(at||ye)&&at!="comment"&&(Je=null,wt.state=wt.state(ye||at,Ye,wt),Je&&(at=Je=="error"?at+" error":Je)),at},indent:function(Ye,wt,at){var vt=Ye.context;if(Ye.tokenize.isInAttribute)return Ye.tagStart==Ye.indented?Ye.stringStartCol+1:Ye.indented+ge;if(vt&&vt.noIndent)return te.Pass;if(Ye.tokenize!=st&&Ye.tokenize!=Ce)return at?at.match(/^(\s*)/)[0].length:0;if(Ye.tagName)return Ve.multilineTagIndentPastTag!==!1?Ye.tagStart+Ye.tagName.length+2:Ye.tagStart+ge*(Ve.multilineTagIndentFactor||1);if(Ve.alignCDATA&&/$/,blockCommentStart:"",configuration:Ve.htmlMode?"html":"xml",helperType:Ve.htmlMode?"html":"xml",skipAttribute:function(Ye){Ye.state==tt&&(Ye.state=rt)},xmlCurrentTag:function(Ye){return Ye.tagName?{name:Ye.tagName,close:Ye.type=="closeTag"}:null},xmlCurrentContext:function(Ye){for(var wt=[],at=Ye.context;at;at=at.prev)at.tagName&&wt.push(at.tagName);return wt.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,yt,ce){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.default=void 0;var te=Object.assign||function(We){for(var Le=1;Le0&&(rt=Qe[0]),rt instanceof Error)throw rt;var He=new Error("Unhandled error."+(rt?" ("+rt.message+")":""));throw He.context=rt,He}var tt=Me[qe];if(tt===void 0)return!1;if(typeof tt=="function")ce(tt,this,Qe);else for(var gt=tt.length,Ye=st(tt,gt),xe=0;xe0&&rt.length>Ne&&!rt.warned){rt.warned=!0;var He=new Error("Possible EventEmitter memory leak detected. "+rt.length+" "+String(qe)+" listeners added. Use emitter.setMaxListeners() to increase limit");He.name="MaxListenersExceededWarning",He.emitter=Ge,He.type=qe,He.count=rt.length,Ze(He)}return Ge}Xe.prototype.addListener=function(qe,Qe){return Ue(this,qe,Qe,!1)},Xe.prototype.on=Xe.prototype.addListener,Xe.prototype.prependListener=function(qe,Qe){return Ue(this,qe,Qe,!0)};function Se(){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 ye(Ge,qe,Qe){var xe={fired:!1,wrapFn:void 0,target:Ge,type:qe,listener:Qe},Ne=Se.bind(xe);return Ne.listener=Qe,xe.wrapFn=Ne,Ne}Xe.prototype.once=function(qe,Qe){return ge(Qe),this.on(qe,ye(this,qe,Qe)),this},Xe.prototype.prependOnceListener=function(qe,Qe){return ge(Qe),this.prependListener(qe,ye(this,qe,Qe)),this},Xe.prototype.removeListener=function(qe,Qe){var xe,Ne,Me,rt,He;if(ge(Qe),Ne=this._events,Ne===void 0)return this;if(xe=Ne[qe],xe===void 0)return this;if(xe===Qe||xe.listener===Qe)--this._eventsCount===0?this._events=Object.create(null):(delete Ne[qe],Ne.removeListener&&this.emit("removeListener",qe,xe.listener||Qe));else if(typeof xe!="function"){for(Me=-1,rt=xe.length-1;rt>=0;rt--)if(xe[rt]===Qe||xe[rt].listener===Qe){He=xe[rt].listener,Me=rt;break}if(Me<0)return this;Me===0?xe.shift():nt(xe,Me),xe.length===1&&(Ne[qe]=xe[0]),Ne.removeListener!==void 0&&this.emit("removeListener",qe,He||Qe)}return this},Xe.prototype.off=Xe.prototype.removeListener,Xe.prototype.removeAllListeners=function(qe){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[qe]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete xe[qe]),this;if(arguments.length===0){var Me=Object.keys(xe),rt;for(Ne=0;Ne=0;Ne--)this.removeListener(qe,Qe[Ne]);return this};function Je(Ge,qe,Qe){var xe=Ge._events;if(xe===void 0)return[];var Ne=xe[qe];return Ne===void 0?[]:typeof Ne=="function"?Qe?[Ne.listener||Ne]:[Ne]:Qe?it(Ne):st(Ne,Ne.length)}Xe.prototype.listeners=function(qe){return Je(this,qe,!0)},Xe.prototype.rawListeners=function(qe){return Je(this,qe,!1)},Xe.listenerCount=function(Ge,qe){return typeof Ge.listenerCount=="function"?Ge.listenerCount(qe):Ce.call(Ge,qe)},Xe.prototype.listenerCount=Ce;function Ce(Ge){var qe=this._events;if(qe!==void 0){var Qe=qe[Ge];if(typeof Qe=="function")return 1;if(Qe!==void 0)return Qe.length}return 0}Xe.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function st(Ge,qe){for(var Qe=new Array(qe),xe=0;xe{const z=new Uint8Array(4),me=new Uint32Array(z.buffer);return!((me[0]=1)&z[0])})(),ge={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(me=Xe,Ae={}){ba(this,"buffer");ba(this,"byteLength");ba(this,"byteOffset");ba(this,"length");ba(this,"offset");ba(this,"lastWrittenByte");ba(this,"littleEndian");ba(this,"_data");ba(this,"_mark");ba(this,"_marks");let Pe=!1;typeof me=="number"?me=new ArrayBuffer(me):(Pe=!0,this.lastWrittenByte=me.byteLength);const et=Ae.offset?Ae.offset>>>0:0,ot=me.byteLength-et;let En=et;(ArrayBuffer.isView(me)||me instanceof Ve)&&(me.byteLength!==me.buffer.byteLength&&(En=me.byteOffset+et),me=me.buffer),Pe?this.lastWrittenByte=ot:this.lastWrittenByte=0,this.buffer=me,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(me=1){return this.offset+me<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(me=1){return this.offset+=me,this}back(me=1){return this.offset-=me,this}seek(me){return this.offset=me,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 me=this._marks.pop();if(me===void 0)throw new Error("Mark stack empty");return this.seek(me),this}rewind(){return this.offset=0,this}ensureAvailable(me=1){if(!this.available(me)){const Pe=(this.offset+me)*2,et=new Uint8Array(Pe);et.set(new Uint8Array(this.buffer)),this.buffer=et.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(me=1){return this.readArray(me,"uint8")}readArray(me,Ae){const Pe=ge[Ae].BYTES_PER_ELEMENT*me,et=this.byteOffset+this.offset,ot=this.buffer.slice(et,et+Pe);if(this.littleEndian===ke&&Ae!=="uint8"&&Ae!=="int8"){const an=new Uint8Array(this.buffer.slice(et,et+Pe));an.reverse();const Lr=new ge[Ae](an.buffer);return this.offset+=Pe,Lr.reverse(),Lr}const En=new ge[Ae](ot);return this.offset+=Pe,En}readInt16(){const me=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,me}readUint16(){const me=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,me}readInt32(){const me=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,me}readUint32(){const me=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,me}readFloat32(){const me=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,me}readFloat64(){const me=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,me}readBigInt64(){const me=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,me}readBigUint64(){const me=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,me}readChar(){return String.fromCharCode(this.readInt8())}readChars(me=1){let Ae="";for(let Pe=0;Pethis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Ue=4,Se=0,ye=1,Je=2;function Ce(z){let me=z.length;for(;--me>=0;)z[me]=0}const st=0,nt=1,it=2,We=3,Le=258,ut=29,Ge=256,qe=Ge+1+ut,Qe=30,xe=19,Ne=2*qe+1,Me=15,rt=16,He=7,tt=256,gt=16,Ye=17,wt=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]),vt=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]),Vt=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]),pn=512,An=new Array((qe+2)*2);Ce(An);const ze=new Array(Qe*2);Ce(ze);const Fe=new Array(pn);Ce(Fe);const Ot=new Array(Le-We+1);Ce(Ot);const Fn=new Array(ut);Ce(Fn);const dn=new Array(Qe);Ce(dn);function Ct(z,me,Ae,Pe,et){this.static_tree=z,this.extra_bits=me,this.extra_base=Ae,this.elems=Pe,this.max_length=et,this.has_stree=z&&z.length}let en,rn,Yn;function Dt(z,me){this.dyn_tree=z,this.max_code=0,this.stat_desc=me}const mt=z=>z<256?Fe[z]:Fe[256+(z>>>7)],ht=(z,me)=>{z.pending_buf[z.pending++]=me&255,z.pending_buf[z.pending++]=me>>>8&255},bt=(z,me,Ae)=>{z.bi_valid>rt-Ae?(z.bi_buf|=me<>rt-z.bi_valid,z.bi_valid+=Ae-rt):(z.bi_buf|=me<{bt(z,Ae[me*2],Ae[me*2+1])},Bt=(z,me)=>{let Ae=0;do Ae|=z&1,z>>>=1,Ae<<=1;while(--me>0);return Ae>>>1},Pt=z=>{z.bi_valid===16?(ht(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)},_e=(z,me)=>{const Ae=me.dyn_tree,Pe=me.max_code,et=me.stat_desc.static_tree,ot=me.stat_desc.has_stree,En=me.stat_desc.extra_bits,an=me.stat_desc.extra_base,Lr=me.stat_desc.max_length;let Xt,kn,ci,Kr,Cr,xi,ya=0;for(Kr=0;Kr<=Me;Kr++)z.bl_count[Kr]=0;for(Ae[z.heap[z.heap_max]*2+1]=0,Xt=z.heap_max+1;XtLr&&(Kr=Lr,ya++),Ae[kn*2+1]=Kr,!(kn>Pe)&&(z.bl_count[Kr]++,Cr=0,kn>=an&&(Cr=En[kn-an]),xi=Ae[kn*2],z.opt_len+=xi*(Kr+Cr),ot&&(z.static_len+=xi*(et[kn*2+1]+Cr)));if(ya!==0){do{for(Kr=Lr-1;z.bl_count[Kr]===0;)Kr--;z.bl_count[Kr]--,z.bl_count[Kr+1]+=2,z.bl_count[Lr]--,ya-=2}while(ya>0);for(Kr=Lr;Kr!==0;Kr--)for(kn=z.bl_count[Kr];kn!==0;)ci=z.heap[--Xt],!(ci>Pe)&&(Ae[ci*2+1]!==Kr&&(z.opt_len+=(Kr-Ae[ci*2+1])*Ae[ci*2],Ae[ci*2+1]=Kr),kn--)}},se=(z,me,Ae)=>{const Pe=new Array(Me+1);let et=0,ot,En;for(ot=1;ot<=Me;ot++)et=et+Ae[ot-1]<<1,Pe[ot]=et;for(En=0;En<=me;En++){let an=z[En*2+1];an!==0&&(z[En*2]=Bt(Pe[an]++,an))}},fe=()=>{let z,me,Ae,Pe,et;const ot=new Array(Me+1);for(Ae=0,Pe=0;Pe>=7;Pe{let me;for(me=0;me{z.bi_valid>8?ht(z,z.bi_buf):z.bi_valid>0&&(z.pending_buf[z.pending++]=z.bi_buf),z.bi_buf=0,z.bi_valid=0},pt=(z,me,Ae,Pe)=>{const et=me*2,ot=Ae*2;return z[et]{const Pe=z.heap[Ae];let et=Ae<<1;for(;et<=z.heap_len&&(et{let Pe,et,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,et=z.pending_buf[z.sym_buf+ot++],Pe===0?zt(z,et,me):(En=Ot[et],zt(z,En+Ge+1,me),an=at[En],an!==0&&(et-=Fn[En],bt(z,et,an)),Pe--,En=mt(Pe),zt(z,En,Ae),an=vt[En],an!==0&&(Pe-=dn[En],bt(z,Pe,an)));while(ot{const Ae=me.dyn_tree,Pe=me.stat_desc.static_tree,et=me.stat_desc.has_stree,ot=me.stat_desc.elems;let En,an,Lr=-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],_e(z,me),se(Ae,Lr,z.bl_count)},oe=(z,me,Ae)=>{let Pe,et=-1,ot,En=me[0*2+1],an=0,Lr=7,Xt=4;for(En===0&&(Lr=138,Xt=3),me[(Ae+1)*2+1]=65535,Pe=0;Pe<=Ae;Pe++)ot=En,En=me[(Pe+1)*2+1],!(++an{let Pe,et=-1,ot,En=me[0*2+1],an=0,Lr=7,Xt=4;for(En===0&&(Lr=138,Xt=3),Pe=0;Pe<=Ae;Pe++)if(ot=En,En=me[(Pe+1)*2+1],!(++an{let me;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),me=xe-1;me>=3&&z.bl_tree[Jt[me]*2+1]===0;me--);return z.opt_len+=3*(me+1)+5+5+4,me},we=(z,me,Ae,Pe)=>{let et;for(bt(z,me-257,5),bt(z,Ae-1,5),bt(z,Pe-4,4),et=0;et{let me=4093624447,Ae;for(Ae=0;Ae<=31;Ae++,me>>>=1)if(me&1&&z.dyn_ltree[Ae*2]!==0)return Se;if(z.dyn_ltree[9*2]!==0||z.dyn_ltree[10*2]!==0||z.dyn_ltree[13*2]!==0)return ye;for(Ae=32;Ae{Ee||(fe(),Ee=!0),z.l_desc=new Dt(z.dyn_ltree,en),z.d_desc=new Dt(z.dyn_dtree,rn),z.bl_desc=new Dt(z.bl_tree,Yn),z.bi_buf=0,z.bi_valid=0,Ie(z)},Ut=(z,me,Ae,Pe)=>{bt(z,(st<<1)+(Pe?1:0),3),Be(z),ht(z,Ae),ht(z,~Ae),Ae&&z.pending_buf.set(z.window.subarray(me,me+Ae),z.pending),z.pending+=Ae},It=z=>{bt(z,nt<<1,3),zt(z,tt,An),Pt(z)},ft=(z,me,Ae,Pe)=>{let et,ot,En=0;z.level>0?(z.strm.data_type===Je&&(z.strm.data_type=le(z)),he(z,z.l_desc),he(z,z.d_desc),En=de(z),et=z.opt_len+3+7>>>3,ot=z.static_len+3+7>>>3,ot<=et&&(et=ot)):et=ot=Ae+5,Ae+4<=et&&me!==-1?Ut(z,me,Ae,Pe):z.strategy===Ue||ot===et?(bt(z,(nt<<1)+(Pe?1:0),3),sn(z,An,ze)):(bt(z,(it<<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)),Ie(z),Pe&&Be(z)},Bn=(z,me,Ae)=>(z.pending_buf[z.sym_buf+z.sym_next++]=me,z.pending_buf[z.sym_buf+z.sym_next++]=me>>8,z.pending_buf[z.sym_buf+z.sym_next++]=Ae,me===0?z.dyn_ltree[Ae*2]++:(z.matches++,me--,z.dyn_ltree[(Ot[Ae]+Ge+1)*2]++,z.dyn_dtree[mt(me)*2]++),z.sym_next===z.sym_end);var jt=St,cn=Ut,In=ft,sr=Bn,vn=It,dr={_tr_init:jt,_tr_stored_block:cn,_tr_flush_block:In,_tr_tally:sr,_tr_align:vn},yr=(z,me,Ae,Pe)=>{let et=z&65535|0,ot=z>>>16&65535|0,En=0;for(;Ae!==0;){En=Ae>2e3?2e3:Ae,Ae-=En;do et=et+me[Pe++]|0,ot=ot+et|0;while(--En);et%=65521,ot%=65521}return et|ot<<16|0};const Jn=()=>{let z,me=[];for(var Ae=0;Ae<256;Ae++){z=Ae;for(var Pe=0;Pe<8;Pe++)z=z&1?3988292384^z>>>1:z>>>1;me[Ae]=z}return me},Tr=new Uint32Array(Jn());var Er=(z,me,Ae,Pe)=>{const et=Tr,ot=Pe+Ae;z^=-1;for(let En=Pe;En>>8^et[(z^me[En])&255];return z^-1},ur={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"},Qr={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:rr,_tr_flush_block:qn,_tr_tally:mn,_tr_align:zn}=dr,{Z_NO_FLUSH:$t,Z_PARTIAL_FLUSH:Sn,Z_FULL_FLUSH:pr,Z_FINISH:lr,Z_BLOCK:fr,Z_OK:Fr,Z_STREAM_END:Wr,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:Ur,Z_BUF_ERROR:qr,Z_DEFAULT_COMPRESSION:$n,Z_FILTERED:yn,Z_HUFFMAN_ONLY:$e,Z_RLE:kr,Z_FIXED:Zr,Z_DEFAULT_STRATEGY:Lt,Z_UNKNOWN:Tt,Z_DEFLATED:tr}=Qr,Tn=9,Gt=15,_n=8,or=256+1+29,hr=30,xr=19,Hn=2*or+1,xt=15,Ft=3,gn=258,Mn=gn+Ft+1,wr=32,Hr=42,Mr=57,ir=69,Xn=73,_r=91,Br=103,$r=113,ui=666,ai=1,Ci=2,Ke=3,Oe=4,At=3,Et=(z,me)=>(z.msg=ur[me],me),on=z=>z*2-(z>4?9:0),Wt=z=>{let me=z.length;for(;--me>=0;)z[me]=0},Qn=z=>{let me,Ae,Pe,et=z.w_size;me=z.hash_size,Pe=me;do Ae=z.head[--Pe],z.head[Pe]=Ae>=et?Ae-et:0;while(--me);me=et,Pe=me;do Ae=z.prev[--Pe],z.prev[Pe]=Ae>=et?Ae-et:0;while(--me)};let Wn=(z,me,Ae)=>(me<{const me=z.state;let Ae=me.pending;Ae>z.avail_out&&(Ae=z.avail_out),Ae!==0&&(z.output.set(me.pending_buf.subarray(me.pending_out,me.pending_out+Ae),z.next_out),z.next_out+=Ae,me.pending_out+=Ae,z.total_out+=Ae,z.avail_out-=Ae,me.pending-=Ae,me.pending===0&&(me.pending_out=0))},Zn=(z,me)=>{qn(z,z.block_start>=0?z.block_start:-1,z.strstart-z.block_start,me),z.block_start=z.strstart,Vn(z.strm)},Gn=(z,me)=>{z.pending_buf[z.pending++]=me},ct=(z,me)=>{z.pending_buf[z.pending++]=me>>>8&255,z.pending_buf[z.pending++]=me&255},Yt=(z,me,Ae,Pe)=>{let et=z.avail_in;return et>Pe&&(et=Pe),et===0?0:(z.avail_in-=et,me.set(z.input.subarray(z.next_in,z.next_in+et),Ae),z.state.wrap===1?z.adler=yr(z.adler,me,et,Ae):z.state.wrap===2&&(z.adler=Er(z.adler,me,et,Ae)),z.next_in+=et,z.total_in+=et,et)},Rt=(z,me)=>{let Ae=z.max_chain_length,Pe=z.strstart,et,ot,En=z.prev_length,an=z.nice_match;const Lr=z.strstart>z.w_size-Mn?z.strstart-(z.w_size-Mn):0,Xt=z.window,kn=z.w_mask,ci=z.prev,Kr=z.strstart+gn;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(et=me,!(Xt[et+En]!==xi||Xt[et+En-1]!==Cr||Xt[et]!==Xt[Pe]||Xt[++et]!==Xt[Pe+1])){Pe+=2,et++;do;while(Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&Xt[++Pe]===Xt[++et]&&PeEn){if(z.match_start=me,En=ot,ot>=an)break;Cr=Xt[Pe+En-1],xi=Xt[Pe+En]}}while((me=ci[me&kn])>Lr&&--Ae!==0);return En<=z.lookahead?En:z.lookahead},Zt=z=>{const me=z.w_size;let Ae,Pe,et;do{if(Pe=z.window_size-z.lookahead-z.strstart,z.strstart>=me+(me-Mn)&&(z.window.set(z.window.subarray(me,me+me-Pe),0),z.match_start-=me,z.strstart-=me,z.block_start-=me,z.insert>z.strstart&&(z.insert=z.strstart),Qn(z),Pe+=me),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(et=z.strstart-z.insert,z.ins_h=z.window[et],z.ins_h=Wn(z,z.ins_h,z.window[et+1]);z.insert&&(z.ins_h=Wn(z,z.ins_h,z.window[et+Ft-1]),z.prev[et&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=et,et++,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,et,ot,En=0,an=z.strm.avail_in;do{if(Pe=65535,ot=z.bi_valid+42>>3,z.strm.avail_outet+z.strm.avail_in&&(Pe=et+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),et&&(et>Pe&&(et=Pe),z.strm.output.set(z.window.subarray(z.block_start,z.block_start+et),z.strm.next_out),z.strm.next_out+=et,z.strm.avail_out-=et,z.strm.total_out+=et,z.block_start+=et,Pe-=et),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,et=z.strstart-z.block_start,(et>=Ae||(et||me===lr)&&me!==$t&&z.strm.avail_in===0&&et<=ot)&&(Pe=et>ot?ot:et,En=me===lr&&z.strm.avail_in===0&&Pe===et?1:0,rr(z,z.block_start,Pe,En),z.block_start+=Pe,Vn(z.strm)),En?Ke:ai)},fn=(z,me)=>{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-Mn&&(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,et;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){et=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<=et&&(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,et,ot;const En=z.window;for(;;){if(z.lookahead<=gn){if(Zt(z),z.lookahead<=gn&&me===$t)return ai;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=Ft&&z.strstart>0&&(et=z.strstart-1,Pe=En[et],Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et])){ot=z.strstart+gn;do;while(Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et]&&Pe===En[++et]&&etz.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,me===lr?(Zn(z,!0),z.strm.avail_out===0?Ke:Oe):z.sym_next&&(Zn(z,!1),z.strm.avail_out===0)?ai:Ci},wn=(z,me)=>{let Ae;for(;;){if(z.lookahead===0&&(Zt(z),z.lookahead===0)){if(me===$t)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,me===lr?(Zn(z,!0),z.strm.avail_out===0?Ke:Oe):z.sym_next&&(Zn(z,!1),z.strm.avail_out===0)?ai:Ci};function Ht(z,me,Ae,Pe,et){this.good_length=z,this.max_lazy=me,this.nice_length=Ae,this.max_chain=Pe,this.func=et}const ln=[new Ht(0,0,0,0,nn),new Ht(4,4,8,4,fn),new Ht(4,5,16,8,fn),new Ht(4,6,32,32,fn),new Ht(4,4,16,16,dt),new Ht(8,16,32,32,dt),new Ht(8,16,128,128,dt),new Ht(8,32,128,256,dt),new Ht(32,128,258,1024,dt),new Ht(32,258,258,4096,dt)],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=tr,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(Hn*2),this.dyn_dtree=new Uint16Array((2*hr+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*or+1),Wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*or+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 un=z=>{if(!z)return 1;const me=z.state;return!me||me.strm!==z||me.status!==Hr&&me.status!==Mr&&me.status!==ir&&me.status!==Xn&&me.status!==_r&&me.status!==Br&&me.status!==$r&&me.status!==ui?1:0},nr=z=>{if(un(z))return Et(z,Dr);z.total_in=z.total_out=0,z.data_type=Tt;const me=z.state;return me.pending=0,me.pending_out=0,me.wrap<0&&(me.wrap=-me.wrap),me.status=me.wrap===2?Mr:me.wrap?Hr:$r,z.adler=me.wrap===2?0:1,me.last_flush=-2,Kn(me),Fr},Nt=z=>{const me=nr(z);return me===Fr&&hn(z.state),me},qt=(z,me)=>un(z)||z.state.wrap!==2?Dr:(z.state.gzhead=me,Fr),Nn=(z,me,Ae,Pe,et,ot)=>{if(!z)return Dr;let En=1;if(me===$n&&(me=6),Pe<0?(En=0,Pe=-Pe):Pe>15&&(En=2,Pe-=16),et<1||et>Tn||Ae!==tr||Pe<8||Pe>15||me<0||me>9||ot<0||ot>Zr||Pe===8&&En!==1)return Et(z,Dr);Pe===8&&(Pe=9);const an=new tn;return z.state=an,an.strm=z,an.status=Hr,an.wrap=En,an.gzhead=null,an.w_bits=Pe,an.w_size=1<Nn(z,me,tr,Gt,_n,Lt),er=(z,me)=>{if(un(z)||me>fr||me<0)return z?Et(z,Dr):Dr;const Ae=z.state;if(!z.output||z.avail_in!==0&&!z.input||Ae.status===ui&&me!==lr)return Et(z,z.avail_out===0?qr:Dr);const Pe=Ae.last_flush;if(Ae.last_flush=me,Ae.pending!==0){if(Vn(z),z.avail_out===0)return Ae.last_flush=-1,Fr}else if(z.avail_in===0&&on(me)<=on(Pe)&&me!==lr)return Et(z,qr);if(Ae.status===ui&&z.avail_in!==0)return Et(z,qr);if(Ae.status===Hr&&Ae.wrap===0&&(Ae.status=$r),Ae.status===Hr){let et=tr+(Ae.w_bits-8<<4)<<8,ot=-1;if(Ae.strategy>=$e||Ae.level<2?ot=0:Ae.level<6?ot=1:Ae.level===6?ot=2:ot=3,et|=ot<<6,Ae.strstart!==0&&(et|=wr),et+=31-et%31,ct(Ae,et),Ae.strstart!==0&&(ct(Ae,z.adler>>>16),ct(Ae,z.adler&65535)),z.adler=1,Ae.status=$r,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,Fr}if(Ae.status===Mr){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>=$e||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=ir;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>=$e||Ae.level<2?4:0),Gn(Ae,At),Ae.status=$r,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,Fr}if(Ae.status===ir){if(Ae.gzhead.extra){let et=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>et&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-et,et)),Ae.gzindex+=an,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,Fr;et=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>et&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-et,et)),Ae.gzindex=0}Ae.status=Xn}if(Ae.status===Xn){if(Ae.gzhead.name){let et=Ae.pending,ot;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>et&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-et,et)),Vn(z),Ae.pending!==0)return Ae.last_flush=-1,Fr;et=0}Ae.gzindexet&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-et,et)),Ae.gzindex=0}Ae.status=_r}if(Ae.status===_r){if(Ae.gzhead.comment){let et=Ae.pending,ot;do{if(Ae.pending===Ae.pending_buf_size){if(Ae.gzhead.hcrc&&Ae.pending>et&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-et,et)),Vn(z),Ae.pending!==0)return Ae.last_flush=-1,Fr;et=0}Ae.gzindexet&&(z.adler=Er(z.adler,Ae.pending_buf,Ae.pending-et,et))}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,Fr;Gn(Ae,z.adler&255),Gn(Ae,z.adler>>8&255),z.adler=0}if(Ae.status=$r,Vn(z),Ae.pending!==0)return Ae.last_flush=-1,Fr}if(z.avail_in!==0||Ae.lookahead!==0||me!==$t&&Ae.status!==ui){let et=Ae.level===0?nn(Ae,me):Ae.strategy===$e?wn(Ae,me):Ae.strategy===kr?Ln(Ae,me):ln[Ae.level].func(Ae,me);if((et===Ke||et===Oe)&&(Ae.status=ui),et===ai||et===Ke)return z.avail_out===0&&(Ae.last_flush=-1),Fr;if(et===Ci&&(me===Sn?zn(Ae):me!==fr&&(rr(Ae,0,0,!1),me===pr&&(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,Fr}return me!==lr?Fr:Ae.wrap<=0?Wr:(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)):(ct(Ae,z.adler>>>16),ct(Ae,z.adler&65535)),Vn(z),Ae.wrap>0&&(Ae.wrap=-Ae.wrap),Ae.pending!==0?Fr:Wr)},br=z=>{if(un(z))return Dr;const me=z.state.status;return z.state=null,me===$r?Et(z,Ur):Fr},vr=(z,me)=>{let Ae=me.length;if(un(z))return Dr;const Pe=z.state,et=Pe.wrap;if(et===2||et===1&&Pe.status!==Hr||Pe.lookahead)return Dr;if(et===1&&(z.adler=yr(z.adler,me,Ae,0)),Pe.wrap=0,Ae>=Pe.w_size){et===0&&(Wt(Pe.head),Pe.strstart=0,Pe.block_start=0,Pe.insert=0);let Lr=new Uint8Array(Pe.w_size);Lr.set(me.subarray(Ae-Pe.w_size,Ae),0),me=Lr,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=me,Zt(Pe);Pe.lookahead>=Ft;){let Lr=Pe.strstart,Xt=Pe.lookahead-(Ft-1);do Pe.ins_h=Wn(Pe,Pe.ins_h,Pe.window[Lr+Ft-1]),Pe.prev[Lr&Pe.w_mask]=Pe.head[Pe.ins_h],Pe.head[Pe.ins_h]=Lr,Lr++;while(--Xt);Pe.strstart=Lr,Pe.lookahead=Ft-1,Zt(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=et,Fr};var zr=On,Ir=Nn,ii=Nt,oi=nr,Xr=qt,di=er,Ai=br,ni=vr,ri="pako deflate (from Nodeca project)",Rr={deflateInit:zr,deflateInit2:Ir,deflateReset:ii,deflateResetKeep:oi,deflateSetHeader:Xr,deflate:di,deflateEnd:Ai,deflateSetDictionary:ni,deflateInfo:ri};const ei=(z,me)=>Object.prototype.hasOwnProperty.call(z,me);var pi=function(z){const me=Array.prototype.slice.call(arguments,1);for(;me.length;){const Ae=me.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},Vr=z=>{let me=0;for(let Pe=0,et=z.length;Pe=252?6:z>=248?5:z>=240?4:z>=224?3:z>=192?2:1;Ti[254]=Ti[254]=1;var Da=z=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(z);let me,Ae,Pe,et,ot,En=z.length,an=0;for(et=0;et>>6,me[ot++]=128|Ae&63):Ae<65536?(me[ot++]=224|Ae>>>12,me[ot++]=128|Ae>>>6&63,me[ot++]=128|Ae&63):(me[ot++]=240|Ae>>>18,me[ot++]=128|Ae>>>12&63,me[ot++]=128|Ae>>>6&63,me[ot++]=128|Ae&63);return me};const Na=(z,me)=>{if(me<65534&&z.subarray&&Ei)return String.fromCharCode.apply(null,z.length===me?z:z.subarray(0,me));let Ae="";for(let Pe=0;Pe{const Ae=me||z.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(z.subarray(0,me));let Pe,et;const ot=new Array(Ae*2);for(et=0,Pe=0;Pe4){ot[et++]=65533,Pe+=an-1;continue}for(En&=an===2?31:an===3?15:7;an>1&&Pe1){ot[et++]=65533;continue}En<65536?ot[et++]=En:(En-=65536,ot[et++]=55296|En>>10&1023,ot[et++]=56320|En&1023)}return Na(ot,et)},La=(z,me)=>{me=me||z.length,me>z.length&&(me=z.length);let Ae=me-1;for(;Ae>=0&&(z[Ae]&192)===128;)Ae--;return Ae<0||Ae===0?me:Ae+Ti[z[Ae]]>me?Ae:me},ji={string2buf:Da,buf2string:ca,utf8border:La};function ea(){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 Yi=ea;const Ha=Object.prototype.toString,{Z_NO_FLUSH:ua,Z_SYNC_FLUSH:xa,Z_FULL_FLUSH:fa,Z_FINISH:si,Z_OK:wi,Z_STREAM_END:Fi,Z_DEFAULT_COMPRESSION:Si,Z_DEFAULT_STRATEGY:Hi,Z_DEFLATED:Xi}=Qr;function Li(z){this.options=gi.assign({level:Si,method:Xi,chunkSize:16384,windowBits:15,memLevel:8,strategy:Hi},z||{});let me=this.options;me.raw&&me.windowBits>0?me.windowBits=-me.windowBits:me.gzip&&me.windowBits>0&&me.windowBits<16&&(me.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Yi,this.strm.avail_out=0;let Ae=Rr.deflateInit2(this.strm,me.level,me.method,me.windowBits,me.memLevel,me.strategy);if(Ae!==wi)throw new Error(ur[Ae]);if(me.header&&Rr.deflateSetHeader(this.strm,me.header),me.dictionary){let Pe;if(typeof me.dictionary=="string"?Pe=ji.string2buf(me.dictionary):Ha.call(me.dictionary)==="[object ArrayBuffer]"?Pe=new Uint8Array(me.dictionary):Pe=me.dictionary,Ae=Rr.deflateSetDictionary(this.strm,Pe),Ae!==wi)throw new Error(ur[Ae]);this._dict_set=!0}}Li.prototype.push=function(z,me){const Ae=this.strm,Pe=this.options.chunkSize;let et,ot;if(this.ended)return!1;for(me===~~me?ot=me:ot=me===!0?si:ua,typeof z=="string"?Ae.input=ji.string2buf(z):Ha.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===xa||ot===fa)&&Ae.avail_out<=6){this.onData(Ae.output.subarray(0,Ae.next_out)),Ae.avail_out=0;continue}if(et=Rr.deflate(Ae,ot),et===Fi)return Ae.next_out>0&&this.onData(Ae.output.subarray(0,Ae.next_out)),et=Rr.deflateEnd(this.strm),this.onEnd(et),this.ended=!0,et===wi;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},Li.prototype.onData=function(z){this.chunks.push(z)},Li.prototype.onEnd=function(z){z===wi&&(this.result=gi.flattenChunks(this.chunks)),this.chunks=[],this.err=z,this.msg=this.strm.msg};function ga(z,me){const Ae=new Li(me);if(Ae.push(z,!0),Ae.err)throw Ae.msg||ur[Ae.err];return Ae.result}function pa(z,me){return me=me||{},me.raw=!0,ga(z,me)}function jn(z,me){return me=me||{},me.gzip=!0,ga(z,me)}var ti=Li,bi=ga,qi=pa,Fa=jn,Oi=Qr,Ja={Deflate:ti,deflate:bi,deflateRaw:qi,gzip:Fa,constants:Oi};const Mi=16209,GA=16191;var fA=function(me,Ae){let Pe,et,ot,En,an,Lr,Xt,kn,ci,Kr,Cr,xi,ya,Pi,Ki,ia,Ri,Nr,Gi,Ia,Ui,wa,Aa,Zi;const oa=me.state;Pe=me.next_in,Aa=me.input,et=Pe+(me.avail_in-5),ot=me.next_out,Zi=me.output,En=ot-(Ae-me.avail_out),an=ot+(me.avail_out-257),Lr=oa.dmax,Xt=oa.wsize,kn=oa.whave,ci=oa.wnext,Kr=oa.window,Cr=oa.hold,xi=oa.bits,ya=oa.lencode,Pi=oa.distcode,Ki=(1<>>24,Cr>>>=Nr,xi-=Nr,Nr=Ri>>>16&255,Nr===0)Zi[ot++]=Ri&65535;else if(Nr&16){Gi=Ri&65535,Nr&=15,Nr&&(xi>>=Nr,xi-=Nr),xi<15&&(Cr+=Aa[Pe++]<>>24,Cr>>>=Nr,xi-=Nr,Nr=Ri>>>16&255,Nr&16){if(Ia=Ri&65535,Nr&=15,xiLr){me.msg="invalid distance too far back",oa.mode=Mi;break e}if(Cr>>>=Nr,xi-=Nr,Nr=ot-En,Ia>Nr){if(Nr=Ia-Nr,Nr>kn&&oa.sane){me.msg="invalid distance too far back",oa.mode=Mi;break e}if(Ui=0,wa=Kr,ci===0){if(Ui+=Xt-Nr,Nr2;)Zi[ot++]=wa[Ui++],Zi[ot++]=wa[Ui++],Zi[ot++]=wa[Ui++],Gi-=3;Gi&&(Zi[ot++]=wa[Ui++],Gi>1&&(Zi[ot++]=wa[Ui++]))}else{Ui=ot-Ia;do Zi[ot++]=Zi[Ui++],Zi[ot++]=Zi[Ui++],Zi[ot++]=Zi[Ui++],Gi-=3;while(Gi>2);Gi&&(Zi[ot++]=Zi[Ui++],Gi>1&&(Zi[ot++]=Zi[Ui++]))}}else if(Nr&64){me.msg="invalid distance code",oa.mode=Mi;break e}else{Ri=Pi[(Ri&65535)+(Cr&(1<>3,Pe-=Gi,xi-=Gi<<3,Cr&=(1<{const Lr=an.bits;let Xt=0,kn=0,ci=0,Kr=0,Cr=0,xi=0,ya=0,Pi=0,Ki=0,ia=0,Ri,Nr,Gi,Ia,Ui,wa=null,Aa;const Zi=new Uint16Array(Sa+1),oa=new Uint16Array(Sa+1);let Po=null,vl,Ko,zs;for(Xt=0;Xt<=Sa;Xt++)Zi[Xt]=0;for(kn=0;kn=1&&Zi[Kr]===0;Kr--);if(Cr>Kr&&(Cr=Kr),Kr===0)return et[ot++]=1<<24|64<<16|0,et[ot++]=1<<24|64<<16|0,an.bits=1,0;for(ci=1;ci0&&(z===dA||Kr!==1))return-1;for(oa[1]=0,Xt=1;Xtvi||z===qa&&Ki>aA)return 1;for(;;){vl=Xt-ya,En[kn]+1=Aa?(Ko=Po[En[kn]-Aa],zs=wa[En[kn]-Aa]):(Ko=96,zs=0),Ri=1<>ya)+Nr]=vl<<24|Ko<<16|zs|0;while(Nr!==0);for(Ri=1<>=1;if(Ri!==0?(ia&=Ri-1,ia+=Ri):ia=0,kn++,--Zi[Xt]===0){if(Xt===Kr)break;Xt=me[Ae+En[kn]]}if(Xt>Cr&&(ia&Ia)!==Gi){for(ya===0&&(ya=Cr),Ui+=ci,xi=Xt-ya,Pi=1<vi||z===qa&&Ki>aA)return 1;Gi=ia&Ia,et[Gi]=Cr<<24|xi<<16|Ui-ot|0}}return ia!==0&&(et[Ui+ia]=Xt-ya<<24|64<<16|0),an.bits=Cr,0};const Ra=0,sA=1,kA=2,{Z_FINISH:MA,Z_BLOCK:Za,Z_TREES:ma,Z_OK:Ni,Z_STREAM_END:Ii,Z_NEED_DICT:da,Z_STREAM_ERROR:na,Z_DATA_ERROR:Oa,Z_MEM_ERROR:Ta,Z_BUF_ERROR:UA,Z_DEFLATED:xA}=Qr,DA=16180,ra=16181,eA=16182,vA=16183,IA=16184,VA=16185,jo=16186,Do=16187,KA=16188,jA=16189,tA=16190,nA=16191,cA=16192,mo=16193,Io=16194,ls=16195,ZA=16196,us=16197,Yo=16198,QA=16199,Qo=16200,Lo=16201,Xo=16202,Jo=16203,qo=16204,lo=16205,yo=16206,YA=16207,to=16208,_a=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 me=z.state;return!me||me.strm!==z||me.modecs?1:0},ro=z=>{if(XA(z))return na;const me=z.state;return z.total_in=z.total_out=me.total=0,z.msg="",me.wrap&&(z.adler=me.wrap&1),me.mode=DA,me.last=0,me.havedict=0,me.flags=-1,me.dmax=32768,me.head=null,me.hold=0,me.bits=0,me.lencode=me.lendyn=new Int32Array($o),me.distcode=me.distdyn=new Int32Array(es),me.sane=1,me.back=-1,Ni},co=z=>{if(XA(z))return na;const me=z.state;return me.wsize=0,me.whave=0,me.wnext=0,ro(z)},io=(z,me)=>{let Ae;if(XA(z))return na;const Pe=z.state;return me<0?(Ae=0,me=-me):(Ae=(me>>4)+5,me<48&&(me&=15)),me&&(me<8||me>15)?na:(Pe.window!==null&&Pe.wbits!==me&&(Pe.window=null),Pe.wrap=Ae,Pe.wbits=me,co(z))},zi=(z,me)=>{if(!z)return na;const Ae=new Bo;z.state=Ae,Ae.strm=z,Ae.window=null,Ae.mode=DA;const Pe=io(z,me);return Pe!==Ni&&(z.state=null),Pe},Wi=z=>zi(z,no);let za=!0,Wa,rA;const fo=z=>{if(za){Wa=new Int32Array(512),rA=new Int32Array(32);let me=0;for(;me<144;)z.lens[me++]=8;for(;me<256;)z.lens[me++]=9;for(;me<280;)z.lens[me++]=7;for(;me<288;)z.lens[me++]=8;for(va(sA,z.lens,0,288,Wa,0,z.work,{bits:9}),me=0;me<32;)z.lens[me++]=5;va(kA,z.lens,0,32,rA,0,z.work,{bits:5}),za=!1}z.lencode=Wa,z.lenbits=9,z.distcode=rA,z.distbits=5},JA=(z,me,Ae,Pe)=>{let et;const ot=z.state;return ot.window===null&&(ot.wsize=1<=ot.wsize?(ot.window.set(me.subarray(Ae-ot.wsize,Ae),0),ot.wnext=0,ot.whave=ot.wsize):(et=ot.wsize-ot.wnext,et>Pe&&(et=Pe),ot.window.set(me.subarray(Ae-Pe,Ae-Pe+et),ot.wnext),Pe-=et,Pe?(ot.window.set(me.subarray(Ae-Pe,Ae),0),ot.wnext=Pe,ot.whave=ot.wsize):(ot.wnext+=et,ot.wnext===ot.wsize&&(ot.wnext=0),ot.whave{let Ae,Pe,et,ot,En,an,Lr,Xt,kn,ci,Kr,Cr,xi,ya,Pi=0,Ki,ia,Ri,Nr,Gi,Ia,Ui,wa;const Aa=new Uint8Array(4);let Zi,oa;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 na;Ae=z.state,Ae.mode===nA&&(Ae.mode=cA),En=z.next_out,et=z.output,Lr=z.avail_out,ot=z.next_in,Pe=z.input,an=z.avail_in,Xt=Ae.hold,kn=Ae.bits,ci=an,Kr=Lr,wa=Ni;e:for(;;)switch(Ae.mode){case DA: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,Aa,2,0),Xt=0,kn=0,Ae.mode=ra;break}if(Ae.head&&(Ae.head.done=!1),!(Ae.wrap&1)||(((Xt&255)<<8)+(Xt>>8))%31){z.msg="incorrect header check",Ae.mode=_a;break}if((Xt&15)!==xA){z.msg="unknown compression method",Ae.mode=_a;break}if(Xt>>>=4,kn-=4,Ui=(Xt&15)+8,Ae.wbits===0&&(Ae.wbits=Ui),Ui>15||Ui>Ae.wbits){z.msg="invalid window size",Ae.mode=_a;break}Ae.dmax=1<>8&1),Ae.flags&512&&Ae.wrap&4&&(Aa[0]=Xt&255,Aa[1]=Xt>>>8&255,Ae.check=Er(Ae.check,Aa,2,0)),Xt=0,kn=0,Ae.mode=eA;case eA:for(;kn<32;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>8&255,Aa[2]=Xt>>>16&255,Aa[3]=Xt>>>24&255,Ae.check=Er(Ae.check,Aa,4,0)),Xt=0,kn=0,Ae.mode=vA;case vA:for(;kn<16;){if(an===0)break e;an--,Xt+=Pe[ot++]<>8),Ae.flags&512&&Ae.wrap&4&&(Aa[0]=Xt&255,Aa[1]=Xt>>>8&255,Ae.check=Er(Ae.check,Aa,2,0)),Xt=0,kn=0,Ae.mode=IA;case IA:if(Ae.flags&1024){for(;kn<16;){if(an===0)break e;an--,Xt+=Pe[ot++]<>>8&255,Ae.check=Er(Ae.check,Aa,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&&(Ui=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),Ui)),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 Ui=Pe[ot+Cr++],Ae.head&&Ui&&Ae.length<65536&&(Ae.head.name+=String.fromCharCode(Ui));while(Ui&&Cr>9&1,Ae.head.done=!0),z.adler=Ae.check=0,Ae.mode=nA;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=QA,me===ma){Xt>>>=2,kn-=2;break e}break;case 2:Ae.mode=ZA;break;case 3:z.msg="invalid block type",Ae.mode=_a}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=_a;break}if(Ae.length=Xt&65535,Xt=0,kn=0,Ae.mode=Io,me===ma)break e;case Io:Ae.mode=ls;case ls:if(Cr=Ae.length,Cr){if(Cr>an&&(Cr=an),Cr>Lr&&(Cr=Lr),Cr===0)break e;et.set(Pe.subarray(ot,ot+Cr),En),an-=Cr,ot+=Cr,Lr-=Cr,En+=Cr,Ae.length-=Cr;break}Ae.mode=nA;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=_a;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},wa=va(Ra,Ae.lens,0,19,Ae.lencode,0,Ae.work,Zi),Ae.lenbits=Zi.bits,wa){z.msg="invalid code lengths set",Ae.mode=_a;break}Ae.have=0,Ae.mode=Yo;case Yo:for(;Ae.have>>24,ia=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(oa=Ki+2;kn>>=Ki,kn-=Ki,Ae.have===0){z.msg="invalid bit length repeat",Ae.mode=_a;break}Ui=Ae.lens[Ae.have-1],Cr=3+(Xt&3),Xt>>>=2,kn-=2}else if(Ri===17){for(oa=Ki+3;kn>>=Ki,kn-=Ki,Ui=0,Cr=3+(Xt&7),Xt>>>=3,kn-=3}else{for(oa=Ki+7;kn>>=Ki,kn-=Ki,Ui=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=_a;break}for(;Cr--;)Ae.lens[Ae.have++]=Ui}}if(Ae.mode===_a)break;if(Ae.lens[256]===0){z.msg="invalid code -- missing end-of-block",Ae.mode=_a;break}if(Ae.lenbits=9,Zi={bits:Ae.lenbits},wa=va(sA,Ae.lens,0,Ae.nlen,Ae.lencode,0,Ae.work,Zi),Ae.lenbits=Zi.bits,wa){z.msg="invalid literal/lengths set",Ae.mode=_a;break}if(Ae.distbits=6,Ae.distcode=Ae.distdyn,Zi={bits:Ae.distbits},wa=va(kA,Ae.lens,Ae.nlen,Ae.ndist,Ae.distcode,0,Ae.work,Zi),Ae.distbits=Zi.bits,wa){z.msg="invalid distances set",Ae.mode=_a;break}if(Ae.mode=QA,me===ma)break e;case QA:Ae.mode=Qo;case Qo:if(an>=6&&Lr>=258){z.next_out=En,z.avail_out=Lr,z.next_in=ot,z.avail_in=an,Ae.hold=Xt,Ae.bits=kn,fA(z,Kr),En=z.next_out,et=z.output,Lr=z.avail_out,ot=z.next_in,Pe=z.input,an=z.avail_in,Xt=Ae.hold,kn=Ae.bits,Ae.mode===nA&&(Ae.back=-1);break}for(Ae.back=0;Pi=Ae.lencode[Xt&(1<>>24,ia=Pi>>>16&255,Ri=Pi&65535,!(Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>Nr)],Ki=Pi>>>24,ia=Pi>>>16&255,Ri=Pi&65535,!(Nr+Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=Nr,kn-=Nr,Ae.back+=Nr}if(Xt>>>=Ki,kn-=Ki,Ae.back+=Ki,Ae.length=Ri,ia===0){Ae.mode=lo;break}if(ia&32){Ae.back=-1,Ae.mode=nA;break}if(ia&64){z.msg="invalid literal/length code",Ae.mode=_a;break}Ae.extra=ia&15,Ae.mode=Lo;case Lo:if(Ae.extra){for(oa=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,ia=Pi>>>16&255,Ri=Pi&65535,!(Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>Nr)],Ki=Pi>>>24,ia=Pi>>>16&255,Ri=Pi&65535,!(Nr+Ki<=kn);){if(an===0)break e;an--,Xt+=Pe[ot++]<>>=Nr,kn-=Nr,Ae.back+=Nr}if(Xt>>>=Ki,kn-=Ki,Ae.back+=Ki,ia&64){z.msg="invalid distance code",Ae.mode=_a;break}Ae.offset=Ri,Ae.extra=ia&15,Ae.mode=Jo;case Jo:if(Ae.extra){for(oa=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=_a;break}Ae.mode=qo;case qo:if(Lr===0)break e;if(Cr=Kr-Lr,Ae.offset>Cr){if(Cr=Ae.offset-Cr,Cr>Ae.whave&&Ae.sane){z.msg="invalid distance too far back",Ae.mode=_a;break}Cr>Ae.wnext?(Cr-=Ae.wnext,xi=Ae.wsize-Cr):xi=Ae.wnext-Cr,Cr>Ae.length&&(Cr=Ae.length),ya=Ae.window}else ya=et,xi=En-Ae.offset,Cr=Ae.length;Cr>Lr&&(Cr=Lr),Lr-=Cr,Ae.length-=Cr;do et[En++]=ya[xi++];while(--Cr);Ae.length===0&&(Ae.mode=Qo);break;case lo:if(Lr===0)break e;et[En++]=Ae.length,Lr--,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 na;let me=z.state;return me.window&&(me.window=null),z.state=null,Ni},qA=(z,me)=>{if(XA(z))return na;const Ae=z.state;return Ae.wrap&2?(Ae.head=me,me.done=!1,Ni):na},eu=(z,me)=>{const Ae=me.length;let Pe,et,ot;return XA(z)||(Pe=z.state,Pe.wrap!==0&&Pe.mode!==tA)?na:Pe.mode===tA&&(et=1,et=yr(et,me,Ae,0),et!==Pe.check)?Oa:(ot=JA(z,me,Ae,Ae),ot?(Pe.mode=uo,Ta):(Pe.havedict=1,Ni))};var tu=co,nu=io,ru=ro,Ds=Wi,iu=zi,LA=ho,AA=NA,mA=qA,lA=eu,To="pako inflate (from Nodeca project)",zA={inflateReset:tu,inflateReset2:nu,inflateResetKeep:ru,inflateInit:Ds,inflateInit2:iu,inflate:LA,inflateEnd:AA,inflateGetHeader:mA,inflateSetDictionary:lA,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}=Qr;function ns(z){this.options=gi.assign({chunkSize:1024*64,windowBits:15,to:""},z||{});const me=this.options;me.raw&&me.windowBits>=0&&me.windowBits<16&&(me.windowBits=-me.windowBits,me.windowBits===0&&(me.windowBits=-15)),me.windowBits>=0&&me.windowBits<16&&!(z&&z.windowBits)&&(me.windowBits+=32),me.windowBits>15&&me.windowBits<48&&(me.windowBits&15||(me.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Yi,this.strm.avail_out=0;let Ae=zA.inflateInit2(this.strm,me.windowBits);if(Ae!==ts)throw new Error(ur[Ae]);if(this.header=new au,zA.inflateGetHeader(this.strm,this.header),me.dictionary&&(typeof me.dictionary=="string"?me.dictionary=ji.string2buf(me.dictionary):Ul.call(me.dictionary)==="[object ArrayBuffer]"&&(me.dictionary=new Uint8Array(me.dictionary)),me.raw&&(Ae=zA.inflateSetDictionary(this.strm,me.dictionary),Ae!==ts)))throw new Error(ur[Ae])}ns.prototype.push=function(z,me){const Ae=this.strm,Pe=this.options.chunkSize,et=this.options.dictionary;let ot,En,an;if(this.ended)return!1;for(me===~~me?En=me:En=me===!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=zA.inflate(Ae,En),ot===qs&&et&&(ot=zA.inflateSetDictionary(Ae,et),ot===ts?ot=zA.inflate(Ae,En):ot===Qs&&(ot=qs));Ae.avail_in>0&&ot===Co&&Ae.state.wrap>0&&z[Ae.next_in]!==0;)zA.inflateReset(Ae),ot=zA.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 Lr=ji.utf8border(Ae.output,Ae.next_out),Xt=Ae.next_out-Lr,kn=ji.buf2string(Ae.output,Lr);Ae.next_out=Xt,Ae.avail_out=Pe-Xt,Xt&&Ae.output.set(Ae.output.subarray(Lr,Lr+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=zA.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=gi.flattenChunks(this.chunks)),this.chunks=[],this.err=z,this.msg=this.strm.msg};function ds(z,me){const Ae=new ns(me);if(Ae.push(z),Ae.err)throw Ae.msg||ur[Ae.err];return Ae.result}function Il(z,me){return me=me||{},me.raw=!0,ds(z,me)}var hs=ns,ou=ds,Ls=Il,HA=ds,Ql=Qr,Ll={Inflate:hs,inflate:ou,inflateRaw:Ls,ungzip:HA,constants:Ql};const{Deflate:Tl,deflate:RA,deflateRaw:ha,gzip:EA}=Ja,{Inflate:xo,inflate:Eo,inflateRaw:el,ungzip:tl}=Ll;var Ml=Tl,su=RA,nl=ha,ps=EA,Ts=xo,Ms=Eo,bo=el,oA=tl,Nl=Qr,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 me=z;for(let Ae=0;Ae<8;Ae++)me&1?me=3988292384^me>>>1:me=me>>>1;gs[z]=me}const Ns=4294967295;function Hl(z,me,Ae){let Pe=z;for(let et=0;et>>8;return Pe}function rl(z,me){return(Hl(Ns,z,me)^Ns)>>>0}function il(z,me,Ae){const Pe=z.readUint32(),et=rl(new Uint8Array(z.buffer,z.byteOffset+z.offset-me-4,me),me);if(et!==Pe)throw new Error(`CRC mismatch for chunk ${Ae}. Expected ${Pe}, found ${et}`)}function Bu(z,me){z.writeUint32(rl(new Uint8Array(z.buffer,z.byteOffset+z.offset-me,me),me))}function Rl(z,me,Ae){for(let Pe=0;Pe>1)&255}else{for(;ot>1)&255;for(;ot>1)&255}}function Al(z,me,Ae,Pe,et){let ot=0;if(Ae.length===0){for(;ot=Ae||Ia>=Pe))for(let Ui=0;Ui>8&255}const ys=new Uint16Array([255]),hA=new Uint8Array(ys.buffer)[0]===255,Rs=new Uint8Array(0);function ul(z){const{data:me,width:Ae,height:Pe,channels:et,depth:ot}=z,En=Math.ceil(ot/8)*et,an=Math.ceil(ot/8*et*Ae),Lr=new Uint8Array(Pe*an);let Xt=Rs,kn=0,ci,Kr;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,me,Ae){const Pe=Ho(me);z[Pe]=Pl(me,Ae-Pe.length-1)}function Cu(z,me,Ae){dl(me),hl(Ae);const Pe=me.length+1+Ae.length;z.writeUint32(Pe),z.writeChars(fl),z.writeChars(me),z.writeByte(Bs),z.writeChars(Ae),writeCrc(z,Pe+4)}function Ho(z){for(z.mark();z.readByte()!==Bs;);const me=z.offset;z.reset();const Ae=No.decode(z.readBytes(me-z.offset-1));return z.skip(1),dl(Ae),Ae}function Pl(z,me){return No.decode(z.readBytes(me))}const bA={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);ba(this,"_checkCrc");ba(this,"_inflator");ba(this,"_png");ba(this,"_apng");ba(this,"_end");ba(this,"_hasPalette");ba(this,"_palette");ba(this,"_hasTransparency");ba(this,"_transparency");ba(this,"_compressionMethod");ba(this,"_filterMethod");ba(this,"_interlaceMethod");ba(this,"_colorType");ba(this,"_isAnimated");ba(this,"_numberOfFrames");ba(this,"_numberOfPlays");ba(this,"_frames");ba(this,"_writingDataChunks");const{checkCrc:et=!1}=Pe;this._checkCrc=et,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=bA.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 et=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-et!==Ae)throw new Error(`Length mismatch while decoding chunk ${Pe}`);this._checkCrc?il(this,Ae+4,Pe):this.skip(4)}decodeApngChunk(Ae,Pe){const et=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=et+Ae;break}if(this.offset-et!==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 et;switch(Pe){case bA.GREYSCALE:et=1;break;case bA.TRUECOLOUR:et=3;break;case bA.INDEXED_COLOUR:et=1;break;case bA.GREYSCALE_ALPHA:et=2;break;case bA.TRUECOLOUR_ALPHA:et=4;break;case bA.UNKNOWN:default:throw new Error(`Unknown color type: ${Pe}`)}if(this._png.channels=et,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 et=[];this._palette=et;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 Lr=((En+Pe.yOffset)*this._png.width+Pe.xOffset+an)*this._png.channels,Xt=(En*Pe.width+an)*this._png.channels;return{index:Lr,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:et,depth:ot,data:En}=this._png,an=ot<=8?Math.ceil(Ae*ot/8)*et:Math.ceil(Ae*ot/8*et/2),Lr=new IOBuffer().setBigEndian();let Xt=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Kr=0;Kr0)return z;throw new TypeError(`${me} must be a positive integer`)}function as(z,me){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 et={channels:Ae,depth:Pe,colorType:ColorType.UNKNOWN};switch(Ae){case 4:et.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:et.colorType=ColorType.TRUECOLOUR;break;case 1:me?et.colorType=ColorType.INDEXED_COLOUR:et.colorType=ColorType.GREYSCALE;break;case 2:et.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return et}function uu(z,me,Ae,Pe){for(let et=0;et>8&255),Ae.writeByte(Ri&255)}}return Pe}function gl(z,me,Ae,Pe){for(let et=0;et>1|(Le&21845)<<1;ut=(ut&52428)>>2|(ut&13107)<<2,ut=(ut&61680)>>4|(ut&3855)<<4,We[Le]=((ut&65280)>>8|(ut&255)<<8)>>1}for(var Ge=function(Ke,Oe,At){for(var Et=Ke.length,on=0,Wt=new Xe(Oe);on>Wn]=Vn}else for(Rn=new Xe(Et),on=0;on>15-Ke[on]);return Rn},qe=new Te(288),Le=0;Le<144;++Le)qe[Le]=8;for(var Le=144;Le<256;++Le)qe[Le]=9;for(var Le=256;Le<280;++Le)qe[Le]=7;for(var Le=280;Le<288;++Le)qe[Le]=8;for(var Qe=new Te(32),Le=0;Le<32;++Le)Qe[Le]=5;var xe=Ge(qe,9,0),Ne=null,Me=Ge(Qe,5,0),rt=null,He=function(Ke){for(var Oe=Ke[0],At=1;AtOe&&(Oe=Ke[At]);return Oe},tt=function(Ke,Oe,At){var Et=Oe/8|0;return(Ke[Et]|Ke[Et+1]<<8)>>(Oe&7)&At},gt=function(Ke,Oe){var At=Oe/8|0;return(Ke[At]|Ke[At+1]<<8|Ke[At+2]<<16)>>(Oe&7)},Ye=function(Ke){return(Ke+7)/8|0},wt=function(Ke,Oe,At){return(Oe==null||Oe<0)&&(Oe=0),(At==null||At>Ke.length)&&(At=Ke.length),new Te(Ke.subarray(Oe,At))},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},vt=["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"],Vt=function(Ke,Oe,At){var Et=new Error(Oe||vt[Ke]);if(Et.code=Ke,Error.captureStackTrace&&Error.captureStackTrace(Et,Vt),!At)throw Et;return Et},Jt=function(Ke,Oe,At,Et){var on=Ke.length,Wt=Et?Et.length:0;if(!on||Oe.f&&!Oe.l)return At||new Te(0);var Qn=!At,Rn=Qn||Oe.i!=2,Wn=Oe.i;Qn&&(At=new Te(on*3));var Vn=function(gi){var Ei=At.length;if(gi>Ei){var Ti=new Te(Math.max(Ei*2,gi));Ti.set(At),At=Ti}},Zn=Oe.f||0,Gn=Oe.p||0,ct=Oe.b||0,Yt=Oe.l,Rt=Oe.d,Zt=Oe.m,nn=Oe.n,fn=on*8;do{if(!Yt){Zn=tt(Ke,Gn,1);var dt=tt(Ke,Gn+1,3);if(Gn+=3,dt)if(dt==1)Yt=Ne,Rt=rt,Zt=9,nn=5;else if(dt==2){var ln=tt(Ke,Gn,31)+257,hn=tt(Ke,Gn+10,15)+4,tn=ln+tt(Ke,Gn+5,31)+1;Gn+=14;for(var un=new Te(tn),nr=new Te(19),Nt=0;Nt>4;if(Ln<16)un[Nt++]=Ln;else{var br=0,vr=0;for(Ln==16?(vr=3+tt(Ke,Gn,3),Gn+=2,br=un[Nt-1]):Ln==17?(vr=3+tt(Ke,Gn,7),Gn+=3):Ln==18&&(vr=11+tt(Ke,Gn,127),Gn+=7);vr--;)un[Nt++]=br}}var zr=un.subarray(0,ln),Ir=un.subarray(ln);Zt=He(zr),nn=He(Ir),Yt=Ge(zr,Zt,1),Rt=Ge(Ir,nn,1)}else Vt(1);else{var Ln=Ye(Gn)+4,wn=Ke[Ln-4]|Ke[Ln-3]<<8,Ht=Ln+wn;if(Ht>on){Wn&&Vt(0);break}Rn&&Vn(ct+wn),At.set(Ke.subarray(Ln,Ht),ct),Oe.b=ct+=wn,Oe.p=Gn=Ht*8,Oe.f=Zn;continue}if(Gn>fn){Wn&&Vt(0);break}}Rn&&Vn(ct+131072);for(var ii=(1<>4;if(Gn+=br&15,Gn>fn){Wn&&Vt(0);break}if(br||Vt(2),di<256)At[ct++]=di;else if(di==256){Xr=Gn,Yt=null;break}else{var Ai=di-254;if(di>264){var Nt=di-257,ni=ge[Nt];Ai=tt(Ke,Gn,(1<>4;ri||Vt(3),Gn+=ri&15;var Ir=nt[Rr];if(Rr>3){var ni=Ve[Rr];Ir+=gt(Ke,Gn)&(1<fn){Wn&&Vt(0);break}Rn&&Vn(ct+131072);var ei=ct+Ai;if(ct>8},An=function(Ke,Oe,At){At<<=Oe&7;var Et=Oe/8|0;Ke[Et]|=At,Ke[Et+1]|=At>>8,Ke[Et+2]|=At>>16},ze=function(Ke,Oe){for(var At=[],Et=0;Etct&&(ct=Wt[Et].s);var Yt=new Xe(ct+1),Rt=Fe(At[Zn-1],Yt,0);if(Rt>Oe){var Et=0,Zt=0,nn=Rt-Oe,fn=1<Oe)Zt+=fn-(1<>=nn;Zt>0;){var Ln=Wt[Et].s;Yt[Ln]=0&&Zt;--Et){var wn=Wt[Et].s;Yt[wn]==Oe&&(--Yt[wn],++Zt)}Rt=Oe}return{t:new Te(Yt),l:Rt}},Fe=function(Ke,Oe,At){return Ke.s==-1?Math.max(Fe(Ke.l,Oe,At+1),Fe(Ke.r,Oe,At+1)):Oe[Ke.s]=At},Ot=function(Ke){for(var Oe=Ke.length;Oe&&!Ke[--Oe];);for(var At=new Xe(++Oe),Et=0,on=Ke[0],Wt=1,Qn=function(Wn){At[Et++]=Wn},Rn=1;Rn<=Oe;++Rn)if(Ke[Rn]==on&&Rn!=Oe)++Wt;else{if(!on&&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(on),--Wt;Wt>6;Wt-=6)Qn(8304);Wt>2&&(Qn(Wt-3<<5|8208),Wt=0)}for(;Wt--;)Qn(on);Wt=1,on=Ke[Rn]}return{c:At.subarray(0,Et),n:Oe}},Fn=function(Ke,Oe){for(var At=0,Et=0;Et>8,Ke[on+2]=Ke[on]^255,Ke[on+3]=Ke[on+1]^255;for(var Wt=0;Wt4&&!nr[Ue[qt-1]];--qt);var Nn=Vn+5<<3,On=Fn(on,qe)+Fn(Wt,Qe)+Qn,er=Fn(on,ct)+Fn(Wt,Zt)+Qn+14+3*qt+Fn(hn,nr)+2*hn[16]+3*hn[17]+7*hn[18];if(Wn>=0&&Nn<=On&&Nn<=er)return dn(Oe,Zn,Ke.subarray(Wn,Wn+Vn));var br,vr,zr,Ir;if(pn(Oe,Zn,1+(er15&&(pn(Oe,Zn,di[tn]>>5&127),Zn+=di[tn]>>12)}}else br=xe,vr=qe,zr=Me,Ir=Qe;for(var tn=0;tn255){var Ai=ni>>18&31;An(Oe,Zn,br[Ai+257]),Zn+=vr[Ai+257],Ai>7&&(pn(Oe,Zn,ni>>23&31),Zn+=ge[Ai]);var ri=ni&31;An(Oe,Zn,zr[ri]),Zn+=Ir[ri],ri>3&&(An(Oe,Zn,ni>>5&8191),Zn+=Ve[ri])}else An(Oe,Zn,br[ni]),Zn+=vr[ni]}return An(Oe,Zn,br[256]),Zn+vr[256]},en=new ke([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),rn=new Te(0),Yn=function(Ke,Oe,At,Et,on,Wt){var Qn=Wt.z||Ke.length,Rn=new Te(Et+Qn+5*(1+Math.ceil(Qn/7e3))+on),Wn=Rn.subarray(Et,Rn.length-on),Vn=Wt.l,Zn=(Wt.r||0)&7;if(Oe){Zn&&(Wn[0]=Wt.r>>3);for(var Gn=en[Oe-1],ct=Gn>>13,Yt=Gn&8191,Rt=(1<7e3||nr>24576)&&(br>423||!Vn)){Zn=Ct(Ke,Wn,0,wn,Ht,ln,tn,nr,qt,un-qt,Zn),nr=hn=tn=0,qt=un;for(var vr=0;vr<286;++vr)Ht[vr]=0;for(var vr=0;vr<30;++vr)ln[vr]=0}var zr=2,Ir=0,ii=Yt,oi=On-er&32767;if(br>2&&Nn==Ln(un-oi))for(var Xr=Math.min(ct,br)-1,di=Math.min(32767,un),Ai=Math.min(258,br);oi<=di&&--ii&&On!=er;){if(Ke[un+zr]==Ke[un+zr-oi]){for(var ni=0;nizr){if(zr=ni,Ir=oi,ni>Xr)break;for(var ri=Math.min(oi,ni-2),Rr=0,vr=0;vrRr&&(Rr=Vr,er=ei)}}}On=er,er=Zt[On],oi+=On-er&32767}if(Ir){wn[nr++]=268435456|Ce[zr]<<18|it[Ir];var gi=Ce[zr]&31,Ei=it[Ir]&31;tn+=ge[gi]+Ve[Ei],++Ht[257+gi],++ln[Ei],Nt=un+zr,++hn}else wn[nr++]=Ke[un],++Ht[Ke[un]]}}for(un=Math.max(un,Nt);un=Qn&&(Wn[Zn/8|0]=Vn,Ti=Qn),Zn=dn(Wn,Zn+1,Ke.subarray(un,Ti))}Wt.i=Qn}return wt(Rn,0,Et+Ye(Zn)+on)},Dt=null,mt=function(){var Ke=-1;return{p:function(Oe){for(var At=Ke,Et=0;Et>>8;Ke=At},d:function(){return~Ke}}},ht=function(){var Ke=1,Oe=0;return{p:function(At){for(var Et=Ke,on=Oe,Wt=At.length|0,Qn=0;Qn!=Wt;){for(var Rn=Math.min(Qn+2655,Wt);Qn>16),on=(on&65535)+15*(on>>16)}Ke=Et,Oe=on},d:function(){return Ke%=65521,Oe%=65521,(Ke&255)<<24|(Ke&65280)<<8|(Oe&255)<<8|Oe>>8}}},bt=function(Ke,Oe,At,Et,on){if(!on&&(on={l:1},Oe.dictionary)){var Wt=Oe.dictionary.subarray(-32768),Qn=new Te(Wt.length+Ke.length);Qn.set(Wt),Qn.set(Ke,Wt.length),Ke=Qn,on.w=Wt.length}return Yn(Ke,Oe.level==null?6:Oe.level,Oe.mem==null?on.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Ke.length)))*1.5):20:12+Oe.mem,At,Et,on)},zt=function(Ke,Oe){var At={};for(var Et in Ke)At[Et]=Ke[Et];for(var Et in Oe)At[Et]=Oe[Et];return At},Bt=function(Ke,Oe,At){for(var Et=Ke(),on=Ke.toString(),Wt=on.slice(on.indexOf("[")+1,on.lastIndexOf("]")).replace(/\s+/g,"").split(","),Qn=0;Qn>>0},St=function(Ke,Oe){return Ee(Ke,Oe)+Ee(Ke,Oe+4)*4294967296},Ut=function(Ke,Oe,At){for(;At;++Oe)Ke[Oe]=At,At>>>=8},It=function(Ke,Oe){var At=Oe.filename;if(Ke[0]=31,Ke[1]=139,Ke[2]=8,Ke[8]=Oe.level<2?4:Oe.level==9?2:0,Ke[9]=3,Oe.mtime!=0&&Ut(Ke,4,Math.floor(new Date(Oe.mtime||Date.now())/1e3)),At){Ke[3]=8;for(var Et=0;Et<=At.length;++Et)Ke[Et+10]=At.charCodeAt(Et)}},ft=function(Ke){(Ke[0]!=31||Ke[1]!=139||Ke[2]!=8)&&Vt(6,"invalid gzip data");var Oe=Ke[3],At=10;Oe&4&&(At+=(Ke[10]|Ke[11]<<8)+2);for(var Et=(Oe>>3&1)+(Oe>>4&1);Et>0;Et-=!Ke[At++]);return At+(Oe&2)},Bn=function(Ke){var Oe=Ke.length;return(Ke[Oe-4]|Ke[Oe-3]<<8|Ke[Oe-2]<<16|Ke[Oe-1]<<24)>>>0},jt=function(Ke){return 10+(Ke.filename?Ke.filename.length+1:0)},cn=function(Ke,Oe){var At=Oe.level,Et=At==0?0:At<6?1:At==9?3:2;if(Ke[0]=120,Ke[1]=Et<<6|(Oe.dictionary&&32),Ke[1]|=31-(Ke[0]<<8|Ke[1])%31,Oe.dictionary){var on=ht();on.p(Oe.dictionary),Ut(Ke,2,on.d())}},In=function(Ke,Oe){return((Ke[0]&15)!=8||Ke[0]>>4>7||(Ke[0]<<8|Ke[1])%31)&&Vt(6,"invalid zlib data"),(Ke[1]>>5&1)==+!Oe&&Vt(6,"invalid zlib data: "+(Ke[1]&32?"need":"unexpected")+" dictionary"),(Ke[1]>>3&4)+2};function sr(Ke,Oe){return typeof Ke=="function"&&(Oe=Ke,Ke={}),this.ondata=Oe,Ke}var vn=null,dr=null;function cr(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),re(Ke,Oe,[Ie],function(Et){return he(yr(Et.data[0],Et.data[1]))},0,At)}function yr(Ke,Oe){return bt(Ke,Oe||{},0,0)}var Jn=null,Tr=null;function Pr(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),re(Ke,Oe,[fe],function(Et){return he(Er(Et.data[0],oe(Et.data[1])))},1,At)}function Er(Ke,Oe){return Jt(Ke,{i:2},Oe&&Oe.out,Oe&&Oe.dictionary)}var ur=null,Qr=null;function Kn(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),re(Ke,Oe,[Ie,Be,function(){return[rr]}],function(Et){return he(rr(Et.data[0],Et.data[1]))},2,At)}function rr(Ke,Oe){Oe||(Oe={});var At=mt(),Et=Ke.length;At.p(Ke);var on=bt(Ke,Oe,jt(Oe),8),Wt=on.length;return It(on,Oe),Ut(on,Wt-8,At.d()),Ut(on,Wt-4,Et),on}var qn=null,mn=null;function zn(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),re(Ke,Oe,[fe,pt,function(){return[$t]}],function(Et){return he($t(Et.data[0],Et.data[1]))},3,At)}function $t(Ke,Oe){var At=ft(Ke);return At+8>Ke.length&&Vt(6,"invalid gzip data"),Jt(Ke.subarray(At,-8),{i:2},Oe&&Oe.out||new Te(Bn(Ke)),Oe&&Oe.dictionary)}var Sn=null,pr=null;function lr(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),re(Ke,Oe,[Ie,Mt,function(){return[fr]}],function(Et){return he(fr(Et.data[0],Et.data[1]))},4,At)}function fr(Ke,Oe){Oe||(Oe={});var At=ht();At.p(Ke);var Et=bt(Ke,Oe,Oe.dictionary?6:2,4);return cn(Et,Oe),Ut(Et,Et.length-4,At.d()),Et}var Fr=null,Wr=null;function Dr(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),re(Ke,Oe,[fe,sn,function(){return[Ur]}],function(Et){return he(Ur(Et.data[0],oe(Et.data[1])))},5,At)}function Ur(Ke,Oe){return Jt(Ke.subarray(In(Ke,Oe&&Oe.dictionary),-4),{i:2},Oe&&Oe.out,Oe&&Oe.dictionary)}var qr=null,$n=null;function yn(Ke,Oe,At){return At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7),Ke[0]==31&&Ke[1]==139&&Ke[2]==8?zn(Ke,Oe,At):(Ke[0]&15)!=8||Ke[0]>>4>7||(Ke[0]<<8|Ke[1])%31?Pr(Ke,Oe,At):Dr(Ke,Oe,At)}function $e(Ke,Oe){return Ke[0]==31&&Ke[1]==139&&Ke[2]==8?$t(Ke,Oe):(Ke[0]&15)!=8||Ke[0]>>4>7||(Ke[0]<<8|Ke[1])%31?Er(Ke,Oe):Ur(Ke,Oe)}var kr=function(Ke,Oe,At,Et){for(var on in Ke){var Wt=Ke[on],Qn=Oe+on,Rn=Et;Array.isArray(Wt)&&(Rn=zt(Et,Wt[1]),Wt=Wt[0]),Wt instanceof Te?At[Qn]=[Wt,Rn]:(At[Qn+="/"]=[new Te(0),Rn],kr(Wt,Qn,At,Et))}},Zr=typeof TextEncoder!="undefined"&&new TextEncoder,Lt=typeof TextDecoder!="undefined"&&new TextDecoder,Tt=0;try{Lt.decode(rn,{stream:!0}),Tt=1}catch(Ke){}var tr=function(Ke){for(var Oe="",At=0;;){var Et=Ke[At++],on=(Et>127)+(Et>223)+(Et>239);if(At+on>Ke.length)return{s:Oe,r:wt(Ke,At-1)};on?on==3?(Et=((Et&15)<<18|(Ke[At++]&63)<<12|(Ke[At++]&63)<<6|Ke[At++]&63)-65536,Oe+=String.fromCharCode(55296|Et>>10,56320|Et&1023)):on&1?Oe+=String.fromCharCode((Et&31)<<6|Ke[At++]&63):Oe+=String.fromCharCode((Et&15)<<12|(Ke[At++]&63)<<6|Ke[At++]&63):Oe+=String.fromCharCode(Et)}},Tn=null,Gt=null;function _n(Ke,Oe){if(Oe){for(var At=new Te(Ke.length),Et=0;Et>1)),Qn=0,Rn=function(Zn){Wt[Qn++]=Zn},Et=0;EtWt.length){var Wn=new Te(Qn+8+(on-Et<<1));Wn.set(Wt),Wt=Wn}var Vn=Ke.charCodeAt(Et);Vn<128||Oe?Rn(Vn):Vn<2048?(Rn(192|Vn>>6),Rn(128|Vn&63)):Vn>55295&&Vn<57344?(Vn=65536+(Vn&1047552)|Ke.charCodeAt(++Et)&1023,Rn(240|Vn>>18),Rn(128|Vn>>12&63),Rn(128|Vn>>6&63),Rn(128|Vn&63)):(Rn(224|Vn>>12),Rn(128|Vn>>6&63),Rn(128|Vn&63))}return wt(Wt,0,Qn)}function ar(Ke,Oe){if(Oe){for(var At="",Et=0;Et65535&&Vt(9),Oe+=Et+4}return Oe},xt=function(Ke,Oe,At,Et,on,Wt,Qn,Rn){var Wn=Et.length,Vn=At.extra,Zn=Rn&&Rn.length,Gn=Hn(Vn);Ut(Ke,Oe,Qn!=null?33639248:67324752),Oe+=4,Qn!=null&&(Ke[Oe++]=20,Ke[Oe++]=At.os),Ke[Oe]=20,Oe+=2,Ke[Oe++]=At.flag<<1|(Wt<0&&8),Ke[Oe++]=on&&8,Ke[Oe++]=At.compression&255,Ke[Oe++]=At.compression>>8;var ct=new Date(At.mtime==null?Date.now():At.mtime),Yt=ct.getFullYear()-1980;if((Yt<0||Yt>119)&&Vt(10),Ut(Ke,Oe,Yt<<25|ct.getMonth()+1<<21|ct.getDate()<<16|ct.getHours()<<11|ct.getMinutes()<<5|ct.getSeconds()>>1),Oe+=4,Wt!=-1&&(Ut(Ke,Oe,At.crc),Ut(Ke,Oe+4,Wt<0?-Wt-2:Wt),Ut(Ke,Oe+8,At.size)),Ut(Ke,Oe+12,Wn),Ut(Ke,Oe+14,Gn),Oe+=16,Qn!=null&&(Ut(Ke,Oe,Zn),Ut(Ke,Oe+6,At.attrs),Ut(Ke,Oe+10,Qn),Oe+=14),Ke.set(Et,Oe),Oe+=Wn,Gn)for(var Rt in Vn){var Zt=Vn[Rt],nn=Zt.length;Ut(Ke,Oe,+Rt),Ut(Ke,Oe+2,nn),Ke.set(Zt,Oe+4),Oe+=4+nn}return Zn&&(Ke.set(Rn,Oe),Oe+=Zn),Oe},Ft=function(Ke,Oe,At,Et,on){Ut(Ke,Oe,101010256),Ut(Ke,Oe+8,At),Ut(Ke,Oe+10,At),Ut(Ke,Oe+12,Et),Ut(Ke,Oe+16,on)},gn=null,Mn=null,wr=null,Hr=null;function Mr(Ke,Oe,At){At||(At=Oe,Oe={}),typeof At!="function"&&Vt(7);var Et={};kr(Ke,"",Et,Oe);var on=Object.keys(Et),Wt=on.length,Qn=0,Rn=0,Wn=Wt,Vn=new Array(Wt),Zn=[],Gn=function(){for(var nn=0;nn65535&&On(Vt(11,0,1),null),!Nn)On(null,Ln);else if(ln<16e4)try{On(null,yr(Ln,wn))}catch(er){On(er,null)}else Zn.push(cr(Ln,wn,On))},Zt=0;Zt65535&&Vt(11);var fn=Zn?yr(Wn,Vn):Wn,dt=fn.length,Ln=mt();Ln.p(Wn),Et.push(zt(Vn,{size:Wn.length,crc:Ln.d(),c:fn,f:Gn,m:Rt,u:ct!=Qn.length||Rt&&Yt.length!=Zt,o:on,compression:Zn})),on+=30+ct+nn+dt,Wt+=76+2*(ct+nn)+(Zt||0)+dt}for(var wn=new Te(Wt+22),Ht=on,ln=Wt-on,hn=0;hn65558)return Qn(Vt(13,0,1),null),on;var Wn=le(Ke,Rn+8);if(Wn){var Vn=Wn,Zn=Ee(Ke,Rn+16),Gn=Zn==4294967295||Vn==65535;if(Gn){var ct=Ee(Ke,Rn-12);Gn=Ee(Ke,ct)==101075792,Gn&&(Vn=Wn=Ee(Ke,ct+32),Zn=Ee(Ke,ct+48))}for(var Yt=Oe&&Oe.filter,Rt=function(nn){var fn=hr(Ke,Zn,Gn),dt=fn[0],Ln=fn[1],wn=fn[2],Ht=fn[3],ln=fn[4],hn=fn[5],tn=or(Ke,hn);Zn=ln;var un=function(Nt,qt){Nt?(on(),Qn(Nt,null)):(qt&&(Wt[Ht]=qt),--Wn||Qn(null,Wt))};if(!Yt||Yt({name:Ht,size:Ln,originalSize:wn,compression:dt}))if(!dt)un(null,wt(Ke,tn,tn+Ln));else if(dt==8){var nr=Ke.subarray(tn,tn+Ln);if(wn<524288||Ln>.8*wn)try{un(null,Er(nr,{out:new Te(wn)}))}catch(Nt){un(Nt,null)}else Et.push(Pr(nr,{size:wn},un))}else un(Vt(14,"unknown compression type "+dt,1),null);else un(null,null)},Zt=0;Zt65558)&&Vt(13);var on=le(Ke,Et+8);if(!on)return{};var Wt=Ee(Ke,Et+16),Qn=Wt==4294967295||on==65535;if(Qn){var Rn=Ee(Ke,Et-12);Qn=Ee(Ke,Rn)==101075792,Qn&&(on=Ee(Ke,Rn+32),Wt=Ee(Ke,Rn+48))}for(var Wn=Oe&&Oe.filter,Vn=0;Vn0&&Re[Re.length-1])&&(Cn[0]===6||Cn[0]===2)){ae=0;continue}if(Cn[0]===3&&(!Re||Cn[1]>Re[0]&&Cn[1]=55296&&ve<=56319&&ae>10)+55296,lt%1024+56320)),(ve+1===ae||ie.length>16384)&&(Re+=String.fromCharCode.apply(String,ie),ie.length=0)}return Re},ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ce=0;Ce>4,Dn[ve++]=(lt&15)<<4|kt>>2,Dn[ve++]=(kt&3)<<6|_t&63;return Cn},Le=function(ne){for(var ee=ne.length,ae=[],ie=0;ie>Ge,Me=1<>Ge,tt=Ne+He,gt=tt,Ye=32,wt=gt+Ye,at=65536>>qe,vt=1<=0){if(ee<55296||ee>56319&&ee<=65535)return ae=this.index[ee>>Ge],ae=(ae<>Ge)],ae=(ae<>qe),ae=this.index[ae],ae+=ee>>Ge&Vt,ae=this.index[ae],ae=(ae<Ct?(ve.push(!0),kt-=Ct):ve.push(!1),["normal","auto","loose"].indexOf(ee)!==-1&&[8208,8211,12316,12448].indexOf(Re)!==-1)return ie.push(lt),ae.push(Be);if(kt===Dt||kt===Pt){if(lt===0)return ie.push(lt),ae.push(ft);var _t=ae[lt-1];return pr.indexOf(_t)===-1?(ie.push(ie[lt-1]),ae.push(_t)):(ie.push(lt),ae.push(ft))}if(ie.push(lt),kt===Bn)return ae.push(ee==="strict"?oe:dr);if(kt===Pr||kt===It)return ae.push(ft);if(kt===Er)return Re>=131072&&Re<=196605||Re>=196608&&Re<=262141?ae.push(dr):ae.push(ft);ae.push(kt)}),[ie,ae,ve]},Wr=function(ne,ee,ae,ie){var ve=ie[ae];if(Array.isArray(ne)?ne.indexOf(ve)!==-1:ne===ve)for(var Re=ae;Re<=ie.length;){Re++;var lt=ie[Re];if(lt===ee)return!0;if(lt!==Bt)break}if(ve===Bt)for(var Re=ae;Re>0;){Re--;var kt=ie[Re];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!==Bt)break}if(kt!==Bt)break}return!1},Dr=function(ne,ee){for(var ae=ne;ae>=0;){var ie=ee[ae];if(ie===Bt)ae--;else return ie}return 0},Ur=function(ne,ee,ae,ie,ve){if(ae[ie]===0)return Kn;var Re=ie-1;if(Array.isArray(ve)&&ve[Re]===!0)return Kn;var lt=Re-1,kt=Re+1,_t=ee[Re],Cn=lt>=0?ee[lt]:0,Dn=ee[kt];if(_t===rn&&Dn===Yn)return Kn;if(zn.indexOf(_t)!==-1)return Qr;if(zn.indexOf(Dn)!==-1||$t.indexOf(Dn)!==-1)return Kn;if(Dr(Re,ee)===bt)return rr;if(qn.get(ne[Re])===Pt||(_t===jt||_t===cn)&&qn.get(ne[kt])===Pt||_t===ht||Dn===ht||_t===zt||[Bt,se,Ie].indexOf(_t)===-1&&Dn===zt||[pt,Mt,sn,we,Ut].indexOf(Dn)!==-1||Dr(Re,ee)===re||Wr(de,re,Re,ee)||Wr([pt,Mt],oe,Re,ee)||Wr(_e,_e,Re,ee))return Kn;if(_t===Bt)return rr;if(_t===de||Dn===de)return Kn;if(Dn===Be||_t===Be)return rr;if([se,Ie,oe].indexOf(Dn)!==-1||_t===fe||Cn===vn&&fr.indexOf(_t)!==-1||_t===Ut&&Dn===vn||Dn===he||mn.indexOf(Dn)!==-1&&_t===le||mn.indexOf(_t)!==-1&&Dn===le||_t===St&&[dr,jt,cn].indexOf(Dn)!==-1||[dr,jt,cn].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,Ie].indexOf(Dn)!==-1&&ee[kt+1]===le)||[re,Ie].indexOf(_t)!==-1&&Dn===le||_t===le&&[le,Ut,we].indexOf(Dn)!==-1)return Kn;if([le,Ut,we,pt,Mt].indexOf(Dn)!==-1)for(var Pn=Re;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=[pt,Mt].indexOf(_t)!==-1?lt:Re;Pn>=0;){var mr=ee[Pn];if(mr===le)return Kn;if([Ut,we].indexOf(mr)!==-1)Pn--;else break}if(cr===_t&&[cr,yr,In,sr].indexOf(Dn)!==-1||[yr,In].indexOf(_t)!==-1&&[yr,Jn].indexOf(Dn)!==-1||[Jn,sr].indexOf(_t)!==-1&&Dn===Jn||lr.indexOf(_t)!==-1&&[he,Ee].indexOf(Dn)!==-1||lr.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&&ur.indexOf(ne[kt])===-1||mn.concat(le).indexOf(Dn)!==-1&&_t===Mt)return Kn;if(_t===Tr&&Dn===Tr){for(var Bi=ae[Re],Jr=1;Bi>0&&(Bi--,ee[Bi]===Tr);)Jr++;if(Jr%2!==0)return Kn}return _t===jt&&Dn===cn?Kn:rr},qr=function(ne,ee){ee||(ee={lineBreak:"normal",wordBreak:"normal"});var ae=Fr(ne,ee.lineBreak),ie=ae[0],ve=ae[1],Re=ae[2];(ee.wordBreak==="break-all"||ee.wordBreak==="break-word")&&(ve=ve.map(function(kt){return[le,ft,Pr].indexOf(kt)!==-1?dr:kt}));var lt=ee.wordBreak==="keep-all"?Re.map(function(kt,_t){return kt&&ne[_t]>=19968&&ne[_t]<=40959}):void 0;return[ie,ve,lt]},$n=function(){function ne(ee,ae,ie,ve){this.codePoints=ee,this.required=ae===Qr,this.start=ie,this.end=ve}return ne.prototype.slice=function(){return Se.apply(void 0,this.codePoints.slice(this.start,this.end))},ne}(),yn=function(ne,ee){var ae=Ue(ne),ie=qr(ae,ee),ve=ie[0],Re=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},Nn=function(ne){return Nt(ne)||ne>=ln&&ne<=tn||ne>=fn&&ne<=Ln},On=function(ne){return ne>=fn&&ne<=Ht},er=function(ne){return ne>=ln&&ne<=nr},br=function(ne){return On(ne)||er(ne)},vr=function(ne){return ne>=Oe},zr=function(ne){return ne===Tt||ne===Gt||ne===_n},Ir=function(ne){return br(ne)||vr(ne)||ne===gn},ii=function(ne){return Ir(ne)||Nt(ne)||ne===Mn},oi=function(ne){return ne>=Vn&&ne<=Zn||ne===Gn||ne>=ct&&ne<=Yt||ne===Rt},Xr=function(ne,ee){return ne!==Tn?!1:ee!==Tt},di=function(ne,ee,ae){return ne===Mn?Ir(ee)||Xr(ee,ae):Ir(ne)?!0:!!(ne===Tn&&Xr(ne,ee))},Ai=function(ne,ee,ae){return ne===on||ne===Mn?Nt(ee)?!0:ee===Wn&&Nt(ae):Nt(ne===Wn?ee:ne)},ni=function(ne){var ee=0,ae=1;(ne[ee]===on||ne[ee]===Mn)&&(ne[ee]===Mn&&(ae=-1),ee++);for(var ie=[];Nt(ne[ee]);)ie.push(ne[ee++]);var ve=ie.length?parseInt(Se.apply(void 0,ie),10):0;ne[ee]===Wn&&ee++;for(var Re=[];Nt(ne[ee]);)Re.push(ne[ee++]);var lt=Re.length,kt=lt?parseInt(Se.apply(void 0,Re),10):0;(ne[ee]===hn||ne[ee]===dt)&&ee++;var _t=1;(ne[ee]===on||ne[ee]===Mn)&&(ne[ee]===Mn&&(_t=-1),ee++);for(var Cn=[];Nt(ne[ee]);)Cn.push(ne[ee++]);var Dn=Cn.length?parseInt(Se.apply(void 0,Cn),10):0;return ae*(ve+kt*Math.pow(10,-lt))*Math.pow(10,_t*Dn)},ri={type:2},Rr={type:3},ei={type:4},pi={type:13},Vr={type:8},gi={type:21},Ei={type:9},Ti={type:10},Da={type:11},Na={type:12},ca={type:14},La={type:23},ji={type:1},ea={type:25},Yi={type:24},Ha={type:26},ua={type:27},xa={type:28},fa={type:29},si={type:31},wi={type:32},Fi=function(){function ne(){this._value=[]}return ne.prototype.write=function(ee){this._value=this._value.concat(Ue(ee))},ne.prototype.read=function(){for(var ee=[],ae=this.consumeToken();ae!==wi;)ee.push(ae),ae=this.consumeToken();return ee},ne.prototype.consumeToken=function(){var ee=this.consumeCodePoint();switch(ee){case ar:return this.consumeStringToken(ar);case or:var ae=this.peekCodePoint(0),ie=this.peekCodePoint(1),ve=this.peekCodePoint(2);if(ii(ae)||Xr(ie,ve)){var Re=di(ae,ie,ve)?kr:$e,lt=this.consumeName();return{type:5,value:lt,flags:Re}}break;case hr:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),pi;break;case Hn:return this.consumeStringToken(Hn);case xt:return ri;case Ft:return Rr;case Et:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),ca;break;case on:if(Ai(ee,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ee),this.consumeNumericToken();break;case Wt:return ei;case Mn:var kt=ee,_t=this.peekCodePoint(0),Cn=this.peekCodePoint(1);if(Ai(kt,_t,Cn))return this.reconsumeCodePoint(ee),this.consumeNumericToken();if(di(kt,_t,Cn))return this.reconsumeCodePoint(ee),this.consumeIdentLikeToken();if(_t===Mn&&Cn===Mr)return this.consumeCodePoint(),this.consumeCodePoint(),Yi;break;case Wn:if(Ai(ee,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ee),this.consumeNumericToken();break;case tr:if(this.peekCodePoint(0)===Et)for(this.consumeCodePoint();;){var Dn=this.consumeCodePoint();if(Dn===Et&&(Dn=this.consumeCodePoint(),Dn===tr))return this.consumeToken();if(Dn===Zt)return this.consumeToken()}break;case Qn:return Ha;case Rn:return ua;case Hr:if(this.peekCodePoint(0)===wr&&this.peekCodePoint(1)===Mn&&this.peekCodePoint(2)===Mn)return this.consumeCodePoint(),this.consumeCodePoint(),ea;break;case ir:var Pn=this.peekCodePoint(0),mr=this.peekCodePoint(1),Bi=this.peekCodePoint(2);if(di(Pn,mr,Bi)){var lt=this.consumeName();return{type:7,value:lt}}break;case Xn:return xa;case Tn:if(Xr(ee,this.peekCodePoint(0)))return this.reconsumeCodePoint(ee),this.consumeIdentLikeToken();break;case _r:return fa;case Br:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),Vr;break;case $r:return Da;case ai:return Na;case wn:case un:var Jr=this.peekCodePoint(0),fi=this.peekCodePoint(1);return Jr===on&&(Nn(fi)||fi===ui)&&(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(),gi;break;case Ke:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),Ti;break;case Zt:return wi}return zr(ee)?(this.consumeWhiteSpace(),si):Nt(ee)?(this.reconsumeCodePoint(ee),this.consumeNumericToken()):Ir(ee)?(this.reconsumeCodePoint(ee),this.consumeIdentLikeToken()):{type:6,value:Se(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();Nn(ae)&&ee.length<6;)ee.push(ae),ae=this.consumeCodePoint();for(var ie=!1;ae===ui&&ee.length<6;)ee.push(ae),ae=this.consumeCodePoint(),ie=!0;if(ie){var ve=parseInt(Se.apply(void 0,ee.map(function(_t){return _t===ui?nn:_t})),16),Re=parseInt(Se.apply(void 0,ee.map(function(_t){return _t===ui?tn:_t})),16);return{type:30,start:ve,end:Re}}var lt=parseInt(Se.apply(void 0,ee),16);if(this.peekCodePoint(0)===Mn&&Nn(this.peekCodePoint(1))){this.consumeCodePoint(),ae=this.consumeCodePoint();for(var kt=[];Nn(ae)&&kt.length<6;)kt.push(ae),ae=this.consumeCodePoint();var Re=parseInt(Se.apply(void 0,kt),16);return{type:30,start:lt,end:Re}}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)===Zt)return{type:22,value:""};var ae=this.peekCodePoint(0);if(ae===Hn||ae===ar){var ie=this.consumeStringToken(this.consumeCodePoint());return ie.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Zt||this.peekCodePoint(0)===Ft)?(this.consumeCodePoint(),{type:22,value:ie.value}):(this.consumeBadUrlRemnants(),La)}for(;;){var ve=this.consumeCodePoint();if(ve===Zt||ve===Ft)return{type:22,value:Se.apply(void 0,ee)};if(zr(ve))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Zt||this.peekCodePoint(0)===Ft?(this.consumeCodePoint(),{type:22,value:Se.apply(void 0,ee)}):(this.consumeBadUrlRemnants(),La);if(ve===ar||ve===Hn||ve===xt||oi(ve))return this.consumeBadUrlRemnants(),La;if(ve===Tn)if(Xr(ve,this.peekCodePoint(0)))ee.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),La;else ee.push(ve)}},ne.prototype.consumeWhiteSpace=function(){for(;zr(this.peekCodePoint(0));)this.consumeCodePoint()},ne.prototype.consumeBadUrlRemnants=function(){for(;;){var ee=this.consumeCodePoint();if(ee===Ft||ee===Zt)return;Xr(ee,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ne.prototype.consumeStringSlice=function(ee){for(var ae=5e4,ie="";ee>0;){var ve=Math.min(ae,ee);ie+=Se.apply(void 0,this._value.splice(0,ve)),ee-=ve}return this._value.shift(),ie},ne.prototype.consumeStringToken=function(ee){var ae="",ie=0;do{var ve=this._value[ie];if(ve===Zt||ve===void 0||ve===ee)return ae+=this.consumeStringSlice(ie),{type:0,value:ae};if(ve===Tt)return this._value.splice(0,ie),ji;if(ve===Tn){var Re=this._value[ie+1];Re!==Zt&&Re!==void 0&&(Re===Tt?(ae+=this.consumeStringSlice(ie),ie=-1,this._value.shift()):Xr(ve,Re)&&(ae+=this.consumeStringSlice(ie),ae+=Se(this.consumeEscapedCodePoint()),ie=-1))}ie++}while(!0)},ne.prototype.consumeNumber=function(){var ee=[],ae=Zr,ie=this.peekCodePoint(0);for((ie===on||ie===Mn)&&ee.push(this.consumeCodePoint());Nt(this.peekCodePoint(0));)ee.push(this.consumeCodePoint());ie=this.peekCodePoint(0);var ve=this.peekCodePoint(1);if(ie===Wn&&Nt(ve))for(ee.push(this.consumeCodePoint(),this.consumeCodePoint()),ae=Lt;Nt(this.peekCodePoint(0));)ee.push(this.consumeCodePoint());ie=this.peekCodePoint(0),ve=this.peekCodePoint(1);var Re=this.peekCodePoint(2);if((ie===hn||ie===dt)&&((ve===on||ve===Mn)&&Nt(Re)||Nt(ve)))for(ee.push(this.consumeCodePoint(),this.consumeCodePoint()),ae=Lt;Nt(this.peekCodePoint(0));)ee.push(this.consumeCodePoint());return[ni(ee),ae]},ne.prototype.consumeNumericToken=function(){var ee=this.consumeNumber(),ae=ee[0],ie=ee[1],ve=this.peekCodePoint(0),Re=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(di(ve,Re,lt)){var kt=this.consumeName();return{type:15,number:ae,flags:ie,unit:kt}}return ve===xr?(this.consumeCodePoint(),{type:16,number:ae,flags:ie}):{type:17,number:ae,flags:ie}},ne.prototype.consumeEscapedCodePoint=function(){var ee=this.consumeCodePoint();if(Nn(ee)){for(var ae=Se(ee);Nn(this.peekCodePoint(0))&&ae.length<6;)ae+=Se(this.consumeCodePoint());zr(this.peekCodePoint(0))&&this.consumeCodePoint();var ie=parseInt(ae,16);return ie===0||qt(ie)||ie>1114111?At:ie}return ee===Zt?At:ee},ne.prototype.consumeName=function(){for(var ee="";;){var ae=this.consumeCodePoint();if(ii(ae))ee+=Se(ae);else if(Xr(ae,this.peekCodePoint(0)))ee+=Se(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(ae),ee}},ne}(),Si=function(){function ne(ee){this._tokens=ee}return ne.create=function(ee){var ae=new Fi;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||qi(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"?wi: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},Li=function(ne){return ne.type===20},ga=function(ne){return ne.type===0},pa=function(ne,ee){return Li(ne)&&ne.value===ee},jn=function(ne){return ne.type!==31},ti=function(ne){return ne.type!==31&&ne.type!==4},bi=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},qi=function(ne,ee){return ee===11&&ne.type===12||ee===28&&ne.type===29?!0:ee===2&&ne.type===3},Fa=function(ne){return ne.type===17||ne.type===15},Oi=function(ne){return ne.type===16||Fa(ne)},Ja=function(ne){return ne.length>1?[ne[0],ne[1]]:[ne[0]]},Mi={type:17,number:0,flags:Zr},GA={type:16,number:50,flags:Zr},fA={type:16,number:100,flags:Zr},Sa=function(ne,ee,ae){var ie=ne[0],ve=ne[1];return[vi(ie,ee),vi(typeof ve!="undefined"?ve: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},aA="deg",dA="grad",$a="rad",qa="turn",PA={name:"angle",parse:function(ne,ee){if(ee.type===15)switch(ee.unit){case aA:return Math.PI*ee.number/180;case dA:return Math.PI/200*ee.number;case $a:return ee.number;case qa:return Math.PI*2*ee.number}throw new Error("Unsupported angle type")}},BA=function(ne){return ne.type===15&&(ne.unit===aA||ne.unit===dA||ne.unit===$a||ne.unit===qa)},CA=function(ne){var ee=ne.filter(Li).map(function(ae){return ae.value}).join(" ");switch(ee){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Mi,Mi];case"to top":case"bottom":return Ka(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Mi,fA];case"to right":case"left":return Ka(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fA,fA];case"to bottom":case"top":return Ka(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fA,Mi];case"to left":case"right":return Ka(270)}return 0},Ka=function(ne){return Math.PI*ne/180},Ea={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),ve=ee.value.substring(1,2),Re=ee.value.substring(2,3);return sA(parseInt(ie+ie,16),parseInt(ve+ve,16),parseInt(Re+Re,16),1)}if(ee.value.length===4){var ie=ee.value.substring(0,1),ve=ee.value.substring(1,2),Re=ee.value.substring(2,3),lt=ee.value.substring(3,4);return sA(parseInt(ie+ie,16),parseInt(ve+ve,16),parseInt(Re+Re,16),parseInt(lt+lt,16)/255)}if(ee.value.length===6){var ie=ee.value.substring(0,2),ve=ee.value.substring(2,4),Re=ee.value.substring(4,6);return sA(parseInt(ie,16),parseInt(ve,16),parseInt(Re,16),1)}if(ee.value.length===8){var ie=ee.value.substring(0,2),ve=ee.value.substring(2,4),Re=ee.value.substring(4,6),lt=ee.value.substring(6,8);return sA(parseInt(ie,16),parseInt(ve,16),parseInt(Re,16),parseInt(lt,16)/255)}}if(ee.type===20){var kt=da[ee.value.toUpperCase()];if(typeof kt!="undefined")return kt}return da.TRANSPARENT}},va=function(ne){return(255&ne)===0},Ra=function(ne){var ee=255&ne,ae=255&ne>>8,ie=255&ne>>16,ve=255&ne>>24;return ee<255?"rgba("+ve+","+ie+","+ae+","+ee/255+")":"rgb("+ve+","+ie+","+ae+")"},sA=function(ne,ee,ae,ie){return(ne<<24|ee<<16|ae<<8|Math.round(ie*255)<<0)>>>0},kA=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},MA=function(ne,ee){var ae=ee.filter(ti);if(ae.length===3){var ie=ae.map(kA),ve=ie[0],Re=ie[1],lt=ie[2];return sA(ve,Re,lt,1)}if(ae.length===4){var kt=ae.map(kA),ve=kt[0],Re=kt[1],lt=kt[2],_t=kt[3];return sA(ve,Re,lt,_t)}return 0};function Za(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 ma=function(ne,ee){var ae=ee.filter(ti),ie=ae[0],ve=ae[1],Re=ae[2],lt=ae[3],kt=(ie.type===17?Ka(ie.number):PA.parse(ne,ie))/(Math.PI*2),_t=Oi(ve)?ve.number/100:0,Cn=Oi(Re)?Re.number/100:0,Dn=typeof lt!="undefined"&&Oi(lt)?vi(lt,1):1;if(_t===0)return sA(Cn*255,Cn*255,Cn*255,1);var Pn=Cn<=.5?Cn*(_t+1):Cn+_t-Cn*_t,mr=Cn*2-Pn,Bi=Za(mr,Pn,kt+1/3),Jr=Za(mr,Pn,kt),fi=Za(mr,Pn,kt-1/3);return sA(Bi*255,Jr*255,fi*255,Dn)},Ni={hsl:ma,hsla:ma,rgb:MA,rgba:MA},Ii=function(ne,ee){return Ea.parse(ne,Si.create(ee).parseComponentValue())},da={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},na={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ne,ee){return ee.map(function(ae){if(Li(ae))switch(ae.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Oa={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ta=function(ne,ee){var ae=Ea.parse(ne,ee[0]),ie=ee[1];return ie&&Oi(ie)?{color:ae,stop:ie}:{color:ae,stop:null}},UA=function(ne,ee){var ae=ne[0],ie=ne[ne.length-1];ae.stop===null&&(ae.stop=Mi),ie.stop===null&&(ie.stop=fA);for(var ve=[],Re=0,lt=0;ltRe?ve.push(_t):ve.push(Re),Re=_t}else ve.push(null)}for(var Cn=null,lt=0;ltlt.optimumDistance)?{optimumCorner:kt,optimumDistance:Dn}:lt},{optimumDistance:ve?1/0:-1/0,optimumCorner:null}).optimumCorner},vA=function(ne,ee,ae,ie,ve){var Re=0,lt=0;switch(ne.size){case 0:ne.shape===0?Re=lt=Math.min(Math.abs(ee),Math.abs(ee-ie),Math.abs(ae),Math.abs(ae-ve)):ne.shape===1&&(Re=Math.min(Math.abs(ee),Math.abs(ee-ie)),lt=Math.min(Math.abs(ae),Math.abs(ae-ve)));break;case 2:if(ne.shape===0)Re=lt=Math.min(ra(ee,ae),ra(ee,ae-ve),ra(ee-ie,ae),ra(ee-ie,ae-ve));else if(ne.shape===1){var kt=Math.min(Math.abs(ae),Math.abs(ae-ve))/Math.min(Math.abs(ee),Math.abs(ee-ie)),_t=eA(ie,ve,ee,ae,!0),Cn=_t[0],Dn=_t[1];Re=ra(Cn-ee,(Dn-ae)/kt),lt=kt*Re}break;case 1:ne.shape===0?Re=lt=Math.max(Math.abs(ee),Math.abs(ee-ie),Math.abs(ae),Math.abs(ae-ve)):ne.shape===1&&(Re=Math.max(Math.abs(ee),Math.abs(ee-ie)),lt=Math.max(Math.abs(ae),Math.abs(ae-ve)));break;case 3:if(ne.shape===0)Re=lt=Math.max(ra(ee,ae),ra(ee,ae-ve),ra(ee-ie,ae),ra(ee-ie,ae-ve));else if(ne.shape===1){var kt=Math.max(Math.abs(ae),Math.abs(ae-ve))/Math.max(Math.abs(ee),Math.abs(ee-ie)),Pn=eA(ie,ve,ee,ae,!1),Cn=Pn[0],Dn=Pn[1];Re=ra(Cn-ee,(Dn-ae)/kt),lt=kt*Re}break}return Array.isArray(ne.size)&&(Re=vi(ne.size[0],ie),lt=ne.size.length===2?vi(ne.size[1],ve):Re),[Re,lt]},IA=function(ne,ee){var ae=Ka(180),ie=[];return bi(ee).forEach(function(ve,Re){if(Re===0){var lt=ve[0];if(lt.type===20&<.value==="to"){ae=CA(ve);return}else if(BA(lt)){ae=PA.parse(ne,lt);return}}var kt=Ta(ne,ve);ie.push(kt)}),{angle:ae,stops:ie,type:1}},VA=function(ne,ee){var ae=Ka(180),ie=[];return bi(ee).forEach(function(ve,Re){if(Re===0){var lt=ve[0];if(lt.type===20&&["top","left","right","bottom"].indexOf(lt.value)!==-1){ae=CA(ve);return}else if(BA(lt)){ae=(PA.parse(ne,lt)+Ka(270))%Ka(360);return}}var kt=Ta(ne,ve);ie.push(kt)}),{angle:ae,stops:ie,type:1}},jo=function(ne,ee){var ae=Ka(180),ie=[],ve=1,Re=0,lt=3,kt=[];return bi(ee).forEach(function(_t,Cn){var Dn=_t[0];if(Cn===0){if(Li(Dn)&&Dn.value==="linear"){ve=1;return}else if(Li(Dn)&&Dn.value==="radial"){ve=2;return}}if(Dn.type===18){if(Dn.name==="from"){var Pn=Ea.parse(ne,Dn.values[0]);ie.push({stop:Mi,color:Pn})}else if(Dn.name==="to"){var Pn=Ea.parse(ne,Dn.values[0]);ie.push({stop:fA,color:Pn})}else if(Dn.name==="color-stop"){var mr=Dn.values.filter(ti);if(mr.length===2){var Pn=Ea.parse(ne,mr[1]),Bi=mr[0];Xi(Bi)&&ie.push({stop:{type:16,number:Bi.number*100,flags:Bi.flags},color:Pn})}}}}),ve===1?{angle:(ae+Ka(180))%Ka(360),stops:ie,type:ve}:{size:lt,shape:Re,stops:ie,position:kt,type:ve}},Do="closest-side",KA="farthest-side",jA="closest-corner",tA="farthest-corner",nA="circle",cA="ellipse",mo="cover",Io="contain",ls=function(ne,ee){var ae=0,ie=3,ve=[],Re=[];return bi(ee).forEach(function(lt,kt){var _t=!0;if(kt===0){var Cn=!1;_t=lt.reduce(function(Pn,mr){if(Cn)if(Li(mr))switch(mr.value){case"center":return Re.push(GA),Pn;case"top":case"left":return Re.push(Mi),Pn;case"right":case"bottom":return Re.push(fA),Pn}else(Oi(mr)||Fa(mr))&&Re.push(mr);else if(Li(mr))switch(mr.value){case nA: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 KA:return ie=1,!1;case Io:case jA:return ie=2,!1;case tA:return ie=3,!1}else if(Fa(mr)||Oi(mr))return Array.isArray(ie)||(ie=[]),ie.push(mr),!1;return Pn},_t)}if(_t){var Dn=Ta(ne,lt);ve.push(Dn)}}),{size:ie,shape:ae,stops:ve,position:Re,type:2}},ZA=function(ne,ee){var ae=0,ie=3,ve=[],Re=[];return bi(ee).forEach(function(lt,kt){var _t=!0;if(kt===0?_t=lt.reduce(function(Dn,Pn){if(Li(Pn))switch(Pn.value){case"center":return Re.push(GA),!1;case"top":case"left":return Re.push(Mi),!1;case"right":case"bottom":return Re.push(fA),!1}else if(Oi(Pn)||Fa(Pn))return Re.push(Pn),!1;return Dn},_t):kt===1&&(_t=lt.reduce(function(Dn,Pn){if(Li(Pn))switch(Pn.value){case nA:return ae=0,!1;case cA:return ae=1,!1;case Io:case Do:return ie=0,!1;case KA:return ie=1,!1;case jA:return ie=2,!1;case mo:case tA:return ie=3,!1}else if(Fa(Pn)||Oi(Pn))return Array.isArray(ie)||(ie=[]),ie.push(Pn),!1;return Dn},_t)),_t){var Cn=Ta(ne,lt);ve.push(Cn)}}),{size:ie,shape:ae,stops:ve,position:Re,type:2}},us=function(ne){return ne.type===1},Yo=function(ne){return ne.type===2},QA={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":IA,"-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 ti(ie)&&Qo(ie)}).map(function(ie){return QA.parse(ne,ie)})}},Jo={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ne,ee){return ee.map(function(ae){if(Li(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 bi(ee).map(function(ae){return ae.filter(Oi)}).map(Ja)}},lo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ne,ee){return bi(ee).map(function(ae){return ae.filter(Li).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 bi(ee).map(function(ae){return ae.filter(_a)})}},_a=function(ne){return Li(ne)||Oi(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 Ja(ae.filter(Oi))}}},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"),za=co("left"),Wa=function(ne){return{name:"border-"+ne+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ee,ae){return Hi(ae)?ae.number:0}}},rA=Wa("top"),fo=Wa("right"),JA=Wa("bottom"),ho=Wa("left"),NA={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(Li).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}}},LA={name:"line-height",initialValue:"normal",prefix:!1,type:4},AA=function(ne,ee){return Li(ne)&&ne.value==="normal"?1.2*ee:ne.type===17?ee*ne.number:Oi(ne)?vi(ne,ee):ee},mA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ne,ee){return ee.type===20&&ee.value==="none"?null:QA.parse(ne,ee)}},lA={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}}},zA=function(ne){return{name:"margin-"+ne,initialValue:"0",prefix:!1,type:4}},Is=zA("top"),au=zA("right"),Ul=zA("bottom"),Au=zA("left"),Js={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ne,ee){return ee.filter(Li).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&&pa(ee[0],"none")?[]:bi(ee).map(function(ae){for(var ie={color:da.TRANSPARENT,offsetX:Mi,offsetY:Mi,blur:Mi},ve=0,Re=0;Re1?1:0],this.overflowWrap=hi(ee,ts,ae.overflowWrap),this.paddingTop=hi(ee,qs,ae.paddingTop),this.paddingRight=hi(ee,$s,ae.paddingRight),this.paddingBottom=hi(ee,Qs,ae.paddingBottom),this.paddingLeft=hi(ee,Dl,ae.paddingLeft),this.paintOrder=hi(ee,Bu,ae.paintOrder),this.position=hi(ee,ds,ae.position),this.textAlign=hi(ee,ns,ae.textAlign),this.textDecorationColor=hi(ee,Ml,(ie=ae.textDecorationColor)!==null&&ie!==void 0?ie:ae.color),this.textDecorationLine=hi(ee,su,(ve=ae.textDecorationLine)!==null&&ve!==void 0?ve:ae.textDecoration),this.textShadow=hi(ee,Il,ae.textShadow),this.textTransform=hi(ee,hs,ae.textTransform),this.transform=hi(ee,ou,ae.transform),this.transformOrigin=hi(ee,RA,ae.transformOrigin),this.visibility=hi(ee,ha,ae.visibility),this.webkitTextStrokeColor=hi(ee,Rl,ae.webkitTextStrokeColor),this.webkitTextStrokeWidth=hi(ee,vs,ae.webkitTextStrokeWidth),this.wordBreak=hi(ee,xo,ae.wordBreak),this.zIndex=hi(ee,Eo,ae.zIndex)}return ne.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},ne.prototype.isTransparent=function(){return va(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=hi(ee,Nl,ae.content),this.quotes=hi(ee,Hl,ae.quotes)}return ne}(),Al=function(){function ne(ee,ae){this.counterIncrement=hi(ee,wu,ae.counterIncrement),this.counterReset=hi(ee,gs,ae.counterReset)}return ne}(),hi=function(ne,ee,ae){var ie=new Fi,ve=ae!==null&&typeof ae!="undefined"?ae.toString():ee.initialValue;ie.write(ve);var Re=new Si(ie.read());switch(ee.type){case 2:var lt=Re.parseComponentValue();return ee.parse(ne,Li(lt)?lt.value:ee.initialValue);case 0:return ee.parse(ne,Re.parseComponentValue());case 1:return ee.parse(ne,Re.parseComponentValues());case 4:return Re.parseComponentValue();case 3:switch(ee.format){case"angle":return PA.parse(ne,Re.parseComponentValue());case"color":return Ea.parse(ne,Re.parseComponentValue());case"image":return QA.parse(ne,Re.parseComponentValue());case"length":var kt=Re.parseComponentValue();return Fa(kt)?kt:Mi;case"length-percentage":var _t=Re.parseComponentValue();return Oi(_t)?_t:Mi;case"time":return el.parse(ne,Re.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=ge(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[ve++]=(lt&15)<<4|kt>>2,Dn[ve++]=(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&&ve<=56319&&ae>10)+55296,lt%1024+56320)),(ve+1===ae||ie.length>16384)&&(Re+=String.fromCharCode.apply(String,ie),ie.length=0)}return Re},et=is(sl),ot="\xD7",En="\xF7",an=function(ne){return et.get(ne)},Lr=function(ne,ee,ae){var ie=ae-2,ve=ee[ie],Re=ee[ae-1],lt=ee[ae];if(Re===Ks&<===go)return ot;if(Re===Ks||Re===go||Re===_o||lt===Ks||lt===go||lt===_o)return En;if(Re===pl&&[pl,gl,Kl,FA].indexOf(lt)!==-1||(Re===Kl||Re===gl)&&(lt===gl||lt===Zs)||(Re===FA||Re===Zs)&<===Zs||lt===Zl||lt===as||lt===uu||Re===lu)return ot;if(Re===Zl&<===z){for(;ve===as;)ve=ee[--ie];if(ve===z)return ot}if(Re===me&<===me){for(var kt=0;ve===me;)kt++,ve=ee[--ie];if(kt%2===0)return ot}return En},Xt=function(ne){var ee=Ae(ne),ae=ee.length,ie=0,ve=0,Re=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"},ya=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(ve){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 ve=new Image,Re=ee.toDataURL();ve.src=Re;var lt=ia(ae,ae,0,0,ve);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("+Re+")",Cn.style.height=ae+"px",Pi(_t)?Ri(ia(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})},ia=function(ne,ee,ae,ie,ve){var Re="http://www.w3.org/2000/svg",lt=document.createElementNS(Re,"svg"),kt=document.createElementNS(Re,"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(ve),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))})},Nr={get SUPPORT_RANGE_BOUNDS(){var ne=ci(document);return Object.defineProperty(Nr,"SUPPORT_RANGE_BOUNDS",{value:ne}),ne},get SUPPORT_WORD_BREAKING(){var ne=Nr.SUPPORT_RANGE_BOUNDS&&Kr(document);return Object.defineProperty(Nr,"SUPPORT_WORD_BREAKING",{value:ne}),ne},get SUPPORT_SVG_DRAWING(){var ne=ya(document);return Object.defineProperty(Nr,"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(Nr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ne}),ne},get SUPPORT_CORS_IMAGES(){var ne=Cr();return Object.defineProperty(Nr,"SUPPORT_CORS_IMAGES",{value:ne}),ne},get SUPPORT_RESPONSE_TYPE(){var ne=xi();return Object.defineProperty(Nr,"SUPPORT_RESPONSE_TYPE",{value:ne}),ne},get SUPPORT_CORS_XHR(){var ne="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Nr,"SUPPORT_CORS_XHR",{value:ne}),ne},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var ne=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Nr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:ne}),ne}},Gi=function(){function ne(ee,ae){this.text=ee,this.bounds=ae}return ne}(),Ia=function(ne,ee,ae,ie){var ve=oa(ee,ae),Re=[],lt=0;return ve.forEach(function(kt){if(ae.textDecorationLine.length||kt.trim().length>0)if(Nr.SUPPORT_RANGE_BOUNDS){var _t=wa(ie,lt,kt.length).getClientRects();if(_t.length>1){var Cn=Aa(kt),Dn=0;Cn.forEach(function(mr){Re.push(new Gi(mr,ke.fromDOMRectList(ne,wa(ie,Dn+lt,mr.length).getClientRects()))),Dn+=mr.length})}else Re.push(new Gi(kt,ke.fromDOMRectList(ne,_t)))}else{var Pn=ie.splitText(kt.length);Re.push(new Gi(kt,Ui(ne,ie))),ie=Pn}else Nr.SUPPORT_RANGE_BOUNDS||(ie=ie.splitText(kt.length));lt+=kt.length}),Re},Ui=function(ne,ee){var ae=ee.ownerDocument;if(ae){var ie=ae.createElement("html2canvaswrapper");ie.appendChild(ee.cloneNode(!0));var ve=ee.parentNode;if(ve){ve.replaceChild(ie,ee);var Re=ge(ne,ie);return ie.firstChild&&ve.replaceChild(ie.firstChild,ie),Re}}return ke.EMPTY},wa=function(ne,ee,ae){var ie=ne.ownerDocument;if(!ie)throw new Error("Node has no owner document");var ve=ie.createRange();return ve.setStart(ne,ee),ve.setEnd(ne,ee+ae),ve},Aa=function(ne){if(Nr.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(Nr.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)},oa=function(ne,ee){return ee.letterSpacing!==0?Aa(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=[],ve,Re=function(){if(ve.value){var lt=ve.value.slice(),kt=Ue(lt),_t="";kt.forEach(function(Cn){Po.indexOf(Cn)===-1?_t+=Se(Cn):(_t.length&&ie.push(_t),ie.push(Se(Cn)),_t="")}),_t.length&&ie.push(_t)}};!(ve=ae.next()).done;)Re();return ie},Ko=function(){function ne(ee,ae,ie){this.text=zs(ae.data,ie.textTransform),this.textBounds=Ia(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 ve=ne.call(this,ae,ie)||this;return ve.src=ie.currentSrc||ie.src,ve.intrinsicWidth=ie.naturalWidth,ve.intrinsicHeight=ie.naturalHeight,ve.context.cache.addImage(ve.src),ve}return ee}($A),fu=function(ne){ce(ee,ne);function ee(ae,ie){var ve=ne.call(this,ae,ie)||this;return ve.canvas=ie,ve.intrinsicWidth=ie.width,ve.intrinsicHeight=ie.height,ve}return ee}($A),xu=function(ne){ce(ee,ne);function ee(ae,ie){var ve=ne.call(this,ae,ie)||this,Re=new XMLSerializer,lt=ge(ae,ie);return ie.setAttribute("width",lt.width+"px"),ie.setAttribute("height",lt.height+"px"),ve.svg="data:image/svg+xml,"+encodeURIComponent(Re.serializeToString(ie)),ve.intrinsicWidth=ie.width.baseVal.value,ve.intrinsicHeight=ie.height.baseVal.value,ve.context.cache.addImage(ve.svg),ve}return ee}($A),zl=function(ne){ce(ee,ne);function ee(ae,ie){var ve=ne.call(this,ae,ie)||this;return ve.value=ie.value,ve}return ee}($A),Wl=function(ne){ce(ee,ne);function ee(ae,ie){var ve=ne.call(this,ae,ie)||this;return ve.start=ie.start,ve.reversed=typeof ie.reversed=="boolean"&&ie.reversed===!0,ve}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 ke(ne.left+(ne.width-ne.height)/2,ne.top,ne.height,ne.height):ne.width0)ae.textNodes.push(new Ko(ne,ve,ae.styles));else if(Gs(ve))if(gu(ve)&&ve.assignedNodes)ve.assignedNodes().forEach(function(kt){return wl(ne,kt,ae,ie)});else{var lt=Uu(ne,ve);lt.styles.isVisible()&&(Iu(ve,lt,ie)?lt.flags|=4:du(lt.styles)&&(lt.flags|=2),ju.indexOf(ve.tagName)!==-1&&(lt.flags|=8),ae.elements.push(lt),ve.slot,ve.shadowRoot?wl(ne,ve.shadowRoot,lt,ie):!Cl(ve)&&!Lu(ve)&&!xl(ve)&&wl(ne,ve,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()||Pa(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"},Pa=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,ve=ee.counterReset,Re=!0;ie!==null&&ie.forEach(function(kt){var _t=ae.counters[kt.counter];_t&&kt.increment!==0&&(Re=!1,_t.length||_t.push(1),_t[Math.max(0,_t.length-1)]+=kt.increment)});var lt=[];return Re&&ve.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"]},ka={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,ve,Re){return neae?E(ne,ve,Re.length>0):ie.integers.reduce(function(lt,kt,_t){for(;ne>=kt;)ne-=kt,lt+=ie.values[_t];return lt},"")+Re},Ru=function(ne,ee,ae,ie){var ve="";do ae||ne--,ve=ie(ne)+ve,ne/=ee;while(ne*ee>=ee);return ve},Ga=function(ne,ee,ae,ie,ve){var Re=ae-ee+1;return(ne<0?"-":"")+(Ru(Math.abs(ne),Re,ie,function(lt){return Se(Math.floor(lt%Re)+ee)})+ve)},Fs=function(ne,ee,ae){ae===void 0&&(ae=". ");var ie=ee.length;return Ru(Math.abs(ne),ie,!1,function(ve){return ee[Math.floor(ve%ie)]})+ae},zo=1,os=2,Qa=4,El=8,Wo=function(ne,ee,ae,ie,ve,Re){if(ne<-9999||ne>9999)return E(ne,4,ve.length>0);var lt=Math.abs(ne),kt=ve;if(lt===0)return ee[0]+kt;for(var _t=0;lt>0&&_t<=4;_t++){var Cn=lt%10;Cn===0&&oA(Re,zo)&&kt!==""?kt=ee[Cn]+kt:Cn>1||Cn===1&&_t===0||Cn===1&&_t===1&&oA(Re,os)||Cn===1&&_t===1&&oA(Re,Qa)&&ne>100||Cn===1&&_t>1&&oA(Re,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?". ":"",ve=ae?"\u3001":"",Re=ae?", ":"",lt=ae?" ":"";switch(ee){case 0:return"\u2022"+lt;case 1:return"\u25E6"+lt;case 2:return"\u25FE"+lt;case 5:var kt=Ga(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",ve);case 6:return bs(ne,1,3999,Nu,3,ie).toLowerCase();case 7:return bs(ne,1,3999,Nu,3,ie);case 8:return Ga(ne,945,969,!1,ie);case 9:return Ga(ne,97,122,!1,ie);case 10:return Ga(ne,65,90,!1,ie);case 11:return Ga(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 Ga(ne,2534,2543,!0,ie);case 14:case 30:return Ga(ne,6112,6121,!0,ie);case 15:return Fs(ne,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",ve);case 16:return Fs(ne,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",ve);case 17:case 48:return Wo(ne,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ou,"\u8CA0",ve,os|Qa|El);case 47:return Wo(ne,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",bl,"\u8CA0",ve,zo|os|Qa|El);case 42:return Wo(ne,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ou,"\u8D1F",ve,os|Qa|El);case 41:return Wo(ne,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",bl,"\u8D1F",ve,zo|os|Qa|El);case 26:return Wo(ne,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,ve,0);case 25:return Wo(ne,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,ve,zo|os|Qa);case 31:return Wo(ne,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",y,Re,zo|os|Qa);case 33:return Wo(ne,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",y,Re,0);case 32:return Wo(ne,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",y,Re,zo|os|Qa);case 18:return Ga(ne,2406,2415,!0,ie);case 20:return bs(ne,1,19999,ka,3,ie);case 21:return Ga(ne,2790,2799,!0,ie);case 22:return Ga(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 Ga(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",ve);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",ve);case 34:return Ga(ne,3792,3801,!0,ie);case 37:return Ga(ne,6160,6169,!0,ie);case 38:return Ga(ne,4160,4169,!0,ie);case 39:return Ga(ne,2918,2927,!0,ie);case 40:return Ga(ne,1776,1785,!0,ie);case 43:return Ga(ne,3046,3055,!0,ie);case 44:return Ga(ne,3174,3183,!0,ie);case 45:return Ga(ne,3664,3673,!0,ie);case 46:return Ga(ne,3872,3881,!0,ie);case 3:default:return Ga(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,ve=pe(ee,ae);if(!ve.contentWindow)return Promise.reject("Unable to find iframe window");var Re=ee.defaultView.pageXOffset,lt=ee.defaultView.pageYOffset,kt=ve.contentWindow,_t=kt.document,Cn=je(ve).then(function(){return Ze(ie,void 0,void 0,function(){var Dn,Pn;return Te(this,function(mr){switch(mr.label){case 0:return this.scrolledElements.forEach(gr),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 ve})]:[2,ve]}})})});return _t.open(),_t.write(Un(document.doctype)+""),bn(this.referenceElement.ownerDocument,Re,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 Kt(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(Re,lt){return lt&&typeof lt.cssText=="string"?Re+lt.cssText:Re},""),ve=ee.cloneNode(!1);return ve.textContent=ie,ve}}catch(Re){if(this.context.logger.error("Unable to access cssRules property",Re),Re.name!=="SecurityError")throw Re}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 ve=ee.cloneNode(!1);try{ve.width=ee.width,ve.height=ee.height;var Re=ee.getContext("2d"),lt=ve.getContext("2d");if(lt)if(!this.options.allowTaint&&Re)lt.putImageData(Re.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 ve}catch(Cn){this.context.logger.info("Unable to clone canvas as it is tainted",ee)}return ve},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(Re){this.context.logger.info("Unable to clone video as it is tainted",ee)}var ve=ee.ownerDocument.createElement("canvas");return ve.width=ee.offsetWidth,ve.height=ee.offsetHeight,ve},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 ve=this,Re=ee.shadowRoot?ee.shadowRoot.firstChild:ee.firstChild;Re;Re=Re.nextSibling)if(Gs(Re)&&gu(Re)&&typeof Re.assignedNodes=="function"){var lt=Re.assignedNodes();lt.length&<.forEach(function(kt){return ve.appendChildNode(ae,kt,ie)})}else this.appendChildNode(ae,Re,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 ve=this.createElementClone(ee);ve.style.transitionProperty="none";var Re=ie.getComputedStyle(ee),lt=ie.getComputedStyle(ee,":before"),kt=ie.getComputedStyle(ee,":after");this.referenceElement===ee&&Vl(ve)&&(this.clonedReferenceElement=ve),Pa(ve)&&mi(ve);var _t=this.counters.parse(new Al(this.context,Re)),Cn=this.resolvePseudoContent(ee,ve,lt,ue.BEFORE);vu(ee)&&(ae=!0),Yl(ee)||this.cloneChildNodes(ee,ve,ae),Cn&&ve.insertBefore(Cn,ve.firstChild);var Dn=this.resolvePseudoContent(ee,ve,kt,ue.AFTER);return Dn&&ve.appendChild(Dn),this.counters.pop(_t),(Re&&(this.options.copyStyles||Zo(ee))&&!ao(ee)||ae)&&Kt(Re,ve),(ee.scrollTop!==0||ee.scrollLeft!==0)&&this.scrolledElements.push([ve,ee.scrollLeft,ee.scrollTop]),(Cl(ee)||xl(ee))&&(Cl(ve)||xl(ve))&&(ve.value=ee.value),ve}return ee.cloneNode(!1)},ne.prototype.resolvePseudoContent=function(ee,ae,ie,ve){var Re=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");Kt(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(Li);Bi.length&&Cn.appendChild(kt.createTextNode(ee.getAttribute(Bi[0].value)||""))}else if(Pn.name==="counter"){var Jr=Pn.values.filter(ti),fi=Jr[0],aa=Jr[1];if(fi&&Li(fi)){var Di=Re.counters.getCounterValue(fi.value),_i=aa&&Li(aa)?To.parse(Re.context,aa.value):3;Cn.appendChild(kt.createTextNode(E(Di,_i,!1)))}}else if(Pn.name==="counters"){var Ua=Pn.values.filter(ti),fi=Ua[0],sa=Ua[1],aa=Ua[2];if(fi&&Li(fi)){var Vi=Re.counters.getCounterValues(fi.value),yi=aa&&Li(aa)?To.parse(Re.context,aa.value):3,Ba=sa&&sa.type===0?sa.value:"",Ca=Vi.map(function(Ao){return E(Ao,yi,!1)}).join(Ba);Cn.appendChild(kt.createTextNode(Ca))}}}else if(Pn.type===20)switch(Pn.value){case"open-quote":Cn.appendChild(kt.createTextNode(rl(_t.quotes,Re.quoteDepth++,!0)));break;case"close-quote":Cn.appendChild(kt.createTextNode(rl(_t.quotes,--Re.quoteDepth,!1)));break;default:Cn.appendChild(kt.createTextNode(Pn.value))}}),Cn.className=jr+" "+li;var Dn=ve===ue.BEFORE?" "+jr:" "+li;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 ve=ie.document;ie.onload=ne.onload=function(){ie.onload=ne.onload=null;var Re=setInterval(function(){ve.body.childNodes.length>0&&ve.readyState==="complete"&&(clearInterval(Re),ee(ne))},50)}})},Qt=["all","d","content"],Kt=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)},gr=function(ne){var ee=ne[0],ae=ne[1],ie=ne[2];ee.scrollLeft=ae,ee.scrollTop=ie},Sr=":before",Or=":after",jr="___html2canvas___pseudoelement_before",li="___html2canvas___pseudoelement_after",Yr=`{ content: "" !important; display: none !important; }`,mi=function(ne){Qi(ne,"."+jr+Sr+Yr+` .`+li+Or+Yr)},Qi=function(ne,ee){var ae=ne.ownerDocument;if(ae){var ie=ae.createElement("style");ie.textContent=ee,ne.appendChild(ie)}},ki=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}(),$i=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)||(_A(ee)||WA(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 Ze(this,void 0,void 0,function(){var ae,ie,ve,Re,lt=this;return Te(this,function(kt){switch(kt.label){case 0:return ae=ki.isSameOrigin(ee),ie=!SA(ee)&&this._options.useCORS===!0&&Nr.SUPPORT_CORS_IMAGES&&!ae,ve=!SA(ee)&&!ae&&!_A(ee)&&typeof this._options.proxy=="string"&&Nr.SUPPORT_CORS_XHR&&!ie,!ae&&this._options.allowTaint===!1&&!SA(ee)&&!_A(ee)&&!ve&&!ie?[2]:(Re=ee,ve?[4,this.proxy(Re)]:[3,2]);case 1:Re=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,(uA(Re)||ie)&&(Dn.crossOrigin="anonymous"),Dn.src=Re,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 ve=ee.substring(0,256);return new Promise(function(Re,lt){var kt=Nr.SUPPORT_RESPONSE_TYPE?"blob":"text",_t=new XMLHttpRequest;_t.onload=function(){if(_t.status===200)if(kt==="text")Re(_t.response);else{var Pn=new FileReader;Pn.addEventListener("load",function(){return Re(Pn.result)},!1),Pn.addEventListener("error",function(mr){return lt(mr)},!1),Pn.readAsDataURL(_t.response)}else lt("Failed to proxy resource "+ve+" 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 "+ve)}}_t.send()})},ne}(),Ma=/^data:image\/svg\+xml/i,pA=/^data:image\/.*;base64,/i,iA=/^data:image\/.*/i,WA=function(ne){return Nr.SUPPORT_SVG_DRAWING||!yA(ne)},SA=function(ne){return iA.test(ne)},uA=function(ne){return pA.test(ne)},_A=function(ne){return ne.substr(0,4)==="blob"},yA=function(ne){return ne.substr(-3).toLowerCase()==="svg"||Ma.test(ne)},Gr=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}(),Va=function(ne,ee,ae){return new Gr(ne.x+(ee.x-ne.x)*ae,ne.y+(ee.y-ne.y)*ae)},ja=function(){function ne(ee,ae,ie,ve){this.type=1,this.start=ee,this.startControl=ae,this.endControl=ie,this.end=ve}return ne.prototype.subdivide=function(ee,ae){var ie=Va(this.start,this.startControl,ee),ve=Va(this.startControl,this.endControl,ee),Re=Va(this.endControl,this.end,ee),lt=Va(ie,ve,ee),kt=Va(ve,Re,ee),_t=Va(lt,kt,ee);return ae?new ne(this.start,ie,lt,_t):new ne(_t,kt,Re,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}(),Ya=function(ne){return ne.type===1},Vs=function(){function ne(ee){var ae=ee.styles,ie=ee.bounds,ve=Sa(ae.borderTopLeftRadius,ie.width,ie.height),Re=ve[0],lt=ve[1],kt=Sa(ae.borderTopRightRadius,ie.width,ie.height),_t=kt[0],Cn=kt[1],Dn=Sa(ae.borderBottomRightRadius,ie.width,ie.height),Pn=Dn[0],mr=Dn[1],Bi=Sa(ae.borderBottomLeftRadius,ie.width,ie.height),Jr=Bi[0],fi=Bi[1],aa=[];aa.push((Re+_t)/ie.width),aa.push((Jr+Pn)/ie.width),aa.push((lt+fi)/ie.height),aa.push((Cn+mr)/ie.height);var Di=Math.max.apply(Math,aa);Di>1&&(Re/=Di,lt/=Di,_t/=Di,Cn/=Di,Pn/=Di,mr/=Di,Jr/=Di,fi/=Di);var _i=ie.width-_t,Ua=ie.height-mr,sa=ie.width-Pn,Vi=ie.height-fi,yi=ae.borderTopWidth,Ba=ae.borderRightWidth,Ca=ae.borderBottomWidth,Ji=ae.borderLeftWidth,wA=vi(ae.paddingTop,ee.bounds.width),Ao=vi(ae.paddingRight,ee.bounds.width),vo=vi(ae.paddingBottom,ee.bounds.width),Xa=vi(ae.paddingLeft,ee.bounds.width);this.topLeftBorderDoubleOuterBox=Re>0||lt>0?ta(ie.left+Ji/3,ie.top+yi/3,Re-Ji/3,lt-yi/3,la.TOP_LEFT):new Gr(ie.left+Ji/3,ie.top+yi/3),this.topRightBorderDoubleOuterBox=Re>0||lt>0?ta(ie.left+_i,ie.top+yi/3,_t-Ba/3,Cn-yi/3,la.TOP_RIGHT):new Gr(ie.left+ie.width-Ba/3,ie.top+yi/3),this.bottomRightBorderDoubleOuterBox=Pn>0||mr>0?ta(ie.left+sa,ie.top+Ua,Pn-Ba/3,mr-Ca/3,la.BOTTOM_RIGHT):new Gr(ie.left+ie.width-Ba/3,ie.top+ie.height-Ca/3),this.bottomLeftBorderDoubleOuterBox=Jr>0||fi>0?ta(ie.left+Ji/3,ie.top+Vi,Jr-Ji/3,fi-Ca/3,la.BOTTOM_LEFT):new Gr(ie.left+Ji/3,ie.top+ie.height-Ca/3),this.topLeftBorderDoubleInnerBox=Re>0||lt>0?ta(ie.left+Ji*2/3,ie.top+yi*2/3,Re-Ji*2/3,lt-yi*2/3,la.TOP_LEFT):new Gr(ie.left+Ji*2/3,ie.top+yi*2/3),this.topRightBorderDoubleInnerBox=Re>0||lt>0?ta(ie.left+_i,ie.top+yi*2/3,_t-Ba*2/3,Cn-yi*2/3,la.TOP_RIGHT):new Gr(ie.left+ie.width-Ba*2/3,ie.top+yi*2/3),this.bottomRightBorderDoubleInnerBox=Pn>0||mr>0?ta(ie.left+sa,ie.top+Ua,Pn-Ba*2/3,mr-Ca*2/3,la.BOTTOM_RIGHT):new Gr(ie.left+ie.width-Ba*2/3,ie.top+ie.height-Ca*2/3),this.bottomLeftBorderDoubleInnerBox=Jr>0||fi>0?ta(ie.left+Ji*2/3,ie.top+Vi,Jr-Ji*2/3,fi-Ca*2/3,la.BOTTOM_LEFT):new Gr(ie.left+Ji*2/3,ie.top+ie.height-Ca*2/3),this.topLeftBorderStroke=Re>0||lt>0?ta(ie.left+Ji/2,ie.top+yi/2,Re-Ji/2,lt-yi/2,la.TOP_LEFT):new Gr(ie.left+Ji/2,ie.top+yi/2),this.topRightBorderStroke=Re>0||lt>0?ta(ie.left+_i,ie.top+yi/2,_t-Ba/2,Cn-yi/2,la.TOP_RIGHT):new Gr(ie.left+ie.width-Ba/2,ie.top+yi/2),this.bottomRightBorderStroke=Pn>0||mr>0?ta(ie.left+sa,ie.top+Ua,Pn-Ba/2,mr-Ca/2,la.BOTTOM_RIGHT):new Gr(ie.left+ie.width-Ba/2,ie.top+ie.height-Ca/2),this.bottomLeftBorderStroke=Jr>0||fi>0?ta(ie.left+Ji/2,ie.top+Vi,Jr-Ji/2,fi-Ca/2,la.BOTTOM_LEFT):new Gr(ie.left+Ji/2,ie.top+ie.height-Ca/2),this.topLeftBorderBox=Re>0||lt>0?ta(ie.left,ie.top,Re,lt,la.TOP_LEFT):new Gr(ie.left,ie.top),this.topRightBorderBox=_t>0||Cn>0?ta(ie.left+_i,ie.top,_t,Cn,la.TOP_RIGHT):new Gr(ie.left+ie.width,ie.top),this.bottomRightBorderBox=Pn>0||mr>0?ta(ie.left+sa,ie.top+Ua,Pn,mr,la.BOTTOM_RIGHT):new Gr(ie.left+ie.width,ie.top+ie.height),this.bottomLeftBorderBox=Jr>0||fi>0?ta(ie.left,ie.top+Vi,Jr,fi,la.BOTTOM_LEFT):new Gr(ie.left,ie.top+ie.height),this.topLeftPaddingBox=Re>0||lt>0?ta(ie.left+Ji,ie.top+yi,Math.max(0,Re-Ji),Math.max(0,lt-yi),la.TOP_LEFT):new Gr(ie.left+Ji,ie.top+yi),this.topRightPaddingBox=_t>0||Cn>0?ta(ie.left+Math.min(_i,ie.width-Ba),ie.top+yi,_i>ie.width+Ba?0:Math.max(0,_t-Ba),Math.max(0,Cn-yi),la.TOP_RIGHT):new Gr(ie.left+ie.width-Ba,ie.top+yi),this.bottomRightPaddingBox=Pn>0||mr>0?ta(ie.left+Math.min(sa,ie.width-Ji),ie.top+Math.min(Ua,ie.height-Ca),Math.max(0,Pn-Ba),Math.max(0,mr-Ca),la.BOTTOM_RIGHT):new Gr(ie.left+ie.width-Ba,ie.top+ie.height-Ca),this.bottomLeftPaddingBox=Jr>0||fi>0?ta(ie.left+Ji,ie.top+Math.min(Vi,ie.height-Ca),Math.max(0,Jr-Ji),Math.max(0,fi-Ca),la.BOTTOM_LEFT):new Gr(ie.left+Ji,ie.top+ie.height-Ca),this.topLeftContentBox=Re>0||lt>0?ta(ie.left+Ji+Xa,ie.top+yi+wA,Math.max(0,Re-(Ji+Xa)),Math.max(0,lt-(yi+wA)),la.TOP_LEFT):new Gr(ie.left+Ji+Xa,ie.top+yi+wA),this.topRightContentBox=_t>0||Cn>0?ta(ie.left+Math.min(_i,ie.width+Ji+Xa),ie.top+yi+wA,_i>ie.width+Ji+Xa?0:_t-Ji+Xa,Cn-(yi+wA),la.TOP_RIGHT):new Gr(ie.left+ie.width-(Ba+Ao),ie.top+yi+wA),this.bottomRightContentBox=Pn>0||mr>0?ta(ie.left+Math.min(sa,ie.width-(Ji+Xa)),ie.top+Math.min(Ua,ie.height+yi+wA),Math.max(0,Pn-(Ba+Ao)),mr-(Ca+vo),la.BOTTOM_RIGHT):new Gr(ie.left+ie.width-(Ba+Ao),ie.top+ie.height-(Ca+vo)),this.bottomLeftContentBox=Jr>0||fi>0?ta(ie.left+Ji+Xa,ie.top+Vi,Math.max(0,Jr-(Ji+Xa)),fi-(Ca+vo),la.BOTTOM_LEFT):new Gr(ie.left+Ji+Xa,ie.top+ie.height-(Ca+vo))}return ne}(),la;(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"})(la||(la={}));var ta=function(ne,ee,ae,ie,ve){var Re=4*((Math.sqrt(2)-1)/3),lt=ae*Re,kt=ie*Re,_t=ne+ae,Cn=ee+ie;switch(ve){case la.TOP_LEFT:return new ja(new Gr(ne,Cn),new Gr(ne,Cn-kt),new Gr(_t-lt,ee),new Gr(_t,ee));case la.TOP_RIGHT:return new ja(new Gr(ne,ee),new Gr(ne+lt,ee),new Gr(_t,Cn-kt),new Gr(_t,Cn));case la.BOTTOM_RIGHT:return new ja(new Gr(_t,ee),new Gr(_t,ee+kt),new Gr(ne+lt,Cn),new Gr(ne,Cn));case la.BOTTOM_LEFT:default:return new ja(new Gr(_t,Cn),new Gr(_t-lt,Cn),new Gr(ne,ee+kt),new Gr(ne,ee))}},eo=function(ne){return[ne.topLeftBorderBox,ne.topRightBorderBox,ne.bottomRightBorderBox,ne.bottomLeftBorderBox]},gA=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}(),TA=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,ve){return ne.map(function(Re,lt){switch(lt){case 0:return Re.add(ee,ae);case 1:return Re.add(ee+ie,ae);case 2:return Re.add(ee+ie,ae+ve);case 3:return Re.add(ee,ae+ve)}return Re})},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,ve=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Re=this.container.styles.transform;this.effects.push(new Go(ie,ve,Re))}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,ve=this.effects.slice(0);ie;){var Re=ie.effects.filter(function(_t){return!_s(_t)});if(ae||ie.container.styles.position!==0||!ie.parent){if(ve.unshift.apply(ve,Re),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)||ve.unshift(new ko(kt,6))}}else ve.unshift.apply(ve,Re);ie=ie.parent}return ve.filter(function(_t){return oA(_t.target,ee)})},ne}(),Ju=function(ne,ee,ae,ie){ne.container.elements.forEach(function(ve){var Re=oA(ve.flags,4),lt=oA(ve.flags,2),kt=new rc(ve,ne);oA(ve.styles.display,2048)&&ie.push(kt);var _t=oA(ve.flags,8)?[]:ie;if(Re||lt){var Cn=Re||ve.styles.isPositioned()?ae:ee,Dn=new nc(kt);if(ve.styles.isPositioned()||ve.styles.opacity<1||ve.styles.isTransformed()){var Pn=ve.styles.zIndex.order;if(Pn<0){var mr=0;Cn.negativeZIndex.some(function(Jr,fi){return Pn>Jr.element.container.styles.zIndex.order?(mr=fi,!1):mr>0}),Cn.negativeZIndex.splice(mr,0,Dn)}else if(Pn>0){var Bi=0;Cn.positiveZIndex.some(function(Jr,fi){return Pn>=Jr.element.container.styles.zIndex.order?(Bi=fi+1,!1):Bi>0}),Cn.positiveZIndex.splice(Bi,0,Dn)}else Cn.zeroOrAutoZIndexOrTransformedOrOpacity.push(Dn)}else ve.styles.isFloating()?Cn.nonPositionedFloats.push(Dn):Cn.nonPositionedInlineLevel.push(Dn);Ju(kt,Dn,Re?Dn:ae,_t)}else ve.styles.isInlineLevel()?ee.inlineLevel.push(kt):ee.nonInlineLevel.push(kt),Ju(kt,ee,ae,_t);oA(ve.flags,8)&&ic(ve,_t)})},ic=function(ne,ee){for(var ae=ne instanceof Wl?ne.start:1,ie=ne instanceof Wl?ne.reversed:!1,ve=0;ve0&&ae.intrinsicHeight>0){var Re=Ku(ae),lt=js(ie);this.path(lt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ve,0,0,ae.intrinsicWidth,ae.intrinsicHeight,Re.left,Re.top,Re.width,Re.height),this.ctx.restore()}},ee.prototype.renderNodeContent=function(ae){return Ze(this,void 0,void 0,function(){var ie,ve,Re,lt,kt,_t,_i,_i,Cn,Dn,Pn,mr,sa,Bi,Jr,Vi,fi,aa,Di,_i,Ua,sa,Vi;return Te(this,function(yi){switch(yi.label){case 0:this.applyEffects(ae.getEffects(4)),ie=ae.container,ve=ae.curves,Re=ie.styles,lt=0,kt=ie.textNodes,yi.label=1;case 1:return lt0&&OA>0&&(Ca=Re.ctx.createPattern(Vi,"repeat"),Re.renderRepeat(wA,Ca,oo,so))):Yo(Dn)&&(Ji=qu(ae,ie,[null,null,null]),wA=Ji[0],Ao=Ji[1],vo=Ji[2],Xa=Ji[3],OA=Ji[4],Ys=Dn.position.length===0?[GA]:Dn.position,oo=vi(Ys[0],Xa),so=vi(Ys[Ys.length-1],OA),Fl=vA(Dn,oo,so,Xa,OA),ss=Fl[0],Xs=Fl[1],ss>0&&Xs>0&&(Sl=Re.ctx.createRadialGradient(Ao+oo,vo+so,0,Ao+oo,vo+so,ss),UA(Dn.stops,ss*2).forEach(function(yu){return Sl.addColorStop(yu.stop,Ra(yu.color))}),Re.path(wA),Re.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,Re.ctx.save(),Re.ctx.translate(_l,ks),Re.ctx.transform(1,0,0,kl,0,0),Re.ctx.translate(-_l,-ks),Re.ctx.fillRect(Ao,Us*(vo-ks)+ks,Xa,OA*Us),Re.ctx.restore()):Re.ctx.fill())),$l.label=6;case 6:return ie--,[2]}})},Re=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,ve,Re,lt){return Ze(this,void 0,void 0,function(){var kt,_t,Cn,Dn,Pn,mr,Bi,Jr,fi,aa,Di,_i,Ua,sa,Vi,yi,Vi,yi;return Te(this,function(Ba){return this.ctx.save(),kt=vc(Re,ve),_t=ac(Re,ve),lt===2&&(this.path(_t),this.ctx.clip()),Ya(_t[0])?(Cn=_t[0].start.x,Dn=_t[0].start.y):(Cn=_t[0].x,Dn=_t[0].y),Ya(_t[1])?(Pn=_t[1].end.x,mr=_t[1].end.y):(Pn=_t[1].x,mr=_t[1].y),ve===0||ve===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)),Jr=ie<3?ie*3:ie*2,fi=ie<3?ie*2:ie,lt===3&&(Jr=ie,fi=ie),aa=!0,Bi<=Jr*2?aa=!1:Bi<=Jr*2+fi?(Di=Bi/(2*Jr+fi),Jr*=Di,fi*=Di):(_i=Math.floor((Bi+fi)/(Jr+fi)),Ua=(Bi-_i*Jr)/(_i-1),sa=(Bi-(_i+1)*Jr)/_i,fi=sa<=0||Math.abs(fi-Ua)>1,ye=-7,Je=Ze?Xe-1:0,Ce=Ze?-1:1,st=ce[te+Je];for(Je+=Ce,ke=st&(1<<-ye)-1,st>>=-ye,ye+=Ve;ye>0;ke=ke*256+ce[te+Je],Je+=Ce,ye-=8);for(ge=ke&(1<<-ye)-1,ke>>=-ye,ye+=Te;ye>0;ge=ge*256+ce[te+Je],Je+=Ce,ye-=8);if(ke===0)ke=1-Se;else{if(ke===Ue)return ge?NaN:(st?-1:1)*(1/0);ge=ge+Math.pow(2,Te),ke=ke-Se}return(st?-1:1)*ge*Math.pow(2,ke-Te)},yt.write=function(ce,te,Ze,Te,Xe,ke){var ge,Ve,Ue,Se=ke*8-Xe-1,ye=(1<>1,Ce=Xe===23?Math.pow(2,-24)-Math.pow(2,-77):0,st=Te?0:ke-1,nt=Te?1:-1,it=te<0||te===0&&1/te<0?1:0;for(te=Math.abs(te),isNaN(te)||te===1/0?(Ve=isNaN(te)?1:0,ge=ye):(ge=Math.floor(Math.log(te)/Math.LN2),te*(Ue=Math.pow(2,-ge))<1&&(ge--,Ue*=2),ge+Je>=1?te+=Ce/Ue:te+=Ce*Math.pow(2,1-Je),te*Ue>=2&&(ge++,Ue/=2),ge+Je>=ye?(Ve=0,ge=ye):ge+Je>=1?(Ve=(te*Ue-1)*Math.pow(2,Xe),ge=ge+Je):(Ve=te*Math.pow(2,Je-1)*Math.pow(2,Xe),ge=0));Xe>=8;ce[Ze+st]=Ve&255,st+=nt,Ve/=256,Xe-=8);for(ge=ge<0;ce[Ze+st]=ge&255,st+=nt,ge/=256,Se-=8);ce[Ze+st-nt]|=it*128}},66042:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return wt}});var te=ce(33885),Ze=ce(42978),Te=ce(43403),Xe=ce(34280),ke=ce(59301),ge=ke.createContext(null),Ve=ke.createContext({}),Ue=ge,Se=ce(20068),ye=ce(54476),Je=ce(92310),Ce=ce.n(Je),st=ce(77900),nt=ce(10228),it=ce(26112),We=ce(75931),Le=ce(8654),ut=["prefixCls","className","containerRef"],Ge=function(vt){var Vt=vt.prefixCls,Jt=vt.className,pn=vt.containerRef,An=(0,We.Z)(vt,ut),ze=ke.useContext(Ve),Fe=ze.panel,Ot=(0,Le.x1)(Fe,pn);return ke.createElement("div",(0,ye.Z)({className:Ce()("".concat(Vt,"-content"),Jt),role:"dialog",ref:Ot},(0,it.Z)(vt,{aria:!0}),{"aria-modal":"true"},An))},qe=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 Me={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function rt(at,vt){var Vt,Jt,pn,An=at.prefixCls,ze=at.open,Fe=at.placement,Ot=at.inline,Fn=at.push,dn=at.forceRender,Ct=at.autoFocus,en=at.keyboard,rn=at.classNames,Yn=at.rootClassName,Dt=at.rootStyle,mt=at.zIndex,ht=at.className,bt=at.id,zt=at.style,Bt=at.motion,Pt=at.width,_e=at.height,se=at.children,fe=at.mask,Ie=at.maskClosable,Be=at.maskMotion,pt=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=ke.useRef(),ft=ke.useRef(),Bn=ke.useRef();ke.useImperativeHandle(vt,function(){return It.current});var jt=function(qn){var mn=qn.keyCode,zn=qn.shiftKey;switch(mn){case nt.Z.TAB:{if(mn===nt.Z.TAB){if(!zn&&document.activeElement===Bn.current){var $t;($t=ft.current)===null||$t===void 0||$t.focus({preventScroll:!0})}else if(zn&&document.activeElement===ft.current){var Sn;(Sn=Bn.current)===null||Sn===void 0||Sn.focus({preventScroll:!0})}}break}case nt.Z.ESC:{he&&en&&(qn.stopPropagation(),he(qn));break}}};ke.useEffect(function(){if(ze&&Ct){var rr;(rr=It.current)===null||rr===void 0||rr.focus({preventScroll:!0})}},[ze]);var cn=ke.useState(!1),In=(0,Ze.Z)(cn,2),sr=In[0],vn=In[1],dr=ke.useContext(Ue),cr;typeof Fn=="boolean"?cr=Fn?{}:{distance:0}:cr=Fn||{};var yr=(Vt=(Jt=(pn=cr)===null||pn===void 0?void 0:pn.distance)!==null&&Jt!==void 0?Jt:dr==null?void 0:dr.pushDistance)!==null&&Vt!==void 0?Vt:180,Jn=ke.useMemo(function(){return{pushDistance:yr,push:function(){vn(!0)},pull:function(){vn(!1)}}},[yr]);ke.useEffect(function(){if(ze){var rr;dr==null||(rr=dr.push)===null||rr===void 0||rr.call(dr)}else{var qn;dr==null||(qn=dr.pull)===null||qn===void 0||qn.call(dr)}},[ze]),ke.useEffect(function(){return function(){var rr;dr==null||(rr=dr.pull)===null||rr===void 0||rr.call(dr)}},[]);var Tr=fe&&ke.createElement(st.default,(0,ye.Z)({key:"mask"},Be,{visible:ze}),function(rr,qn){var mn=rr.className,zn=rr.style;return ke.createElement("div",{className:Ce()("".concat(An,"-mask"),mn,rn==null?void 0:rn.mask,pt),style:(0,te.Z)((0,te.Z)((0,te.Z)({},zn),Mt),St==null?void 0:St.mask),onClick:Ie&&ze?he:void 0,ref:qn})}),Pr=typeof Bt=="function"?Bt(Fe):Bt,Er={};if(sr&&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(Pt):Er.height=xe(_e);var ur={onMouseEnter:oe,onMouseOver:re,onMouseLeave:de,onClick:we,onKeyDown:le,onKeyUp:Ee},Qr=ke.createElement(st.default,(0,ye.Z)({key:"panel"},Pr,{visible:ze,forceRender:dn,onVisibleChanged:function(qn){sn==null||sn(qn)},removeOnLeave:!1,leavedClassName:"".concat(An,"-content-wrapper-hidden")}),function(rr,qn){var mn=rr.className,zn=rr.style,$t=ke.createElement(qe,(0,ye.Z)({id:bt,containerRef:qn,prefixCls:An,className:Ce()(ht,rn==null?void 0:rn.content),style:(0,te.Z)((0,te.Z)({},zt),St==null?void 0:St.content)},(0,it.Z)(at,{aria:!0}),ur),se);return ke.createElement("div",(0,ye.Z)({className:Ce()("".concat(An,"-content-wrapper"),rn==null?void 0:rn.wrapper,mn),style:(0,te.Z)((0,te.Z)((0,te.Z)({},Er),zn),St==null?void 0:St.wrapper)},(0,it.Z)(at,{data:!0})),Ut?Ut($t):$t)}),Kn=(0,te.Z)({},Dt);return mt&&(Kn.zIndex=mt),ke.createElement(Ue.Provider,{value:Jn},ke.createElement("div",{className:Ce()(An,"".concat(An,"-").concat(Fe),Yn,(0,Se.Z)((0,Se.Z)({},"".concat(An,"-open"),ze),"".concat(An,"-inline"),Ot)),style:Kn,tabIndex:-1,ref:It,onKeyDown:jt},Tr,ke.createElement("div",{tabIndex:0,ref:ft,style:Me,"aria-hidden":"true","data-sentinel":"start"}),Qr,ke.createElement("div",{tabIndex:0,ref:Bn,style:Me,"aria-hidden":"true","data-sentinel":"end"})))}var He=ke.forwardRef(rt),tt=He,gt=function(vt){var Vt=vt.open,Jt=Vt===void 0?!1:Vt,pn=vt.prefixCls,An=pn===void 0?"rc-drawer":pn,ze=vt.placement,Fe=ze===void 0?"right":ze,Ot=vt.autoFocus,Fn=Ot===void 0?!0:Ot,dn=vt.keyboard,Ct=dn===void 0?!0:dn,en=vt.width,rn=en===void 0?378:en,Yn=vt.mask,Dt=Yn===void 0?!0:Yn,mt=vt.maskClosable,ht=mt===void 0?!0:mt,bt=vt.getContainer,zt=vt.forceRender,Bt=vt.afterOpenChange,Pt=vt.destroyOnClose,_e=vt.onMouseEnter,se=vt.onMouseOver,fe=vt.onMouseLeave,Ie=vt.onClick,Be=vt.onKeyDown,pt=vt.onKeyUp,Mt=vt.panelRef,sn=ke.useState(!1),he=(0,Ze.Z)(sn,2),oe=he[0],re=he[1],de=ke.useState(!1),we=(0,Ze.Z)(de,2),le=we[0],Ee=we[1];(0,Xe.Z)(function(){Ee(!0)},[]);var St=le?Jt:!1,Ut=ke.useRef(),It=ke.useRef();(0,Xe.Z)(function(){St&&(It.current=document.activeElement)},[St]);var ft=function(sr){var vn;if(re(sr),Bt==null||Bt(sr),!sr&&It.current&&!((vn=Ut.current)!==null&&vn!==void 0&&vn.contains(It.current))){var dr;(dr=It.current)===null||dr===void 0||dr.focus({preventScroll:!0})}},Bn=ke.useMemo(function(){return{panel:Mt}},[Mt]);if(!zt&&!oe&&!St&&Pt)return null;var jt={onMouseEnter:_e,onMouseOver:se,onMouseLeave:fe,onClick:Ie,onKeyDown:Be,onKeyUp:pt},cn=(0,te.Z)((0,te.Z)({},vt),{},{open:St,prefixCls:An,placement:Fe,autoFocus:Fn,keyboard:Ct,width:rn,mask:Dt,maskClosable:ht,inline:bt===!1,afterOpenChange:ft,ref:Ut},jt);return ke.createElement(Ve.Provider,{value:Bn},ke.createElement(Te.Z,{open:St||zt||oe,autoDestroy:!1,getContainer:bt,autoLock:Dt&&(St||oe)},ke.createElement(tt,cn)))},Ye=gt,wt=Ye},91574:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return we}});var te=ce(54476),Ze=ce(33885),Te=ce(20068),Xe=ce(42978),ke=ce(76190),ge=ce(75931),Ve=ce(92310),Ue=ce.n(Ve),Se=/margin|padding|width|height|max|min|offset/,ye={left:!0,top:!0},Je={cssFloat:1,styleFloat:1,float:1};function Ce(le){return le.nodeType===1?le.ownerDocument.defaultView.getComputedStyle(le,null):{}}function st(le,Ee,St){if(Ee=Ee.toLowerCase(),St==="auto"){if(Ee==="height")return le.offsetHeight;if(Ee==="width")return le.offsetWidth}return Ee in ye||(ye[Ee]=Se.test(Ee)),ye[Ee]?parseFloat(St)||0:St}function nt(le,Ee){var St=arguments.length,Ut=Ce(le);return Ee=Je[Ee]?"cssFloat"in le.style?"cssFloat":"styleFloat":Ee,St===1?Ut:st(le,Ee,Ut[Ee]||le.style[Ee])}function it(le,Ee,St){var Ut=arguments.length;if(Ee=Je[Ee]?"cssFloat"in le.style?"cssFloat":"styleFloat":Ee,Ut===3)return typeof St=="number"&&Se.test(Ee)&&(St="".concat(St,"px")),le.style[Ee]=St,St;for(var It in Ee)Ee.hasOwnProperty(It)&&it(le,It,Ee[It]);return Ce(le)}function We(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 qe(){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),Me=ce(55311),rt=ce(8224),He=ce(10228),tt=ce(43403),gt=ce(77900),Ye=Ne.createContext(null),wt=function(Ee){var St=Ee.visible,Ut=Ee.maskTransitionName,It=Ee.getContainer,ft=Ee.prefixCls,Bn=Ee.rootClassName,jt=Ee.icons,cn=Ee.countRender,In=Ee.showSwitch,sr=Ee.showProgress,vn=Ee.current,dr=Ee.transform,cr=Ee.count,yr=Ee.scale,Jn=Ee.minScale,Tr=Ee.maxScale,Pr=Ee.closeIcon,Er=Ee.onActive,ur=Ee.onClose,Qr=Ee.onZoomIn,Kn=Ee.onZoomOut,rr=Ee.onRotateRight,qn=Ee.onRotateLeft,mn=Ee.onFlipX,zn=Ee.onFlipY,$t=Ee.onReset,Sn=Ee.toolbarRender,pr=Ee.zIndex,lr=Ee.image,fr=(0,Ne.useContext)(Ye),Fr=jt.rotateLeft,Wr=jt.rotateRight,Dr=jt.zoomIn,Ur=jt.zoomOut,qr=jt.close,$n=jt.left,yn=jt.right,$e=jt.flipX,kr=jt.flipY,Zr="".concat(ft,"-operations-operation");Ne.useEffect(function(){var Hn=function(Ft){Ft.keyCode===He.Z.ESC&&ur()};return St&&window.addEventListener("keydown",Hn),function(){window.removeEventListener("keydown",Hn)}},[St]);var Lt=function(xt,Ft){xt.preventDefault(),xt.stopPropagation(),Er(Ft)},Tt=Ne.useCallback(function(Hn){var xt=Hn.type,Ft=Hn.disabled,gn=Hn.onClick,Mn=Hn.icon;return Ne.createElement("div",{key:xt,className:Ue()(Zr,"".concat(ft,"-operations-operation-").concat(xt),(0,Te.Z)({},"".concat(ft,"-operations-operation-disabled"),!!Ft)),onClick:gn},Mn)},[Zr,ft]),tr=In?Tt({icon:$n,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===cr-1}):void 0,Gt=Tt({icon:kr,onClick:zn,type:"flipY"}),_n=Tt({icon:$e,onClick:mn,type:"flipX"}),ar=Tt({icon:Fr,onClick:qn,type:"rotateLeft"}),Ar=Tt({icon:Wr,onClick:rr,type:"rotateRight"}),or=Tt({icon:Ur,onClick:Kn,type:"zoomOut",disabled:yr<=Jn}),hr=Tt({icon:Dr,onClick:Qr,type:"zoomIn",disabled:yr===Tr}),xr=Ne.createElement("div",{className:"".concat(ft,"-operations")},Gt,_n,ar,Ar,or,hr);return Ne.createElement(gt.default,{visible:St,motionName:Ut},function(Hn){var xt=Hn.className,Ft=Hn.style;return Ne.createElement(tt.Z,{open:!0,getContainer:It!=null?It:document.body},Ne.createElement("div",{className:Ue()("".concat(ft,"-operations-wrapper"),xt,Bn),style:(0,Ze.Z)((0,Ze.Z)({},Ft),{},{zIndex:pr})},Pr===null?null:Ne.createElement("button",{className:"".concat(ft,"-close"),onClick:ur},Pr||qr),In&&Ne.createElement(Ne.Fragment,null,Ne.createElement("div",{className:Ue()("".concat(ft,"-switch-left"),(0,Te.Z)({},"".concat(ft,"-switch-left-disabled"),vn===0)),onClick:function(Mn){return Lt(Mn,-1)}},$n),Ne.createElement("div",{className:Ue()("".concat(ft,"-switch-right"),(0,Te.Z)({},"".concat(ft,"-switch-right-disabled"),vn===cr-1)),onClick:function(Mn){return Lt(Mn,1)}},yn)),Ne.createElement("div",{className:"".concat(ft,"-footer")},sr&&Ne.createElement("div",{className:"".concat(ft,"-progress")},cn?cn(vn+1,cr):"".concat(vn+1," / ").concat(cr)),Sn?Sn(xr,(0,Ze.Z)((0,Ze.Z)({icons:{prevIcon:tr,nextIcon:Tn,flipYIcon:Gt,flipXIcon:_n,rotateLeftIcon:ar,rotateRightIcon:Ar,zoomOutIcon:or,zoomInIcon:hr},actions:{onActive:Er,onFlipY:zn,onFlipX:mn,onRotateLeft:qn,onRotateRight:rr,onZoomOut:Kn,onZoomIn:Qr,onReset:$t,onClose:ur},transform:dr},fr?{current:vn,total:cr}:{}),{},{image:lr})):xr)))})},at=wt,vt=ce(13697),Vt=ce(16089),Jt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function pn(le,Ee,St,Ut){var It=(0,Ne.useRef)(null),ft=(0,Ne.useRef)([]),Bn=(0,Ne.useState)(Jt),jt=(0,Xe.Z)(Bn,2),cn=jt[0],In=jt[1],sr=function(yr){In(Jt),(0,vt.Z)(Jt,cn)||Ut==null||Ut({transform:Jt,action:yr})},vn=function(yr,Jn){It.current===null&&(ft.current=[],It.current=(0,Vt.Z)(function(){In(function(Tr){var Pr=Tr;return ft.current.forEach(function(Er){Pr=(0,Ze.Z)((0,Ze.Z)({},Pr),Er)}),It.current=null,Ut==null||Ut({transform:Pr,action:Jn}),Pr})})),ft.current.push((0,Ze.Z)((0,Ze.Z)({},cn),yr))},dr=function(yr,Jn,Tr,Pr,Er){var ur=le.current,Qr=ur.width,Kn=ur.height,rr=ur.offsetWidth,qn=ur.offsetHeight,mn=ur.offsetLeft,zn=ur.offsetTop,$t=yr,Sn=cn.scale*yr;Sn>St?(Sn=St,$t=St/cn.scale):SnUt){if(Ee>0)return(0,Te.Z)({},le,ft);if(Ee<0&&ItUt)return(0,Te.Z)({},le,Ee<0?ft:-ft);return{}}function Fe(le,Ee,St,Ut){var It=Ge(),ft=It.width,Bn=It.height,jt=null;return le<=ft&&Ee<=Bn?jt={x:0,y:0}:(le>ft||Ee>Bn)&&(jt=(0,Ze.Z)((0,Ze.Z)({},ze("x",St,le,ft)),ze("y",Ut,Ee,Bn))),jt}var Ot=1,Fn=1;function dn(le,Ee,St,Ut,It,ft,Bn){var jt=It.rotate,cn=It.scale,In=It.x,sr=It.y,vn=(0,Ne.useState)(!1),dr=(0,Xe.Z)(vn,2),cr=dr[0],yr=dr[1],Jn=(0,Ne.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Tr=function(Kn){!Ee||Kn.button!==0||(Kn.preventDefault(),Kn.stopPropagation(),Jn.current={diffX:Kn.pageX-In,diffY:Kn.pageY-sr,transformX:In,transformY:sr},yr(!0))},Pr=function(Kn){St&&cr&&ft({x:Kn.pageX-Jn.current.diffX,y:Kn.pageY-Jn.current.diffY},"move")},Er=function(){if(St&&cr){yr(!1);var Kn=Jn.current,rr=Kn.transformX,qn=Kn.transformY,mn=In!==rr&&sr!==qn;if(!mn)return;var zn=le.current.offsetWidth*cn,$t=le.current.offsetHeight*cn,Sn=le.current.getBoundingClientRect(),pr=Sn.left,lr=Sn.top,fr=jt%180!==0,Fr=Fe(fr?$t:zn,fr?zn:$t,pr,lr);Fr&&ft((0,Ze.Z)({},Fr),"dragRebound")}},ur=function(Kn){if(!(!St||Kn.deltaY==0)){var rr=Math.abs(Kn.deltaY/100),qn=Math.min(rr,Fn),mn=Ot+qn*Ut;Kn.deltaY>0&&(mn=Ot/mn),Bn(mn,"wheel",Kn.clientX,Kn.clientY)}};return(0,Ne.useEffect)(function(){var Qr,Kn,rr,qn;if(Ee){rr=(0,rt.Z)(window,"mouseup",Er,!1),qn=(0,rt.Z)(window,"mousemove",Pr,!1);try{window.top!==window.self&&(Qr=(0,rt.Z)(window.top,"mouseup",Er,!1),Kn=(0,rt.Z)(window.top,"mousemove",Pr,!1))}catch(mn){(0,An.Kp)(!1,"[rc-image] ".concat(mn))}}return function(){var mn,zn,$t,Sn;(mn=rr)===null||mn===void 0||mn.remove(),(zn=qn)===null||zn===void 0||zn.remove(),($t=Qr)===null||$t===void 0||$t.remove(),(Sn=Kn)===null||Sn===void 0||Sn.remove()}},[St,cr,In,sr,jt,Ee]),{isMoving:cr,onMouseDown:Tr,onMouseMove:Pr,onMouseUp:Er,onWheel:ur}}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 en(le){var Ee=le.src,St=le.isCustomPlaceholder,Ut=le.fallback,It=(0,Ne.useState)(St?"loading":"normal"),ft=(0,Xe.Z)(It,2),Bn=ft[0],jt=ft[1],cn=(0,Ne.useRef)(!1),In=Bn==="error";(0,Ne.useEffect)(function(){var cr=!0;return Ct(Ee).then(function(yr){!yr&&cr&&jt("error")}),function(){cr=!1}},[Ee]),(0,Ne.useEffect)(function(){St&&!cn.current?jt("loading"):In&&jt("normal")},[Ee]);var sr=function(){jt("normal")},vn=function(yr){cn.current=!1,Bn==="loading"&&yr!==null&&yr!==void 0&&yr.complete&&(yr.naturalWidth||yr.naturalHeight)&&(cn.current=!0,sr())},dr=In&&Ut?{src:Ut}:{onLoad:sr,src:Ee};return[vn,dr,Bn]}function rn(le,Ee){var St=le.x-Ee.x,Ut=le.y-Ee.y;return Math.hypot(St,Ut)}function Yn(le,Ee,St,Ut){var It=rn(le,St),ft=rn(Ee,Ut);if(It===0&&ft===0)return[le.x,le.y];var Bn=It/(It+ft),jt=le.x+Bn*(Ee.x-le.x),cn=le.y+Bn*(Ee.y-le.y);return[jt,cn]}function Dt(le,Ee,St,Ut,It,ft,Bn){var jt=It.rotate,cn=It.scale,In=It.x,sr=It.y,vn=(0,Ne.useState)(!1),dr=(0,Xe.Z)(vn,2),cr=dr[0],yr=dr[1],Jn=(0,Ne.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Tr=function(Kn){Jn.current=(0,Ze.Z)((0,Ze.Z)({},Jn.current),Kn)},Pr=function(Kn){if(Ee){Kn.stopPropagation(),yr(!0);var rr=Kn.touches,qn=rr===void 0?[]:rr;qn.length>1?Tr({point1:{x:qn[0].clientX,y:qn[0].clientY},point2:{x:qn[1].clientX,y:qn[1].clientY},eventType:"touchZoom"}):Tr({point1:{x:qn[0].clientX-In,y:qn[0].clientY-sr},eventType:"move"})}},Er=function(Kn){var rr=Kn.touches,qn=rr===void 0?[]:rr,mn=Jn.current,zn=mn.point1,$t=mn.point2,Sn=mn.eventType;if(qn.length>1&&Sn==="touchZoom"){var pr={x:qn[0].clientX,y:qn[0].clientY},lr={x:qn[1].clientX,y:qn[1].clientY},fr=Yn(zn,$t,pr,lr),Fr=(0,Xe.Z)(fr,2),Wr=Fr[0],Dr=Fr[1],Ur=rn(pr,lr)/rn(zn,$t);Bn(Ur,"touchZoom",Wr,Dr,!0),Tr({point1:pr,point2:lr,eventType:"touchZoom"})}else Sn==="move"&&(ft({x:qn[0].clientX-zn.x,y:qn[0].clientY-zn.y},"move"),Tr({eventType:"move"}))},ur=function(){if(St){if(cr&&yr(!1),Tr({eventType:"none"}),Ut>cn)return ft({x:0,y:0,scale:Ut},"touchZoom");var Kn=le.current.offsetWidth*cn,rr=le.current.offsetHeight*cn,qn=le.current.getBoundingClientRect(),mn=qn.left,zn=qn.top,$t=jt%180!==0,Sn=Fe($t?rr:Kn,$t?Kn:rr,mn,zn);Sn&&ft((0,Ze.Z)({},Sn),"dragRebound")}};return(0,Ne.useEffect)(function(){var Qr;return St&&Ee&&(Qr=(0,rt.Z)(window,"touchmove",function(Kn){return Kn.preventDefault()},{passive:!1})),function(){var Kn;(Kn=Qr)===null||Kn===void 0||Kn.remove()}},[St,Ee]),{isTouching:cr,onTouchStart:Pr,onTouchMove:Er,onTouchEnd:ur}}var mt=["fallback","src","imgRef"],ht=["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,ft=(0,ge.Z)(Ee,mt),Bn=en({src:Ut,fallback:St}),jt=(0,Xe.Z)(Bn,2),cn=jt[0],In=jt[1];return Ne.createElement("img",(0,te.Z)({ref:function(vn){It.current=vn,cn(vn)}},ft,In))},zt=function(Ee){var St=Ee.prefixCls,Ut=Ee.src,It=Ee.alt,ft=Ee.imageInfo,Bn=Ee.fallback,jt=Ee.movable,cn=jt===void 0?!0:jt,In=Ee.onClose,sr=Ee.visible,vn=Ee.icons,dr=vn===void 0?{}:vn,cr=Ee.rootClassName,yr=Ee.closeIcon,Jn=Ee.getContainer,Tr=Ee.current,Pr=Tr===void 0?0:Tr,Er=Ee.count,ur=Er===void 0?1:Er,Qr=Ee.countRender,Kn=Ee.scaleStep,rr=Kn===void 0?.5:Kn,qn=Ee.minScale,mn=qn===void 0?1:qn,zn=Ee.maxScale,$t=zn===void 0?50:zn,Sn=Ee.transitionName,pr=Sn===void 0?"zoom":Sn,lr=Ee.maskTransitionName,fr=lr===void 0?"fade":lr,Fr=Ee.imageRender,Wr=Ee.imgCommonProps,Dr=Ee.toolbarRender,Ur=Ee.onTransform,qr=Ee.onChange,$n=(0,ge.Z)(Ee,ht),yn=(0,Ne.useRef)(),$e=(0,Ne.useContext)(Ye),kr=$e&&ur>1,Zr=$e&&ur>=1,Lt=(0,Ne.useState)(!0),Tt=(0,Xe.Z)(Lt,2),tr=Tt[0],Tn=Tt[1],Gt=pn(yn,mn,$t,Ur),_n=Gt.transform,ar=Gt.resetTransform,Ar=Gt.updateTransform,or=Gt.dispatchZoomChange,hr=dn(yn,cn,sr,rr,_n,Ar,or),xr=hr.isMoving,Hn=hr.onMouseDown,xt=hr.onWheel,Ft=Dt(yn,cn,sr,mn,_n,Ar,or),gn=Ft.isTouching,Mn=Ft.onTouchStart,wr=Ft.onTouchMove,Hr=Ft.onTouchEnd,Mr=_n.rotate,ir=_n.scale,Xn=Ue()((0,Te.Z)({},"".concat(St,"-moving"),xr));(0,Ne.useEffect)(function(){tr||Tn(!0)},[tr]);var _r=function(){ar("close")},Br=function(){or(Ot+rr,"zoomIn")},$r=function(){or(Ot/(Ot+rr),"zoomOut")},ui=function(){Ar({rotate:Mr+90},"rotateRight")},ai=function(){Ar({rotate:Mr-90},"rotateLeft")},Ci=function(){Ar({flipX:!_n.flipX},"flipX")},Ke=function(){Ar({flipY:!_n.flipY},"flipY")},Oe=function(){ar("reset")},At=function(Wn){var Vn=Pr+Wn;!Number.isInteger(Vn)||Vn<0||Vn>ur-1||(Tn(!1),ar(Wn<0?"prev":"next"),qr==null||qr(Vn,Pr))},Et=function(Wn){!sr||!kr||(Wn.keyCode===He.Z.LEFT?At(-1):Wn.keyCode===He.Z.RIGHT&&At(1))},on=function(Wn){sr&&(ir!==1?Ar({x:0,y:0,scale:1},"doubleClick"):or(Ot+rr,"doubleClick",Wn.clientX,Wn.clientY))};(0,Ne.useEffect)(function(){var Rn=(0,rt.Z)(window,"keydown",Et,!1);return function(){Rn.remove()}},[sr,kr,Pr]);var Wt=Ne.createElement(bt,(0,te.Z)({},Wr,{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(ir,", ").concat(_n.flipY?"-":"").concat(ir,", 1) rotate(").concat(Mr,"deg)"),transitionDuration:(!tr||gn)&&"0s"},fallback:Bn,src:Ut,onWheel:xt,onMouseDown:Hn,onDoubleClick:on,onTouchStart:Mn,onTouchMove:wr,onTouchEnd:Hr,onTouchCancel:Hr})),Qn=(0,Ze.Z)({url:Ut,alt:It},ft);return Ne.createElement(Ne.Fragment,null,Ne.createElement(Me.Z,(0,te.Z)({transitionName:pr,maskTransitionName:fr,closable:!1,keyboard:!0,prefixCls:St,onClose:In,visible:sr,classNames:{wrapper:Xn},rootClassName:cr,getContainer:Jn},$n,{afterClose:_r}),Ne.createElement("div",{className:"".concat(St,"-img-wrapper")},Fr?Fr(Wt,(0,Ze.Z)({transform:_n,image:Qn},$e?{current:Pr}:{})):Wt)),Ne.createElement(at,{visible:sr,transform:_n,maskTransitionName:fr,closeIcon:yr,getContainer:Jn,prefixCls:St,rootClassName:cr,icons:dr,countRender:Qr,showSwitch:kr,showProgress:Zr,current:Pr,count:ur,scale:ir,minScale:mn,maxScale:$t,toolbarRender:Dr,onActive:At,onZoomIn:Br,onZoomOut:$r,onRotateRight:ui,onRotateLeft:ai,onFlipX:Ci,onFlipY:Ke,onClose:In,onReset:Oe,zIndex:$n.zIndex!==void 0?$n.zIndex+1:void 0,image:Qn}))},Bt=zt,Pt=ce(94480),_e=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function se(le){var Ee=Ne.useState({}),St=(0,Xe.Z)(Ee,2),Ut=St[0],It=St[1],ft=Ne.useCallback(function(jt,cn){return It(function(In){return(0,Ze.Z)((0,Ze.Z)({},In),{},(0,Te.Z)({},jt,cn))}),function(){It(function(In){var sr=(0,Ze.Z)({},In);return delete sr[jt],sr})}},[]),Bn=Ne.useMemo(function(){return le?le.map(function(jt){if(typeof jt=="string")return{data:{src:jt}};var cn={};return Object.keys(jt).forEach(function(In){["src"].concat((0,Pt.Z)(_e)).includes(In)&&(cn[In]=jt[In])}),{data:cn}}):Object.keys(Ut).reduce(function(jt,cn){var In=Ut[cn],sr=In.canPreview,vn=In.data;return sr&&jt.push({data:vn,id:cn}),jt},[])},[le,Ut]);return[Bn,ft,!!le]}var fe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ie=["src"],Be=function(Ee){var St,Ut=Ee.previewPrefixCls,It=Ut===void 0?"rc-image-preview":Ut,ft=Ee.children,Bn=Ee.icons,jt=Bn===void 0?{}:Bn,cn=Ee.items,In=Ee.preview,sr=Ee.fallback,vn=(0,ke.Z)(In)==="object"?In:{},dr=vn.visible,cr=vn.onVisibleChange,yr=vn.getContainer,Jn=vn.current,Tr=vn.movable,Pr=vn.minScale,Er=vn.maxScale,ur=vn.countRender,Qr=vn.closeIcon,Kn=vn.onChange,rr=vn.onTransform,qn=vn.toolbarRender,mn=vn.imageRender,zn=(0,ge.Z)(vn,fe),$t=se(cn),Sn=(0,Xe.Z)($t,3),pr=Sn[0],lr=Sn[1],fr=Sn[2],Fr=(0,xe.Z)(0,{value:Jn}),Wr=(0,Xe.Z)(Fr,2),Dr=Wr[0],Ur=Wr[1],qr=(0,Ne.useState)(!1),$n=(0,Xe.Z)(qr,2),yn=$n[0],$e=$n[1],kr=((St=pr[Dr])===null||St===void 0?void 0:St.data)||{},Zr=kr.src,Lt=(0,ge.Z)(kr,Ie),Tt=(0,xe.Z)(!!dr,{value:dr,onChange:function(gn,Mn){cr==null||cr(gn,Mn,Dr)}}),tr=(0,Xe.Z)(Tt,2),Tn=tr[0],Gt=tr[1],_n=(0,Ne.useState)(null),ar=(0,Xe.Z)(_n,2),Ar=ar[0],or=ar[1],hr=Ne.useCallback(function(Ft,gn,Mn,wr){var Hr=fr?pr.findIndex(function(Mr){return Mr.data.src===gn}):pr.findIndex(function(Mr){return Mr.id===Ft});Ur(Hr<0?0:Hr),Gt(!0),or({x:Mn,y:wr}),$e(!0)},[pr,fr]);Ne.useEffect(function(){Tn?yn||Ur(0):$e(!1)},[Tn]);var xr=function(gn,Mn){Ur(gn),Kn==null||Kn(gn,Mn)},Hn=function(){Gt(!1),or(null)},xt=Ne.useMemo(function(){return{register:lr,onPreview:hr}},[lr,hr]);return Ne.createElement(Ye.Provider,{value:xt},ft,Ne.createElement(Bt,(0,te.Z)({"aria-hidden":!Tn,movable:Tr,visible:Tn,prefixCls:It,closeIcon:Qr,onClose:Hn,mousePosition:Ar,imgCommonProps:Lt,src:Zr,fallback:sr,icons:jt,minScale:Pr,maxScale:Er,getContainer:yr,current:Dr,count:pr.length,countRender:ur,onTransform:rr,toolbarRender:qn,imageRender:mn,onChange:xr},zn)))},pt=Be,Mt=0;function sn(le,Ee){var St=Ne.useState(function(){return Mt+=1,String(Mt)}),Ut=(0,Xe.Z)(St,1),It=Ut[0],ft=Ne.useContext(Ye),Bn={data:Ee,canPreview:le};return Ne.useEffect(function(){if(ft)return ft.register(It,Bn)},[]),Ne.useEffect(function(){ft&&ft.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,ft=Ee.prefixCls,Bn=ft===void 0?"rc-image":ft,jt=Ee.previewPrefixCls,cn=jt===void 0?"".concat(Bn,"-preview"):jt,In=Ee.placeholder,sr=Ee.fallback,vn=Ee.width,dr=Ee.height,cr=Ee.style,yr=Ee.preview,Jn=yr===void 0?!0:yr,Tr=Ee.className,Pr=Ee.onClick,Er=Ee.onError,ur=Ee.wrapperClassName,Qr=Ee.wrapperStyle,Kn=Ee.rootClassName,rr=(0,ge.Z)(Ee,he),qn=In&&In!==!0,mn=(0,ke.Z)(Jn)==="object"?Jn:{},zn=mn.src,$t=mn.visible,Sn=$t===void 0?void 0:$t,pr=mn.onVisibleChange,lr=pr===void 0?It:pr,fr=mn.getContainer,Fr=fr===void 0?void 0:fr,Wr=mn.mask,Dr=mn.maskClassName,Ur=mn.movable,qr=mn.icons,$n=mn.scaleStep,yn=mn.minScale,$e=mn.maxScale,kr=mn.imageRender,Zr=mn.toolbarRender,Lt=(0,ge.Z)(mn,oe),Tt=zn!=null?zn:St,tr=(0,xe.Z)(!!Sn,{value:Sn,onChange:lr}),Tn=(0,Xe.Z)(tr,2),Gt=Tn[0],_n=Tn[1],ar=en({src:St,isCustomPlaceholder:qn,fallback:sr}),Ar=(0,Xe.Z)(ar,3),or=Ar[0],hr=Ar[1],xr=Ar[2],Hn=(0,Ne.useState)(null),xt=(0,Xe.Z)(Hn,2),Ft=xt[0],gn=xt[1],Mn=(0,Ne.useContext)(Ye),wr=!!Jn,Hr=function(){_n(!1),gn(null)},Mr=Ue()(Bn,ur,Kn,(0,Te.Z)({},"".concat(Bn,"-error"),xr==="error")),ir=(0,Ne.useMemo)(function(){var $r={};return _e.forEach(function(ui){Ee[ui]!==void 0&&($r[ui]=Ee[ui])}),$r},_e.map(function($r){return Ee[$r]})),Xn=(0,Ne.useMemo)(function(){return(0,Ze.Z)((0,Ze.Z)({},ir),{},{src:Tt})},[Tt,ir]),_r=sn(wr,Xn),Br=function(ui){var ai=Qe(ui.target),Ci=ai.left,Ke=ai.top;Mn?Mn.onPreview(_r,Tt,Ci,Ke):(gn({x:Ci,y:Ke}),_n(!0)),Pr==null||Pr(ui)};return Ne.createElement(Ne.Fragment,null,Ne.createElement("div",(0,te.Z)({},rr,{className:Mr,onClick:wr?Br:Pr,style:(0,Ze.Z)({width:vn,height:dr},Qr)}),Ne.createElement("img",(0,te.Z)({},ir,{className:Ue()("".concat(Bn,"-img"),(0,Te.Z)({},"".concat(Bn,"-img-placeholder"),In===!0),Tr),style:(0,Ze.Z)({height:dr},cr),ref:or},hr,{width:vn,height:dr,onError:Er})),xr==="loading"&&Ne.createElement("div",{"aria-hidden":"true",className:"".concat(Bn,"-placeholder")},In),Wr&&wr&&Ne.createElement("div",{className:Ue()("".concat(Bn,"-mask"),Dr),style:{display:(cr==null?void 0:cr.display)==="none"?"none":void 0}},Wr)),!Mn&&wr&&Ne.createElement(Bt,(0,te.Z)({"aria-hidden":!Gt,visible:Gt,prefixCls:cn,onClose:Hr,mousePosition:Ft,src:Tt,alt:Ut,imageInfo:{width:vn,height:dr},fallback:sr,getContainer:Fr,icons:qr,movable:Ur,scaleStep:$n,minScale:yn,maxScale:$e,rootClassName:Kn,imageRender:kr,imgCommonProps:ir,toolbarRender:Zr},Lt)))};re.PreviewGroup=pt;var de=re,we=de},20922:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Dt}});var te=ce(54476),Ze=ce(20068),Te=ce(76190),Xe=ce(42978),ke=ce(75931),ge=ce(67732),Ve=ce(83652);function Ue(){return typeof BigInt=="function"}function Se(mt){return!mt&&mt!==0&&!Number.isNaN(mt)||!String(mt).trim()}function ye(mt){var ht=mt.trim(),bt=ht.startsWith("-");bt&&(ht=ht.slice(1)),ht=ht.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ht.startsWith(".")&&(ht="0".concat(ht));var zt=ht||"0",Bt=zt.split("."),Pt=Bt[0]||"0",_e=Bt[1]||"0";Pt==="0"&&_e==="0"&&(bt=!1);var se=bt?"-":"";return{negative:bt,negativeStr:se,trimStr:zt,integerStr:Pt,decimalStr:_e,fullStr:"".concat(se).concat(zt)}}function Je(mt){var ht=String(mt);return!Number.isNaN(Number(ht))&&ht.includes("e")}function Ce(mt){var ht=String(mt);if(Je(mt)){var bt=Number(ht.slice(ht.indexOf("e-")+2)),zt=ht.match(/\.(\d+)/);return zt!=null&&zt[1]&&(bt+=zt[1].length),bt}return ht.includes(".")&&nt(ht)?ht.length-ht.indexOf(".")-1:0}function st(mt){var ht=String(mt);if(Je(mt)){if(mt>Number.MAX_SAFE_INTEGER)return String(Ue()?BigInt(mt).toString():Number.MAX_SAFE_INTEGER);if(mt0&&arguments[0]!==void 0?arguments[0]:!0;return bt?this.isInvalidate()?"":ye("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),mt}(),We=function(){function mt(ht){if((0,ge.Z)(this,mt),(0,Ze.Z)(this,"origin",""),(0,Ze.Z)(this,"number",void 0),(0,Ze.Z)(this,"empty",void 0),Se(ht)){this.empty=!0;return}this.origin=String(ht),this.number=Number(ht)}return(0,Ve.Z)(mt,[{key:"negate",value:function(){return new mt(-this.toNumber())}},{key:"add",value:function(bt){if(this.isInvalidate())return new mt(bt);var zt=Number(bt);if(Number.isNaN(zt))return this;var Bt=this.number+zt;if(Bt>Number.MAX_SAFE_INTEGER)return new mt(Number.MAX_SAFE_INTEGER);if(BtNumber.MAX_SAFE_INTEGER)return new mt(Number.MAX_SAFE_INTEGER);if(Bt0&&arguments[0]!==void 0?arguments[0]:!0;return bt?this.isInvalidate()?"":st(this.number):this.origin}}]),mt}();function Le(mt){return Ue()?new it(mt):new We(mt)}function ut(mt,ht,bt){var zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(mt==="")return"";var Bt=ye(mt),Pt=Bt.negativeStr,_e=Bt.integerStr,se=Bt.decimalStr,fe="".concat(ht).concat(se),Ie="".concat(Pt).concat(_e);if(bt>=0){var Be=Number(se[bt]);if(Be>=5&&!zt){var pt=Le(mt).add("".concat(Pt,"0.").concat("0".repeat(bt)).concat(10-Be));return ut(pt.toString(),ht,bt,zt)}return bt===0?Ie:"".concat(Ie).concat(ht).concat(se.padEnd(bt,"0").slice(0,bt))}return fe===".0"?Ie:"".concat(Ie).concat(fe)}var Ge=Le,qe=ce(92310),Qe=ce.n(qe),xe=ce(36901),Ne=ce(34280);function Me(mt,ht){return typeof Proxy!="undefined"&&mt?new Proxy(mt,{get:function(zt,Bt){if(ht[Bt])return ht[Bt];var Pt=zt[Bt];return typeof Pt=="function"?Pt.bind(zt):Pt}}):mt}var rt=ce(8654),He=ce(59301),tt=ce(48736);function gt(mt,ht){var bt=(0,He.useRef)(null);function zt(){try{var Pt=mt.selectionStart,_e=mt.selectionEnd,se=mt.value,fe=se.substring(0,Pt),Ie=se.substring(_e);bt.current={start:Pt,end:_e,value:se,beforeTxt:fe,afterTxt:Ie}}catch(Be){}}function Bt(){if(mt&&bt.current&&ht)try{var Pt=mt.value,_e=bt.current,se=_e.beforeTxt,fe=_e.afterTxt,Ie=_e.start,Be=Pt.length;if(Pt.startsWith(se))Be=se.length;else if(Pt.endsWith(fe))Be=Pt.length-bt.current.afterTxt.length;else{var pt=se[Ie-1],Mt=Pt.indexOf(pt,Ie-1);Mt!==-1&&(Be=Mt+1)}mt.setSelectionRange(Be,Be)}catch(sn){(0,tt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(sn.message))}}return[zt,Bt]}var Ye=ce(49658),wt=function(){var ht=(0,He.useState)(!1),bt=(0,Xe.Z)(ht,2),zt=bt[0],Bt=bt[1];return(0,Ne.Z)(function(){Bt((0,Ye.Z)())},[]),zt},at=wt,vt=ce(16089),Vt=200,Jt=600;function pn(mt){var ht=mt.prefixCls,bt=mt.upNode,zt=mt.downNode,Bt=mt.upDisabled,Pt=mt.downDisabled,_e=mt.onStep,se=He.useRef(),fe=He.useRef([]),Ie=He.useRef();Ie.current=_e;var Be=function(){clearTimeout(se.current)},pt=function(le,Ee){le.preventDefault(),Be(),Ie.current(Ee);function St(){Ie.current(Ee),se.current=setTimeout(St,Vt)}se.current=setTimeout(St,Jt)};He.useEffect(function(){return function(){Be(),fe.current.forEach(function(we){return vt.Z.cancel(we)})}},[]);var Mt=at();if(Mt)return null;var sn="".concat(ht,"-handler"),he=Qe()(sn,"".concat(sn,"-up"),(0,Ze.Z)({},"".concat(sn,"-up-disabled"),Bt)),oe=Qe()(sn,"".concat(sn,"-down"),(0,Ze.Z)({},"".concat(sn,"-down-disabled"),Pt)),re=function(){return fe.current.push((0,vt.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){pt(le,!0)},"aria-label":"Increase Value","aria-disabled":Bt,className:he}),bt||He.createElement("span",{unselectable:"on",className:"".concat(ht,"-handler-up-inner")})),He.createElement("span",(0,te.Z)({},de,{onMouseDown:function(le){pt(le,!1)},"aria-label":"Decrease Value","aria-disabled":Pt,className:oe}),zt||He.createElement("span",{unselectable:"on",className:"".concat(ht,"-handler-down-inner")})))}function An(mt){var ht=typeof mt=="number"?st(mt):ye(mt).fullStr,bt=ht.includes(".");return bt?ye(ht.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:mt+"0"}var ze=ce(30292),Fe=function(){var mt=(0,He.useRef)(0),ht=function(){vt.Z.cancel(mt.current)};return(0,He.useEffect)(function(){return ht},[]),function(bt){ht(),mt.current=(0,vt.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"],dn=function(ht,bt){return ht||bt.isEmpty()?bt.toString():bt.toNumber()},Ct=function(ht){var bt=Ge(ht);return bt.isInvalidate()?null:bt},en=He.forwardRef(function(mt,ht){var bt=mt.prefixCls,zt=mt.className,Bt=mt.style,Pt=mt.min,_e=mt.max,se=mt.step,fe=se===void 0?1:se,Ie=mt.defaultValue,Be=mt.value,pt=mt.disabled,Mt=mt.readOnly,sn=mt.upHandler,he=mt.downHandler,oe=mt.keyboard,re=mt.changeOnWheel,de=re===void 0?!1:re,we=mt.controls,le=we===void 0?!0:we,Ee=mt.classNames,St=mt.stringMode,Ut=mt.parser,It=mt.formatter,ft=mt.precision,Bn=mt.decimalSeparator,jt=mt.onChange,cn=mt.onInput,In=mt.onPressEnter,sr=mt.onStep,vn=mt.changeOnBlur,dr=vn===void 0?!0:vn,cr=mt.domRef,yr=(0,ke.Z)(mt,Ot),Jn="".concat(bt,"-input"),Tr=He.useRef(null),Pr=He.useState(!1),Er=(0,Xe.Z)(Pr,2),ur=Er[0],Qr=Er[1],Kn=He.useRef(!1),rr=He.useRef(!1),qn=He.useRef(!1),mn=He.useState(function(){return Ge(Be!=null?Be:Ie)}),zn=(0,Xe.Z)(mn,2),$t=zn[0],Sn=zn[1];function pr(ir){Be===void 0&&Sn(ir)}var lr=He.useCallback(function(ir,Xn){if(!Xn)return ft>=0?ft:Math.max(Ce(ir),Ce(fe))},[ft,fe]),fr=He.useCallback(function(ir){var Xn=String(ir);if(Ut)return Ut(Xn);var _r=Xn;return Bn&&(_r=_r.replace(Bn,".")),_r.replace(/[^\w.-]+/g,"")},[Ut,Bn]),Fr=He.useRef(""),Wr=He.useCallback(function(ir,Xn){if(It)return It(ir,{userTyping:Xn,input:String(Fr.current)});var _r=typeof ir=="number"?st(ir):ir;if(!Xn){var Br=lr(_r,Xn);if(nt(_r)&&(Bn||Br>=0)){var $r=Bn||".";_r=ut(_r,$r,Br)}}return _r},[It,lr,Bn]),Dr=He.useState(function(){var ir=Ie!=null?Ie:Be;return $t.isInvalidate()&&["string","number"].includes((0,Te.Z)(ir))?Number.isNaN(ir)?"":ir:Wr($t.toString(),!1)}),Ur=(0,Xe.Z)(Dr,2),qr=Ur[0],$n=Ur[1];Fr.current=qr;function yn(ir,Xn){$n(Wr(ir.isInvalidate()?ir.toString(!1):ir.toString(!Xn),Xn))}var $e=He.useMemo(function(){return Ct(_e)},[_e,ft]),kr=He.useMemo(function(){return Ct(Pt)},[Pt,ft]),Zr=He.useMemo(function(){return!$e||!$t||$t.isInvalidate()?!1:$e.lessEquals($t)},[$e,$t]),Lt=He.useMemo(function(){return!kr||!$t||$t.isInvalidate()?!1:$t.lessEquals(kr)},[kr,$t]),Tt=gt(Tr.current,ur),tr=(0,Xe.Z)(Tt,2),Tn=tr[0],Gt=tr[1],_n=function(Xn){return $e&&!Xn.lessEquals($e)?$e:kr&&!kr.lessEquals(Xn)?kr:null},ar=function(Xn){return!_n(Xn)},Ar=function(Xn,_r){var Br=Xn,$r=ar(Br)||Br.isEmpty();if(!Br.isEmpty()&&!_r&&(Br=_n(Br)||Br,$r=!0),!Mt&&!pt&&$r){var ui=Br.toString(),ai=lr(ui,_r);return ai>=0&&(Br=Ge(ut(ui,".",ai)),ar(Br)||(Br=Ge(ut(ui,".",ai,!0)))),Br.equals($t)||(pr(Br),jt==null||jt(Br.isEmpty()?null:dn(St,Br)),Be===void 0&&yn(Br,_r)),Br}return $t},or=Fe(),hr=function ir(Xn){if(Tn(),Fr.current=Xn,$n(Xn),!rr.current){var _r=fr(Xn),Br=Ge(_r);Br.isNaN()||Ar(Br,!0)}cn==null||cn(Xn),or(function(){var $r=Xn;Ut||($r=Xn.replace(/。/g,".")),$r!==Xn&&ir($r)})},xr=function(){rr.current=!0},Hn=function(){rr.current=!1,hr(Tr.current.value)},xt=function(Xn){hr(Xn.target.value)},Ft=function(Xn){var _r;if(!(Xn&&Zr||!Xn&&Lt)){Kn.current=!1;var Br=Ge(qn.current?An(fe):fe);Xn||(Br=Br.negate());var $r=($t||Ge(0)).add(Br.toString()),ui=Ar($r,!1);sr==null||sr(dn(St,ui),{offset:qn.current?An(fe):fe,type:Xn?"up":"down"}),(_r=Tr.current)===null||_r===void 0||_r.focus()}},gn=function(Xn){var _r=Ge(fr(qr)),Br;_r.isNaN()?Br=Ar($t,Xn):Br=Ar(_r,Xn),Be!==void 0?yn($t,!1):Br.isNaN()||yn(Br,!1)},Mn=function(){Kn.current=!0},wr=function(Xn){var _r=Xn.key,Br=Xn.shiftKey;Kn.current=!0,qn.current=Br,_r==="Enter"&&(rr.current||(Kn.current=!1),gn(!1),In==null||In(Xn)),oe!==!1&&!rr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_r)&&(Ft(_r==="Up"||_r==="ArrowUp"),Xn.preventDefault())},Hr=function(){Kn.current=!1,qn.current=!1};He.useEffect(function(){if(de&&ur){var ir=function(Br){Ft(Br.deltaY<0),Br.preventDefault()},Xn=Tr.current;if(Xn)return Xn.addEventListener("wheel",ir,{passive:!1}),function(){return Xn.removeEventListener("wheel",ir)}}});var Mr=function(){dr&&gn(!1),Qr(!1),Kn.current=!1};return(0,Ne.o)(function(){$t.isInvalidate()||yn($t,!1)},[ft,It]),(0,Ne.o)(function(){var ir=Ge(Be);Sn(ir);var Xn=Ge(fr(qr));(!ir.equals(Xn)||!Kn.current||It)&&yn(ir,Kn.current)},[Be]),(0,Ne.o)(function(){It&&Gt()},[qr]),He.createElement("div",{ref:cr,className:Qe()(bt,zt,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},"".concat(bt,"-focused"),ur),"".concat(bt,"-disabled"),pt),"".concat(bt,"-readonly"),Mt),"".concat(bt,"-not-a-number"),$t.isNaN()),"".concat(bt,"-out-of-range"),!$t.isInvalidate()&&!ar($t))),style:Bt,onFocus:function(){Qr(!0)},onBlur:Mr,onKeyDown:wr,onKeyUp:Hr,onCompositionStart:xr,onCompositionEnd:Hn,onBeforeInput:Mn},le&&He.createElement(pn,{prefixCls:bt,upNode:sn,downNode:he,upDisabled:Zr,downDisabled:Lt,onStep:Ft}),He.createElement("div",{className:"".concat(Jn,"-wrap")},He.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Pt,"aria-valuemax":_e,"aria-valuenow":$t.isInvalidate()?null:$t.toString(),step:fe},yr,{ref:(0,rt.sQ)(Tr,ht),className:Jn,value:qr,onChange:xt,disabled:pt,readOnly:Mt}))))}),rn=He.forwardRef(function(mt,ht){var bt=mt.disabled,zt=mt.style,Bt=mt.prefixCls,Pt=Bt===void 0?"rc-input-number":Bt,_e=mt.value,se=mt.prefix,fe=mt.suffix,Ie=mt.addonBefore,Be=mt.addonAfter,pt=mt.className,Mt=mt.classNames,sn=(0,ke.Z)(mt,Fn),he=He.useRef(null),oe=He.useRef(null),re=He.useRef(null),de=function(le){re.current&&(0,ze.nH)(re.current,le)};return He.useImperativeHandle(ht,function(){return Me(re.current,{focus:de,nativeElement:he.current.nativeElement||oe.current})}),He.createElement(xe.BaseInput,{className:pt,triggerFocus:de,prefixCls:Pt,value:_e,disabled:bt,style:zt,prefix:se,suffix:fe,addonAfter:Be,addonBefore:Ie,classNames:Mt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:he},He.createElement(en,(0,te.Z)({prefixCls:Pt,disabled:bt,ref:re,domRef:oe,className:Mt==null?void 0:Mt.input},sn)))}),Yn=rn,Dt=Yn},23425:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Me}});var te=ce(20068),Ze=ce(54476),Te=ce(76190),Xe=ce(33885),ke=ce(42978),ge=ce(92310),Ve=ce.n(ge),Ue=ce(18929),Se=ce(10228),ye=ce(26112),Je=ce(48736),Ce=ce(59301),st=ce(17119),nt=[10,20,50,100],it=function(He){var tt=He.pageSizeOptions,gt=tt===void 0?nt:tt,Ye=He.locale,wt=He.changeSize,at=He.pageSize,vt=He.goButton,Vt=He.quickGo,Jt=He.rootPrefixCls,pn=He.disabled,An=He.buildOptionText,ze=He.showSizeChanger,Fe=He.sizeChangerRender,Ot=Ce.useState(""),Fn=(0,ke.Z)(Ot,2),dn=Fn[0],Ct=Fn[1],en=function(){return!dn||Number.isNaN(dn)?void 0:Number(dn)},rn=typeof An=="function"?An:function(_e){return"".concat(_e," ").concat(Ye.items_per_page)},Yn=function(se){Ct(se.target.value)},Dt=function(se){vt||dn===""||(Ct(""),!(se.relatedTarget&&(se.relatedTarget.className.indexOf("".concat(Jt,"-item-link"))>=0||se.relatedTarget.className.indexOf("".concat(Jt,"-item"))>=0))&&(Vt==null||Vt(en())))},mt=function(se){dn!==""&&(se.keyCode===Se.Z.ENTER||se.type==="click")&&(Ct(""),Vt==null||Vt(en()))},ht=function(){return gt.some(function(se){return se.toString()===at.toString()})?gt:gt.concat([at]).sort(function(se,fe){var Ie=Number.isNaN(Number(se))?0:Number(se),Be=Number.isNaN(Number(fe))?0:Number(fe);return Ie-Be})},bt="".concat(Jt,"-options");if(!ze&&!Vt)return null;var zt=null,Bt=null,Pt=null;return ze&&Fe&&(zt=Fe({disabled:pn,size:at,onSizeChange:function(se){wt==null||wt(Number(se))},"aria-label":Ye.page_size,className:"".concat(bt,"-size-changer"),options:ht().map(function(_e){return{label:rn(_e),value:_e}})})),Vt&&(vt&&(Pt=typeof vt=="boolean"?Ce.createElement("button",{type:"button",onClick:mt,onKeyUp:mt,disabled:pn,className:"".concat(bt,"-quick-jumper-button")},Ye.jump_to_confirm):Ce.createElement("span",{onClick:mt,onKeyUp:mt},vt)),Bt=Ce.createElement("div",{className:"".concat(bt,"-quick-jumper")},Ye.jump_to,Ce.createElement("input",{disabled:pn,type:"text",value:dn,onChange:Yn,onKeyUp:mt,onBlur:Dt,"aria-label":Ye.page}),Ye.page,Pt)),Ce.createElement("li",{className:bt},zt,Bt)},We=it,Le=function(He){var tt=He.rootPrefixCls,gt=He.page,Ye=He.active,wt=He.className,at=He.showTitle,vt=He.onClick,Vt=He.onKeyPress,Jt=He.itemRender,pn="".concat(tt,"-item"),An=Ve()(pn,"".concat(pn,"-").concat(gt),(0,te.Z)((0,te.Z)({},"".concat(pn,"-active"),Ye),"".concat(pn,"-disabled"),!gt),wt),ze=function(){vt(gt)},Fe=function(dn){Vt(dn,vt,gt)},Ot=Jt(gt,"page",Ce.createElement("a",{rel:"nofollow"},gt));return Ot?Ce.createElement("li",{title:at?String(gt):null,className:An,onClick:ze,onKeyDown:Fe,tabIndex:0},Ot):null},ut=Le,Ge=function(He,tt,gt){return gt};function qe(){}function Qe(rt){var He=Number(rt);return typeof He=="number"&&!Number.isNaN(He)&&isFinite(He)&&Math.floor(He)===He}function xe(rt,He,tt){var gt=typeof rt=="undefined"?He:rt;return Math.floor((tt-1)/gt)+1}var Ne=function(He){var tt=He.prefixCls,gt=tt===void 0?"rc-pagination":tt,Ye=He.selectPrefixCls,wt=Ye===void 0?"rc-select":Ye,at=He.className,vt=He.current,Vt=He.defaultCurrent,Jt=Vt===void 0?1:Vt,pn=He.total,An=pn===void 0?0:pn,ze=He.pageSize,Fe=He.defaultPageSize,Ot=Fe===void 0?10:Fe,Fn=He.onChange,dn=Fn===void 0?qe:Fn,Ct=He.hideOnSinglePage,en=He.align,rn=He.showPrevNextJumpers,Yn=rn===void 0?!0:rn,Dt=He.showQuickJumper,mt=He.showLessItems,ht=He.showTitle,bt=ht===void 0?!0:ht,zt=He.onShowSizeChange,Bt=zt===void 0?qe:zt,Pt=He.locale,_e=Pt===void 0?st.Z:Pt,se=He.style,fe=He.totalBoundaryShowSizeChanger,Ie=fe===void 0?50:fe,Be=He.disabled,pt=He.simple,Mt=He.showTotal,sn=He.showSizeChanger,he=sn===void 0?An>Ie: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),ft=(0,Ue.Z)(10,{value:ze,defaultValue:Ot}),Bn=(0,ke.Z)(ft,2),jt=Bn[0],cn=Bn[1],In=(0,Ue.Z)(1,{value:vt,defaultValue:Jt,postState:function(Qn){return Math.max(1,Math.min(Qn,xe(void 0,jt,An)))}}),sr=(0,ke.Z)(In,2),vn=sr[0],dr=sr[1],cr=Ce.useState(vn),yr=(0,ke.Z)(cr,2),Jn=yr[0],Tr=yr[1];(0,Ce.useEffect)(function(){Tr(vn)},[vn]);var Pr=dn!==qe,Er="current"in He,ur=Math.max(1,vn-(mt?3:5)),Qr=Math.min(xe(void 0,jt,An),vn+(mt?3:5));function Kn(Wt,Qn){var Rn=Wt||Ce.createElement("button",{type:"button","aria-label":Qn,className:"".concat(gt,"-item-link")});return typeof Wt=="function"&&(Rn=Ce.createElement(Wt,(0,Xe.Z)({},He))),Rn}function rr(Wt){var Qn=Wt.target.value,Rn=xe(void 0,jt,An),Wn;return Qn===""?Wn=Qn:Number.isNaN(Number(Qn))?Wn=Jn:Qn>=Rn?Wn=Rn:Wn=Number(Qn),Wn}function qn(Wt){return Qe(Wt)&&Wt!==vn&&Qe(An)&&An>0}var mn=An>jt?Dt:!1;function zn(Wt){(Wt.keyCode===Se.Z.UP||Wt.keyCode===Se.Z.DOWN)&&Wt.preventDefault()}function $t(Wt){var Qn=rr(Wt);switch(Qn!==Jn&&Tr(Qn),Wt.keyCode){case Se.Z.ENTER:lr(Qn);break;case Se.Z.UP:lr(Qn-1);break;case Se.Z.DOWN:lr(Qn+1);break;default:break}}function Sn(Wt){lr(rr(Wt))}function pr(Wt){var Qn=xe(Wt,jt,An),Rn=vn>Qn&&Qn!==0?Qn:vn;cn(Wt),Tr(Rn),Bt==null||Bt(vn,Wt),dr(Rn),dn==null||dn(Rn,Wt)}function lr(Wt){if(qn(Wt)&&!Be){var Qn=xe(void 0,jt,An),Rn=Wt;return Wt>Qn?Rn=Qn:Wt<1&&(Rn=1),Rn!==Jn&&Tr(Rn),dr(Rn),dn==null||dn(Rn,jt),Rn}return vn}var fr=vn>1,Fr=vn2?Rn-2:0),Vn=2;VnAn?An:vn*jt])),ar=null,Ar=xe(void 0,jt,An);if(Ct&&An<=jt)return null;var or=[],hr={rootPrefixCls:gt,onClick:lr,onKeyPress:$n,showTitle:bt,itemRender:we,page:-1},xr=vn-1>0?vn-1:0,Hn=vn+1=wr*2&&vn!==3&&(or[0]=Ce.cloneElement(or[0],{className:Ve()("".concat(gt,"-item-after-jump-prev"),or[0].props.className)}),or.unshift(Tn)),Ar-vn>=wr*2&&vn!==Ar-2){var ai=or[or.length-1];or[or.length-1]=Ce.cloneElement(ai,{className:Ve()("".concat(gt,"-item-before-jump-next"),ai.props.className)}),or.push(ar)}Br!==1&&or.unshift(Ce.createElement(ut,(0,Ze.Z)({},hr,{key:1,page:1}))),$r!==Ar&&or.push(Ce.createElement(ut,(0,Ze.Z)({},hr,{key:Ar,page:Ar})))}var Ci=Lt(xr);if(Ci){var Ke=!fr||!Ar;Ci=Ce.createElement("li",{title:bt?_e.prev_page:null,onClick:Wr,tabIndex:Ke?null:0,onKeyDown:yn,className:Ve()("".concat(gt,"-prev"),(0,te.Z)({},"".concat(gt,"-disabled"),Ke)),"aria-disabled":Ke},Ci)}var Oe=Tt(Hn);if(Oe){var At,Et;pt?(At=!Fr,Et=fr?0:null):(At=!Fr||!Ar,Et=At?null:0),Oe=Ce.createElement("li",{title:bt?_e.next_page:null,onClick:Dr,tabIndex:Et,onKeyDown:$e,className:Ve()("".concat(gt,"-next"),(0,te.Z)({},"".concat(gt,"-disabled"),At)),"aria-disabled":At},Oe)}var on=Ve()(gt,at,(0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)({},"".concat(gt,"-start"),en==="start"),"".concat(gt,"-center"),en==="center"),"".concat(gt,"-end"),en==="end"),"".concat(gt,"-simple"),pt),"".concat(gt,"-disabled"),Be));return Ce.createElement("ul",(0,Ze.Z)({className:on,style:se,ref:It},Gt),_n,Ci,pt?Mn:or,Oe,Ce.createElement(We,{locale:_e,rootPrefixCls:gt,disabled:Be,selectPrefixCls:wt,changeSize:pr,pageSize:jt,pageSizeOptions:re,quickGo:mn?lr:null,goButton:gn,showSizeChanger:he,sizeChangerRender:oe}))},Me=Ne},25930:function(xn,yt,ce){"use strict";ce.d(yt,{Cd:function(){return gt}});var te=ce(54476),Ze=ce(33885),Te=ce(75931),Xe=ce(59301),ke=ce(92310),ge=ce.n(ke),Ve={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ue=function(){var at=(0,Xe.useRef)([]),vt=(0,Xe.useRef)(null);return(0,Xe.useEffect)(function(){var Vt=Date.now(),Jt=!1;at.current.forEach(function(pn){if(pn){Jt=!0;var An=pn.style;An.transitionDuration=".3s, .3s, .3s, .06s",vt.current&&Vt-vt.current<100&&(An.transitionDuration="0s, 0s")}}),Jt&&(vt.current=Date.now())}),at.current},Se=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ye=function(at){var vt=(0,Ze.Z)((0,Ze.Z)({},Ve),at),Vt=vt.className,Jt=vt.percent,pn=vt.prefixCls,An=vt.strokeColor,ze=vt.strokeLinecap,Fe=vt.strokeWidth,Ot=vt.style,Fn=vt.trailColor,dn=vt.trailWidth,Ct=vt.transition,en=(0,Te.Z)(vt,Se);delete en.gapPosition;var rn=Array.isArray(Jt)?Jt:[Jt],Yn=Array.isArray(An)?An:[An],Dt=Ue(),mt=Fe/2,ht=100-Fe/2,bt="M ".concat(ze==="round"?mt:0,",").concat(mt,` L `).concat(ze==="round"?ht:100,",").concat(mt),zt="0 0 100 ".concat(Fe),Bt=0;return Xe.createElement("svg",(0,te.Z)({className:ge()("".concat(pn,"-line"),Vt),viewBox:zt,preserveAspectRatio:"none",style:Ot},en),Xe.createElement("path",{className:"".concat(pn,"-line-trail"),d:bt,strokeLinecap:ze,stroke:Fn,strokeWidth:dn||Fe,fillOpacity:"0"}),rn.map(function(Pt,_e){var se=1;switch(ze){case"round":se=1-Fe/100;break;case"square":se=1-Fe/2/100;break;default:se=1;break}var fe={strokeDasharray:"".concat(Pt*se,"px, 100px"),strokeDashoffset:"-".concat(Bt,"px"),transition:Ct||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ie=Yn[_e]||Yn[Yn.length-1];return Bt+=Pt,Xe.createElement("path",{key:_e,className:"".concat(pn,"-line-path"),d:bt,strokeLinecap:ze,stroke:Ie,strokeWidth:Fe,fillOpacity:"0",ref:function(pt){Dt[_e]=pt},style:fe})}))},Je=ye,Ce=ce(76190),st=ce(42978),nt=ce(47273),it=0,We=(0,nt.Z)();function Le(){var wt;return We?(wt=it,it+=1):wt="TEST_OR_SSR",wt}var ut=function(wt){var at=Xe.useState(),vt=(0,st.Z)(at,2),Vt=vt[0],Jt=vt[1];return Xe.useEffect(function(){Jt("rc_progress_".concat(Le()))},[]),wt||Vt},Ge=function(at){var vt=at.bg,Vt=at.children;return Xe.createElement("div",{style:{width:"100%",height:"100%",background:vt}},Vt)};function qe(wt,at){return Object.keys(wt).map(function(vt){var Vt=parseFloat(vt),Jt="".concat(Math.floor(Vt*at),"%");return"".concat(wt[vt]," ").concat(Jt)})}var Qe=Xe.forwardRef(function(wt,at){var vt=wt.prefixCls,Vt=wt.color,Jt=wt.gradientId,pn=wt.radius,An=wt.style,ze=wt.ptg,Fe=wt.strokeLinecap,Ot=wt.strokeWidth,Fn=wt.size,dn=wt.gapDegree,Ct=Vt&&(0,Ce.Z)(Vt)==="object",en=Ct?"#FFF":void 0,rn=Fn/2,Yn=Xe.createElement("circle",{className:"".concat(vt,"-circle-path"),r:pn,cx:rn,cy:rn,stroke:en,strokeLinecap:Fe,strokeWidth:Ot,opacity:ze===0?0:1,style:An,ref:at});if(!Ct)return Yn;var Dt="".concat(Jt,"-conic"),mt=dn?"".concat(180+dn/2,"deg"):"0deg",ht=qe(Vt,(360-dn)/360),bt=qe(Vt,1),zt="conic-gradient(from ".concat(mt,", ").concat(ht.join(", "),")"),Bt="linear-gradient(to ".concat(dn?"bottom":"top",", ").concat(bt.join(", "),")");return Xe.createElement(Xe.Fragment,null,Xe.createElement("mask",{id:Dt},Yn),Xe.createElement("foreignObject",{x:0,y:0,width:Fn,height:Fn,mask:"url(#".concat(Dt,")")},Xe.createElement(Ge,{bg:Bt},Xe.createElement(Ge,{bg:zt}))))}),xe=Qe,Ne=100,Me=function(at,vt,Vt,Jt,pn,An,ze,Fe,Ot,Fn){var dn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ct=Vt/100*360*((360-An)/360),en=An===0?0:{bottom:0,top:180,left:90,right:-90}[ze],rn=(100-Jt)/100*vt;Ot==="round"&&Jt!==100&&(rn+=Fn/2,rn>=vt&&(rn=vt-.01));var Yn=Ne/2;return{stroke:typeof Fe=="string"?Fe:void 0,strokeDasharray:"".concat(vt,"px ").concat(at),strokeDashoffset:rn+dn,transform:"rotate(".concat(pn+Ct+en,"deg)"),transformOrigin:"".concat(Yn,"px ").concat(Yn,"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}},rt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function He(wt){var at=wt!=null?wt:[];return Array.isArray(at)?at:[at]}var tt=function(at){var vt=(0,Ze.Z)((0,Ze.Z)({},Ve),at),Vt=vt.id,Jt=vt.prefixCls,pn=vt.steps,An=vt.strokeWidth,ze=vt.trailWidth,Fe=vt.gapDegree,Ot=Fe===void 0?0:Fe,Fn=vt.gapPosition,dn=vt.trailColor,Ct=vt.strokeLinecap,en=vt.style,rn=vt.className,Yn=vt.strokeColor,Dt=vt.percent,mt=(0,Te.Z)(vt,rt),ht=Ne/2,bt=ut(Vt),zt="".concat(bt,"-gradient"),Bt=ht-An/2,Pt=Math.PI*2*Bt,_e=Ot>0?90+Ot/2:-90,se=Pt*((360-Ot)/360),fe=(0,Ce.Z)(pn)==="object"?pn:{count:pn,gap:2},Ie=fe.count,Be=fe.gap,pt=He(Dt),Mt=He(Yn),sn=Mt.find(function(Ee){return Ee&&(0,Ce.Z)(Ee)==="object"}),he=sn&&(0,Ce.Z)(sn)==="object",oe=he?"butt":Ct,re=Me(Pt,se,0,100,_e,Ot,Fn,dn,oe,An),de=Ue(),we=function(){var St=0;return pt.map(function(Ut,It){var ft=Mt[It]||Mt[Mt.length-1],Bn=Me(Pt,se,St,Ut,_e,Ot,Fn,ft,oe,An);return St+=Ut,Xe.createElement(xe,{key:It,color:ft,ptg:Ut,radius:Bt,prefixCls:Jt,gradientId:zt,style:Bn,strokeLinecap:oe,strokeWidth:An,gapDegree:Ot,ref:function(cn){de[It]=cn},size:Ne})}).reverse()},le=function(){var St=Math.round(Ie*(pt[0]/100)),Ut=100/Ie,It=0;return new Array(Ie).fill(null).map(function(ft,Bn){var jt=Bn<=St-1?Mt[0]:dn,cn=jt&&(0,Ce.Z)(jt)==="object"?"url(#".concat(zt,")"):void 0,In=Me(Pt,se,It,Ut,_e,Ot,Fn,jt,"butt",An,Be);return It+=(se-In.strokeDashoffset+Be)*100/se,Xe.createElement("circle",{key:Bn,className:"".concat(Jt,"-circle-path"),r:Bt,cx:ht,cy:ht,stroke:cn,strokeWidth:An,opacity:1,style:In,ref:function(vn){de[Bn]=vn}})})};return Xe.createElement("svg",(0,te.Z)({className:ge()("".concat(Jt,"-circle"),rn),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:en,id:Vt,role:"presentation"},mt),!Ie&&Xe.createElement("circle",{className:"".concat(Jt,"-circle-trail"),r:Bt,cx:ht,cy:ht,stroke:dn,strokeLinecap:oe,strokeWidth:ze||An,style:re}),Ie?le():we())},gt=tt,Ye={Line:Je,Circle:gt}},738:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return qe}});var te=ce(54476),Ze=ce(20068),Te=ce(42978),Xe=ce(75931),ke=ce(92310),ge=ce.n(ke),Ve=ce(18929),Ue=ce(10228),Se=ce(26112),ye=ce(59301);function Je(Qe,xe){var Ne=Qe.disabled,Me=Qe.prefixCls,rt=Qe.character,He=Qe.characterRender,tt=Qe.index,gt=Qe.count,Ye=Qe.value,wt=Qe.allowHalf,at=Qe.focused,vt=Qe.onHover,Vt=Qe.onClick,Jt=function(Ct){vt(Ct,tt)},pn=function(Ct){Vt(Ct,tt)},An=function(Ct){Ct.keyCode===Ue.Z.ENTER&&Vt(Ct,tt)},ze=tt+1,Fe=new Set([Me]);Ye===0&&tt===0&&at?Fe.add("".concat(Me,"-focused")):wt&&Ye+.5>=ze&&Yett?"true":"false","aria-posinset":tt+1,"aria-setsize":gt,tabIndex:Ne?-1:0},ye.createElement("div",{className:"".concat(Me,"-first")},Ot),ye.createElement("div",{className:"".concat(Me,"-second")},Ot)));return He&&(Fn=He(Fn,Qe)),Fn}var Ce=ye.forwardRef(Je);function st(){var Qe=ye.useRef({});function xe(Me){return Qe.current[Me]}function Ne(Me){return function(rt){Qe.current[Me]=rt}}return[xe,Ne]}function nt(Qe){var xe=Qe.pageXOffset,Ne="scrollLeft";if(typeof xe!="number"){var Me=Qe.document;xe=Me.documentElement[Ne],typeof xe!="number"&&(xe=Me.body[Ne])}return xe}function it(Qe){var xe,Ne,Me=Qe.ownerDocument,rt=Me.body,He=Me&&Me.documentElement,tt=Qe.getBoundingClientRect();return xe=tt.left,Ne=tt.top,xe-=He.clientLeft||rt.clientLeft||0,Ne-=He.clientTop||rt.clientTop||0,{left:xe,top:Ne}}function We(Qe){var xe=it(Qe),Ne=Qe.ownerDocument,Me=Ne.defaultView||Ne.parentWindow;return xe.left+=nt(Me),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,Me=Ne===void 0?"rc-rate":Ne,rt=Qe.className,He=Qe.defaultValue,tt=Qe.value,gt=Qe.count,Ye=gt===void 0?5:gt,wt=Qe.allowHalf,at=wt===void 0?!1:wt,vt=Qe.allowClear,Vt=vt===void 0?!0:vt,Jt=Qe.keyboard,pn=Jt===void 0?!0:Jt,An=Qe.character,ze=An===void 0?"\u2605":An,Fe=Qe.characterRender,Ot=Qe.disabled,Fn=Qe.direction,dn=Fn===void 0?"ltr":Fn,Ct=Qe.tabIndex,en=Ct===void 0?0:Ct,rn=Qe.autoFocus,Yn=Qe.onHoverChange,Dt=Qe.onChange,mt=Qe.onFocus,ht=Qe.onBlur,bt=Qe.onKeyDown,zt=Qe.onMouseLeave,Bt=(0,Xe.Z)(Qe,Le),Pt=st(),_e=(0,Te.Z)(Pt,2),se=_e[0],fe=_e[1],Ie=ye.useRef(null),Be=function(){if(!Ot){var ur;(ur=Ie.current)===null||ur===void 0||ur.focus()}};ye.useImperativeHandle(xe,function(){return{focus:Be,blur:function(){if(!Ot){var ur;(ur=Ie.current)===null||ur===void 0||ur.blur()}}}});var pt=(0,Ve.Z)(He||0,{value:tt}),Mt=(0,Te.Z)(pt,2),sn=Mt[0],he=Mt[1],oe=(0,Ve.Z)(null),re=(0,Te.Z)(oe,2),de=re[0],we=re[1],le=function(ur,Qr){var Kn=dn==="rtl",rr=ur+1;if(at){var qn=se(ur),mn=We(qn),zn=qn.clientWidth;(Kn&&Qr-mn>zn/2||!Kn&&Qr-mn0&&!Kn||Qr===Ue.Z.RIGHT&&sn>0&&Kn?(Ee(sn-rr),ur.preventDefault()):Qr===Ue.Z.LEFT&&sn5&&arguments[5]!==void 0?arguments[5]:!1,Ar=arguments.length>6?arguments[6]:void 0,or=arguments.length>7?arguments[7]:void 0,hr=ye.useMemo(function(){if((0,Ve.Z)(Gt)==="object")return Gt.clearIcon;if(_n)return _n},[Gt,_n]),xr=ye.useMemo(function(){return!!(!ar&&Gt&&(Tn.length||Ar)&&!(or==="combobox"&&Ar===""))},[Gt,ar,Tn.length,Ar,or]);return{allowClear:xr,clearIcon:ye.createElement(Le,{className:"".concat(Tt,"-clear"),onMouseDown:tr,customizeIcon:hr},"\xD7")}},Ge=ye.createContext(null);function qe(){return ye.useContext(Ge)}function Qe(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Tt=ye.useState(!1),tr=(0,ke.Z)(Tt,2),Tn=tr[0],Gt=tr[1],_n=ye.useRef(null),ar=function(){window.clearTimeout(_n.current)};ye.useEffect(function(){return ar},[]);var Ar=function(hr,xr){ar(),_n.current=window.setTimeout(function(){Gt(hr),xr&&xr()},Lt)};return[Tn,Ar,ar]}function xe(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Tt=ye.useRef(null),tr=ye.useRef(null);ye.useEffect(function(){return function(){window.clearTimeout(tr.current)}},[]);function Tn(Gt){(Gt||Tt.current===null)&&(Tt.current=Gt),window.clearTimeout(tr.current),tr.current=window.setTimeout(function(){Tt.current=null},Lt)}return[function(){return Tt.current},Tn]}function Ne(Lt,Tt,tr,Tn){var Gt=ye.useRef(null);Gt.current={open:Tt,triggerOpen:tr,customizedTrigger:Tn},ye.useEffect(function(){function _n(ar){var Ar;if(!((Ar=Gt.current)!==null&&Ar!==void 0&&Ar.customizedTrigger)){var or=ar.target;or.shadowRoot&&ar.composed&&(or=ar.composedPath()[0]||or),Gt.current.open&&Lt().filter(function(hr){return hr}).every(function(hr){return!hr.contains(or)&&hr!==or})&&Gt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_n),function(){return window.removeEventListener("mousedown",_n)}},[])}var Me=ce(10228);function rt(Lt){return Lt&&![Me.Z.ESC,Me.Z.SHIFT,Me.Z.BACKSPACE,Me.Z.TAB,Me.Z.WIN_KEY,Me.Z.ALT,Me.Z.META,Me.Z.WIN_KEY_RIGHT,Me.Z.CTRL,Me.Z.SEMICOLON,Me.Z.EQUALS,Me.Z.CAPS_LOCK,Me.Z.CONTEXT_MENU,Me.Z.F1,Me.Z.F2,Me.Z.F3,Me.Z.F4,Me.Z.F5,Me.Z.F6,Me.Z.F7,Me.Z.F8,Me.Z.F9,Me.Z.F10,Me.Z.F11,Me.Z.F12].includes(Lt)}var He=ce(26112),tt=ce(83836);function gt(Lt,Tt,tr){var Tn=(0,Xe.Z)((0,Xe.Z)({},Lt),tr?Tt:{});return Object.keys(Tt).forEach(function(Gt){var _n=Tt[Gt];typeof _n=="function"&&(Tn[Gt]=function(){for(var ar,Ar=arguments.length,or=new Array(Ar),hr=0;hrir&&(Nn="".concat(On.slice(0,ir),"..."))}var er=function(vr){vr&&vr.stopPropagation(),ui(tn)};return typeof Br=="function"?dt(Nt,Nn,un,qt,er):fn(tn,Nn,un,qt,er)},wn=function(tn){if(!Gt.length)return null;var un=typeof _r=="function"?_r(tn):_r;return typeof Br=="function"?dt(void 0,un,!1,!1,void 0,!0):fn({title:un},un,!1)},Ht=ye.createElement("div",{className:"".concat(Rt,"-search"),style:{width:Wn},onFocus:function(){Yt(!0)},onBlur:function(){Yt(!1)}},ye.createElement(Vt,{ref:or,open:_n,prefixCls:Tn,id:tr,inputElement:null,disabled:xr,autoFocus:Ft,autoComplete:gn,editable:nn,activeDescendantId:Mn,value:Zt,onKeyDown:Ke,onMouseDown:Oe,onChange:ai,onPaste:Ci,onCompositionStart:At,onCompositionEnd:Et,onBlur:on,tabIndex:wr,attrs:(0,He.Z)(Tt,!0)}),ye.createElement("span",{ref:Wt,className:"".concat(Rt,"-search-mirror"),"aria-hidden":!0},Zt,"\xA0")),ln=ye.createElement(tt.Z,{prefixCls:"".concat(Rt,"-overflow"),data:Gt,renderItem:Ln,renderRest:wn,suffix:Ht,itemKey:Ct,maxCount:Mr});return ye.createElement("span",{className:"".concat(Rt,"-wrap")},ln,!Gt.length&&!Zt&&ye.createElement("span",{className:"".concat(Rt,"-placeholder")},hr))},Yn=rn,Dt=function(Tt){var tr=Tt.inputElement,Tn=Tt.prefixCls,Gt=Tt.id,_n=Tt.inputRef,ar=Tt.disabled,Ar=Tt.autoFocus,or=Tt.autoComplete,hr=Tt.activeDescendantId,xr=Tt.mode,Hn=Tt.open,xt=Tt.values,Ft=Tt.placeholder,gn=Tt.tabIndex,Mn=Tt.showSearch,wr=Tt.searchValue,Hr=Tt.activeValue,Mr=Tt.maxLength,ir=Tt.onInputKeyDown,Xn=Tt.onInputMouseDown,_r=Tt.onInputChange,Br=Tt.onInputPaste,$r=Tt.onInputCompositionStart,ui=Tt.onInputCompositionEnd,ai=Tt.onInputBlur,Ci=Tt.title,Ke=ye.useState(!1),Oe=(0,ke.Z)(Ke,2),At=Oe[0],Et=Oe[1],on=xr==="combobox",Wt=on||Mn,Qn=xt[0],Rn=wr||"";on&&Hr&&!At&&(Rn=Hr),ye.useEffect(function(){on&&Et(!1)},[on,Hr]);var Wn=xr!=="combobox"&&!Hn&&!Mn?!1:!!Rn,Vn=Ci===void 0?Fn(Qn):Ci,Zn=ye.useMemo(function(){return Qn?null:ye.createElement("span",{className:"".concat(Tn,"-selection-placeholder"),style:Wn?{visibility:"hidden"}:void 0},Ft)},[Qn,Wn,Ft,Tn]);return ye.createElement("span",{className:"".concat(Tn,"-selection-wrap")},ye.createElement("span",{className:"".concat(Tn,"-selection-search")},ye.createElement(Vt,{ref:_n,prefixCls:Tn,id:Gt,open:Hn,inputElement:tr,disabled:ar,autoFocus:Ar,autoComplete:or,editable:Wt,activeDescendantId:hr,value:Rn,onKeyDown:ir,onMouseDown:Xn,onChange:function(ct){Et(!0),_r(ct)},onPaste:Br,onCompositionStart:$r,onCompositionEnd:ui,onBlur:ai,tabIndex:gn,attrs:(0,He.Z)(Tt,!0),maxLength:on?Mr:void 0})),!on&&Qn?ye.createElement("span",{className:"".concat(Tn,"-selection-item"),title:Vn,style:Wn?{visibility:"hidden"}:void 0},Qn.label):null,Zn)},mt=Dt,ht=function(Tt,tr){var Tn=(0,ye.useRef)(null),Gt=(0,ye.useRef)(!1),_n=Tt.prefixCls,ar=Tt.open,Ar=Tt.mode,or=Tt.showSearch,hr=Tt.tokenWithEnter,xr=Tt.disabled,Hn=Tt.prefix,xt=Tt.autoClearSearchValue,Ft=Tt.onSearch,gn=Tt.onSearchSubmit,Mn=Tt.onToggleOpen,wr=Tt.onInputKeyDown,Hr=Tt.onInputBlur,Mr=Tt.domRef;ye.useImperativeHandle(tr,function(){return{focus:function(Vn){Tn.current.focus(Vn)},blur:function(){Tn.current.blur()}}});var ir=xe(0),Xn=(0,ke.Z)(ir,2),_r=Xn[0],Br=Xn[1],$r=function(Vn){var Zn=Vn.which,Gn=Tn.current instanceof HTMLTextAreaElement;!Gn&&ar&&(Zn===Me.Z.UP||Zn===Me.Z.DOWN)&&Vn.preventDefault(),wr&&wr(Vn),Zn===Me.Z.ENTER&&Ar==="tags"&&!Gt.current&&!ar&&(gn==null||gn(Vn.target.value)),!(Gn&&!ar&&~[Me.Z.UP,Me.Z.DOWN,Me.Z.LEFT,Me.Z.RIGHT].indexOf(Zn))&&rt(Zn)&&Mn(!0)},ui=function(){Br(!0)},ai=(0,ye.useRef)(null),Ci=function(Vn){Ft(Vn,!0,Gt.current)!==!1&&Mn(!0)},Ke=function(){Gt.current=!0},Oe=function(Vn){Gt.current=!1,Ar!=="combobox"&&Ci(Vn.target.value)},At=function(Vn){var Zn=Vn.target.value;if(hr&&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||""},on=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"&&(!or||!Zn)||!ar)&&(ar&&xt!==!1&&Ft("",!0,!1),Mn())},Qn={inputRef:Tn,onInputKeyDown:$r,onInputMouseDown:ui,onInputChange:At,onInputPaste:Et,onInputCompositionStart:Ke,onInputCompositionEnd:Oe,onInputBlur:Hr},Rn=Ar==="multiple"||Ar==="tags"?ye.createElement(Yn,(0,te.Z)({},Tt,Qn)):ye.createElement(mt,(0,te.Z)({},Tt,Qn));return ye.createElement("div",{ref:Mr,className:"".concat(_n,"-selector"),onClick:on,onMouseDown:Wt},Hn&&ye.createElement("div",{className:"".concat(_n,"-prefix")},Hn),Rn)},bt=ye.forwardRef(ht),zt=bt,Bt=ce(65030),Pt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_e=function(Tt){var tr=Tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:tr,adjustY:1},htmlRegion:"scroll"}}},se=function(Tt,tr){var Tn=Tt.prefixCls,Gt=Tt.disabled,_n=Tt.visible,ar=Tt.children,Ar=Tt.popupElement,or=Tt.animation,hr=Tt.transitionName,xr=Tt.dropdownStyle,Hn=Tt.dropdownClassName,xt=Tt.direction,Ft=xt===void 0?"ltr":xt,gn=Tt.placement,Mn=Tt.builtinPlacements,wr=Tt.dropdownMatchSelectWidth,Hr=Tt.dropdownRender,Mr=Tt.dropdownAlign,ir=Tt.getPopupContainer,Xn=Tt.empty,_r=Tt.getTriggerDOMNode,Br=Tt.onPopupVisibleChange,$r=Tt.onPopupMouseEnter,ui=(0,ge.Z)(Tt,Pt),ai="".concat(Tn,"-dropdown"),Ci=Ar;Hr&&(Ci=Hr(Ar));var Ke=ye.useMemo(function(){return Mn||_e(wr)},[Mn,wr]),Oe=or?"".concat(ai,"-").concat(or):hr,At=typeof wr=="number",Et=ye.useMemo(function(){return At?null:wr===!1?"minWidth":"width"},[wr,At]),on=xr;At&&(on=(0,Xe.Z)((0,Xe.Z)({},on),{},{width:wr}));var Wt=ye.useRef(null);return ye.useImperativeHandle(tr,function(){return{getPopupElement:function(){var Rn;return(Rn=Wt.current)===null||Rn===void 0?void 0:Rn.popupElement}}}),ye.createElement(Bt.Z,(0,te.Z)({},ui,{showAction:Br?["click"]:[],hideAction:Br?["click"]:[],popupPlacement:gn||(Ft==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ke,prefixCls:ai,popupTransitionName:Oe,popup:ye.createElement("div",{onMouseEnter:$r},Ci),ref:Wt,stretch:Et,popupAlign:Mr,popupVisible:_n,getPopupContainer:ir,popupClassName:Ce()(Hn,(0,Te.Z)({},"".concat(ai,"-empty"),Xn)),popupStyle:on,getTriggerDOMNode:_r,onPopupVisibleChange:Br}),ar)},fe=ye.forwardRef(se),Ie=fe,Be=ce(66712);function pt(Lt,Tt){var tr=Lt.key,Tn;return"value"in Lt&&(Tn=Lt.value),tr!=null?tr:Tn!==void 0?Tn:"rc-index-key-".concat(Tt)}function Mt(Lt){return typeof Lt!="undefined"&&!Number.isNaN(Lt)}function sn(Lt,Tt){var tr=Lt||{},Tn=tr.label,Gt=tr.value,_n=tr.options,ar=tr.groupLabel,Ar=Tn||(Tt?"children":"label");return{label:Ar,value:Gt||"value",options:_n||"options",groupLabel:ar||Ar}}function he(Lt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tr=Tt.fieldNames,Tn=Tt.childrenAsData,Gt=[],_n=sn(tr,!1),ar=_n.label,Ar=_n.value,or=_n.options,hr=_n.groupLabel;function xr(Hn,xt){Array.isArray(Hn)&&Hn.forEach(function(Ft){if(xt||!(or in Ft)){var gn=Ft[Ar];Gt.push({key:pt(Ft,Gt.length),groupOption:xt,data:Ft,label:Ft[ar],value:gn})}else{var Mn=Ft[hr];Mn===void 0&&Tn&&(Mn=Ft.label),Gt.push({key:pt(Ft,Gt.length),group:!0,data:Ft,label:Mn}),xr(Ft[or],!0)}})}return xr(Lt,!1),Gt}function oe(Lt){var Tt=(0,Xe.Z)({},Lt);return"props"in Tt||Object.defineProperty(Tt,"props",{get:function(){return(0,Se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Tt}}),Tt}var re=function(Tt,tr,Tn){if(!tr||!tr.length)return null;var Gt=!1,_n=function Ar(or,hr){var xr=(0,Be.Z)(hr),Hn=xr[0],xt=xr.slice(1);if(!Hn)return[or];var Ft=or.split(Hn);return Gt=Gt||Ft.length>1,Ft.reduce(function(gn,Mn){return[].concat((0,Ze.Z)(gn),(0,Ze.Z)(Ar(Mn,xt)))},[]).filter(Boolean)},ar=_n(Tt,tr);return Gt?typeof Tn!="undefined"?ar.slice(0,Tn):ar:null},de=ye.createContext(null),we=de;function le(Lt){var Tt=Lt.visible,tr=Lt.values;if(!Tt)return null;var Tn=50;return ye.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(tr.slice(0,Tn).map(function(Gt){var _n=Gt.label,ar=Gt.value;return["number","string"].includes((0,Ve.Z)(_n))?_n:ar}).join(", ")),tr.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=ye.forwardRef(function(Lt,Tt){var tr,Tn=Lt.id,Gt=Lt.prefixCls,_n=Lt.className,ar=Lt.showSearch,Ar=Lt.tagRender,or=Lt.direction,hr=Lt.omitDomProps,xr=Lt.displayValues,Hn=Lt.onDisplayValuesChange,xt=Lt.emptyOptions,Ft=Lt.notFoundContent,gn=Ft===void 0?"Not Found":Ft,Mn=Lt.onClear,wr=Lt.mode,Hr=Lt.disabled,Mr=Lt.loading,ir=Lt.getInputElement,Xn=Lt.getRawInputElement,_r=Lt.open,Br=Lt.defaultOpen,$r=Lt.onDropdownVisibleChange,ui=Lt.activeValue,ai=Lt.onActiveValueChange,Ci=Lt.activeDescendantId,Ke=Lt.searchValue,Oe=Lt.autoClearSearchValue,At=Lt.onSearch,Et=Lt.onSearchSplit,on=Lt.tokenSeparators,Wt=Lt.allowClear,Qn=Lt.prefix,Rn=Lt.suffixIcon,Wn=Lt.clearIcon,Vn=Lt.OptionList,Zn=Lt.animation,Gn=Lt.transitionName,ct=Lt.dropdownStyle,Yt=Lt.dropdownClassName,Rt=Lt.dropdownMatchSelectWidth,Zt=Lt.dropdownRender,nn=Lt.dropdownAlign,fn=Lt.placement,dt=Lt.builtinPlacements,Ln=Lt.getPopupContainer,wn=Lt.showAction,Ht=wn===void 0?[]:wn,ln=Lt.onFocus,hn=Lt.onBlur,tn=Lt.onKeyUp,un=Lt.onKeyDown,nr=Lt.onMouseDown,Nt=(0,ge.Z)(Lt,Ee),qt=Ut(wr),Nn=(ar!==void 0?ar:qt)||wr==="combobox",On=(0,Xe.Z)({},Nt);St.forEach(function(Ni){delete On[Ni]}),hr==null||hr.forEach(function(Ni){delete On[Ni]});var er=ye.useState(!1),br=(0,ke.Z)(er,2),vr=br[0],zr=br[1];ye.useEffect(function(){zr((0,nt.Z)())},[]);var Ir=ye.useRef(null),ii=ye.useRef(null),oi=ye.useRef(null),Xr=ye.useRef(null),di=ye.useRef(null),Ai=ye.useRef(!1),ni=Qe(),ri=(0,ke.Z)(ni,3),Rr=ri[0],ei=ri[1],pi=ri[2];ye.useImperativeHandle(Tt,function(){var Ni,Ii;return{focus:(Ni=Xr.current)===null||Ni===void 0?void 0:Ni.focus,blur:(Ii=Xr.current)===null||Ii===void 0?void 0:Ii.blur,scrollTo:function(na){var Oa;return(Oa=di.current)===null||Oa===void 0?void 0:Oa.scrollTo(na)},nativeElement:Ir.current||ii.current}});var Vr=ye.useMemo(function(){var Ni;if(wr!=="combobox")return Ke;var Ii=(Ni=xr[0])===null||Ni===void 0?void 0:Ni.value;return typeof Ii=="string"||typeof Ii=="number"?String(Ii):""},[Ke,wr,xr]),gi=wr==="combobox"&&typeof ir=="function"&&ir()||null,Ei=typeof Xn=="function"&&Xn(),Ti=(0,it.x1)(ii,Ei==null||(tr=Ei.props)===null||tr===void 0?void 0:tr.ref),Da=ye.useState(!1),Na=(0,ke.Z)(Da,2),ca=Na[0],La=Na[1];(0,st.Z)(function(){La(!0)},[]);var ji=(0,Ue.Z)(!1,{defaultValue:Br,value:_r}),ea=(0,ke.Z)(ji,2),Yi=ea[0],Ha=ea[1],ua=ca?Yi:!1,xa=!gn&&xt;(Hr||xa&&ua&&wr==="combobox")&&(ua=!1);var fa=xa?!1:ua,si=ye.useCallback(function(Ni){var Ii=Ni!==void 0?Ni:!ua;Hr||(Ha(Ii),ua!==Ii&&($r==null||$r(Ii)))},[Hr,ua,Ha,$r]),wi=ye.useMemo(function(){return(on||[]).some(function(Ni){return[` `,`\r `].includes(Ni)})},[on]),Fi=ye.useContext(we)||{},Si=Fi.maxCount,Hi=Fi.rawValues,Xi=function(Ii,da,na){if(!(qt&&Mt(Si)&&(Hi==null?void 0:Hi.size)>=Si)){var Oa=!0,Ta=Ii;ai==null||ai(null);var UA=re(Ii,on,Mt(Si)?Si-Hi.size:void 0),xA=na?null:UA;return wr!=="combobox"&&xA&&(Ta="",Et==null||Et(xA),si(!1),Oa=!1),At&&Vr!==Ta&&At(Ta,{source:da?"typing":"effect"}),Oa}},Li=function(Ii){!Ii||!Ii.trim()||At(Ii,{source:"submit"})};ye.useEffect(function(){!ua&&!qt&&wr!=="combobox"&&Xi("",!1,!1)},[ua]),ye.useEffect(function(){Yi&&Hr&&Ha(!1),Hr&&!Ai.current&&ei(!1)},[Hr]);var ga=xe(),pa=(0,ke.Z)(ga,2),jn=pa[0],ti=pa[1],bi=ye.useRef(!1),qi=function(Ii){var da=jn(),na=Ii.key,Oa=na==="Enter";if(Oa&&(wr!=="combobox"&&Ii.preventDefault(),ua||si(!0)),ti(!!Vr),na==="Backspace"&&!da&&qt&&!Vr&&xr.length){for(var Ta=(0,Ze.Z)(xr),UA=null,xA=Ta.length-1;xA>=0;xA-=1){var DA=Ta[xA];if(!DA.disabled){Ta.splice(xA,1),UA=DA;break}}UA&&Hn(Ta,{type:"remove",values:[UA]})}for(var ra=arguments.length,eA=new Array(ra>1?ra-1:0),vA=1;vA1?da-1:0),Oa=1;Oa1?UA-1:0),DA=1;DA=gn},[Ar,gn,Xn==null?void 0:Xn.size]),on=function(Ht){Ht.preventDefault()},Wt=function(Ht){var ln;(ln=At.current)===null||ln===void 0||ln.scrollTo(typeof Ht=="number"?{index:Ht}:Ht)},Qn=ye.useCallback(function(wn){return or==="combobox"?!1:Xn.has(wn)},[or,(0,Ze.Z)(Xn).toString(),Xn.size]),Rn=function(Ht){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=Oe.length,tn=0;tn1&&arguments[1]!==void 0?arguments[1]:!1;Gn(Ht);var hn={source:ln?"keyboard":"mouse"},tn=Oe[Ht];if(!tn){wr(null,-1,hn);return}wr(tn.value,Ht,hn)};(0,ye.useEffect)(function(){ct(Hr!==!1?Rn(0):-1)},[Oe.length,hr]);var Yt=ye.useCallback(function(wn){return or==="combobox"?String(wn).toLowerCase()===hr.toLowerCase():Xn.has(wn)},[or,hr,(0,Ze.Z)(Xn).toString(),Xn.size]);(0,ye.useEffect)(function(){var wn=setTimeout(function(){if(!Ar&&ar&&Xn.size===1){var ln=Array.from(Xn)[0],hn=Oe.findIndex(function(tn){var un=tn.data;return hr?String(un.value).startsWith(hr):un.value===ln});hn!==-1&&(ct(hn),Wt(hn))}});if(ar){var Ht;(Ht=At.current)===null||Ht===void 0||Ht.scrollTo(void 0)}return function(){return clearTimeout(wn)}},[ar,hr]);var Rt=function(Ht){Ht!==void 0&&Mr(Ht,{selected:!Xn.has(Ht)}),Ar||xr(!1)};if(ye.useImperativeHandle(tr,function(){return{onKeyDown:function(Ht){var ln=Ht.which,hn=Ht.ctrlKey;switch(ln){case Me.Z.N:case Me.Z.P:case Me.Z.UP:case Me.Z.DOWN:{var tn=0;if(ln===Me.Z.UP?tn=-1:ln===Me.Z.DOWN?tn=1:cr()&&hn&&(ln===Me.Z.N?tn=1:ln===Me.Z.P&&(tn=-1)),tn!==0){var un=Rn(Zn+tn,tn);Wt(un),ct(un,!0)}break}case Me.Z.TAB:case Me.Z.ENTER:{var nr,Nt=Oe[Zn];Nt&&!(Nt!=null&&(nr=Nt.data)!==null&&nr!==void 0&&nr.disabled)&&!Et?Rt(Nt.value):Rt(void 0),ar&&Ht.preventDefault();break}case Me.Z.ESC:xr(!1),ar&&Ht.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ht){Wt(Ht)}}}),Oe.length===0)return ye.createElement("div",{role:"listbox",id:"".concat(_n,"_list"),className:"".concat(Ke,"-empty"),onMouseDown:on},Hn);var Zt=Object.keys(_r).map(function(wn){return _r[wn]}),nn=function(Ht){return Ht.label};function fn(wn,Ht){var ln=wn.group;return{role:ln?"presentation":"option",id:"".concat(_n,"_list_").concat(Ht)}}var dt=function(Ht){var ln=Oe[Ht];if(!ln)return null;var hn=ln.data||{},tn=hn.value,un=ln.group,nr=(0,He.Z)(hn,!0),Nt=nn(ln);return ln?ye.createElement("div",(0,te.Z)({"aria-label":typeof Nt=="string"&&!un?Nt:null},nr,{key:Ht},fn(ln,Ht),{"aria-selected":Yt(tn)}),tn):null},Ln={role:"listbox",id:"".concat(_n,"_list")};return ye.createElement(ye.Fragment,null,Br&&ye.createElement("div",(0,te.Z)({},Ln,{style:{height:0,width:0,overflow:"hidden"}}),dt(Zn-1),dt(Zn),dt(Zn+1)),ye.createElement(dr.Z,{itemKey:"key",ref:At,data:Oe,height:ui,itemHeight:ai,fullHeight:!1,onMouseDown:on,onScroll:xt,virtual:Br,direction:$r,innerProps:Br?null:Ln},function(wn,Ht){var ln=wn.group,hn=wn.groupOption,tn=wn.data,un=wn.label,nr=wn.value,Nt=tn.key;if(ln){var qt,Nn=(qt=tn.title)!==null&&qt!==void 0?qt:Jn(un)?un.toString():void 0;return ye.createElement("div",{className:Ce()(Ke,"".concat(Ke,"-group"),tn.className),title:Nn},un!==void 0?un:Nt)}var On=tn.disabled,er=tn.title,br=tn.children,vr=tn.style,zr=tn.className,Ir=(0,ge.Z)(tn,yr),ii=(0,vn.Z)(Ir,Zt),oi=Qn(nr),Xr=On||!oi&&Et,di="".concat(Ke,"-option"),Ai=Ce()(Ke,di,zr,(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(di,"-grouped"),hn),"".concat(di,"-active"),Zn===Ht&&!Xr),"".concat(di,"-disabled"),Xr),"".concat(di,"-selected"),oi)),ni=nn(wn),ri=!ir||typeof ir=="function"||oi,Rr=typeof ni=="number"?ni:ni||nr,ei=Jn(Rr)?Rr.toString():void 0;return er!==void 0&&(ei=er),ye.createElement("div",(0,te.Z)({},(0,He.Z)(ii),Br?{}:fn(wn,Ht),{"aria-selected":Yt(nr),className:Ai,title:ei,onMouseMove:function(){Zn===Ht||Xr||ct(Ht)},onClick:function(){Xr||Rt(nr)},style:vr}),ye.createElement("div",{className:"".concat(di,"-content")},typeof Ci=="function"?Ci(wn,{index:Ht}):Rr),ye.isValidElement(ir)||oi,ri&&ye.createElement(Le,{className:"".concat(Ke,"-option-state"),customizeIcon:ir,customizeIconProps:{value:nr,disabled:Xr,isSelected:oi}},oi?"\u2713":null))}))},Pr=ye.forwardRef(Tr),Er=Pr,ur=function(Lt,Tt){var tr=ye.useRef({values:new Map,options:new Map}),Tn=ye.useMemo(function(){var _n=tr.current,ar=_n.values,Ar=_n.options,or=Lt.map(function(Hn){if(Hn.label===void 0){var xt;return(0,Xe.Z)((0,Xe.Z)({},Hn),{},{label:(xt=ar.get(Hn.value))===null||xt===void 0?void 0:xt.label})}return Hn}),hr=new Map,xr=new Map;return or.forEach(function(Hn){hr.set(Hn.value,Hn),xr.set(Hn.value,Tt.get(Hn.value)||Ar.get(Hn.value))}),tr.current.values=hr,tr.current.options=xr,or},[Lt,Tt]),Gt=ye.useCallback(function(_n){return Tt.get(_n)||tr.current.options.get(_n)},[Tt]);return[Tn,Gt]};function Qr(Lt,Tt){return Jt(Lt).join("").toUpperCase().includes(Tt)}var Kn=function(Lt,Tt,tr,Tn,Gt){return ye.useMemo(function(){if(!tr||Tn===!1)return Lt;var _n=Tt.options,ar=Tt.label,Ar=Tt.value,or=[],hr=typeof Tn=="function",xr=tr.toUpperCase(),Hn=hr?Tn:function(Ft,gn){return Gt?Qr(gn[Gt],xr):gn[_n]?Qr(gn[ar!=="children"?ar:"label"],xr):Qr(gn[Ar],xr)},xt=hr?function(Ft){return oe(Ft)}:function(Ft){return Ft};return Lt.forEach(function(Ft){if(Ft[_n]){var gn=Hn(tr,xt(Ft));if(gn)or.push(Ft);else{var Mn=Ft[_n].filter(function(wr){return Hn(tr,xt(wr))});Mn.length&&or.push((0,Xe.Z)((0,Xe.Z)({},Ft),{},(0,Te.Z)({},_n,Mn)))}return}Hn(tr,xt(Ft))&&or.push(Ft)}),or},[Lt,Tn,Gt,tr,Tt])},rr=ce(6551),qn=ce(11592),mn=["children","value"],zn=["children"];function $t(Lt){var Tt=Lt,tr=Tt.key,Tn=Tt.props,Gt=Tn.children,_n=Tn.value,ar=(0,ge.Z)(Tn,mn);return(0,Xe.Z)({key:tr,value:_n!==void 0?_n:tr,children:Gt},ar)}function Sn(Lt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,qn.Z)(Lt).map(function(tr,Tn){if(!ye.isValidElement(tr)||!tr.type)return null;var Gt=tr,_n=Gt.type.isSelectOptGroup,ar=Gt.key,Ar=Gt.props,or=Ar.children,hr=(0,ge.Z)(Ar,zn);return Tt||!_n?$t(tr):(0,Xe.Z)((0,Xe.Z)({key:"__RC_SELECT_GRP__".concat(ar===null?Tn:ar,"__"),label:ar},hr),{},{options:Sn(or)})}).filter(function(tr){return tr})}var pr=function(Tt,tr,Tn,Gt,_n){return ye.useMemo(function(){var ar=Tt,Ar=!Tt;Ar&&(ar=Sn(tr));var or=new Map,hr=new Map,xr=function(Ft,gn,Mn){Mn&&typeof Mn=="string"&&Ft.set(gn[Mn],gn)},Hn=function xt(Ft){for(var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mn=0;Mn1&&arguments[1]!==void 0?arguments[1]:!1,ar=0;ar0?si(Si.options):Si.options}):Si})},ri=ye.useMemo(function(){return Mr?ni(Ai):Ai},[Ai,Mr,Ln]),Rr=ye.useMemo(function(){return he(ri,{fieldNames:nn,childrenAsData:Rt})},[ri,nn,Rt]),ei=function(wi){var Fi=un(wi);if(Nn(Fi),Vn&&(Fi.length!==vr.length||Fi.some(function(Xi,Li){var ga;return((ga=vr[Li])===null||ga===void 0?void 0:ga.value)!==(Xi==null?void 0:Xi.value)}))){var Si=Wn?Fi:Fi.map(function(Xi){return Xi.value}),Hi=Fi.map(function(Xi){return oe(zr(Xi.value))});Vn(Yt?Si:Si[0],Yt?Hi:Hi[0])}},pi=ye.useState(null),Vr=(0,ke.Z)(pi,2),gi=Vr[0],Ei=Vr[1],Ti=ye.useState(0),Da=(0,ke.Z)(Ti,2),Na=Da[0],ca=Da[1],La=ui!==void 0?ui:Tn!=="combobox",ji=ye.useCallback(function(si,wi){var Fi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Si=Fi.source,Hi=Si===void 0?"keyboard":Si;ca(wi),ar&&Tn==="combobox"&&si!==null&&Hi==="keyboard"&&Ei(String(si))},[ar,Tn]),ea=function(wi,Fi,Si){var Hi=function(){var Oi,Ja=zr(wi);return[Wn?{label:Ja==null?void 0:Ja[nn.label],value:wi,key:(Oi=Ja==null?void 0:Ja.key)!==null&&Oi!==void 0?Oi:wi}:wi,oe(Ja)]};if(Fi&&Ft){var Xi=Hi(),Li=(0,ke.Z)(Xi,2),ga=Li[0],pa=Li[1];Ft(ga,pa)}else if(!Fi&&gn&&Si!=="clear"){var jn=Hi(),ti=(0,ke.Z)(jn,2),bi=ti[0],qi=ti[1];gn(bi,qi)}},Yi=fr(function(si,wi){var Fi,Si=Yt?wi.selected:!0;Si?Fi=Yt?[].concat((0,Ze.Z)(vr),[si]):[si]:Fi=vr.filter(function(Hi){return Hi.value!==si}),ei(Fi),ea(si,Si),Tn==="combobox"?Ei(""):(!Ut||xt)&&(wn(""),Ei(""))}),Ha=function(wi,Fi){ei(wi);var Si=Fi.type,Hi=Fi.values;(Si==="remove"||Si==="clear")&&Hi.forEach(function(Xi){ea(Xi.value,!1,Si)})},ua=function(wi,Fi){if(wn(wi),Ei(null),Fi.source==="submit"){var Si=(wi||"").trim();if(Si){var Hi=Array.from(new Set([].concat((0,Ze.Z)(ii),[Si])));ei(Hi),ea(Si,!0),wn("")}return}Fi.source!=="blur"&&(Tn==="combobox"&&ei(wi),xr==null||xr(wi))},xa=function(wi){var Fi=wi;Tn!=="tags"&&(Fi=wi.map(function(Hi){var Xi=hn.get(Hi);return Xi==null?void 0:Xi.value}).filter(function(Hi){return Hi!==void 0}));var Si=Array.from(new Set([].concat((0,Ze.Z)(ii),(0,Ze.Z)(Fi))));ei(Si),Si.forEach(function(Hi){ea(Hi,!0)})},fa=ye.useMemo(function(){var si=Ci!==!1&&wr!==!1;return(0,Xe.Z)((0,Xe.Z)({},Ht),{},{flattenOptions:Rr,onActiveValue:ji,defaultActiveFirstOption:La,onSelect:Yi,menuItemSelectedIcon:ai,rawValues:ii,fieldNames:nn,virtual:si,direction:Ke,listHeight:At,listItemHeight:on,childrenAsData:Rt,maxCount:Zn,optionRender:Br})},[Zn,Ht,Rr,ji,La,Yi,ai,ii,nn,Ci,wr,Ke,At,on,Rt,Br]);return ye.createElement(we.Provider,{value:fa},ye.createElement(ft,(0,te.Z)({},Gn,{id:ct,prefixCls:_n,ref:Tt,omitDomProps:qr,mode:Tn,displayValues:Ir,onDisplayValuesChange:Ha,direction:Ke,searchValue:Ln,onSearch:ua,autoClearSearchValue:xt,onSearchSplit:xa,dropdownMatchSelectWidth:wr,OptionList:Er,emptyOptions:!Rr.length,activeValue:gi,activeDescendantId:"".concat(ct,"_list_").concat(Na)})))}),$e=yn;$e.Option=In,$e.OptGroup=jt;var kr=$e,Zr=kr},63158:function(xn,yt,ce){"use strict";var te=ce(54476),Ze=ce(20068),Te=ce(42978),Xe=ce(75931),ke=ce(59301),ge=ce(92310),Ve=ce.n(ge),Ue=ce(18929),Se=ce(10228),ye=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Je=ke.forwardRef(function(Ce,st){var nt,it=Ce.prefixCls,We=it===void 0?"rc-switch":it,Le=Ce.className,ut=Ce.checked,Ge=Ce.defaultChecked,qe=Ce.disabled,Qe=Ce.loadingIcon,xe=Ce.checkedChildren,Ne=Ce.unCheckedChildren,Me=Ce.onClick,rt=Ce.onChange,He=Ce.onKeyDown,tt=(0,Xe.Z)(Ce,ye),gt=(0,Ue.Z)(!1,{value:ut,defaultValue:Ge}),Ye=(0,Te.Z)(gt,2),wt=Ye[0],at=Ye[1];function vt(An,ze){var Fe=wt;return qe||(Fe=An,at(Fe),rt==null||rt(Fe,ze)),Fe}function Vt(An){An.which===Se.Z.LEFT?vt(!1,An):An.which===Se.Z.RIGHT&&vt(!0,An),He==null||He(An)}function Jt(An){var ze=vt(!wt,An);Me==null||Me(ze,An)}var pn=Ve()(We,Le,(nt={},(0,Ze.Z)(nt,"".concat(We,"-checked"),wt),(0,Ze.Z)(nt,"".concat(We,"-disabled"),qe),nt));return ke.createElement("button",(0,te.Z)({},tt,{type:"button",role:"switch","aria-checked":wt,disabled:qe,className:pn,ref:st,onKeyDown:Vt,onClick:Jt}),Qe,ke.createElement("span",{className:"".concat(We,"-inner")},ke.createElement("span",{className:"".concat(We,"-inner-checked")},xe),ke.createElement("span",{className:"".concat(We,"-inner-unchecked")},Ne)))});Je.displayName="Switch",yt.Z=Je},86351:function(xn,yt,ce){"use strict";ce.d(yt,{R:function(){return Ze},w:function(){return te}});var te={},Ze="rc-table-internal-hook"},97347:function(xn,yt,ce){"use strict";ce.d(yt,{L:function(){return We},Z:function(){return Qe}});var te=ce(42978),Ze=ce(20068),Te=ce(94480),Xe=ce(76190),ke=ce(33885),ge=ce(75931),Ve=ce(11592),Ue=ce(48736),Se=ce(59301),ye=ce(86351),Je=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 st(xe,Ne,Me){return Se.useMemo(function(){if(Ne&&Ne>0){var rt=0,He=0;xe.forEach(function(Jt){var pn=Ce(Ne,Jt.width);pn?rt+=pn:He+=1});var tt=Math.max(Ne,Me),gt=Math.max(tt-rt,He),Ye=He,wt=gt/He,at=0,vt=xe.map(function(Jt){var pn=(0,ke.Z)({},Jt),An=Ce(Ne,pn.width);if(An)pn.width=An;else{var ze=Math.floor(wt);pn.width=Ye===1?gt:ze,gt-=ze,Ye-=1}return at+=pn.width,pn});if(at0?(0,ke.Z)((0,ke.Z)({},Ne),{},{children:Le(Me)}):Ne})}function ut(xe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return xe.filter(function(Me){return Me&&(0,Xe.Z)(Me)==="object"}).reduce(function(Me,rt,He){var tt=rt.fixed,gt=tt===!0?"left":tt,Ye="".concat(Ne,"-").concat(He),wt=rt.children;return wt&&wt.length>0?[].concat((0,Te.Z)(Me),(0,Te.Z)(ut(wt,Ye).map(function(at){return(0,ke.Z)({fixed:gt},at)}))):[].concat((0,Te.Z)(Me),[(0,ke.Z)((0,ke.Z)({key:Ye},rt),{},{fixed:gt})])},[])}function Ge(xe){return xe.map(function(Ne){var Me=Ne.fixed,rt=(0,ge.Z)(Ne,it),He=Me;return Me==="left"?He="right":Me==="right"&&(He="left"),(0,ke.Z)({fixed:He},rt)})}function qe(xe,Ne){var Me=xe.prefixCls,rt=xe.columns,He=xe.children,tt=xe.expandable,gt=xe.expandedKeys,Ye=xe.columnTitle,wt=xe.getRowKey,at=xe.onTriggerExpand,vt=xe.expandIcon,Vt=xe.rowExpandable,Jt=xe.expandIconColumnIndex,pn=xe.direction,An=xe.expandRowByClick,ze=xe.columnWidth,Fe=xe.fixed,Ot=xe.scrollWidth,Fn=xe.clientWidth,dn=Se.useMemo(function(){var zt=rt||We(He)||[];return Le(zt.slice())},[rt,He]),Ct=Se.useMemo(function(){if(tt){var zt=dn.slice();if(!zt.includes(ye.w)){var Bt=Jt||0;Bt>=0&&(Bt||Fe==="left"||!Fe)&&zt.splice(Bt,0,ye.w),Fe==="right"&&zt.splice(dn.length,0,ye.w)}var Pt=zt.indexOf(ye.w);zt=zt.filter(function(Ie,Be){return Ie!==ye.w||Be===Pt});var _e=dn[Pt],se;Fe?se=Fe:se=_e?_e.fixed:null;var fe=(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},Je.v,{className:"".concat(Me,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Ye),"fixed",se),"className","".concat(Me,"-row-expand-icon-cell")),"width",ze),"render",function(Be,pt,Mt){var sn=wt(pt,Mt),he=gt.has(sn),oe=Vt?Vt(pt):!0,re=vt({prefixCls:Me,expanded:he,expandable:oe,record:pt,onExpand:at});return An?Se.createElement("span",{onClick:function(we){return we.stopPropagation()}},re):re});return zt.map(function(Ie){return Ie===ye.w?fe:Ie})}return dn.filter(function(Ie){return Ie!==ye.w})},[tt,dn,wt,gt,vt,pn]),en=Se.useMemo(function(){var zt=Ct;return Ne&&(zt=Ne(zt)),zt.length||(zt=[{render:function(){return null}}]),zt},[Ne,Ct,pn]),rn=Se.useMemo(function(){return pn==="rtl"?Ge(ut(en)):ut(en)},[en,pn,Ot]),Yn=Se.useMemo(function(){for(var zt=-1,Bt=rn.length-1;Bt>=0;Bt-=1){var Pt=rn[Bt].fixed;if(Pt==="left"||Pt===!0){zt=Bt;break}}if(zt>=0)for(var _e=0;_e<=zt;_e+=1){var se=rn[_e].fixed;if(se!=="left"&&se!==!0)return!0}var fe=rn.findIndex(function(pt){var Mt=pt.fixed;return Mt==="right"});if(fe>=0)for(var Ie=fe;Ie=Rt}function rn(ct,Yt){return Se(xe,function(Rt){var Zt=en(ct,Yt||1,Rt.hoverStartRow,Rt.hoverEndRow);return[Zt,Rt.onHover]})}var Yn=ce(70425),Dt=function(Yt){var Rt=Yt.ellipsis,Zt=Yt.rowType,nn=Yt.children,fn,dt=Rt===!0?{showTitle:!0}:Rt;return dt&&(dt.showTitle||Zt==="header")&&(typeof nn=="string"||typeof nn=="number"?fn=nn.toString():ge.isValidElement(nn)&&typeof nn.props.children=="string"&&(fn=nn.props.children)),fn};function mt(ct){var Yt,Rt,Zt,nn,fn,dt,Ln,wn,Ht=ct.component,ln=ct.children,hn=ct.ellipsis,tn=ct.scope,un=ct.prefixCls,nr=ct.className,Nt=ct.align,qt=ct.record,Nn=ct.render,On=ct.dataIndex,er=ct.renderIndex,br=ct.shouldCellUpdate,vr=ct.index,zr=ct.rowType,Ir=ct.colSpan,ii=ct.rowSpan,oi=ct.fixLeft,Xr=ct.fixRight,di=ct.firstFixLeft,Ai=ct.lastFixLeft,ni=ct.firstFixRight,ri=ct.lastFixRight,Rr=ct.appendNode,ei=ct.additionalProps,pi=ei===void 0?{}:ei,Vr=ct.isSticky,gi="".concat(un,"-cell"),Ei=Se(xe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ti=Ei.supportSticky,Da=Ei.allColumnsFixedLeft,Na=Ei.rowHoverable,ca=Ct(qt,On,er,ln,Nn,br),La=(0,Ze.Z)(ca,2),ji=La[0],ea=La[1],Yi={},Ha=typeof oi=="number"&&Ti,ua=typeof Xr=="number"&&Ti;Ha&&(Yi.position="sticky",Yi.left=oi),ua&&(Yi.position="sticky",Yi.right=Xr);var xa=(Yt=(Rt=(Zt=ea==null?void 0:ea.colSpan)!==null&&Zt!==void 0?Zt:pi.colSpan)!==null&&Rt!==void 0?Rt:Ir)!==null&&Yt!==void 0?Yt:1,fa=(nn=(fn=(dt=ea==null?void 0:ea.rowSpan)!==null&&dt!==void 0?dt:pi.rowSpan)!==null&&fn!==void 0?fn:ii)!==null&&nn!==void 0?nn:1,si=rn(vr,fa),wi=(0,Ze.Z)(si,2),Fi=wi[0],Si=wi[1],Hi=(0,Yn.zX)(function(bi){var qi;qt&&Si(vr,vr+fa-1),pi==null||(qi=pi.onMouseEnter)===null||qi===void 0||qi.call(pi,bi)}),Xi=(0,Yn.zX)(function(bi){var qi;qt&&Si(-1,-1),pi==null||(qi=pi.onMouseLeave)===null||qi===void 0||qi.call(pi,bi)});if(xa===0||fa===0)return null;var Li=(Ln=pi.title)!==null&&Ln!==void 0?Ln:Dt({rowType:zr,ellipsis:hn,children:ji}),ga=wt()(gi,nr,(wn={},(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)(wn,"".concat(gi,"-fix-left"),Ha&&Ti),"".concat(gi,"-fix-left-first"),di&&Ti),"".concat(gi,"-fix-left-last"),Ai&&Ti),"".concat(gi,"-fix-left-all"),Ai&&Da&&Ti),"".concat(gi,"-fix-right"),ua&&Ti),"".concat(gi,"-fix-right-first"),ni&&Ti),"".concat(gi,"-fix-right-last"),ri&&Ti),"".concat(gi,"-ellipsis"),hn),"".concat(gi,"-with-append"),Rr),"".concat(gi,"-fix-sticky"),(Ha||ua)&&Vr&&Ti),(0,gt.Z)(wn,"".concat(gi,"-row-hover"),!ea&&Fi)),pi.className,ea==null?void 0:ea.className),pa={};Nt&&(pa.textAlign=Nt);var jn=(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({},ea==null?void 0:ea.style),Yi),pa),pi.style),ti=ji;return(0,He.Z)(ti)==="object"&&!Array.isArray(ti)&&!ge.isValidElement(ti)&&(ti=null),hn&&(Ai||ni)&&(ti=ge.createElement("span",{className:"".concat(gi,"-content")},ti)),ge.createElement(Ht,(0,ye.Z)({},ea,pi,{className:ga,style:jn,title:Li,scope:tn,onMouseEnter:Na?Hi:void 0,onMouseLeave:Na?Xi:void 0,colSpan:xa!==1?xa:null,rowSpan:fa!==1?fa:null}),Rr,ti)}var ht=ge.memo(mt);function bt(ct,Yt,Rt,Zt,nn){var fn=Rt[ct]||{},dt=Rt[Yt]||{},Ln,wn;fn.fixed==="left"?Ln=Zt.left[nn==="rtl"?Yt:ct]:dt.fixed==="right"&&(wn=Zt.right[nn==="rtl"?ct:Yt]);var Ht=!1,ln=!1,hn=!1,tn=!1,un=Rt[Yt+1],nr=Rt[ct-1],Nt=un&&!un.fixed||nr&&!nr.fixed||Rt.every(function(br){return br.fixed==="left"});if(nn==="rtl"){if(Ln!==void 0){var qt=nr&&nr.fixed==="left";tn=!qt&&Nt}else if(wn!==void 0){var Nn=un&&un.fixed==="right";hn=!Nn&&Nt}}else if(Ln!==void 0){var On=un&&un.fixed==="left";Ht=!On&&Nt}else if(wn!==void 0){var er=nr&&nr.fixed==="right";ln=!er&&Nt}return{fixLeft:Ln,fixRight:wn,lastFixLeft:Ht,firstFixRight:ln,lastFixRight:hn,firstFixLeft:tn,isSticky:Zt.isSticky}}var zt=ge.createContext({}),Bt=zt;function Pt(ct){var Yt=ct.className,Rt=ct.index,Zt=ct.children,nn=ct.colSpan,fn=nn===void 0?1:nn,dt=ct.rowSpan,Ln=ct.align,wn=Se(xe,["prefixCls","direction"]),Ht=wn.prefixCls,ln=wn.direction,hn=ge.useContext(Bt),tn=hn.scrollColumnIndex,un=hn.stickyOffsets,nr=hn.flattenColumns,Nt=Rt+fn-1,qt=Nt+1===tn?fn+1:fn,Nn=bt(Rt,Rt+qt-1,nr,un,ln);return ge.createElement(ht,(0,ye.Z)({className:Yt,index:Rt,component:"td",prefixCls:Ht,record:null,dataIndex:null,align:Ln,colSpan:qt,rowSpan:dt,render:function(){return Zt}},Nn))}var _e=ce(75931),se=["children"];function fe(ct){var Yt=ct.children,Rt=(0,_e.Z)(ct,se);return ge.createElement("tr",Rt,Yt)}function Ie(ct){var Yt=ct.children;return Yt}Ie.Row=fe,Ie.Cell=Pt;var Be=Ie;function pt(ct){var Yt=ct.children,Rt=ct.stickyOffsets,Zt=ct.flattenColumns,nn=Se(xe,"prefixCls"),fn=Zt.length-1,dt=Zt[fn],Ln=ge.useMemo(function(){return{stickyOffsets:Rt,flattenColumns:Zt,scrollColumnIndex:dt!=null&&dt.scrollbar?fn:null}},[dt,Zt,fn,Rt]);return ge.createElement(Bt.Provider,{value:Ln},ge.createElement("tfoot",{className:"".concat(nn,"-summary")},Yt))}var Mt=Ge(pt),sn=Be,he=ce(29301),oe=ce(3465),re=ce(75152),de=ce(26112);function we(ct,Yt,Rt,Zt,nn,fn,dt){ct.push({record:Yt,indent:Rt,index:dt});var Ln=fn(Yt),wn=nn==null?void 0:nn.has(Ln);if(Yt&&Array.isArray(Yt[Zt])&&wn)for(var Ht=0;Ht1?di-1:0),ni=1;ni=1)),style:(0,tt.Z)((0,tt.Z)({},Rt),Nn==null?void 0:Nn.style)}),nr.map(function(oi,Xr){var di=oi.render,Ai=oi.dataIndex,ni=oi.className,ri=jt(tn,oi,Xr,wn,nn),Rr=ri.key,ei=ri.fixedInfo,pi=ri.appendCellNode,Vr=ri.additionalCellProps;return ge.createElement(ht,(0,ye.Z)({className:ni,ellipsis:oi.ellipsis,align:oi.align,scope:oi.rowScope,component:oi.rowScope?hn:ln,prefixCls:un,key:Rr,record:Zt,index:nn,renderIndex:fn,dataIndex:Ai,render:di,shouldCellUpdate:oi.shouldCellUpdate},ei,{appendNode:pi,additionalProps:Vr}))})),Ir;if(er&&(br.current||On)){var ii=qt(Zt,nn,wn+1,On);Ir=ge.createElement(Ut,{expanded:On,className:wt()("".concat(un,"-expanded-row"),"".concat(un,"-expanded-row-level-").concat(wn+1),vr),prefixCls:un,component:Ht,cellComponent:ln,colSpan:nr.length,isEmpty:!1},ii)}return ge.createElement(ge.Fragment,null,zr,Ir)}var In=Ge(cn);function sr(ct){var Yt=ct.columnKey,Rt=ct.onColumnResize,Zt=ge.useRef();return(0,Xe.Z)(function(){Zt.current&&Rt(Yt,Zt.current.offsetWidth)},[]),ge.createElement(he.Z,{data:Yt},ge.createElement("td",{ref:Zt,style:{padding:0,border:0,height:0}},ge.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var vn=ce(29194);function dr(ct){var Yt=ct.prefixCls,Rt=ct.columnsKey,Zt=ct.onColumnResize,nn=ge.useRef(null);return ge.createElement("tr",{"aria-hidden":"true",className:"".concat(Yt,"-measure-row"),style:{height:0,fontSize:0},ref:nn},ge.createElement(he.Z.Collection,{onBatchResize:function(dt){(0,vn.Z)(nn.current)&&dt.forEach(function(Ln){var wn=Ln.data,Ht=Ln.size;Zt(wn,Ht.offsetWidth)})}},Rt.map(function(fn){return ge.createElement(sr,{key:fn,columnKey:fn,onColumnResize:Zt})})))}function cr(ct){var Yt=ct.data,Rt=ct.measureColumnWidth,Zt=Se(xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),nn=Zt.prefixCls,fn=Zt.getComponent,dt=Zt.onColumnResize,Ln=Zt.flattenColumns,wn=Zt.getRowKey,Ht=Zt.expandedKeys,ln=Zt.childrenColumnName,hn=Zt.emptyNode,tn=le(Yt,ln,Ht,wn),un=ge.useRef({renderWithProps:!1}),nr=fn(["body","wrapper"],"tbody"),Nt=fn(["body","row"],"tr"),qt=fn(["body","cell"],"td"),Nn=fn(["body","cell"],"th"),On;Yt.length?On=tn.map(function(br,vr){var zr=br.record,Ir=br.indent,ii=br.index,oi=wn(zr,vr);return ge.createElement(In,{key:oi,rowKey:oi,record:zr,index:vr,renderIndex:ii,rowComponent:Nt,cellComponent:qt,scopeCellComponent:Nn,indent:Ir})}):On=ge.createElement(Ut,{expanded:!0,className:"".concat(nn,"-placeholder"),prefixCls:nn,component:Nt,cellComponent:qt,colSpan:Ln.length,isEmpty:!0},hn);var er=Fe(Ln);return ge.createElement(pn.Provider,{value:un.current},ge.createElement(nr,{className:"".concat(nn,"-tbody")},Rt&&ge.createElement(dr,{prefixCls:nn,columnsKey:er,onColumnResize:dt}),On))}var yr=Ge(cr),Jn=ce(54451),Tr=["columnType"];function Pr(ct){for(var Yt=ct.colWidths,Rt=ct.columns,Zt=ct.columCount,nn=Se(xe,["tableLayout"]),fn=nn.tableLayout,dt=[],Ln=Zt||Rt.length,wn=!1,Ht=Ln-1;Ht>=0;Ht-=1){var ln=Yt[Ht],hn=Rt&&Rt[Ht],tn=void 0,un=void 0;if(hn&&(tn=hn[Jn.v],fn==="auto"&&(un=hn.minWidth)),ln||un||tn||wn){var nr=tn||{},Nt=nr.columnType,qt=(0,_e.Z)(nr,Tr);dt.unshift(ge.createElement("col",(0,ye.Z)({key:Ht,style:{width:ln,minWidth:un}},qt))),wn=!0}}return ge.createElement("colgroup",null,dt)}var Er=Pr,ur=ce(94480),Qr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Kn(ct,Yt){return(0,ge.useMemo)(function(){for(var Rt=[],Zt=0;Zt1?"colgroup":"col":null,ellipsis:qt.ellipsis,align:qt.align,component:dt,prefixCls:ln,key:un[Nt]},Nn,{additionalProps:On,rowType:"header"}))}))},zn=mn;function $t(ct){var Yt=[];function Rt(dt,Ln){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Yt[wn]=Yt[wn]||[];var Ht=Ln,ln=dt.filter(Boolean).map(function(hn){var tn={key:hn.key,className:hn.className||"",children:hn.title,column:hn,colStart:Ht},un=1,nr=hn.children;return nr&&nr.length>0&&(un=Rt(nr,Ht,wn+1).reduce(function(Nt,qt){return Nt+qt},0),tn.hasSubColumns=!0),"colSpan"in hn&&(un=hn.colSpan),"rowSpan"in hn&&(tn.rowSpan=hn.rowSpan),tn.colSpan=un,tn.colEnd=tn.colStart+un-1,Yt[wn].push(tn),Ht+=un,un});return ln}Rt(ct,0);for(var Zt=Yt.length,nn=function(Ln){Yt[Ln].forEach(function(wn){!("rowSpan"in wn)&&!wn.hasSubColumns&&(wn.rowSpan=Zt-Ln)})},fn=0;fn=pi-Ln?On(function(Vr){return(0,tt.Z)((0,tt.Z)({},Vr),{},{isHiddenScrollBar:!0})}):On(function(Vr){return(0,tt.Z)((0,tt.Z)({},Vr),{},{isHiddenScrollBar:!1})})}})},ni=function(Rr){On(function(ei){return(0,tt.Z)((0,tt.Z)({},ei),{},{scrollLeft:Rr/hn*tn||0})})};return ge.useImperativeHandle(Rt,function(){return{setScrollLeft:ni,checkScrollBarVisible:Ai}}),ge.useEffect(function(){var ri=(0,Tt.Z)(document.body,"mouseup",oi,!1),Rr=(0,Tt.Z)(document.body,"mousemove",di,!1);return Ai(),function(){ri.remove(),Rr.remove()}},[un,zr]),ge.useEffect(function(){if(fn.current){for(var ri=[],Rr=(0,Tn.bn)(fn.current);Rr;)ri.push(Rr),Rr=Rr.parentElement;return ri.forEach(function(ei){return ei.addEventListener("scroll",Ai,!1)}),window.addEventListener("resize",Ai,!1),window.addEventListener("scroll",Ai,!1),wn.addEventListener("scroll",Ai,!1),function(){ri.forEach(function(ei){return ei.removeEventListener("scroll",Ai)}),window.removeEventListener("resize",Ai),window.removeEventListener("scroll",Ai),wn.removeEventListener("scroll",Ai)}}},[wn]),ge.useEffect(function(){Nn.isHiddenScrollBar||On(function(ri){var Rr=fn.current;return Rr?(0,tt.Z)((0,tt.Z)({},ri),{},{scrollLeft:Rr.scrollLeft/Rr.scrollWidth*Rr.clientWidth}):ri})},[Nn.isHiddenScrollBar]),hn<=tn||!un||Nn.isHiddenScrollBar?null:ge.createElement("div",{style:{height:(0,re.Z)(),width:tn,bottom:Ln},className:"".concat(ln,"-sticky-scroll")},ge.createElement("div",{onMouseDown:Xr,ref:nr,className:wt()("".concat(ln,"-sticky-scroll-bar"),(0,gt.Z)({},"".concat(ln,"-sticky-scroll-bar-active"),zr)),style:{width:"".concat(un,"px"),transform:"translate3d(".concat(Nn.scrollLeft,"px, 0, 0)")}}))},ar=ge.forwardRef(_n);function Ar(ct){return null}var or=Ar;function hr(ct){return null}var xr=hr,Hn="rc-table",xt=[],Ft={};function gn(){return"No Data"}function Mn(ct,Yt){var Rt=(0,tt.Z)({rowKey:"key",prefixCls:Hn,emptyText:gn},ct),Zt=Rt.prefixCls,nn=Rt.className,fn=Rt.rowClassName,dt=Rt.style,Ln=Rt.data,wn=Rt.rowKey,Ht=Rt.scroll,ln=Rt.tableLayout,hn=Rt.direction,tn=Rt.title,un=Rt.footer,nr=Rt.summary,Nt=Rt.caption,qt=Rt.id,Nn=Rt.showHeader,On=Rt.components,er=Rt.emptyText,br=Rt.onRow,vr=Rt.onHeaderRow,zr=Rt.onScroll,Ir=Rt.internalHooks,ii=Rt.transformColumns,oi=Rt.internalRefs,Xr=Rt.tailor,di=Rt.getContainerWidth,Ai=Rt.sticky,ni=Rt.rowHoverable,ri=ni===void 0?!0:ni,Rr=Ln||xt,ei=!!Rr.length,pi=Ir===te.R,Vr=ge.useCallback(function(zi,Wi){return(0,vt.Z)(On,zi)||Wi},[On]),gi=ge.useMemo(function(){return typeof wn=="function"?wn:function(zi){var Wi=zi&&zi[wn];return Wi}},[wn]),Ei=Vr(["body"]),Ti=Ur(),Da=(0,Ze.Z)(Ti,3),Na=Da[0],ca=Da[1],La=Da[2],ji=fr(Rt,Rr,gi),ea=(0,Ze.Z)(ji,6),Yi=ea[0],Ha=ea[1],ua=ea[2],xa=ea[3],fa=ea[4],si=ea[5],wi=Ht==null?void 0:Ht.x,Fi=ge.useState(0),Si=(0,Ze.Z)(Fi,2),Hi=Si[0],Xi=Si[1],Li=(0,lr.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({},Rt),Yi),{},{expandable:!!Yi.expandedRowRender,columnTitle:Yi.columnTitle,expandedKeys:ua,getRowKey:gi,onTriggerExpand:si,expandIcon:xa,expandIconColumnIndex:Yi.expandIconColumnIndex,direction:hn,scrollWidth:pi&&Xr&&typeof wi=="number"?wi:null,clientWidth:Hi}),pi?ii:null),ga=(0,Ze.Z)(Li,4),pa=ga[0],jn=ga[1],ti=ga[2],bi=ga[3],qi=ti!=null?ti:wi,Fa=ge.useMemo(function(){return{columns:pa,flattenColumns:jn}},[pa,jn]),Oi=ge.useRef(),Ja=ge.useRef(),Mi=ge.useRef(),GA=ge.useRef();ge.useImperativeHandle(Yt,function(){return{nativeElement:Oi.current,scrollTo:function(Wi){var za;if(Mi.current instanceof HTMLElement){var Wa=Wi.index,rA=Wi.top,fo=Wi.key;if(Fn(rA)){var JA;(JA=Mi.current)===null||JA===void 0||JA.scrollTo({top:rA})}else{var ho,NA=fo!=null?fo:gi(Rr[Wa]);(ho=Mi.current.querySelector('[data-row-key="'.concat(NA,'"]')))===null||ho===void 0||ho.scrollIntoView()}}else(za=Mi.current)!==null&&za!==void 0&&za.scrollTo&&Mi.current.scrollTo(Wi)}}});var fA=ge.useRef(),Sa=ge.useState(!1),vi=(0,Ze.Z)(Sa,2),aA=vi[0],dA=vi[1],$a=ge.useState(!1),qa=(0,Ze.Z)($a,2),PA=qa[0],BA=qa[1],CA=ge.useState(new Map),Ka=(0,Ze.Z)(CA,2),Ea=Ka[0],va=Ka[1],Ra=Fe(jn),sA=Ra.map(function(zi){return Ea.get(zi)}),kA=ge.useMemo(function(){return sA},[sA.join("_")]),MA=kr(kA,jn,hn),Za=Ht&&Ot(Ht.y),ma=Ht&&Ot(qi)||!!Yi.fixed,Ni=ma&&jn.some(function(zi){var Wi=zi.fixed;return Wi}),Ii=ge.useRef(),da=yn(Ai,Zt),na=da.isSticky,Oa=da.offsetHeader,Ta=da.offsetSummary,UA=da.offsetScroll,xA=da.stickyClassName,DA=da.container,ra=ge.useMemo(function(){return nr==null?void 0:nr(Rr)},[nr,Rr]),eA=(Za||na)&&ge.isValidElement(ra)&&ra.type===Be&&ra.props.fixed,vA,IA,VA;Za&&(IA={overflowY:ei?"scroll":"auto",maxHeight:Ht.y}),ma&&(vA={overflowX:"auto"},Za||(IA={overflowY:"hidden"}),VA={width:qi===!0?"auto":qi,minWidth:"100%"});var jo=ge.useCallback(function(zi,Wi){va(function(za){if(za.get(zi)!==Wi){var Wa=new Map(za);return Wa.set(zi,Wi),Wa}return za})},[]),Do=Dr(null),KA=(0,Ze.Z)(Do,2),jA=KA[0],tA=KA[1];function nA(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,Te.Z)(function(zi){var Wi=zi.currentTarget,za=zi.scrollLeft,Wa=hn==="rtl",rA=typeof za=="number"?za:Wi.scrollLeft,fo=Wi||Ft;if(!tA()||tA()===fo){var JA;jA(fo),nA(rA,Ja.current),nA(rA,Mi.current),nA(rA,fA.current),nA(rA,(JA=Ii.current)===null||JA===void 0?void 0:JA.setScrollLeft)}var ho=Wi||Ja.current;if(ho){var NA=pi&&Xr&&typeof qi=="number"?qi:ho.scrollWidth,qA=ho.clientWidth;if(NA===qA){dA(!1),BA(!1);return}Wa?(dA(-rA0)):(dA(rA>0),BA(rA1?qt-ri:0,ei=(0,tt.Z)((0,tt.Z)((0,tt.Z)({},ii),Ht),{},{flex:"0 0 ".concat(ri,"px"),width:"".concat(ri,"px"),marginRight:Rr,pointerEvents:"auto"}),pi=ge.useMemo(function(){return hn?Ai<=1:Xr===0||Ai===0||Ai>1},[Ai,Xr,hn]);pi?ei.visibility="hidden":hn&&(ei.height=tn==null?void 0:tn(Ai));var Vr=pi?function(){return null}:un,gi={};return(Ai===0||Xr===0)&&(gi.rowSpan=1,gi.colSpan=1),ge.createElement(ht,(0,ye.Z)({className:wt()(Nt,ln),ellipsis:Rt.ellipsis,align:Rt.align,scope:Rt.rowScope,component:dt,prefixCls:Yt.prefixCls,key:br,record:wn,index:fn,renderIndex:Ln,dataIndex:nr,render:Vr,shouldCellUpdate:Rt.shouldCellUpdate},vr,{appendNode:zr,additionalProps:(0,tt.Z)((0,tt.Z)({},Ir),{},{style:ei},gi)}))}var ai=ui,Ci=["data","index","className","rowKey","style","extra","getHeight"],Ke=ge.forwardRef(function(ct,Yt){var Rt=ct.data,Zt=ct.index,nn=ct.className,fn=ct.rowKey,dt=ct.style,Ln=ct.extra,wn=ct.getHeight,Ht=(0,_e.Z)(ct,Ci),ln=Rt.record,hn=Rt.indent,tn=Rt.index,un=Se(xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),nr=un.scrollX,Nt=un.flattenColumns,qt=un.prefixCls,Nn=un.fixColumn,On=un.componentWidth,er=Se(_r,["getComponent"]),br=er.getComponent,vr=Ee(ln,fn,Zt,hn),zr=br(["body","row"],"div"),Ir=br(["body","cell"],"div"),ii=vr.rowSupportExpand,oi=vr.expanded,Xr=vr.rowProps,di=vr.expandedRowRender,Ai=vr.expandedRowClassName,ni;if(ii&&oi){var ri=di(ln,Zt,hn+1,oi),Rr=Bn(Ai,ln,Zt,hn),ei={};Nn&&(ei={style:(0,gt.Z)({},"--virtual-width","".concat(On,"px"))});var pi="".concat(qt,"-expanded-row-cell");ni=ge.createElement(zr,{className:wt()("".concat(qt,"-expanded-row"),"".concat(qt,"-expanded-row-level-").concat(hn+1),Rr)},ge.createElement(ht,{component:Ir,prefixCls:qt,className:wt()(pi,(0,gt.Z)({},"".concat(pi,"-fixed"),Nn)),additionalProps:ei},ri))}var Vr=(0,tt.Z)((0,tt.Z)({},dt),{},{width:nr});Ln&&(Vr.position="absolute",Vr.pointerEvents="none");var gi=ge.createElement(zr,(0,ye.Z)({},Xr,Ht,{"data-row-key":fn,ref:ii?null:Yt,className:wt()(nn,"".concat(qt,"-row"),Xr==null?void 0:Xr.className,(0,gt.Z)({},"".concat(qt,"-row-extra"),Ln)),style:(0,tt.Z)((0,tt.Z)({},Vr),Xr==null?void 0:Xr.style)}),Nt.map(function(Ei,Ti){return ge.createElement(ai,{key:Ti,component:Ir,rowInfo:vr,column:Ei,colIndex:Ti,indent:hn,index:Zt,renderIndex:tn,record:ln,inverse:Ln,getHeight:wn})}));return ii?ge.createElement("div",{ref:Yt},gi,ni):gi}),Oe=Ge(Ke),At=Oe,Et=ge.forwardRef(function(ct,Yt){var Rt=ct.data,Zt=ct.onScroll,nn=Se(xe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),fn=nn.flattenColumns,dt=nn.onColumnResize,Ln=nn.getRowKey,wn=nn.expandedKeys,Ht=nn.prefixCls,ln=nn.childrenColumnName,hn=nn.scrollX,tn=nn.direction,un=Se(_r),nr=un.sticky,Nt=un.scrollY,qt=un.listItemHeight,Nn=un.getComponent,On=un.onScroll,er=ge.useRef(),br=le(Rt,ln,wn,Ln),vr=ge.useMemo(function(){var ni=0;return fn.map(function(ri){var Rr=ri.width,ei=ri.key;return ni+=Rr,[ei,Rr,ni]})},[fn]),zr=ge.useMemo(function(){return vr.map(function(ni){return ni[2]})},[vr]);ge.useEffect(function(){vr.forEach(function(ni){var ri=(0,Ze.Z)(ni,2),Rr=ri[0],ei=ri[1];dt(Rr,ei)})},[vr]),ge.useImperativeHandle(Yt,function(){var ni,ri={scrollTo:function(ei){var pi;(pi=er.current)===null||pi===void 0||pi.scrollTo(ei)},nativeElement:(ni=er.current)===null||ni===void 0?void 0:ni.nativeElement};return Object.defineProperty(ri,"scrollLeft",{get:function(){var ei;return((ei=er.current)===null||ei===void 0?void 0:ei.getScrollInfo().x)||0},set:function(ei){var pi;(pi=er.current)===null||pi===void 0||pi.scrollTo({left:ei})}}),ri});var Ir=function(ri,Rr){var ei,pi=(ei=br[Rr])===null||ei===void 0?void 0:ei.record,Vr=ri.onCell;if(Vr){var gi,Ei=Vr(pi,Rr);return(gi=Ei==null?void 0:Ei.rowSpan)!==null&&gi!==void 0?gi:1}return 1},ii=function(ri){var Rr=ri.start,ei=ri.end,pi=ri.getSize,Vr=ri.offsetY;if(ei<0)return null;for(var gi=fn.filter(function(xa){return Ir(xa,Rr)===0}),Ei=Rr,Ti=function(fa){if(gi=gi.filter(function(si){return Ir(si,fa)===0}),!gi.length)return Ei=fa,1},Da=Rr;Da>=0&&!Ti(Da);Da-=1);for(var Na=fn.filter(function(xa){return Ir(xa,ei)!==1}),ca=ei,La=function(fa){if(Na=Na.filter(function(si){return Ir(si,fa)!==1}),!Na.length)return ca=Math.max(fa-1,ei),1},ji=ei;ji1})&&ea.push(fa)},Ha=Ei;Ha<=ca;Ha+=1)Yi(Ha);var ua=ea.map(function(xa){var fa=br[xa],si=Ln(fa.record,xa),wi=function(Hi){var Xi=xa+Hi-1,Li=Ln(br[Xi].record,Xi),ga=pi(si,Li);return ga.bottom-ga.top},Fi=pi(si);return ge.createElement(At,{key:xa,data:fa,rowKey:si,index:xa,style:{top:-Vr+Fi.top},extra:!0,getHeight:wi})});return ua},oi=ge.useMemo(function(){return{columnsOffset:zr}},[zr]),Xr="".concat(Ht,"-tbody"),di=Nn(["body","wrapper"]),Ai={};return nr&&(Ai.position="sticky",Ai.bottom=0,(0,He.Z)(nr)==="object"&&nr.offsetScroll&&(Ai.bottom=nr.offsetScroll)),ge.createElement(Br.Provider,{value:oi},ge.createElement(Xn.Z,{fullHeight:!1,ref:er,prefixCls:"".concat(Xr,"-virtual"),styles:{horizontalScrollBar:Ai},className:Xr,height:Nt,itemHeight:qt||24,data:br,itemKey:function(ri){return Ln(ri.record)},component:di,scrollWidth:hn,direction:tn,onVirtualScroll:function(ri){var Rr,ei=ri.x;Zt({currentTarget:(Rr=er.current)===null||Rr===void 0?void 0:Rr.nativeElement,scrollLeft:ei})},onScroll:On,extraRender:ii},function(ni,ri,Rr){var ei=Ln(ni.record,ri);return ge.createElement(At,{data:ni,rowKey:ei,index:ri,style:Rr.style})}))}),on=Ge(Et),Wt=on,Qn=function(Yt,Rt){var Zt=Rt.ref,nn=Rt.onScroll;return ge.createElement(Wt,{ref:Zt,data:Yt,onScroll:nn})};function Rn(ct,Yt){var Rt=ct.data,Zt=ct.columns,nn=ct.scroll,fn=ct.sticky,dt=ct.prefixCls,Ln=dt===void 0?Hn:dt,wn=ct.className,Ht=ct.listItemHeight,ln=ct.components,hn=ct.onScroll,tn=nn||{},un=tn.x,nr=tn.y;typeof un!="number"&&(un=1),typeof nr!="number"&&(nr=500);var Nt=(0,Yn.zX)(function(On,er){return(0,vt.Z)(ln,On)||er}),qt=(0,Yn.zX)(hn),Nn=ge.useMemo(function(){return{sticky:fn,scrollY:nr,listItemHeight:Ht,getComponent:Nt,onScroll:qt}},[fn,nr,Ht,Nt,qt]);return ge.createElement(_r.Provider,{value:Nn},ge.createElement(ir,(0,ye.Z)({},ct,{className:wt()(wn,"".concat(Ln,"-virtual")),scroll:(0,tt.Z)((0,tt.Z)({},nn),{},{x:un}),components:(0,tt.Z)((0,tt.Z)({},ln),{},{body:Rt!=null&&Rt.length?Qn:void 0}),columns:Zt,internalHooks:te.R,tailor:!0,ref:Yt})))}var Wn=ge.forwardRef(Rn);function Vn(ct){return ut(Wn,ct)}var Zn=Vn(),Gn=null},54451:function(xn,yt,ce){"use strict";ce.d(yt,{g:function(){return ge},v:function(){return ke}});var te=ce(33885),Ze=ce(75931),Te=ce(48736),Xe=["expandable"],ke="RC_TABLE_INTERNAL_COL_DEFINE";function ge(Ve){var Ue=Ve.expandable,Se=(0,Ze.Z)(Ve,Xe),ye;return"expandable"in Ve?ye=(0,te.Z)((0,te.Z)({},Se),Ue):ye=Se,ye.showExpandColumn===!1&&(ye.expandIconColumnIndex=-1),ye}},22711:function(xn,yt,ce){"use strict";ce.r(yt),ce.d(yt,{ResizableTextArea:function(){return Ye},default:function(){return Vt}});var te=ce(54476),Ze=ce(20068),Te=ce(33885),Xe=ce(94480),ke=ce(42978),ge=ce(75931),Ve=ce(92310),Ue=ce.n(Ve),Se=ce(36901),ye=ce(66003),Je=ce(30292),Ce=ce(18929),st=ce(59301),nt=ce(76190),it=ce(29301),We=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"],qe={},Qe;function xe(Jt){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An=Jt.getAttribute("id")||Jt.getAttribute("data-reactid")||Jt.getAttribute("name");if(pn&&qe[An])return qe[An];var ze=window.getComputedStyle(Jt),Fe=ze.getPropertyValue("box-sizing")||ze.getPropertyValue("-moz-box-sizing")||ze.getPropertyValue("-webkit-box-sizing"),Ot=parseFloat(ze.getPropertyValue("padding-bottom"))+parseFloat(ze.getPropertyValue("padding-top")),Fn=parseFloat(ze.getPropertyValue("border-bottom-width"))+parseFloat(ze.getPropertyValue("border-top-width")),dn=Ge.map(function(en){return"".concat(en,":").concat(ze.getPropertyValue(en))}).join(";"),Ct={sizingStyle:dn,paddingSize:Ot,borderSize:Fn,boxSizing:Fe};return pn&&An&&(qe[An]=Ct),Ct}function Ne(Jt){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ze=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,pn),Ot=Fe.paddingSize,Fn=Fe.borderSize,dn=Fe.boxSizing,Ct=Fe.sizingStyle;Qe.setAttribute("style","".concat(Ct,";").concat(ut)),Qe.value=Jt.value||Jt.placeholder||"";var en=void 0,rn=void 0,Yn,Dt=Qe.scrollHeight;if(dn==="border-box"?Dt+=Fn:dn==="content-box"&&(Dt-=Ot),An!==null||ze!==null){Qe.value=" ";var mt=Qe.scrollHeight-Ot;An!==null&&(en=mt*An,dn==="border-box"&&(en=en+Ot+Fn),Dt=Math.max(en,Dt)),ze!==null&&(rn=mt*ze,dn==="border-box"&&(rn=rn+Ot+Fn),Yn=Dt>rn?"":"hidden",Dt=Math.min(rn,Dt))}var ht={height:Dt,overflowY:Yn,resize:"none"};return en&&(ht.minHeight=en),rn&&(ht.maxHeight=rn),ht}var Me=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],rt=0,He=1,tt=2,gt=st.forwardRef(function(Jt,pn){var An=Jt,ze=An.prefixCls,Fe=An.defaultValue,Ot=An.value,Fn=An.autoSize,dn=An.onResize,Ct=An.className,en=An.style,rn=An.disabled,Yn=An.onChange,Dt=An.onInternalAutoSize,mt=(0,ge.Z)(An,Me),ht=(0,Ce.Z)(Fe,{value:Ot,postState:function(In){return In!=null?In:""}}),bt=(0,ke.Z)(ht,2),zt=bt[0],Bt=bt[1],Pt=function(In){Bt(In.target.value),Yn==null||Yn(In)},_e=st.useRef();st.useImperativeHandle(pn,function(){return{textArea:_e.current}});var se=st.useMemo(function(){return Fn&&(0,nt.Z)(Fn)==="object"?[Fn.minRows,Fn.maxRows]:[]},[Fn]),fe=(0,ke.Z)(se,2),Ie=fe[0],Be=fe[1],pt=!!Fn,Mt=function(){try{if(document.activeElement===_e.current){var In=_e.current,sr=In.selectionStart,vn=In.selectionEnd,dr=In.scrollTop;_e.current.setSelectionRange(sr,vn),_e.current.scrollTop=dr}}catch(cr){}},sn=st.useState(tt),he=(0,ke.Z)(sn,2),oe=he[0],re=he[1],de=st.useState(),we=(0,ke.Z)(de,2),le=we[0],Ee=we[1],St=function(){re(rt)};(0,We.Z)(function(){pt&&St()},[Ot,Ie,Be,pt]),(0,We.Z)(function(){if(oe===rt)re(He);else if(oe===He){var cn=Ne(_e.current,!1,Ie,Be);re(tt),Ee(cn)}else Mt()},[oe]);var Ut=st.useRef(),It=function(){Le.Z.cancel(Ut.current)},ft=function(In){oe===tt&&(dn==null||dn(In),Fn&&(It(),Ut.current=(0,Le.Z)(function(){St()})))};st.useEffect(function(){return It},[]);var Bn=pt?le:null,jt=(0,Te.Z)((0,Te.Z)({},en),Bn);return(oe===rt||oe===He)&&(jt.overflowY="hidden",jt.overflowX="hidden"),st.createElement(it.Z,{onResize:ft,disabled:!(Fn||dn)},st.createElement("textarea",(0,te.Z)({},mt,{ref:_e,style:jt,className:Ue()(ze,Ct,(0,Ze.Z)({},"".concat(ze,"-disabled"),rn)),disabled:rn,value:zt,onChange:Pt})))}),Ye=gt,wt=["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=st.forwardRef(function(Jt,pn){var An,ze=Jt.defaultValue,Fe=Jt.value,Ot=Jt.onFocus,Fn=Jt.onBlur,dn=Jt.onChange,Ct=Jt.allowClear,en=Jt.maxLength,rn=Jt.onCompositionStart,Yn=Jt.onCompositionEnd,Dt=Jt.suffix,mt=Jt.prefixCls,ht=mt===void 0?"rc-textarea":mt,bt=Jt.showCount,zt=Jt.count,Bt=Jt.className,Pt=Jt.style,_e=Jt.disabled,se=Jt.hidden,fe=Jt.classNames,Ie=Jt.styles,Be=Jt.onResize,pt=Jt.onClear,Mt=Jt.onPressEnter,sn=Jt.readOnly,he=Jt.autoSize,oe=Jt.onKeyDown,re=(0,ge.Z)(Jt,wt),de=(0,Ce.Z)(ze,{value:Fe,defaultValue:ze}),we=(0,ke.Z)(de,2),le=we[0],Ee=we[1],St=le==null?"":String(le),Ut=st.useState(!1),It=(0,ke.Z)(Ut,2),ft=It[0],Bn=It[1],jt=st.useRef(!1),cn=st.useState(null),In=(0,ke.Z)(cn,2),sr=In[0],vn=In[1],dr=(0,st.useRef)(null),cr=(0,st.useRef)(null),yr=function(){var $e;return($e=cr.current)===null||$e===void 0?void 0:$e.textArea},Jn=function(){yr().focus()};(0,st.useImperativeHandle)(pn,function(){var yn;return{resizableTextArea:cr.current,focus:Jn,blur:function(){yr().blur()},nativeElement:((yn=dr.current)===null||yn===void 0?void 0:yn.nativeElement)||yr()}}),(0,st.useEffect)(function(){Bn(function(yn){return!_e&&yn})},[_e]);var Tr=st.useState(null),Pr=(0,ke.Z)(Tr,2),Er=Pr[0],ur=Pr[1];st.useEffect(function(){if(Er){var yn;(yn=yr()).setSelectionRange.apply(yn,(0,Xe.Z)(Er))}},[Er]);var Qr=(0,ye.Z)(zt,bt),Kn=(An=Qr.max)!==null&&An!==void 0?An:en,rr=Number(Kn)>0,qn=Qr.strategy(St),mn=!!Kn&&qn>Kn,zn=function($e,kr){var Zr=kr;!jt.current&&Qr.exceedFormatter&&Qr.max&&Qr.strategy(kr)>Qr.max&&(Zr=Qr.exceedFormatter(kr,{max:Qr.max}),kr!==Zr&&ur([yr().selectionStart||0,yr().selectionEnd||0])),Ee(Zr),(0,Je.rJ)($e.currentTarget,$e,dn,Zr)},$t=function($e){jt.current=!0,rn==null||rn($e)},Sn=function($e){jt.current=!1,zn($e,$e.currentTarget.value),Yn==null||Yn($e)},pr=function($e){zn($e,$e.target.value)},lr=function($e){$e.key==="Enter"&&Mt&&Mt($e),oe==null||oe($e)},fr=function($e){Bn(!0),Ot==null||Ot($e)},Fr=function($e){Bn(!1),Fn==null||Fn($e)},Wr=function($e){Ee(""),Jn(),(0,Je.rJ)(yr(),$e,dn)},Dr=Dt,Ur;Qr.show&&(Qr.showFormatter?Ur=Qr.showFormatter({value:St,count:qn,maxLength:Kn}):Ur="".concat(qn).concat(rr?" / ".concat(Kn):""),Dr=st.createElement(st.Fragment,null,Dr,st.createElement("span",{className:Ue()("".concat(ht,"-data-count"),fe==null?void 0:fe.count),style:Ie==null?void 0:Ie.count},Ur)));var qr=function($e){var kr;Be==null||Be($e),(kr=yr())!==null&&kr!==void 0&&kr.style.height&&vn(!0)},$n=!he&&!bt&&!Ct;return st.createElement(Se.BaseInput,{ref:dr,value:St,allowClear:Ct,handleReset:Wr,suffix:Dr,prefixCls:ht,classNames:(0,Te.Z)((0,Te.Z)({},fe),{},{affixWrapper:Ue()(fe==null?void 0:fe.affixWrapper,(0,Ze.Z)((0,Ze.Z)({},"".concat(ht,"-show-count"),bt),"".concat(ht,"-textarea-allow-clear"),Ct))}),disabled:_e,focused:ft,className:Ue()(Bt,mn&&"".concat(ht,"-out-of-range")),style:(0,Te.Z)((0,Te.Z)({},Pt),sr&&!$n?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ur=="string"?Ur:void 0}},hidden:se,readOnly:sn,onClear:pt},st.createElement(Ye,(0,te.Z)({},re,{autoSize:he,maxLength:en,onKeyDown:lr,onChange:pr,onFocus:fr,onBlur:Fr,onCompositionStart:$t,onCompositionEnd:Sn,className:Ue()(fe==null?void 0:fe.textarea),style:(0,Te.Z)((0,Te.Z)({},Ie==null?void 0:Ie.textarea),{},{resize:Pt==null?void 0:Pt.resize}),disabled:_e,prefixCls:ht,onResize:qr,ref:cr,readOnly:sn})))}),vt=at,Vt=vt},639:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return qe}});var te=ce(54476),Ze=ce(20068),Te=ce(33885),Xe=ce(42978),ke=ce(75931),ge=ce(59301),Ve=ce(92310),Ue=ce.n(Ve),Se=ce(26112),ye=ce(30699),Je=function(xe){for(var Ne=xe.prefixCls,Me=xe.level,rt=xe.isStart,He=xe.isEnd,tt="".concat(Ne,"-indent-unit"),gt=[],Ye=0;Ye0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ie=se.length,Be=fe.length;if(Math.abs(Ie-Be)!==1)return{add:!1,key:null};function pt(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 Ie ").concat(fe);return fe}var Yn=We.forwardRef(function(se,fe){var Ie=se.prefixCls,Be=se.data,pt=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,ft=se.motion,Bn=se.height,jt=se.itemHeight,cn=se.virtual,In=se.scrollWidth,sr=se.focusable,vn=se.activeItem,dr=se.focused,cr=se.tabIndex,yr=se.onKeyDown,Jn=se.onFocus,Tr=se.onBlur,Pr=se.onActiveChange,Er=se.onListChangeStart,ur=se.onListChangeEnd,Qr=(0,xe.Z)(se,pn),Kn=We.useRef(null),rr=We.useRef(null);We.useImperativeHandle(fe,function(){return{scrollTo:function(Ar){Kn.current.scrollTo(Ar)},getIndentWidth:function(){return rr.current.offsetWidth}}});var qn=We.useState(sn),mn=(0,Qe.Z)(qn,2),zn=mn[0],$t=mn[1],Sn=We.useState(Be),pr=(0,Qe.Z)(Sn,2),lr=pr[0],fr=pr[1],Fr=We.useState(Be),Wr=(0,Qe.Z)(Fr,2),Dr=Wr[0],Ur=Wr[1],qr=We.useState([]),$n=(0,Qe.Z)(qr,2),yn=$n[0],$e=$n[1],kr=We.useState(null),Zr=(0,Qe.Z)(kr,2),Lt=Zr[0],Tt=Zr[1],tr=We.useRef(Be);tr.current=Be;function Tn(){var ar=tr.current;fr(ar),Ur(ar),$e([]),Tt(null),ur()}(0,Ne.Z)(function(){$t(sn);var ar=Vt(zn,sn);if(ar.key!==null)if(ar.add){var Ar=lr.findIndex(function(Ft){var gn=Ft.key;return gn===ar.key}),or=Ct(Jt(lr,Be,ar.key),cn,Bn,jt),hr=lr.slice();hr.splice(Ar+1,0,dn),Ur(hr),$e(or),Tt("show")}else{var xr=Be.findIndex(function(Ft){var gn=Ft.key;return gn===ar.key}),Hn=Ct(Jt(Be,lr,ar.key),cn,Bn,jt),xt=Be.slice();xt.splice(xr+1,0,dn),Ur(xt),$e(Hn),Tt("hide")}else lr!==Be&&(fr(Be),Ur(Be))},[sn,Be]),We.useEffect(function(){St||Tn()},[St]);var Gt=ft?Dr:Be,_n={expandedKeys:sn,selectedKeys:he,loadedKeys:re,loadingKeys:de,checkedKeys:oe,halfCheckedKeys:we,dragOverNodeKey:Ut,dropPosition:It,keyEntities:le};return We.createElement(We.Fragment,null,dr&&vn&&We.createElement("span",{style:An,"aria-live":"assertive"},rn(vn)),We.createElement("div",null,We.createElement("input",{style:An,disabled:sr===!1||Ee,tabIndex:sr!==!1?cr:null,onKeyDown:yr,onFocus:Jn,onBlur:Tr,value:"",onChange:ze,"aria-label":"for screen reader"})),We.createElement("div",{className:"".concat(Ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},We.createElement("div",{className:"".concat(Ie,"-indent")},We.createElement("div",{ref:rr,className:"".concat(Ie,"-indent-unit")}))),We.createElement(Me.Z,(0,te.Z)({},Qr,{data:Gt,itemKey:en,height:Bn,fullHeight:!1,virtual:cn,itemHeight:jt,scrollWidth:In,prefixCls:"".concat(Ie,"-list"),ref:Kn,role:"tree",onVisibleChange:function(Ar){Ar.every(function(or){return en(or)!==Fe})&&Tn()}}),function(ar){var Ar=ar.pos,or=Object.assign({},(qe(ar.data),ar.data)),hr=ar.title,xr=ar.key,Hn=ar.isStart,xt=ar.isEnd,Ft=(0,Ye.km)(xr,Ar);delete or.key,delete or.children;var gn=(0,Ye.H8)(Ft,_n);return We.createElement(vt,(0,te.Z)({},or,gn,{title:hr,active:!!vn&&xr===vn.key,pos:Ar,data:ar.data,isStart:Hn,isEnd:xt,motion:ft,motionNodes:xr===Fe?yn:null,motionType:Lt,onMotionStart:Er,onMotionEnd:Tn,treeNodeRequiredProps:_n,onMouseMove:function(){Pr(null)}}))}))}),Dt=Yn,mt=ce(82661),ht=ce(34643),bt=ce(65065),zt=10,Bt=function(se){(0,Ue.Z)(Ie,se);var fe=(0,Se.Z)(Ie);function Ie(){var Be;(0,ke.Z)(this,Ie);for(var pt=arguments.length,Mt=new Array(pt),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 ft=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),St!==null){var Bn=(0,Te.Z)((0,Te.Z)({},(0,Ye.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}),jt=le.includes(St);(0,it.ZP)(!jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cn=(0,mt.yx)(Ut),In={event:he,node:(0,Ye.F)(Bn),dragNode:Be.dragNodeProps?(0,Ye.F)(Be.dragNodeProps):null,dragNodesKeys:[Be.dragNodeProps.eventKey].concat(le),dropToGap:Ee!==0,dropPosition:Ee+Number(cn[cn.length-1])};de||ft==null||ft(In),Be.dragNodeProps=null}}}),(0,ye.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,ye.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(ft){return ft.key===Ee})[0],It=(0,Ye.F)((0,Te.Z)((0,Te.Z)({},(0,Ye.H8)(Ee,Be.getTreeNodeRequiredProps())),{},{data:Ut.data}));Be.setExpandedKeys(le?(0,mt._5)(de,Ee):(0,mt.L0)(de,Ee)),Be.onNodeExpand(he,It)}}),(0,ye.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,ye.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,ye.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,ft=oe[le.key],Bn=!It;Bn?Ut?re=(0,mt.L0)(re,ft):re=[ft]:re=(0,mt._5)(re,ft);var jt=re.map(function(cn){var In=(0,bt.Z)(we,cn);return In?In.node:null}).filter(Boolean);Be.setUncontrolledState({selectedKeys:re}),St==null||St(re,{event:"select",selected:Bn,node:oe,selectedNodes:jt,nativeEvent:he.nativeEvent})}),(0,ye.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,ft=oe.key,Bn,jt={event:"check",node:oe,checked:re,nativeEvent:he.nativeEvent};if(Ut){var cn=re?(0,mt.L0)(le,ft):(0,mt._5)(le,ft),In=(0,mt._5)(Ee,ft);Bn={checked:cn,halfChecked:In},jt.checkedNodes=cn.map(function(Jn){return(0,bt.Z)(we,Jn)}).filter(Boolean).map(function(Jn){return Jn.node}),Be.setUncontrolledState({checkedKeys:cn})}else{var sr=(0,ht.S)([].concat((0,Xe.Z)(le),[ft]),!0,we),vn=sr.checkedKeys,dr=sr.halfCheckedKeys;if(!re){var cr=new Set(vn);cr.delete(ft);var yr=(0,ht.S)(Array.from(cr),{checked:!1,halfCheckedKeys:dr},we);vn=yr.checkedKeys,dr=yr.halfCheckedKeys}Bn=vn,jt.checkedNodes=[],jt.checkedNodesPositions=[],jt.halfCheckedKeys=dr,vn.forEach(function(Jn){var Tr=(0,bt.Z)(we,Jn);if(Tr){var Pr=Tr.node,Er=Tr.pos;jt.checkedNodes.push(Pr),jt.checkedNodesPositions.push({node:Pr,pos:Er})}}),Be.setUncontrolledState({checkedKeys:vn},!1,{halfCheckedKeys:dr})}It==null||It(Bn,jt)}),(0,ye.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,ft=It===void 0?[]:It,Bn=Ut.loadingKeys,jt=Bn===void 0?[]:Bn,cn=Be.props,In=cn.loadData,sr=cn.onLoad;if(!In||ft.includes(re)||jt.includes(re))return null;var vn=In(he);return vn.then(function(){var dr=Be.state.loadedKeys,cr=(0,mt.L0)(dr,re);sr==null||sr(cr,{event:"load",node:he}),Be.setUncontrolledState({loadedKeys:cr}),Be.setState(function(yr){return{loadingKeys:(0,mt._5)(yr.loadingKeys,re)}}),Ee()}).catch(function(dr){if(Be.setState(function(yr){return{loadingKeys:(0,mt._5)(yr.loadingKeys,re)}}),Be.loadingRetryTimes[re]=(Be.loadingRetryTimes[re]||0)+1,Be.loadingRetryTimes[re]>=zt){var cr=Be.state.loadedKeys;(0,it.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,mt.L0)(cr,re)}),Ee()}St(dr)}),{loadingKeys:(0,mt.L0)(jt,re)}})});return le.catch(function(){}),le}}),(0,ye.Z)((0,Ve.Z)(Be),"onNodeMouseEnter",function(he,oe){var re=Be.props.onMouseEnter;re==null||re({event:he,node:oe})}),(0,ye.Z)((0,Ve.Z)(Be),"onNodeMouseLeave",function(he,oe){var re=Be.props.onMouseLeave;re==null||re({event:he,node:oe})}),(0,ye.Z)((0,Ve.Z)(Be),"onNodeContextMenu",function(he,oe){var re=Be.props.onRightClick;re&&(he.preventDefault(),re({event:he,node:oe}))}),(0,ye.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,Te.Z)((0,Te.Z)({},le),re))}}),(0,ye.Z)((0,Ve.Z)(Be),"scrollTo",function(he){Be.listRef.current.scrollTo(he)}),Be}return(0,ge.Z)(Ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var pt=this.props,Mt=pt.activeKey,sn=pt.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 pt=this.state,Mt=pt.focused,sn=pt.flattenNodes,he=pt.keyEntities,oe=pt.draggingNodeKey,re=pt.activeKey,de=pt.dropLevelOffset,we=pt.dropContainerKey,le=pt.dropTargetKey,Ee=pt.dropPosition,St=pt.dragOverNodeKey,Ut=pt.indent,It=this.props,ft=It.prefixCls,Bn=It.className,jt=It.style,cn=It.showLine,In=It.focusable,sr=It.tabIndex,vn=sr===void 0?0:sr,dr=It.selectable,cr=It.showIcon,yr=It.icon,Jn=It.switcherIcon,Tr=It.draggable,Pr=It.checkable,Er=It.checkStrictly,ur=It.disabled,Qr=It.motion,Kn=It.loadData,rr=It.filterTreeNode,qn=It.height,mn=It.itemHeight,zn=It.scrollWidth,$t=It.virtual,Sn=It.titleRender,pr=It.dropIndicatorRender,lr=It.onContextMenu,fr=It.onScroll,Fr=It.direction,Wr=It.rootClassName,Dr=It.rootStyle,Ur=(0,nt.Z)(this.props,{aria:!0,data:!0}),qr;Tr&&((0,Ze.Z)(Tr)==="object"?qr=Tr:typeof Tr=="function"?qr={nodeDraggable:Tr}:qr={});var $n={prefixCls:ft,selectable:dr,showIcon:cr,icon:yr,switcherIcon:Jn,draggable:qr,draggingNodeKey:oe,checkable:Pr,checkStrictly:Er,disabled:ur,keyEntities:he,dropLevelOffset:de,dropContainerKey:we,dropTargetKey:le,dropPosition:Ee,dragOverNodeKey:St,indent:Ut,direction:Fr,dropIndicatorRender:pr,loadData:Kn,filterTreeNode:rr,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 We.createElement(Le.k.Provider,{value:$n},We.createElement("div",{className:Ce()(ft,Bn,Wr,(0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(ft,"-show-line"),cn),"".concat(ft,"-focused"),Mt),"".concat(ft,"-active-focused"),re!==null)),style:Dr},We.createElement(Dt,(0,te.Z)({ref:this.listRef,prefixCls:ft,style:jt,data:sn,disabled:ur,selectable:dr,checkable:!!Pr,motion:Qr,dragging:oe!==null,height:qn,itemHeight:mn,virtual:$t,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:lr,onScroll:fr,scrollWidth:zn},this.getTreeNodeRequiredProps(),Ur))))}}],[{key:"getDerivedStateFromProps",value:function(pt,Mt){var sn=Mt.prevProps,he={prevProps:pt};function oe(vn){return!sn&&pt.hasOwnProperty(vn)||sn&&sn[vn]!==pt[vn]}var re,de=Mt.fieldNames;if(oe("fieldNames")&&(de=(0,Ye.w$)(pt.fieldNames),he.fieldNames=de),oe("treeData")?re=pt.treeData:oe("children")&&((0,it.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=(0,Ye.zn)(pt.children)),re){he.treeData=re;var we=(0,Ye.I8)(re,{fieldNames:de});he.keyEntities=(0,Te.Z)((0,ye.Z)({},Fe,Fn),we.keyEntities)}var le=he.keyEntities||Mt.keyEntities;if(oe("expandedKeys")||sn&&oe("autoExpandParent"))he.expandedKeys=pt.autoExpandParent||!sn&&pt.defaultExpandParent?(0,mt.r7)(pt.expandedKeys,le):pt.expandedKeys;else if(!sn&&pt.defaultExpandAll){var Ee=(0,Te.Z)({},le);delete Ee[Fe];var St=[];Object.keys(Ee).forEach(function(vn){var dr=Ee[vn];dr.children&&dr.children.length&&St.push(dr.key)}),he.expandedKeys=St}else!sn&&pt.defaultExpandedKeys&&(he.expandedKeys=pt.autoExpandParent||pt.defaultExpandParent?(0,mt.r7)(pt.defaultExpandedKeys,le):pt.defaultExpandedKeys);if(he.expandedKeys||delete he.expandedKeys,re||he.expandedKeys){var Ut=(0,Ye.oH)(re||Mt.treeData,he.expandedKeys||Mt.expandedKeys,de);he.flattenNodes=Ut}if(pt.selectable&&(oe("selectedKeys")?he.selectedKeys=(0,mt.BT)(pt.selectedKeys,pt):!sn&&pt.defaultSelectedKeys&&(he.selectedKeys=(0,mt.BT)(pt.defaultSelectedKeys,pt))),pt.checkable){var It;if(oe("checkedKeys")?It=(0,mt.E6)(pt.checkedKeys)||{}:!sn&&pt.defaultCheckedKeys?It=(0,mt.E6)(pt.defaultCheckedKeys)||{}:re&&(It=(0,mt.E6)(pt.checkedKeys)||{checkedKeys:Mt.checkedKeys,halfCheckedKeys:Mt.halfCheckedKeys}),It){var ft=It,Bn=ft.checkedKeys,jt=Bn===void 0?[]:Bn,cn=ft.halfCheckedKeys,In=cn===void 0?[]:cn;if(!pt.checkStrictly){var sr=(0,ht.S)(jt,!0,le);jt=sr.checkedKeys,In=sr.halfCheckedKeys}he.checkedKeys=jt,he.halfCheckedKeys=In}}return oe("loadedKeys")&&(he.loadedKeys=pt.loadedKeys),he}}]),Ie}(We.Component);(0,ye.Z)(Bt,"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,ye.Z)(Bt,"TreeNode",He.Z);var Pt=Bt,_e=Pt},82661:function(xn,yt,ce){"use strict";ce.d(yt,{BT:function(){return We},E6:function(){return Ge},L0:function(){return ye},OM:function(){return it},_5:function(){return Se},r7:function(){return qe},wA:function(){return Ce},yx:function(){return Je}});var te=ce(94480),Ze=ce(76190),Te=ce(48736),Xe=ce(59301),ke=ce(639),ge=ce(65065),Ve=ce(34061),Ue=null;function Se(Qe,xe){if(!Qe)return[];var Ne=Qe.slice(),Me=Ne.indexOf(xe);return Me>=0&&Ne.splice(Me,1),Ne}function ye(Qe,xe){var Ne=(Qe||[]).slice();return Ne.indexOf(xe)===-1&&Ne.push(xe),Ne}function Je(Qe){return Qe.split("-")}function Ce(Qe,xe){var Ne=[],Me=(0,ge.Z)(xe,Qe);function rt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];He.forEach(function(tt){var gt=tt.key,Ye=tt.children;Ne.push(gt),rt(Ye)})}return rt(Me.children),Ne}function st(Qe){if(Qe.parent){var xe=Je(Qe.pos);return Number(xe[xe.length-1])===Qe.parent.children.length-1}return!1}function nt(Qe){var xe=Je(Qe.pos);return Number(xe[xe.length-1])===0}function it(Qe,xe,Ne,Me,rt,He,tt,gt,Ye,wt){var at,vt=Qe.clientX,Vt=Qe.clientY,Jt=Qe.target.getBoundingClientRect(),pn=Jt.top,An=Jt.height,ze=(wt==="rtl"?-1:1)*(((rt==null?void 0:rt.x)||0)-vt),Fe=(ze-12)/Me,Ot=Ye.filter(function(_e){var se;return(se=gt[_e])===null||se===void 0||(se=se.children)===null||se===void 0?void 0:se.length}),Fn=(0,ge.Z)(gt,Ne.eventKey);if(Vt-1.5?He({dragNode:zt,dropNode:Bt,dropPosition:1})?mt=1:Pt=!1:He({dragNode:zt,dropNode:Bt,dropPosition:0})?mt=0:He({dragNode:zt,dropNode:Bt,dropPosition:1})?mt=1:Pt=!1:He({dragNode:zt,dropNode:Bt,dropPosition:1})?mt=1:Pt=!1,{dropPosition:mt,dropLevelOffset:ht,dropTargetKey:Fn.key,dropTargetPos:Fn.pos,dragOverNodeKey:Dt,dropContainerKey:mt===0?null:((at=Fn.parent)===null||at===void 0?void 0:at.key)||null,dropAllowed:Pt}}function We(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||{},Me=Ne.processProps,rt=Me===void 0?Le:Me,He=Array.isArray(Qe)?Qe:[Qe];return He.map(function(tt){var gt=tt.children,Ye=_objectWithoutProperties(tt,Ue),wt=ut(gt,xe);return React.createElement(TreeNode,_extends({key:Ye.key},rt(Ye)),wt)})}function Ge(Qe){if(!Qe)return null;var xe;if(Array.isArray(Qe))xe={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,Ze.Z)(Qe)==="object")xe={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,Te.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return xe}function qe(Qe,xe){var Ne=new Set;function Me(rt){if(!Ne.has(rt)){var He=(0,ge.Z)(xe,rt);if(He){Ne.add(rt);var tt=He.parent,gt=He.node;gt.disabled||tt&&Me(tt.key)}}}return(Qe||[]).forEach(function(rt){Me(rt)}),(0,te.Z)(Ne)}},34643:function(xn,yt,ce){"use strict";ce.d(yt,{S:function(){return Ve}});var te=ce(48736),Ze=ce(65065);function Te(Ue,Se){var ye=new Set;return Ue.forEach(function(Je){Se.has(Je)||ye.add(Je)}),ye}function Xe(Ue){var Se=Ue||{},ye=Se.disabled,Je=Se.disableCheckbox,Ce=Se.checkable;return!!(ye||Je)||Ce===!1}function ke(Ue,Se,ye,Je){for(var Ce=new Set(Ue),st=new Set,nt=0;nt<=ye;nt+=1){var it=Se.get(nt)||new Set;it.forEach(function(Ge){var qe=Ge.key,Qe=Ge.node,xe=Ge.children,Ne=xe===void 0?[]:xe;Ce.has(qe)&&!Je(Qe)&&Ne.filter(function(Me){return!Je(Me.node)}).forEach(function(Me){Ce.add(Me.key)})})}for(var We=new Set,Le=ye;Le>=0;Le-=1){var ut=Se.get(Le)||new Set;ut.forEach(function(Ge){var qe=Ge.parent,Qe=Ge.node;if(!(Je(Qe)||!Ge.parent||We.has(Ge.parent.key))){if(Je(Ge.parent.node)){We.add(qe.key);return}var xe=!0,Ne=!1;(qe.children||[]).filter(function(Me){return!Je(Me.node)}).forEach(function(Me){var rt=Me.key,He=Ce.has(rt);xe&&!He&&(xe=!1),!Ne&&(He||st.has(rt))&&(Ne=!0)}),xe&&Ce.add(qe.key),Ne&&st.add(qe.key),We.add(qe.key)}})}return{checkedKeys:Array.from(Ce),halfCheckedKeys:Array.from(Te(st,Ce))}}function ge(Ue,Se,ye,Je,Ce){for(var st=new Set(Ue),nt=new Set(Se),it=0;it<=Je;it+=1){var We=ye.get(it)||new Set;We.forEach(function(qe){var Qe=qe.key,xe=qe.node,Ne=qe.children,Me=Ne===void 0?[]:Ne;!st.has(Qe)&&!nt.has(Qe)&&!Ce(xe)&&Me.filter(function(rt){return!Ce(rt.node)}).forEach(function(rt){st.delete(rt.key)})})}nt=new Set;for(var Le=new Set,ut=Je;ut>=0;ut-=1){var Ge=ye.get(ut)||new Set;Ge.forEach(function(qe){var Qe=qe.parent,xe=qe.node;if(!(Ce(xe)||!qe.parent||Le.has(qe.parent.key))){if(Ce(qe.parent.node)){Le.add(Qe.key);return}var Ne=!0,Me=!1;(Qe.children||[]).filter(function(rt){return!Ce(rt.node)}).forEach(function(rt){var He=rt.key,tt=st.has(He);Ne&&!tt&&(Ne=!1),!Me&&(tt||nt.has(He))&&(Me=!0)}),Ne||st.delete(Qe.key),Me&&nt.add(Qe.key),Le.add(Qe.key)}})}return{checkedKeys:Array.from(st),halfCheckedKeys:Array.from(Te(nt,st))}}function Ve(Ue,Se,ye,Je){var Ce=[],st;Je?st=Je:st=Xe;var nt=new Set(Ue.filter(function(ut){var Ge=!!(0,Ze.Z)(ye,ut);return Ge||Ce.push(ut),Ge})),it=new Map,We=0;Object.keys(ye).forEach(function(ut){var Ge=ye[ut],qe=Ge.level,Qe=it.get(qe);Qe||(Qe=new Set,it.set(qe,Qe)),Qe.add(Ge),We=Math.max(We,qe)}),(0,te.ZP)(!Ce.length,"Tree missing follow keys: ".concat(Ce.slice(0,100).map(function(ut){return"'".concat(ut,"'")}).join(", ")));var Le;return Se===!0?Le=ke(nt,it,We,st):Le=ge(nt,Se.halfCheckedKeys,it,We,st),Le}},65065:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return te}});function te(Ze,Te){return Ze[Te]}},34061:function(xn,yt,ce){"use strict";ce.d(yt,{F:function(){return qe},H8:function(){return Ge},I8:function(){return ut},km:function(){return Ce},oH:function(){return We},w$:function(){return st},zn:function(){return it}});var te=ce(76190),Ze=ce(94480),Te=ce(33885),Xe=ce(75931),ke=ce(11592),ge=ce(2738),Ve=ce(48736),Ue=ce(65065),Se=["children"];function ye(Qe,xe){return"".concat(Qe,"-").concat(xe)}function Je(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function Ce(Qe,xe){return Qe!=null?Qe:xe}function st(Qe){var xe=Qe||{},Ne=xe.title,Me=xe._title,rt=xe.key,He=xe.children,tt=Ne||"title";return{title:tt,_title:Me||[tt],key:rt||"key",children:He||"children"}}function nt(Qe,xe){var Ne=new Map;function Me(rt){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(rt||[]).forEach(function(tt){var gt=tt[xe.key],Ye=tt[xe.children];warning(gt!=null,"Tree node must have a certain key: [".concat(He).concat(gt,"]"));var wt=String(gt);warning(!Ne.has(wt)||gt===null||gt===void 0,"Same 'key' exist in the Tree: ".concat(wt)),Ne.set(wt,!0),Me(Ye,"".concat(He).concat(wt," > "))})}Me(Qe)}function it(Qe){function xe(Ne){var Me=(0,ke.Z)(Ne);return Me.map(function(rt){if(!Je(rt))return(0,Ve.ZP)(!rt,"Tree/TreeNode can only accept TreeNode as children."),null;var He=rt.key,tt=rt.props,gt=tt.children,Ye=(0,Xe.Z)(tt,Se),wt=(0,Te.Z)({key:He},Ye),at=xe(gt);return at.length&&(wt.children=at),wt}).filter(function(rt){return rt})}return xe(Qe)}function We(Qe,xe,Ne){var Me=st(Ne),rt=Me._title,He=Me.key,tt=Me.children,gt=new Set(xe===!0?[]:xe),Ye=[];function wt(at){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return at.map(function(Vt,Jt){for(var pn=ye(vt?vt.pos:"0",Jt),An=Ce(Vt[He],pn),ze,Fe=0;Fe1&&arguments[1]!==void 0?arguments[1]:{},Ne=xe.initWrapper,Me=xe.processEntity,rt=xe.onProcessFinished,He=xe.externalGetKey,tt=xe.childrenPropName,gt=xe.fieldNames,Ye=arguments.length>2?arguments[2]:void 0,wt=He||Ye,at={},vt={},Vt={posEntities:at,keyEntities:vt};return Ne&&(Vt=Ne(Vt)||Vt),Le(Qe,function(Jt){var pn=Jt.node,An=Jt.index,ze=Jt.pos,Fe=Jt.key,Ot=Jt.parentPos,Fn=Jt.level,dn=Jt.nodes,Ct={node:pn,nodes:dn,index:An,key:Fe,pos:ze,level:Fn},en=Ce(Fe,ze);at[ze]=Ct,vt[en]=Ct,Ct.parent=at[Ot],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),Me&&Me(Ct,Vt)},{externalGetKey:wt,childrenPropName:tt,fieldNames:gt}),rt&&rt(Vt),Vt}function Ge(Qe,xe){var Ne=xe.expandedKeys,Me=xe.selectedKeys,rt=xe.loadedKeys,He=xe.loadingKeys,tt=xe.checkedKeys,gt=xe.halfCheckedKeys,Ye=xe.dragOverNodeKey,wt=xe.dropPosition,at=xe.keyEntities,vt=(0,Ue.Z)(at,Qe),Vt={eventKey:Qe,expanded:Ne.indexOf(Qe)!==-1,selected:Me.indexOf(Qe)!==-1,loaded:rt.indexOf(Qe)!==-1,loading:He.indexOf(Qe)!==-1,checked:tt.indexOf(Qe)!==-1,halfChecked:gt.indexOf(Qe)!==-1,pos:String(vt?vt.pos:""),dragOver:Ye===Qe&&wt===0,dragOverGapTop:Ye===Qe&&wt===-1,dragOverGapBottom:Ye===Qe&&wt===1};return Vt}function qe(Qe){var xe=Qe.data,Ne=Qe.expanded,Me=Qe.selected,rt=Qe.checked,He=Qe.loaded,tt=Qe.loading,gt=Qe.halfChecked,Ye=Qe.dragOver,wt=Qe.dragOverGapTop,at=Qe.dragOverGapBottom,vt=Qe.pos,Vt=Qe.active,Jt=Qe.eventKey,pn=(0,Te.Z)((0,Te.Z)({},xe),{},{expanded:Ne,selected:Me,checked:rt,loaded:He,loading:tt,halfChecked:gt,dragOver:Ye,dragOverGapTop:wt,dragOverGapBottom:at,pos:vt,active:Vt,key:Jt});return"props"in pn||Object.defineProperty(pn,"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}}),pn}},8224:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return Ze}});var te=ce(4676);function Ze(Te,Xe,ke,ge){var Ve=te.unstable_batchedUpdates?function(Se){te.unstable_batchedUpdates(ke,Se)}:ke;return Te!=null&&Te.addEventListener&&Te.addEventListener(Xe,Ve,ge),{remove:function(){Te!=null&&Te.removeEventListener&&Te.removeEventListener(Xe,Ve,ge)}}}},3465:function(xn,yt,ce){"use strict";ce.d(yt,{G:function(){return Xe}});var te=ce(47273),Ze=function(ge){if((0,te.Z)()&&window.document.documentElement){var Ve=Array.isArray(ge)?ge:[ge],Ue=window.document.documentElement;return Ve.some(function(Se){return Se in Ue.style})}return!1},Te=function(ge,Ve){if(!Ze(ge))return!1;var Ue=document.createElement("div"),Se=Ue.style[ge];return Ue.style[ge]=Ve,Ue.style[ge]!==Se};function Xe(ke,ge){return!Array.isArray(ke)&&ge!==void 0?Te(ke,ge):Ze(ke)}},48911:function(xn,yt,ce){"use strict";ce.d(yt,{Z:function(){return zt}});var te=ce(54476),Ze=ce(76190),Te=ce(33885),Xe=ce(20068),ke=ce(42978),ge=ce(75931),Ve=ce(92310),Ue=ce.n(Ve),Se=ce(29301),ye=ce(70425),Je=ce(34280),Ce=ce(59301),st=ce(4676),nt=Ce.forwardRef(function(Bt,Pt){var _e=Bt.height,se=Bt.offsetY,fe=Bt.offsetX,Ie=Bt.children,Be=Bt.prefixCls,pt=Bt.onInnerResize,Mt=Bt.innerProps,sn=Bt.rtl,he=Bt.extra,oe={},re={display:"flex",flexDirection:"column"};return se!==void 0&&(oe={height:_e,position:"relative",overflow:"hidden"},re=(0,Te.Z)((0,Te.Z)({},re),{},(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.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(Se.Z,{onResize:function(we){var le=we.offsetHeight;le&&pt&&pt()}},Ce.createElement("div",(0,te.Z)({style:re,className:Ue()((0,Xe.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:Pt},Mt),Ie,he)))});nt.displayName="Filler";var it=nt;function We(Bt){var Pt=Bt.children,_e=Bt.setRef,se=Ce.useCallback(function(fe){_e(fe)},[]);return Ce.cloneElement(Pt,{ref:se})}function Le(Bt,Pt,_e,se,fe,Ie,Be,pt){var Mt=pt.getKey;return Bt.slice(Pt,_e+1).map(function(sn,he){var oe=Pt+he,re=Be(sn,oe,{style:{width:se},offsetX:fe}),de=Mt(sn);return Ce.createElement(We,{key:de,setRef:function(le){return Ie(sn,le)}},re)})}function ut(Bt,Pt,_e,se){var fe=_e-Bt,Ie=Pt-_e,Be=Math.min(fe,Ie)*2;if(se<=Be){var pt=Math.floor(se/2);return se%2?_e+pt+1:_e-pt}return fe>Ie?_e-(se-Ie):_e+(se-fe)}function Ge(Bt,Pt,_e){var se=Bt.length,fe=Pt.length,Ie,Be;if(se===0&&fe===0)return null;se2&&arguments[2]!==void 0?arguments[2]:!1,oe=Mt?sn<0&&pt.current.left||sn>0&&pt.current.right:sn<0&&pt.current.top||sn>0&&pt.current.bottom;return he&&oe?(clearTimeout(Ie.current),fe.current=!1):(!oe||fe.current)&&Be(),!fe.current&&oe}};function rt(Bt,Pt,_e,se,fe,Ie,Be){var pt=(0,Ce.useRef)(0),Mt=(0,Ce.useRef)(null),sn=(0,Ce.useRef)(null),he=(0,Ce.useRef)(!1),oe=Me(Pt,_e,se,fe);function re(Ut,It){if(Qe.Z.cancel(Mt.current),!oe(!1,It)){var ft=Ut;if(!ft._virtualHandled)ft._virtualHandled=!0;else return;pt.current+=It,sn.current=It,Ne||ft.preventDefault(),Mt.current=(0,Qe.Z)(function(){var Bn=he.current?10:1;Be(pt.current*Bn,!1),pt.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(Bt){Qe.Z.cancel(le.current),le.current=(0,Qe.Z)(function(){we.current=null},2);var It=Ut.deltaX,ft=Ut.deltaY,Bn=Ut.shiftKey,jt=It,cn=ft;(we.current==="sx"||!we.current&&Bn&&ft&&!It)&&(jt=ft,cn=0,we.current="sx");var In=Math.abs(jt),sr=Math.abs(cn);we.current===null&&(we.current=Ie&&In>sr?"x":"y"),we.current==="y"?re(Ut,cn):de(Ut,jt)}}function St(Ut){Bt&&(he.current=Ut.detail===sn.current)}return[Ee,St]}function He(Bt,Pt,_e,se){var fe=Ce.useMemo(function(){return[new Map,[]]},[Bt,_e.id,se]),Ie=(0,ke.Z)(fe,2),Be=Ie[0],pt=Ie[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=Bt.length,le=pt.length;le0&&arguments[0]!==void 0?arguments[0]:!1;he();var we=function(){var St=!1;pt.current.forEach(function(Ut,It){if(Ut&&Ut.offsetParent){var ft=Ut.offsetHeight,Bn=getComputedStyle(Ut),jt=Bn.marginTop,cn=Bn.marginBottom,In=at(jt),sr=at(cn),vn=ft+In+sr;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=Bt(de),Ee=pt.current.get(le);we?(pt.current.set(le,we),oe()):pt.current.delete(le),!Ee!=!we&&(we?Pt==null||Pt(de):_e==null||_e(de))}return(0,Ce.useEffect)(function(){return he},[]),[re,oe,Mt.current,Ie]}var Vt=14/15;function Jt(Bt,Pt,_e){var se=(0,Ce.useRef)(!1),fe=(0,Ce.useRef)(0),Ie=(0,Ce.useRef)(0),Be=(0,Ce.useRef)(null),pt=(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=Ie.current-le,Ut=Math.abs(Ee)>Math.abs(St);Ut?fe.current=we:Ie.current=le;var It=_e(Ut,Ut?Ee:St,!1,de);It&&de.preventDefault(),clearInterval(pt.current),It&&(pt.current=setInterval(function(){Ut?Ee*=Vt:St*=Vt;var ft=Math.floor(Ut?Ee:St);(!_e(Ut,ft,!0)||Math.abs(ft)<=.1)&&clearInterval(pt.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),Ie.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,Je.Z)(function(){return Bt&&Pt.current.addEventListener("touchstart",oe,{passive:!0}),function(){var re;(re=Pt.current)===null||re===void 0||re.removeEventListener("touchstart",oe),Mt(),clearInterval(pt.current)}},[Bt])}function pn(Bt){return Math.floor(Math.pow(Bt,.5))}function An(Bt,Pt){var _e="touches"in Bt?Bt.touches[0]:Bt;return _e[Pt?"pageX":"pageY"]-window[Pt?"scrollX":"scrollY"]}function ze(Bt,Pt,_e){Ce.useEffect(function(){var se=Pt.current;if(Bt&&se){var fe=!1,Ie,Be,pt=function(){Qe.Z.cancel(Ie)},Mt=function re(){pt(),Ie=(0,Qe.Z)(function(){_e(Be),re()})},sn=function(){fe=!1,pt()},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=-pn(Ut),Mt()}else if(we>=St){var It=we-St;Be=pn(It),Mt()}else pt()}};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),pt()}}},[Bt])}var Fe=10;function Ot(Bt,Pt,_e,se,fe,Ie,Be,pt){var Mt=Ce.useRef(),sn=Ce.useState(null),he=(0,ke.Z)(sn,2),oe=he[0],re=he[1];return(0,Je.Z)(function(){if(oe&&oe.times=0;Jn-=1){var Tr=fe(Pt[Jn]),Pr=_e.get(Tr);if(Pr===void 0){Ut=!0;break}if(yr-=Pr,yr<=0)break}switch(Bn){case"top":ft=cn-Ee;break;case"bottom":ft=In-St+Ee;break;default:{var Er=Bt.current.scrollTop,ur=Er+St;cnur&&(It="bottom")}}ft!==null&&Be(ft),ft!==oe.lastTop&&(Ut=!0)}Ut&&re((0,Te.Z)((0,Te.Z)({},oe),{},{times:oe.times+1,targetAlign:It,lastTop:ft}))}},[oe,Bt.current]),function(de){if(de==null){pt();return}if(Qe.Z.cancel(Mt.current),typeof de=="number")Be(de);else if(de&&(0,Ze.Z)(de)==="object"){var we,le=de.align;"index"in de?we=de.index:we=Pt.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(Bt,Pt){var _e=Bt.prefixCls,se=Bt.rtl,fe=Bt.scrollOffset,Ie=Bt.scrollRange,Be=Bt.onStartMove,pt=Bt.onStopMove,Mt=Bt.onScroll,sn=Bt.horizontal,he=Bt.spinSize,oe=Bt.containerSize,re=Bt.style,de=Bt.thumbStyle,we=Bt.showScrollBar,le=Ce.useState(!1),Ee=(0,ke.Z)(le,2),St=Ee[0],Ut=Ee[1],It=Ce.useState(null),ft=(0,ke.Z)(It,2),Bn=ft[0],jt=ft[1],cn=Ce.useState(null),In=(0,ke.Z)(cn,2),sr=In[0],vn=In[1],dr=!se,cr=Ce.useRef(),yr=Ce.useRef(),Jn=Ce.useState(we),Tr=(0,ke.Z)(Jn,2),Pr=Tr[0],Er=Tr[1],ur=Ce.useRef(),Qr=function(){we===!0||we===!1||(clearTimeout(ur.current),Er(!0),ur.current=setTimeout(function(){Er(!1)},3e3))},Kn=Ie-oe||0,rr=oe-he||0,qn=Ce.useMemo(function(){if(fe===0||Kn===0)return 0;var Wr=fe/Kn;return Wr*rr},[fe,Kn,rr]),mn=function(Dr){Dr.stopPropagation(),Dr.preventDefault()},zn=Ce.useRef({top:qn,dragging:St,pageY:Bn,startTop:sr});zn.current={top:qn,dragging:St,pageY:Bn,startTop:sr};var $t=function(Dr){Ut(!0),jt(An(Dr,sn)),vn(zn.current.top),Be(),Dr.stopPropagation(),Dr.preventDefault()};Ce.useEffect(function(){var Wr=function($n){$n.preventDefault()},Dr=cr.current,Ur=yr.current;return Dr.addEventListener("touchstart",Wr,{passive:!1}),Ur.addEventListener("touchstart",$t,{passive:!1}),function(){Dr.removeEventListener("touchstart",Wr),Ur.removeEventListener("touchstart",$t)}},[]);var Sn=Ce.useRef();Sn.current=Kn;var pr=Ce.useRef();pr.current=rr,Ce.useEffect(function(){if(St){var Wr,Dr=function($n){var yn=zn.current,$e=yn.dragging,kr=yn.pageY,Zr=yn.startTop;Qe.Z.cancel(Wr);var Lt=cr.current.getBoundingClientRect(),Tt=oe/(sn?Lt.width:Lt.height);if($e){var tr=(An($n,sn)-kr)*Tt,Tn=Zr;!dr&&sn?Tn-=tr:Tn+=tr;var Gt=Sn.current,_n=pr.current,ar=_n?Tn/_n:0,Ar=Math.ceil(ar*Gt);Ar=Math.max(Ar,0),Ar=Math.min(Ar,Gt),Wr=(0,Qe.Z)(function(){Mt(Ar,sn)})}},Ur=function(){Ut(!1),pt()};return window.addEventListener("mousemove",Dr,{passive:!0}),window.addEventListener("touchmove",Dr,{passive:!0}),window.addEventListener("mouseup",Ur,{passive:!0}),window.addEventListener("touchend",Ur,{passive:!0}),function(){window.removeEventListener("mousemove",Dr),window.removeEventListener("touchmove",Dr),window.removeEventListener("mouseup",Ur),window.removeEventListener("touchend",Ur),Qe.Z.cancel(Wr)}}},[St]),Ce.useEffect(function(){return Qr(),function(){clearTimeout(ur.current)}},[fe]),Ce.useImperativeHandle(Pt,function(){return{delayHidden:Qr}});var lr="".concat(_e,"-scrollbar"),fr={position:"absolute",visibility:Pr?null:"hidden"},Fr={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(fr,{height:8,left:0,right:0,bottom:0}),Object.assign(Fr,(0,Xe.Z)({height:"100%",width:he},dr?"left":"right",qn))):(Object.assign(fr,(0,Xe.Z)({width:8,top:0,bottom:0},dr?"right":"left",0)),Object.assign(Fr,{width:"100%",height:he,top:qn})),Ce.createElement("div",{ref:cr,className:Ue()(lr,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},"".concat(lr,"-horizontal"),sn),"".concat(lr,"-vertical"),!sn),"".concat(lr,"-visible"),Pr)),style:(0,Te.Z)((0,Te.Z)({},fr),re),onMouseDown:mn,onMouseMove:Qr},Ce.createElement("div",{ref:yr,className:Ue()("".concat(lr,"-thumb"),(0,Xe.Z)({},"".concat(lr,"-thumb-moving"),St)),style:(0,Te.Z)((0,Te.Z)({},Fr),de),onMouseDown:$t}))}),dn=Fn,Ct=20;function en(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_e=Bt/Pt*Bt;return isNaN(_e)&&(_e=0),_e=Math.max(_e,Ct),Math.floor(_e)}var rn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Yn=[],Dt={overflowY:"auto",overflowAnchor:"none"};function mt(Bt,Pt){var _e=Bt.prefixCls,se=_e===void 0?"rc-virtual-list":_e,fe=Bt.className,Ie=Bt.height,Be=Bt.itemHeight,pt=Bt.fullHeight,Mt=pt===void 0?!0:pt,sn=Bt.style,he=Bt.data,oe=Bt.children,re=Bt.itemKey,de=Bt.virtual,we=Bt.direction,le=Bt.scrollWidth,Ee=Bt.component,St=Ee===void 0?"div":Ee,Ut=Bt.onScroll,It=Bt.onVirtualScroll,ft=Bt.onVisibleChange,Bn=Bt.innerProps,jt=Bt.extraRender,cn=Bt.styles,In=Bt.showScrollBar,sr=In===void 0?"optional":In,vn=(0,ge.Z)(Bt,rn),dr=Ce.useCallback(function(Ht){return typeof re=="function"?re(Ht):Ht==null?void 0:Ht[re]},[re]),cr=vt(dr,null,null),yr=(0,ke.Z)(cr,4),Jn=yr[0],Tr=yr[1],Pr=yr[2],Er=yr[3],ur=!!(de!==!1&&Ie&&Be),Qr=Ce.useMemo(function(){return Object.values(Pr.maps).reduce(function(Ht,ln){return Ht+ln},0)},[Pr.id,Pr.maps]),Kn=ur&&he&&(Math.max(Be*he.length,Qr)>Ie||!!le),rr=we==="rtl",qn=Ue()(se,(0,Xe.Z)({},"".concat(se,"-rtl"),rr),fe),mn=he||Yn,zn=(0,Ce.useRef)(),$t=(0,Ce.useRef)(),Sn=(0,Ce.useRef)(),pr=(0,Ce.useState)(0),lr=(0,ke.Z)(pr,2),fr=lr[0],Fr=lr[1],Wr=(0,Ce.useState)(0),Dr=(0,ke.Z)(Wr,2),Ur=Dr[0],qr=Dr[1],$n=(0,Ce.useState)(!1),yn=(0,ke.Z)($n,2),$e=yn[0],kr=yn[1],Zr=function(){kr(!0)},Lt=function(){kr(!1)},Tt={getKey:dr};function tr(Ht){Fr(function(ln){var hn;typeof Ht=="function"?hn=Ht(ln):hn=Ht;var tn=ui(hn);return zn.current.scrollTop=tn,tn})}var Tn=(0,Ce.useRef)({start:0,end:mn.length}),Gt=(0,Ce.useRef)(),_n=qe(mn,dr),ar=(0,ke.Z)(_n,1),Ar=ar[0];Gt.current=Ar;var or=Ce.useMemo(function(){if(!ur)return{scrollHeight:void 0,start:0,end:mn.length-1,offset:void 0};if(!Kn){var Ht;return{scrollHeight:((Ht=$t.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,un,nr=mn.length,Nt=0;Nt=fr&&hn===void 0&&(hn=Nt,tn=ln),er>fr+Ie&&un===void 0&&(un=Nt),ln=er}return hn===void 0&&(hn=0,tn=0,un=Math.ceil(Ie/Be)),un===void 0&&(un=mn.length-1),un=Math.min(un+1,mn.length-1),{scrollHeight:ln,start:hn,end:un,offset:tn}},[Kn,ur,fr,mn,Er,Ie]),hr=or.scrollHeight,xr=or.start,Hn=or.end,xt=or.offset;Tn.current.start=xr,Tn.current.end=Hn,Ce.useLayoutEffect(function(){var Ht=Pr.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 un=dr(tn);if(un===ln){var nr=Pr.get(ln),Nt=nr-Be;tr(function(qt){return qt+Nt})}}}Pr.resetRecord()},[hr]);var Ft=Ce.useState({width:0,height:Ie}),gn=(0,ke.Z)(Ft,2),Mn=gn[0],wr=gn[1],Hr=function(ln){wr({width:ln.offsetWidth,height:ln.offsetHeight})},Mr=(0,Ce.useRef)(),ir=(0,Ce.useRef)(),Xn=Ce.useMemo(function(){return en(Mn.width,le)},[Mn.width,le]),_r=Ce.useMemo(function(){return en(Mn.height,hr)},[Mn.height,hr]),Br=hr-Ie,$r=(0,Ce.useRef)(Br);$r.current=Br;function ui(Ht){var ln=Ht;return Number.isNaN($r.current)||(ln=Math.min(ln,$r.current)),ln=Math.max(ln,0),ln}var ai=fr<=0,Ci=fr>=Br,Ke=Ur<=0,Oe=Ur>=le,At=Me(ai,Ci,Ke,Oe),Et=function(){return{x:rr?-Ur:Ur,y:fr}},on=(0,Ce.useRef)(Et()),Wt=(0,ye.zX)(function(Ht){if(It){var ln=(0,Te.Z)((0,Te.Z)({},Et()),Ht);(on.current.x!==ln.x||on.current.y!==ln.y)&&(It(ln),on.current=ln)}});function Qn(Ht,ln){var hn=Ht;ln?((0,st.flushSync)(function(){qr(hn)}),Wt()):tr(hn)}function Rn(Ht){var ln=Ht.currentTarget.scrollTop;ln!==fr&&tr(ln),Ut==null||Ut(Ht),Wt()}var Wn=function(ln){var hn=ln,tn=le?le-Mn.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,tn),hn},Vn=(0,ye.zX)(function(Ht,ln){ln?((0,st.flushSync)(function(){qr(function(hn){var tn=hn+(rr?-Ht:Ht);return Wn(tn)})}),Wt()):tr(function(hn){var tn=hn+Ht;return tn})}),Zn=rt(ur,ai,Ci,Ke,Oe,!!le,Vn),Gn=(0,ke.Z)(Zn,2),ct=Gn[0],Yt=Gn[1];Jt(ur,zn,function(Ht,ln,hn,tn){var un=tn;return At(Ht,ln,hn)?!1:!un||!un._virtualHandled?(un&&(un._virtualHandled=!0),ct({preventDefault:function(){},deltaX:Ht?ln:0,deltaY:Ht?0:ln}),!0):!1}),ze(Kn,zn,function(Ht){tr(function(ln){return ln+Ht})}),(0,Je.Z)(function(){function Ht(hn){var tn=ai&&hn.detail<0,un=Ci&&hn.detail>0;ur&&!tn&&!un&&hn.preventDefault()}var ln=zn.current;return ln.addEventListener("wheel",ct,{passive:!1}),ln.addEventListener("DOMMouseScroll",Yt,{passive:!0}),ln.addEventListener("MozMousePixelScroll",Ht,{passive:!1}),function(){ln.removeEventListener("wheel",ct),ln.removeEventListener("DOMMouseScroll",Yt),ln.removeEventListener("MozMousePixelScroll",Ht)}},[ur,ai,Ci]),(0,Je.Z)(function(){if(le){var Ht=Wn(Ur);qr(Ht),Wt({x:Ht})}},[Mn.width,le]);var Rt=function(){var ln,hn;(ln=Mr.current)===null||ln===void 0||ln.delayHidden(),(hn=ir.current)===null||hn===void 0||hn.delayHidden()},Zt=Ot(zn,mn,Pr,Be,dr,function(){return Tr(!0)},tr,Rt);Ce.useImperativeHandle(Pt,function(){return{nativeElement:Sn.current,getScrollInfo:Et,scrollTo:function(ln){function hn(tn){return tn&&(0,Ze.Z)(tn)==="object"&&("left"in tn||"top"in tn)}hn(ln)?(ln.left!==void 0&&qr(Wn(ln.left)),Zt(ln.top)):Zt(ln)}}}),(0,Je.Z)(function(){if(ft){var Ht=mn.slice(xr,Hn+1);ft(Ht,mn)}},[xr,Hn,mn]);var nn=He(mn,dr,Pr,Be),fn=jt==null?void 0:jt({start:xr,end:Hn,virtual:Kn,offsetX:Ur,offsetY:xt,rtl:rr,getSize:nn}),dt=Le(mn,xr,Hn,le,Ur,Jn,oe,Tt),Ln=null;Ie&&(Ln=(0,Te.Z)((0,Xe.Z)({},Mt?"height":"maxHeight",Ie),Dt),ur&&(Ln.overflowY="hidden",le&&(Ln.overflowX="hidden"),$e&&(Ln.pointerEvents="none")));var wn={};return rr&&(wn.dir="rtl"),Ce.createElement("div",(0,te.Z)({ref:Sn,style:(0,Te.Z)((0,Te.Z)({},sn),{},{position:"relative"}),className:qn},wn,vn),Ce.createElement(Se.Z,{onResize:Hr},Ce.createElement(St,{className:"".concat(se,"-holder"),style:Ln,ref:zn,onScroll:Rn,onMouseEnter:Rt},Ce.createElement(it,{prefixCls:se,height:hr,offsetX:Ur,offsetY:xt,scrollWidth:le,onInnerResize:Tr,ref:$t,innerProps:Bn,rtl:rr,extra:fn},dt))),Kn&&hr>Ie&&Ce.createElement(dn,{ref:Mr,prefixCls:se,scrollOffset:fr,scrollRange:hr,rtl:rr,onScroll:Qn,onStartMove:Zr,onStopMove:Lt,spinSize:_r,containerSize:Mn.height,style:cn==null?void 0:cn.verticalScrollBar,thumbStyle:cn==null?void 0:cn.verticalScrollBarThumb,showScrollBar:sr}),Kn&&le>Mn.width&&Ce.createElement(dn,{ref:ir,prefixCls:se,scrollOffset:Ur,scrollRange:le,rtl:rr,onScroll:Qn,onStartMove:Zr,onStopMove:Lt,spinSize:Xn,containerSize:Mn.width,horizontal:!0,style:cn==null?void 0:cn.horizontalScrollBar,thumbStyle:cn==null?void 0:cn.horizontalScrollBarThumb,showScrollBar:sr}))}var ht=Ce.forwardRef(mt);ht.displayName="List";var bt=ht,zt=bt},51353:function(xn,yt,ce){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),Object.defineProperty(yt,"DraggableCore",{enumerable:!0,get:function(){return Ue.default}}),yt.default=void 0;var te=Je(ce(59301)),Ze=ye(ce(12708)),Te=ye(ce(4676)),Xe=ce(14625),ke=ce(77026),ge=ce(22013),Ve=ce(80217),Ue=ye(ce(68555)),Se=ye(ce(97510));function ye(Le){return Le&&Le.__esModule?Le:{default:Le}}function Je(Le,ut){if(typeof WeakMap=="function")var Ge=new WeakMap,qe=new WeakMap;return(Je=function(Qe,xe){if(!xe&&Qe&&Qe.__esModule)return Qe;var Ne,Me,rt={__proto__:null,default:Qe};if(Qe===null||typeof Qe!="object"&&typeof Qe!="function")return rt;if(Ne=xe?qe:Ge){if(Ne.has(Qe))return Ne.get(Qe);Ne.set(Qe,rt)}for(const He in Qe)He!=="default"&&{}.hasOwnProperty.call(Qe,He)&&((Me=(Ne=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Qe,He))&&(Me.get||Me.set)?Ne(rt,He,Me):rt[He]=Qe[He]);return rt})(Le,ut)}function Ce(){return Ce=Object.assign?Object.assign.bind():function(Le){for(var ut=1;ut{if((0,Se.default)("Draggable: onDragStart: %j",qe),this.props.onStart(Ge,(0,ge.createDraggableData)(this,qe))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),st(this,"onDrag",(Ge,qe)=>{if(!this.state.dragging)return!1;(0,Se.default)("Draggable: onDrag: %j",qe);const Qe=(0,ge.createDraggableData)(this,qe),xe={x:Qe.x,y:Qe.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Me,y:rt}=xe;xe.x+=this.state.slackX,xe.y+=this.state.slackY;const[He,tt]=(0,ge.getBoundPosition)(this,xe.x,xe.y);xe.x=He,xe.y=tt,xe.slackX=this.state.slackX+(Me-xe.x),xe.slackY=this.state.slackY+(rt-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)}),st(this,"onDragStop",(Ge,qe)=>{if(!this.state.dragging||this.props.onStop(Ge,(0,ge.createDraggableData)(this,qe))===!1)return!1;(0,Se.default)("Draggable: onDragStop: %j",qe);const xe={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Me,y:rt}=this.props.position;xe.x=Me,xe.y=rt}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,qe;return(qe=(Ge=(ut=this.props)==null?void 0:ut.nodeRef)==null?void 0:Ge.current)!=null?qe:Te.default.findDOMNode(this)}render(){const An=this.props,{axis:ut,bounds:Ge,children:qe,defaultPosition:Qe,defaultClassName:xe,defaultClassNameDragging:Ne,defaultClassNameDragged:Me,position:rt,positionOffset:He,scale:tt}=An,gt=cc(An,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Ye={},wt=null;const vt=!!!rt||this.state.dragging,Vt=rt||Qe,Jt={x:(0,ge.canDragX)(this)&&vt?this.state.x:Vt.x,y:(0,ge.canDragY)(this)&&vt?this.state.y:Vt.y};this.state.isElementSVG?wt=(0,ke.createSVGTransform)(Jt,He):Ye=(0,ke.createCSSTransform)(Jt,He);const pn=(0,Xe.clsx)(qe.props.className||"",xe,{[Ne]:this.state.dragging,[Me]:this.state.dragged});return te.createElement(Ue.default,Ce({},gt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),te.cloneElement(te.Children.only(qe),{className:pn,style:Vo(Vo({},qe.props.style),Ye),transform:wt}))}}yt.default=We,st(We,"displayName","Draggable"),st(We,"propTypes",ec(Vo({},Ue.default.propTypes),{axis:Ze.default.oneOf(["both","x","y","none"]),bounds:Ze.default.oneOfType([Ze.default.shape({left:Ze.default.number,right:Ze.default.number,top:Ze.default.number,bottom:Ze.default.number}),Ze.default.string,Ze.default.oneOf([!1])]),defaultClassName:Ze.default.string,defaultClassNameDragging:Ze.default.string,defaultClassNameDragged:Ze.default.string,defaultPosition:Ze.default.shape({x:Ze.default.number,y:Ze.default.number}),positionOffset:Ze.default.shape({x:Ze.default.oneOfType([Ze.default.number,Ze.default.string]),y:Ze.default.oneOfType([Ze.default.number,Ze.default.string])}),position:Ze.default.shape({x:Ze.default.number,y:Ze.default.number}),className:Ve.dontSetMe,style:Ve.dontSetMe,transform:Ve.dontSetMe})),st(We,"defaultProps",ec(Vo({},Ue.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,yt,ce){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.default=void 0;var te=Se(ce(59301)),Ze=Ue(ce(12708)),Te=Ue(ce(4676)),Xe=ce(77026),ke=ce(22013),ge=ce(80217),Ve=Ue(ce(97510));function Ue(We){return We&&We.__esModule?We:{default:We}}function Se(We,Le){if(typeof WeakMap=="function")var ut=new WeakMap,Ge=new WeakMap;return(Se=function(qe,Qe){if(!Qe&&qe&&qe.__esModule)return qe;var xe,Ne,Me={__proto__:null,default:qe};if(qe===null||typeof qe!="object"&&typeof qe!="function")return Me;if(xe=Qe?Ge:ut){if(xe.has(qe))return xe.get(qe);xe.set(qe,Me)}for(const rt in qe)rt!=="default"&&{}.hasOwnProperty.call(qe,rt)&&((Ne=(xe=Object.defineProperty)&&Object.getOwnPropertyDescriptor(qe,rt))&&(Ne.get||Ne.set)?xe(Me,rt,Ne):Me[rt]=qe[rt]);return Me})(We,Le)}function ye(We,Le,ut){return(Le=Je(Le))in We?Object.defineProperty(We,Le,{value:ut,enumerable:!0,configurable:!0,writable:!0}):We[Le]=ut,We}function Je(We){var Le=Ce(We,"string");return typeof Le=="symbol"?Le:Le+""}function Ce(We,Le){if(typeof We!="object"||!We)return We;var ut=We[Symbol.toPrimitive];if(ut!==void 0){var Ge=ut.call(We,Le||"default");if(typeof Ge!="object")return Ge;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Le==="string"?String:Number)(We)}const st={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let nt=st.mouse;class it extends te.Component{constructor(){super(...arguments),ye(this,"dragging",!1),ye(this,"lastX",NaN),ye(this,"lastY",NaN),ye(this,"touchIdentifier",null),ye(this,"mounted",!1),ye(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,Xe.matchesSelectorAndParentsTo)(Le.target,this.props.handle,ut)||this.props.cancel&&(0,Xe.matchesSelectorAndParentsTo)(Le.target,this.props.cancel,ut))return;Le.type==="touchstart"&&!this.props.allowMobileScroll&&Le.preventDefault();const qe=(0,Xe.getTouchIdentifier)(Le);this.touchIdentifier=qe;const Qe=(0,ke.getControlPosition)(Le,qe,this);if(Qe==null)return;const{x:xe,y:Ne}=Qe,Me=(0,ke.createCoreData)(this,xe,Ne);(0,Ve.default)("DraggableCore: handleDragStart: %j",Me),(0,Ve.default)("calling",this.props.onStart),!(this.props.onStart(Le,Me)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Xe.addUserSelectStyles)(Ge),this.dragging=!0,this.lastX=xe,this.lastY=Ne,(0,Xe.addEvent)(Ge,nt.move,this.handleDrag),(0,Xe.addEvent)(Ge,nt.stop,this.handleDragStop))}),ye(this,"handleDrag",Le=>{const ut=(0,ke.getControlPosition)(Le,this.touchIdentifier,this);if(ut==null)return;let{x:Ge,y:qe}=ut;if(Array.isArray(this.props.grid)){let Ne=Ge-this.lastX,Me=qe-this.lastY;if([Ne,Me]=(0,ke.snapToGrid)(this.props.grid,Ne,Me),!Ne&&!Me)return;Ge=this.lastX+Ne,qe=this.lastY+Me}const Qe=(0,ke.createCoreData)(this,Ge,qe);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 Me=document.createEvent("MouseEvents");Me.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Me)}return}this.lastX=Ge,this.lastY=qe}),ye(this,"handleDragStop",Le=>{if(!this.dragging)return;const ut=(0,ke.getControlPosition)(Le,this.touchIdentifier,this);if(ut==null)return;let{x:Ge,y:qe}=ut;if(Array.isArray(this.props.grid)){let Me=Ge-this.lastX||0,rt=qe-this.lastY||0;[Me,rt]=(0,ke.snapToGrid)(this.props.grid,Me,rt),Ge=this.lastX+Me,qe=this.lastY+rt}const Qe=(0,ke.createCoreData)(this,Ge,qe);if(this.props.onStop(Le,Qe)===!1||this.mounted===!1)return!1;const Ne=this.findDOMNode();Ne&&this.props.enableUserSelectHack&&(0,Xe.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,Xe.removeEvent)(Ne.ownerDocument,nt.move,this.handleDrag),(0,Xe.removeEvent)(Ne.ownerDocument,nt.stop,this.handleDragStop))}),ye(this,"onMouseDown",Le=>(nt=st.mouse,this.handleDragStart(Le))),ye(this,"onMouseUp",Le=>(nt=st.mouse,this.handleDragStop(Le))),ye(this,"onTouchStart",Le=>(nt=st.touch,this.handleDragStart(Le))),ye(this,"onTouchEnd",Le=>(nt=st.touch,this.handleDragStop(Le)))}componentDidMount(){this.mounted=!0;const Le=this.findDOMNode();Le&&(0,Xe.addEvent)(Le,st.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const Le=this.findDOMNode();if(Le){const{ownerDocument:ut}=Le;(0,Xe.removeEvent)(ut,st.mouse.move,this.handleDrag),(0,Xe.removeEvent)(ut,st.touch.move,this.handleDrag),(0,Xe.removeEvent)(ut,st.mouse.stop,this.handleDragStop),(0,Xe.removeEvent)(ut,st.touch.stop,this.handleDragStop),(0,Xe.removeEvent)(Le,st.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Xe.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:Te.default.findDOMNode(this)}render(){return te.cloneElement(te.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}yt.default=it,ye(it,"displayName","DraggableCore"),ye(it,"propTypes",{allowAnyClick:Ze.default.bool,allowMobileScroll:Ze.default.bool,children:Ze.default.node.isRequired,disabled:Ze.default.bool,enableUserSelectHack:Ze.default.bool,offsetParent:function(We,Le){if(We[Le]&&We[Le].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ze.default.arrayOf(Ze.default.number),handle:Ze.default.string,cancel:Ze.default.string,nodeRef:Ze.default.object,onStart:Ze.default.func,onDrag:Ze.default.func,onStop:Ze.default.func,onMouseDown:Ze.default.func,scale:Ze.default.number,className:ge.dontSetMe,style:ge.dontSetMe,transform:ge.dontSetMe}),ye(it,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(xn,yt,ce){"use strict";const{default:te,DraggableCore:Ze}=ce(51353);xn.exports=te,xn.exports.default=te,xn.exports.DraggableCore=Ze},77026:function(xn,yt,ce){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.addClassName=xe,yt.addEvent=Ve,yt.addUserSelectStyles=Ge,yt.createCSSTransform=nt,yt.createSVGTransform=it,yt.getTouch=Le,yt.getTouchIdentifier=ut,yt.getTranslation=We,yt.innerHeight=Je,yt.innerWidth=Ce,yt.matchesSelector=ke,yt.matchesSelectorAndParentsTo=ge,yt.offsetXYFromParent=st,yt.outerHeight=Se,yt.outerWidth=ye,yt.removeClassName=Ne,yt.removeEvent=Ue,yt.scheduleRemoveUserSelectStyles=qe;var te=ce(80217),Ze=Te(ce(76172));function Te(Me,rt){if(typeof WeakMap=="function")var He=new WeakMap,tt=new WeakMap;return(Te=function(gt,Ye){if(!Ye&>&>.__esModule)return gt;var wt,at,vt={__proto__:null,default:gt};if(gt===null||typeof gt!="object"&&typeof gt!="function")return vt;if(wt=Ye?tt:He){if(wt.has(gt))return wt.get(gt);wt.set(gt,vt)}for(const Vt in gt)Vt!=="default"&&{}.hasOwnProperty.call(gt,Vt)&&((at=(wt=Object.defineProperty)&&Object.getOwnPropertyDescriptor(gt,Vt))&&(at.get||at.set)?wt(vt,Vt,at):vt[Vt]=gt[Vt]);return vt})(Me,rt)}let Xe="";function ke(Me,rt){return Xe||(Xe=(0,te.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(He){return(0,te.isFunction)(Me[He])})),(0,te.isFunction)(Me[Xe])?Me[Xe](rt):!1}function ge(Me,rt,He){let tt=Me;do{if(ke(tt,rt))return!0;if(tt===He)return!1;tt=tt.parentNode}while(tt);return!1}function Ve(Me,rt,He,tt){if(!Me)return;const gt=Vo({capture:!0},tt);Me.addEventListener?Me.addEventListener(rt,He,gt):Me.attachEvent?Me.attachEvent("on"+rt,He):Me["on"+rt]=He}function Ue(Me,rt,He,tt){if(!Me)return;const gt=Vo({capture:!0},tt);Me.removeEventListener?Me.removeEventListener(rt,He,gt):Me.detachEvent?Me.detachEvent("on"+rt,He):Me["on"+rt]=null}function Se(Me){let rt=Me.clientHeight;const He=Me.ownerDocument.defaultView.getComputedStyle(Me);return rt+=(0,te.int)(He.borderTopWidth),rt+=(0,te.int)(He.borderBottomWidth),rt}function ye(Me){let rt=Me.clientWidth;const He=Me.ownerDocument.defaultView.getComputedStyle(Me);return rt+=(0,te.int)(He.borderLeftWidth),rt+=(0,te.int)(He.borderRightWidth),rt}function Je(Me){let rt=Me.clientHeight;const He=Me.ownerDocument.defaultView.getComputedStyle(Me);return rt-=(0,te.int)(He.paddingTop),rt-=(0,te.int)(He.paddingBottom),rt}function Ce(Me){let rt=Me.clientWidth;const He=Me.ownerDocument.defaultView.getComputedStyle(Me);return rt-=(0,te.int)(He.paddingLeft),rt-=(0,te.int)(He.paddingRight),rt}function st(Me,rt,He){const gt=rt===rt.ownerDocument.body?{left:0,top:0}:rt.getBoundingClientRect(),Ye=(Me.clientX+rt.scrollLeft-gt.left)/He,wt=(Me.clientY+rt.scrollTop-gt.top)/He;return{x:Ye,y:wt}}function nt(Me,rt){const He=We(Me,rt,"px");return{[(0,Ze.browserPrefixToKey)("transform",Ze.default)]:He}}function it(Me,rt){return We(Me,rt,"")}function We(Me,rt,He){let{x:tt,y:gt}=Me,Ye=`translate(${tt}${He},${gt}${He})`;if(rt){const wt=`${typeof rt.x=="string"?rt.x:rt.x+He}`,at=`${typeof rt.y=="string"?rt.y:rt.y+He}`;Ye=`translate(${wt}, ${at})`+Ye}return Ye}function Le(Me,rt){return Me.targetTouches&&(0,te.findInArray)(Me.targetTouches,He=>rt===He.identifier)||Me.changedTouches&&(0,te.findInArray)(Me.changedTouches,He=>rt===He.identifier)}function ut(Me){if(Me.targetTouches&&Me.targetTouches[0])return Me.targetTouches[0].identifier;if(Me.changedTouches&&Me.changedTouches[0])return Me.changedTouches[0].identifier}function Ge(Me){if(!Me)return;let rt=Me.getElementById("react-draggable-style-el");rt||(rt=Me.createElement("style"),rt.type="text/css",rt.id="react-draggable-style-el",rt.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `,rt.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} `,Me.getElementsByTagName("head")[0].appendChild(rt)),Me.body&&xe(Me.body,"react-draggable-transparent-selection")}function qe(Me){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Qe(Me)}):Qe(Me)}function Qe(Me){if(Me)try{if(Me.body&&Ne(Me.body,"react-draggable-transparent-selection"),Me.selection)Me.selection.empty();else{const rt=(Me.defaultView||window).getSelection();rt&&rt.type!=="Caret"&&rt.removeAllRanges()}}catch(rt){}}function xe(Me,rt){Me.classList?Me.classList.add(rt):Me.className.match(new RegExp(`(?:^|\\s)${rt}(?!\\S)`))||(Me.className+=` ${rt}`)}function Ne(Me,rt){Me.classList?Me.classList.remove(rt):Me.className=Me.className.replace(new RegExp(`(?:^|\\s)${rt}(?!\\S)`,"g"),"")}},76172:function(xn,yt){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.browserPrefixToKey=Ze,yt.browserPrefixToStyle=Te,yt.default=void 0,yt.getPrefix=te;const ce=["Moz","Webkit","O","ms"];function te(){var Ue,Se;let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Ve=(Se=(Ue=window.document)==null?void 0:Ue.documentElement)==null?void 0:Se.style;if(!Ve||ge in Ve)return"";for(let ye=0;ye: Unmounted during event!");return st}},80217:function(xn,yt){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.dontSetMe=Xe,yt.findInArray=ce,yt.int=Te,yt.isFunction=te,yt.isNum=Ze;function ce(ke,ge){for(let Ve=0,Ue=ke.length;Ve1&&arguments[1]!==void 0?arguments[1]:60,Xe=null;return function(){for(var ke=this,ge=arguments.length,Ve=new Array(ge),Ue=0;Uetypeof Se=="object"&&Se!=null&&Se.nodeType===1,Ze=(Se,ye)=>(!ye||Se!=="hidden")&&Se!=="visible"&&Se!=="clip",Te=(Se,ye)=>{if(Se.clientHeight{const st=(nt=>{if(!nt.ownerDocument||!nt.ownerDocument.defaultView)return null;try{return nt.ownerDocument.defaultView.frameElement}catch(it){return null}})(Ce);return!!st&&(st.clientHeightntye||nt>Se&&it=ye&&We>=Je?nt-Se-Ce:it>ye&&WeJe?it-ye+st:0,ke=Se=>{const ye=Se.parentElement;return ye==null?Se.getRootNode().host||null:ye},ge=(Se,ye)=>{var Je,Ce,st,nt;if(typeof document=="undefined")return[];const{scrollMode:it,block:We,inline:Le,boundary:ut,skipOverflowHiddenElements:Ge}=ye,qe=typeof ut=="function"?ut:dn=>dn!==ut;if(!te(Se))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,xe=[];let Ne=Se;for(;te(Ne)&&qe(Ne);){if(Ne=ke(Ne),Ne===Qe){xe.push(Ne);break}Ne!=null&&Ne===document.body&&Te(Ne)&&!Te(document.documentElement)||Ne!=null&&Te(Ne,Ge)&&xe.push(Ne)}const Me=(Ce=(Je=window.visualViewport)==null?void 0:Je.width)!=null?Ce:innerWidth,rt=(nt=(st=window.visualViewport)==null?void 0:st.height)!=null?nt:innerHeight,{scrollX:He,scrollY:tt}=window,{height:gt,width:Ye,top:wt,right:at,bottom:vt,left:Vt}=Se.getBoundingClientRect(),{top:Jt,right:pn,bottom:An,left:ze}=(dn=>{const Ct=window.getComputedStyle(dn);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(Se);let Fe=We==="start"||We==="nearest"?wt-Jt:We==="end"?vt+An:wt+gt/2-Jt+An,Ot=Le==="center"?Vt+Ye/2-ze+pn:Le==="end"?at+pn:Vt-ze;const Fn=[];for(let dn=0;dn=0&&Vt>=0&&vt<=rt&&at<=Me&&(Ct===Qe&&!Te(Ct)||wt>=Yn&&vt<=mt&&Vt>=ht&&at<=Dt))return Fn;const bt=getComputedStyle(Ct),zt=parseInt(bt.borderLeftWidth,10),Bt=parseInt(bt.borderTopWidth,10),Pt=parseInt(bt.borderRightWidth,10),_e=parseInt(bt.borderBottomWidth,10);let se=0,fe=0;const Ie="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-zt-Pt:0,Be="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-Bt-_e:0,pt="offsetWidth"in Ct?Ct.offsetWidth===0?0:rn/Ct.offsetWidth:0,Mt="offsetHeight"in Ct?Ct.offsetHeight===0?0:en/Ct.offsetHeight:0;if(Qe===Ct)se=We==="start"?Fe:We==="end"?Fe-rt:We==="nearest"?Xe(tt,tt+rt,rt,Bt,_e,tt+Fe,tt+Fe+gt,gt):Fe-rt/2,fe=Le==="start"?Ot:Le==="center"?Ot-Me/2:Le==="end"?Ot-Me:Xe(He,He+Me,Me,zt,Pt,He+Ot,He+Ot+Ye,Ye),se=Math.max(0,se+tt),fe=Math.max(0,fe+He);else{se=We==="start"?Fe-Yn-Bt:We==="end"?Fe-mt+_e+Be:We==="nearest"?Xe(Yn,mt,en,Bt,_e+Be,Fe,Fe+gt,gt):Fe-(Yn+en/2)+Be/2,fe=Le==="start"?Ot-ht-zt:Le==="center"?Ot-(ht+rn/2)+Ie/2:Le==="end"?Ot-Dt+Pt+Ie:Xe(ht,Dt,rn,zt,Pt+Ie,Ot,Ot+Ye,Ye);const{scrollLeft:sn,scrollTop:he}=Ct;se=Mt===0?0:Math.max(0,Math.min(he+se/Mt,Ct.scrollHeight-en/Mt+Be)),fe=pt===0?0:Math.max(0,Math.min(sn+fe/pt,Ct.scrollWidth-rn/pt+Ie)),Fe+=he-se,Ot+=sn-fe}Fn.push({el:Ct,top:se,left:fe})}return Fn},Ve=Se=>Se===!1?{block:"end",inline:"nearest"}:(ye=>ye===Object(ye)&&Object.keys(ye).length!==0)(Se)?Se:{block:"start",inline:"nearest"};function Ue(Se,ye){if(!Se.isConnected||!(st=>{let nt=st;for(;nt&&nt.parentNode;){if(nt.parentNode===document)return!0;nt=nt.parentNode instanceof ShadowRoot?nt.parentNode.host:nt.parentNode}return!1})(Se))return;const Je=(st=>{const nt=window.getComputedStyle(st);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(Se);if((st=>typeof st=="object"&&typeof st.behavior=="function")(ye))return ye.behavior(ge(Se,ye));const Ce=typeof ye=="boolean"||ye==null?void 0:ye.behavior;for(const{el:st,top:nt,left:it}of ge(Se,Ve(ye))){const We=nt-Je.top+Je.bottom,Le=it-Je.left+Je.right;st.scroll({top:We,left:Le,behavior:Ce})}}}}]); }());